Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-11-05

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

All times shown according to UTC.

Time Nick Message
00:02 vegasq joined #salt
00:03 edrocks joined #salt
00:05 Edgan whytewolf: how would I watch --async?
00:05 Edgan lordcirth: a way to see them in real time would be awesome
00:06 LordOfLA joined #salt
00:08 whytewolf well since it gives you a jid you just salt-run jobs.lookup_jid <jib --async gives you>
00:08 lordcirth whytewolf, and that will either be there, or not, never partial?
00:08 lordcirth for a single minion, anyway?
00:09 whytewolf jid is per job
00:09 Edgan whytewolf: That just returns instantly
00:09 Edgan whytewolf: looks like it wouldn't output anything till the job was done
00:09 lordcirth whytewolf, so if you run on one minion?
00:09 whytewolf it returns everything the job has recieved
00:09 whytewolf you run it on the master
00:09 nicksloa_ joined #salt
00:09 Edgan whytewolf: I did
00:09 whytewolf it is a runner
00:10 lordcirth whytewolf, so if you 'watch salt-run' it will fill in bit by bit?
00:10 Edgan salt `hostname -f` state.highstate --async ; salt-run jobs.lookup_jid 20161104170847444688
00:10 Edgan whytewolf: It is still not one by one, might as well have &ed it
00:10 whytewolf there will never be a one by one
00:11 lordcirth that's unfortunate
00:11 Edgan lordcirth: Well never is a strong word, this is open source, we could pull request a patch to add it. :)
00:11 pipps joined #salt
00:11 whytewolf that would be one hell of a patch
00:11 lordcirth Also, sometimes I've run a state.apply on a single minion, the command blocks for minutes, then I ^C and immediately run the salt-run command it gives me, and it's all there.
00:12 lordcirth Or at least it looks like it's all there, the format is hard to read.  So why doesn't it print?
00:13 whytewolf if you are running a state.apply on a single minion log into that minion and run salt-call -l debug state.apply
00:13 lordcirth whytewolf, while the first one is hung?
00:13 pipps joined #salt
00:13 whytewolf lordcirth: no. instead of the first one
00:14 lordcirth ah.  Well the problem is, it only happens like 1/100 times, so I don't do that...
00:14 lordcirth it doesn't annoy me quite enough to do all state runs that way in the hope of catching the bug
00:14 whytewolf then put both the master and the minions in debug mode permently till it happens again
00:14 lordcirth Maybe.
00:15 gableroux joined #salt
00:16 whytewolf also check https://docs.saltstack.com/en/latest/topics/troubleshooting/
00:20 abednarik joined #salt
00:21 whytewolf alright. I"m off for the night.
00:21 whytewolf have a good one
00:21 swa_work joined #salt
00:38 abednarik joined #salt
00:38 Klas joined #salt
00:39 pipps joined #salt
00:40 pipps99 joined #salt
00:46 subsignal joined #salt
00:54 fracklen joined #salt
00:54 sh123124213 joined #salt
01:01 fas3r Hello
01:05 ziggit joined #salt
01:10 schemanic joined #salt
01:15 abednarik joined #salt
01:16 pipps joined #salt
01:19 rem5 joined #salt
01:26 jas02_ joined #salt
01:27 hemebond hello
01:32 amontalban joined #salt
01:32 amontalban joined #salt
01:35 felskrone joined #salt
01:38 swa_work joined #salt
01:39 netcho joined #salt
01:53 CampusD joined #salt
01:55 akhter joined #salt
01:58 akhter_1 joined #salt
02:03 akhter joined #salt
02:03 nicksloa_ joined #salt
02:06 edrocks joined #salt
02:10 akhter joined #salt
02:16 subsignal joined #salt
02:20 subsignal joined #salt
02:25 netcho joined #salt
02:27 jas02_ joined #salt
02:41 sebastian-w joined #salt
02:44 schemanic joined #salt
03:03 justanotheruser joined #salt
03:15 bastiandg joined #salt
03:28 PerilousApricot joined #salt
03:42 blu__ joined #salt
03:47 hoonetorg joined #salt
03:51 aw110f joined #salt
03:53 systo joined #salt
03:55 jeddi joined #salt
04:10 aw110f_ joined #salt
04:26 netcho joined #salt
04:30 jas02_ joined #salt
04:30 zulutango joined #salt
04:37 wangofett joined #salt
04:39 akhter joined #salt
04:44 Qingyun039 joined #salt
04:51 informant1 joined #salt
04:53 nawwmz i need a variable to have an @ symbol
04:54 nawwmz is this possible to have a var like hi@email.com : c00lpass ?
05:07 edrocks joined #salt
05:11 Ni3mm4nd joined #salt
05:21 Ni3mm4nd joined #salt
05:29 DEger joined #salt
05:33 ivanjaros joined #salt
05:38 Ni3mm4nd joined #salt
05:48 Ni3mm4nd joined #salt
05:49 DEger joined #salt
05:52 schemanic joined #salt
05:54 fracklen joined #salt
05:59 hemebond Tried putting quotes around it?
06:04 wolfpackmars2 joined #salt
06:06 Ni3mm4nd joined #salt
06:06 DEger joined #salt
06:13 DEger joined #salt
06:18 subsignal joined #salt
06:24 Ni3mm4nd joined #salt
06:25 jeddi joined #salt
06:27 netcho joined #salt
06:29 sh123124213 joined #salt
06:31 jas02_ joined #salt
06:42 Ni3mm4nd joined #salt
06:42 pipps joined #salt
06:48 DEger_ joined #salt
06:50 fracklen joined #salt
06:54 PerilousApricot joined #salt
06:58 subsignal joined #salt
07:01 nawwmz joined #salt
07:05 jas02_ joined #salt
07:09 felskrone joined #salt
07:09 edrocks joined #salt
07:25 samodid joined #salt
07:32 bocaneri joined #salt
07:35 mavhq joined #salt
07:45 subsignal joined #salt
07:53 felskrone joined #salt
08:00 fannet joined #salt
08:19 samodid joined #salt
08:23 jas02_ joined #salt
08:25 samodid joined #salt
08:28 netcho joined #salt
08:31 catpig joined #salt
08:35 Trauma joined #salt
08:37 subsignal joined #salt
08:40 netcho joined #salt
08:45 jeddi joined #salt
09:05 pcdummy joined #salt
09:05 pcdummy joined #salt
09:05 pcdummy joined #salt
09:29 subsignal joined #salt
09:46 sh123124213 joined #salt
09:55 f4 joined #salt
09:57 fracklen joined #salt
10:01 f4 joined #salt
10:13 fannet joined #salt
10:20 lompik joined #salt
10:24 amcorreia joined #salt
10:25 subsignal joined #salt
10:29 keimlink joined #salt
10:34 jas02_ joined #salt
10:40 HoloIRCUser8 joined #salt
10:58 mikecmpbll joined #salt
11:02 SaltyVagrant_ joined #salt
11:11 rburkholder joined #salt
11:17 theblazehen joined #salt
11:20 subsignal joined #salt
11:33 theblazehen_ joined #salt
11:41 keimlink joined #salt
11:50 sebastian-w joined #salt
11:56 AnotherBadIdea joined #salt
11:57 AnotherBadIdea Hi Guys, Is it a bad idea to run a salt-minion in a container to enable salt-call
11:58 AnotherBadIdea or just keep salt managing the actual containers and do the deployments and configuration in dockerfiles
11:59 AnotherBadIdea ls
12:00 honestly well the idea about containers is that if you want to change something you deploy a new container and destroy the old one
12:14 edrocks joined #salt
12:18 mavhq joined #salt
12:36 jas02_ joined #salt
12:38 mavhq joined #salt
12:45 ivanjaros3916 joined #salt
12:53 Trauma joined #salt
12:57 Rumbles joined #salt
13:00 Rumbles if I wanted to add a symlink to every users home directory, the users are configured in my users/username.sls files currently. Is there any way I can check what users should be installed on my server and create a symlink for each on in a for loop?
13:00 Rumbles or is there a better way to do what I'm trying to do perhaps?
13:01 honestly your users should be configured in pillar
13:02 jeddi joined #salt
13:02 Rumbles I though about that, it seemed a lot of work just to get this little thing working :
13:03 Rumbles :/
13:03 HoloIRCUser3 joined #salt
13:06 vegasq joined #salt
13:39 Rumbles joined #salt
13:43 sgo_ joined #salt
13:50 netcho joined #salt
13:55 justanotheruser joined #salt
14:00 PerilousApricot joined #salt
14:03 Nightcinder joined #salt
14:16 edrocks joined #salt
14:28 sgo_ joined #salt
14:32 lordcirth honestly, docker containers are based around the 'destroy and rebuild' model.  LXC containers don't need to be.
14:36 cyborg-one joined #salt
14:37 jas02_ joined #salt
14:40 subsignal joined #salt
14:45 HoloIRCUser1 joined #salt
14:51 sh123124213 joined #salt
14:54 HoloIRCUser3 joined #salt
14:56 HoloIRCUser5 joined #salt
15:04 mavhq joined #salt
15:09 subsignal joined #salt
15:11 mikecmpb_ joined #salt
15:12 sgo_ joined #salt
15:15 PerilousApricot joined #salt
15:17 mikecmpbll joined #salt
15:29 mavhq joined #salt
15:29 xet7 joined #salt
15:39 jas02_ joined #salt
15:40 mavhq joined #salt
15:53 PerilousApricot joined #salt
15:53 ProT-0-TypE joined #salt
15:55 PerilousApricot joined #salt
16:03 patrek joined #salt
16:03 fracklen joined #salt
16:17 fas3r joined #salt
16:17 fas3r hello
16:18 HoloIRCUser4 joined #salt
16:24 zer0def joined #salt
16:25 pmcg joined #salt
16:38 sh123124213 joined #salt
16:39 DEger joined #salt
16:43 onlyanegg joined #salt
17:08 systo joined #salt
17:13 subsignal joined #salt
17:18 edrocks joined #salt
17:38 DEger_ joined #salt
17:40 stooj joined #salt
17:40 jas02_ joined #salt
17:52 fracklen joined #salt
17:53 fracklen joined #salt
18:03 stooj joined #salt
18:09 Jay-Red joined #salt
18:11 Jay-Red left #salt
18:17 cyborg-one joined #salt
18:35 mavhq joined #salt
18:38 ivanjaros joined #salt
18:44 vegasq joined #salt
19:00 mavhq joined #salt
19:03 fracklen joined #salt
19:11 DEger joined #salt
19:13 systo joined #salt
19:15 ziggit joined #salt
19:20 edrocks joined #salt
19:26 jas02_ joined #salt
19:39 nidr0x joined #salt
19:50 akhter joined #salt
19:51 cdubmkvi joined #salt
19:53 schemanic- joined #salt
19:57 mavhq joined #salt
20:06 fas3r can I use "    grains['xxxxx']    "  inside a top.sls file ?
20:22 sgo_ joined #salt
20:27 McNinja joined #salt
20:30 akhter joined #salt
20:36 abonilla joined #salt
20:36 akhter joined #salt
20:37 felskrone joined #salt
20:38 jas02 joined #salt
20:40 jas02_ joined #salt
20:43 justan0theruser joined #salt
20:57 akhter joined #salt
20:59 iggy fas3r: not exactly... you can match based on grains and you can use standard jinja, but nothing like what you have there
20:59 iggy (might help if you give more of an example)
21:01 Mate i get the correct value with salt-call grains.get fqdn, or salt x grains.get fqdn, even if it's substituted with jinja in a template (both {{grains.fqdn}} and salt["grains.get"]("fqdn")) -- cp.get_template is ok, but in the highstate it falls back to the minion id
21:01 Mate and can't see the difference
21:02 akhter joined #salt
21:03 mpanetta joined #salt
21:04 abednarik joined #salt
21:05 akhter joined #salt
21:08 honestly Mate: https://docs.saltstack.com/en/latest/topics/targeting/compound.html
21:08 honestly the top.sls file isn't evaluated on the minion, is it
21:10 Mate oh, the problem is in a state file
21:10 honestly huh?
21:12 Mate i try to substitute {{grains.fqdn}} in a state file
21:13 Mate but it's somehow different than any other way i know to retrieve its value
21:13 honestly whoops, sorry
21:13 honestly I thought fas3r's problem was the same as yours
21:14 Mate state.show_sls is wrong too
21:14 Mate while cp.get_template shows the good value
21:14 honestly so basically, if you run a state using state.sls you get a different result for grains['fqdn'] than if you run the same state via highstate?
21:15 Mate no, all state.* calls i tried use the wrong value
21:18 honestly I'm confused now
21:18 honestly can you put the state file into a gist?
21:22 edrocks joined #salt
21:22 akhter joined #salt
21:23 Mate i'll try to simplify it
21:24 Mate even stranger, it's good with state.sls test=True, but not with highstate
21:25 honestly that's not strange, test=True generally means a completely different codepath is executed...
21:27 honestly of course if there's a different result in state.sls whether you test=True or not, that'd be a very easy repro
21:31 Mate ok, i made a simple state file that can be run independently from others (a file.managed)
21:31 Mate it's showing the right value if state.sls fqdn is called
21:31 Mate and the wrong, if it's added to top.sls and highstate is called
21:32 honestly sounds like you should make a bug report
21:32 Mate getting closer
21:33 Mate it was me from more than a year ago
21:33 honestly ?
21:33 Mate __grains__["fqdn"] = name.fqdn  # update the grains now
21:33 ikus060 joined #salt
21:33 Mate found this in a common state file :)
21:33 honestly hmmm
21:33 Mate which sets up the hostname based on a pillar
21:33 justanotheruser joined #salt
21:33 ikus060 Hello, I'm in process to evaluate different provisioning system including Salt. Does it provide a GUI out of the box ?
21:34 Mate but it uses the wrong name in this case
21:35 Mate aaand the pillar provided a bad value
21:36 honestly ikus060 I think the enterprise version does
21:36 Mate honestly: thanks for the help
21:36 honestly no problem
21:39 jas02 joined #salt
21:40 fas3r :x
21:42 jas02_ joined #salt
21:42 mavhq joined #salt
21:51 bigjazzsound joined #salt
22:00 myraft joined #salt
22:18 Perilous_ joined #salt
22:20 akhter joined #salt
22:23 ntropy joined #salt
22:30 akhter joined #salt
22:34 fas3r joined #salt
22:34 iggy pcdummy: in the lxd formula, is there a reason you have the require's in the pillar data instead of just inferring them from the other options?
22:34 fas3r is it possible to call "    salt '*' saltutil.refresh_pillar " from a state ?
22:34 iggy fas3r: yes, but you really shouldn't need to (highstate does a pillar sync up front)
22:34 akhter joined #salt
22:35 iggy oh, wait, not a `salt '*' saltutil.refresh_pillar` but `salt-call saltutil.refresh_pillar`
22:35 fas3r iggy: sorry not '*'
22:36 fas3r I would like to update the pillar of a instance after it creation.
22:37 iggy as I said, a highstate should do that automatically
22:37 fas3r maybe I should just call : saltutil.refresh_pillar with module.run
22:37 iggy are you trying to do something else where that isn't good enough?
22:37 fas3r well I have : sync_after_install: all in my cloud.profiles.d file, but it does not sync the pillar.
22:38 iggy I mean, that would be the way to do it, but it's not going to cause templates or anything to re-render... so it's kind of pointless
22:38 iggy (except for certain cases, i.e. file.managed contents_pillar, etc)
22:39 fas3r I generate pillars on my salt master after a VM is created.
22:39 fas3r for example the location of the server in the AD.
22:39 fas3r CN=...,DC=...
22:40 fas3r so before calling some states, I need to have access to those pillars.
22:40 iggy okay, but if you are trying to update pillars in a state run, the state isn't going to see those changes
22:41 iggy how are you generating the pillars?
22:41 fas3r with a state :)
22:42 iggy okay, so you could fire an event at the end of that state that signaled the master to tell the minion to refresh_pillar and then run whatever states you have
22:43 iggy but you have to do it as separate steps because if you update pillars in the states you are running, they won't see the new pillar data
22:45 zulutango joined #salt
22:48 jeddi joined #salt
22:48 akhter joined #salt
22:52 vegasq joined #salt
23:00 jeddi joined #salt
23:01 oida joined #salt
23:04 mavhq joined #salt
23:19 Celmor joined #salt
23:20 Celmor left #salt
23:25 DEger joined #salt
23:27 stooj joined #salt
23:31 systo joined #salt
23:39 preludedrew joined #salt
23:43 jas02 joined #salt

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