Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-11-12

| Channels | #salt index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:04 erewok I'm going to give startup_states another shot
00:04 erewok I figured out I had it in the wrong spot
00:04 jas02 joined #salt
00:05 raspado is there a way to trigger a state.apply to all minions in a single environment?
00:07 Edgan raspado: I put environments in my hostname, and turn the hostname into a set of grains. Then I can do what you want multiple ways.
00:07 raspado in the minion, we define environment if theres a way to key off that
00:08 Edgan raspado: You could set a grain for the environment
00:08 Edgan raspado: grains are settable via states
00:08 Edgan raspado: Though I am not a fan of that style of grains.
00:09 Edgan raspado: define what you mean by define
00:10 raspado we set a grain "operational_environment" with the environment name
00:10 Edgan raspado: ah, yeah, you can use that
00:10 Edgan https://docs.saltstack.com/en/latest/topics/targeting/grains.html
00:10 raspado can I do a salt-call 'G@operational_environment:ct2' state.apply or something?
00:11 Edgan yes
00:13 bltmiller joined #salt
00:14 bltmiller II can't tell if I'm approaching this correctly: https://gist.github.com/blaketmiller/1c9787bb3ecf617b3da3f14ca1ffd4c4
00:15 bltmiller keeps returning a 599 timeout when running state.apply
00:15 bltmiller yet a simple `yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm` totally works :/
00:15 hemebond What about a pkg.install url
00:16 hemebond Doing it outside of salt isn't going to help find the problem :-D
00:16 hemebond Certainly seems to be correct according to the docs.
00:16 hemebond Do you have a proxy or anything?
00:17 hemebond Tried running the minion in debug mode?
00:17 bltmiller [ERROR   ] An error was encountered while installing package(s): Error: HTTP 599: Timeout reading https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
00:18 bltmiller rather, here's relevant clip: https://gist.github.com/blaketmiller/4b2b84fa3c5d537835ea8463475852b5
00:19 bltmiller err gotta edit that real quick...
00:20 bltmiller https://gist.github.com/blaketmiller/814e77b18b710a58a07ec433fb1c339e
00:23 Rumbles joined #salt
00:29 hemebond So... do you have a proxy or anything?
00:31 akhter joined #salt
00:34 akhter joined #salt
00:36 bltmiller nah, no proxy set
00:44 xet7 joined #salt
00:45 oida_ joined #salt
00:48 pipps joined #salt
00:53 swills joined #salt
00:57 pipps joined #salt
00:59 amontalban joined #salt
00:59 amontalban joined #salt
01:00 edrocks joined #salt
01:03 dyasny joined #salt
01:03 mTeK joined #salt
01:06 jas02 joined #salt
01:27 UForgotten joined #salt
01:28 Cidan joined #salt
01:36 LeProvokateur joined #salt
01:41 amontalban joined #salt
01:42 pipps joined #salt
01:42 ninjada joined #salt
01:43 funabashi joined #salt
01:54 ninjada joined #salt
02:03 orionx joined #salt
02:07 jas02 joined #salt
02:11 jeddi joined #salt
02:15 ninjada joined #salt
02:15 netcho joined #salt
02:19 ninjada_ joined #salt
02:34 ninjada joined #salt
02:35 akhter joined #salt
02:38 ninjada joined #salt
02:40 catpigger joined #salt
02:42 sebastian-w joined #salt
02:46 akhter joined #salt
02:48 ilbot3 joined #salt
02:48 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.8.12, 2016.3.4 | Support: https://www.saltstack.com/support/ | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | See also: #salt-devel, #salt-offtopic | Ask with patience as we are volunteers and may not have immediate answers
02:56 ninjada joined #salt
03:03 edrocks joined #salt
03:07 bastiandg joined #salt
03:09 ninjada joined #salt
03:09 jas02 joined #salt
03:20 jimklo_ joined #salt
03:31 systo joined #salt
03:32 orionx joined #salt
03:33 akhter joined #salt
03:39 orionx_ joined #salt
03:47 riftman joined #salt
03:47 sh123124213 joined #salt
04:07 debian112 joined #salt
04:10 jas02 joined #salt
04:11 ninjada joined #salt
04:15 netcho joined #salt
04:41 orionx joined #salt
04:42 informant joined #salt
04:44 ninjada joined #salt
04:47 xenoxaos joined #salt
05:12 jas02 joined #salt
05:26 armguy joined #salt
05:33 Ni3mm4nd joined #salt
05:35 raspado joined #salt
05:35 raspado anyone awake?
05:43 Ni3mm4nd joined #salt
05:45 ninjada joined #salt
05:52 fannet joined #salt
05:54 hemebond Better to just ask your questions in case someone is.
05:55 hemebond Assuming that's why you're asking, of course.
06:05 raspado for git pillar, can I use file_roots to override pillar data on the file system in case we dont want to commit to git to push the pillar?
06:05 hemebond pilllar_roots is for configuring pillar files on the master.
06:07 raspado mmmk thx hemebond
06:09 XenophonF joined #salt
06:13 jas02 joined #salt
06:16 netcho joined #salt
06:31 ninjada joined #salt
06:43 Ni3mm4nd joined #salt
06:44 funabashi joined #salt
06:54 XenophonF joined #salt
06:59 raspado for salt-cloud how can i assign a public and private ip address to a host
06:59 hemebond You can define network interfaces in the configuration.
07:00 hemebond In fact by default you'll get a public IP on EC2.
07:00 raspado openstack :)
07:01 raspado so check this out
07:01 raspado in my cloud.provider file, I define "ssh_interface: private_ips"
07:01 raspado so by default provisioning doesnt add a public ip and not crash provision time
07:01 raspado but on select cloud.profiles, id like to set a public ip
07:02 Ni3mm4nd joined #salt
07:02 hemebond ssh_interface is the IP that bootstrap will use to connect to the VM.
07:02 raspado ooo
07:02 hemebond I can't see much info on openstack
07:02 raspado how about nova?
07:04 raspado is it floating_ip?
07:06 edrocks joined #salt
07:06 hemebond The documentation is light on OpenStack. Maybe have a read of the EC2 Salt Cloud stuff and try out some of those options.,
07:07 raspado kk
07:11 XenophonF joined #salt
07:11 Ni3mm4nd joined #salt
07:14 jas02 joined #salt
07:20 Ni3mm4nd joined #salt
07:30 CeBe joined #salt
07:38 Ni3mm4nd joined #salt
07:47 bocaneri joined #salt
07:52 samodid joined #salt
07:53 fannet joined #salt
07:56 Ni3mm4nd joined #salt
08:04 hemebond Anyone know of a way to deep merge dicts in Jinja without using the grains.filter_by function?
08:08 Trauma joined #salt
08:11 jeddi joined #salt
08:15 jamesog joined #salt
08:15 ivanjaros joined #salt
08:16 phx__ joined #salt
08:17 jas02 joined #salt
08:17 netcho joined #salt
08:18 roock joined #salt
08:21 AndreasLutro joined #salt
08:22 CeBe joined #salt
08:22 n1x0n joined #salt
08:22 egilh joined #salt
08:27 XenophonF joined #salt
08:28 Pulp joined #salt
08:29 iggy modules.defaults.merge ?
08:31 iggy I think we ended up exposing salt.utils.dict via a module
08:31 hemebond Oooh, nice, thanks.
08:38 netcho joined #salt
08:41 hemebond Works like a charm.
09:01 Pulp joined #salt
09:18 raspado hi all
09:18 raspado so git_pillar
09:18 raspado :)
09:19 raspado in my git repo, do I name separate folders into the master branch like qe,stage,prod etc etc
09:19 raspado or is each branch its own separate environment?
09:19 jas02 joined #salt
09:19 raspado in my /srv/salt/pillars folder, I have qe,stage,prod
09:26 hemebond Each branch is an environment with master==base
09:26 hemebond Just like states.
09:28 raspado ah k, so in each of my branches, do I add a folder for each environment or just the contents go directly into the root of each folder?
09:28 netcho joined #salt
09:28 hemebond root
09:28 raspado got it thx hemebond
09:29 hemebond ????
09:29 raspado ah also, is it true that all environments will cache all branches?
09:29 raspado possibly exposing some pws in the cache...
09:30 hemebond What?
09:30 raspado ehhh nm...
09:30 hemebond Each branch in the git repo, is an environment.
09:30 raspado think i need sleep its 1:#0 :)
09:30 raspado 1:30
09:33 DarkKnightCZ joined #salt
09:35 iggy it's much easier to start out without environments and then add them as you learn more about salt
09:35 hemebond ????
09:38 fannet joined #salt
09:43 ninjada joined #salt
10:07 ivanjaros3916 joined #salt
10:08 edrocks joined #salt
10:11 Miouge joined #salt
10:16 ivanjaros joined #salt
10:21 jas02 joined #salt
10:24 samodid joined #salt
10:39 cyborg-one joined #salt
10:40 impi joined #salt
10:51 samodid joined #salt
10:56 alinuxninja joined #salt
10:56 samodid joined #salt
10:57 amontalban joined #salt
11:03 tyler-baker joined #salt
11:04 samodid joined #salt
11:06 XenophonF joined #salt
11:06 haam3r joined #salt
11:06 samodid joined #salt
11:12 DEger joined #salt
11:19 samodid joined #salt
11:19 jas02 joined #salt
11:22 samodid joined #salt
11:24 samodid joined #salt
11:24 hatemachine joined #salt
11:26 samodid joined #salt
11:28 samodid joined #salt
11:30 samodid joined #salt
11:39 fannet joined #salt
11:39 samodid joined #salt
11:43 darioleidi joined #salt
11:47 raspado joined #salt
11:48 XenophonF joined #salt
11:56 amcorreia joined #salt
12:07 XenophonF joined #salt
12:11 Rebus_ joined #salt
12:13 bluenemo joined #salt
12:19 haam3r joined #salt
12:28 impi joined #salt
12:34 fracklen joined #salt
12:44 XenophonF joined #salt
12:45 Xenophon1 joined #salt
13:02 XenophonF joined #salt
13:03 Xenophon1 joined #salt
13:03 jacekplacek joined #salt
13:10 sandro joined #salt
13:18 DarkKnightCZ joined #salt
13:20 haam3r joined #salt
13:24 ninjada joined #salt
13:26 Sarphram joined #salt
13:28 lattenkiste[m] joined #salt
13:36 amontalban joined #salt
13:36 amontalban joined #salt
13:40 fannet joined #salt
13:45 XenophonF joined #salt
13:46 Xenophon1 joined #salt
13:47 ivanjaros joined #salt
14:07 darioleidi joined #salt
14:12 edrocks joined #salt
14:21 fracklen joined #salt
14:27 hoonetorg joined #salt
14:34 Trauma joined #salt
14:39 johnkeates joined #salt
14:45 fannet joined #salt
14:47 fracklen joined #salt
14:50 phx joined #salt
14:50 johnkeates joined #salt
14:51 tmilam joined #salt
14:52 jas02 joined #salt
14:54 fracklen joined #salt
14:54 catpig joined #salt
15:02 tristianc joined #salt
15:05 aarontc joined #salt
15:07 anotherzero joined #salt
15:14 Trauma joined #salt
15:25 nicksloan joined #salt
15:25 swa_work joined #salt
15:27 msn joined #salt
15:31 sandro joined #salt
15:34 swills joined #salt
15:35 raspado joined #salt
15:55 jas02 joined #salt
15:58 andrei__ joined #salt
16:02 raspado for the ext_pillar: where do I define the authentication?
16:02 raspado the example doesnt really make sense in https://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.git_pillar.html#git-pillar-2015-8-0-and-later
16:03 raspado so does the authentication happen at the master branch?
16:04 raspado how do i set the authentication params for all branches
16:06 tristianc joined #salt
16:07 systo joined #salt
16:08 MeltedLux joined #salt
16:08 cyteen_ joined #salt
16:09 fracklen joined #salt
16:13 tmilam_ joined #salt
16:17 amcorreia joined #salt
16:23 swills joined #salt
16:28 raspado do I really need to set up pub/priv key for each env? http://pastebin.com/wny045kY
16:30 raspado oh no
16:30 raspado i guess i can use git_pillar_pubkey
16:35 nidr0x joined #salt
16:38 raspado can ext_pillar and pillar_roots be used together?
16:39 raspado there may be some cases where we want to bypass git_pillar
16:42 impi joined #salt
16:53 scoates joined #salt
16:55 fracklen joined #salt
16:56 jas02 joined #salt
17:04 haam3r joined #salt
17:14 edrocks joined #salt
17:15 Ni3mm4nd joined #salt
17:34 Trauma_ joined #salt
17:38 iggy yes
17:39 DarkKnightCZ joined #salt
17:39 iggy and there's a setting to define which is used first (so you probably want file pillars last so they override git pillar)
17:41 fracklen joined #salt
17:46 jas02 joined #salt
17:48 raspado hi iggy
17:48 raspado im still at it :)
17:53 raspado iggy: happen to know what setting that is? I dont see a fileserver_backend similar to gitfs
17:53 darioleidi joined #salt
17:58 DEger joined #salt
17:58 justanotheruser joined #salt
18:00 raspado heres my filesystem.conf,  http://pastebin.com/4h8Ha91b
18:00 ivanjaros joined #salt
18:01 raspado i've got ext_pillar and pillar_roots, the directories in pillar roots would normally be empty, only used to override gitpillar for rare scenarios
18:02 ivanjaros3916 joined #salt
18:29 raspado in my pillar, im getting "argument of type 'StrictUndefined' is not iterable" argument of type 'StrictUndefined' example output: http://pastebin.com/d5Ccge9U any ideas?
18:30 impi joined #salt
18:44 fracklen joined #salt
18:49 Renich joined #salt
18:59 xet7 joined #salt
19:11 iggy https://docs.saltstack.com/en/latest/ref/configuration/master.html#ext-pillar-first
19:16 edrocks joined #salt
19:18 swa_work joined #salt
19:18 raspado dope thx iggy
19:22 Rebus joined #salt
19:25 netcho joined #salt
19:25 netcho joined #salt
19:29 raspado does the sm only pull gitpillar when a minion requests pillar data?
19:29 raspado i see that gitfs pulls git every 60s
19:32 swa_work joined #salt
19:44 swills joined #salt
19:45 raspado iggy: unlikes gitfs, pillar data in pillar_roots would need to have the top.sls file and folder structure im guessing? or does it search for only the file differences
19:45 mavhq joined #salt
19:46 fracklen joined #salt
19:50 jas02 joined #salt
20:09 iggy yes, you'd need a top.sls in pillar_roots
20:15 xet7 joined #salt
20:19 fracklen joined #salt
20:21 jas02 joined #salt
20:24 johnkeates joined #salt
20:28 viq How do I run syrvey runner using pepper?
20:34 darioleidi joined #salt
20:47 DEger joined #salt
20:55 swills joined #salt
20:55 fas3r joined #salt
20:57 fas3r when setting a variable in a sls file ( {% set ... %} is it possible to do a regex to replace caracter ?
21:03 onlyanegg joined #salt
21:29 sandro joined #salt
21:46 akhter joined #salt
21:50 keltim joined #salt
21:51 keltim_ joined #salt
22:12 jeddi joined #salt
22:18 edrocks joined #salt
22:19 onlyanegg joined #salt
22:24 jas02 joined #salt
22:30 raspado fas3r: http://docs.ansible.com/ansible/playbooks_filters.html
22:30 raspado theres a regex_replace
22:31 fas3r raspado: yes found it.  thanks anyway
22:31 raspado np
22:38 Miouge joined #salt
22:43 raspado does git_pillar pull the git repo on minion request or does it do what gitfs does, every 60s the master refreshes?
22:45 cyteen joined #salt
22:52 hemebond I would assume periodically.
22:52 hemebond It is just gitfs
22:53 scoates joined #salt
22:59 swills joined #salt
23:01 raspado kk
23:04 Trauma joined #salt
23:07 raspado is there a way i can force git_pillar to look at the local pillar_roots first
23:08 raspado by default, its picking up git
23:19 ws2k3 joined #salt
23:26 scoates joined #salt
23:28 jas02 joined #salt
23:45 fas3r when executing a states targeting the master , is it possible to get access to the grains data of a minion ?
23:46 systo joined #salt
23:53 prg3 joined #salt

| Channels | #salt index | Today | | Search | Google Search | Plain-Text | summary