Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-09-17

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

All times shown according to UTC.

Time Nick Message
00:01 jas02 joined #salt
00:09 yujunz joined #salt
00:14 johnj_ joined #salt
00:44 GMAzrael joined #salt
00:48 shoemonkey joined #salt
00:50 ritz joined #salt
01:01 ritz_ joined #salt
01:02 jas02 joined #salt
01:05 ritz joined #salt
01:06 ritz__ joined #salt
01:13 ritz joined #salt
01:15 johnj_ joined #salt
01:17 shoemonkey joined #salt
01:28 ritz_ joined #salt
01:39 ritz joined #salt
01:54 ilbot3 joined #salt
01:54 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.7, 2017.7.1 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic <+> We are volunteers and may not have immediate answers
02:17 johnj_ joined #salt
02:35 blu__ joined #salt
02:39 choke joined #salt
02:42 Guest73 joined #salt
02:53 GMAzrael joined #salt
03:01 armyriad joined #salt
03:15 onlyanegg joined #salt
03:18 johnj_ joined #salt
03:19 jas02 joined #salt
03:38 Guest73 joined #salt
03:40 yujunz joined #salt
03:44 Edgan joined #salt
03:59 zerocoolback joined #salt
04:06 hasues joined #salt
04:06 Xenophon1 joined #salt
04:09 hasues left #salt
04:09 zerocoolback joined #salt
04:10 zerocoolback joined #salt
04:11 zerocoolback joined #salt
04:12 zerocoolback joined #salt
04:12 zerocoolback joined #salt
04:18 johnj_ joined #salt
04:24 justan0theruser joined #salt
04:47 GMAzrael joined #salt
04:56 Guest73 joined #salt
05:17 shoemonkey joined #salt
05:19 johnj_ joined #salt
05:21 fritz09 joined #salt
05:46 jas02 joined #salt
05:47 GMAzrael joined #salt
06:00 DanyC joined #salt
06:05 Guest73 joined #salt
06:12 yujunz joined #salt
06:20 johnj joined #salt
06:48 GMAzrael joined #salt
07:01 jas02 joined #salt
07:18 shoemonkey joined #salt
07:21 johnj joined #salt
07:25 LostSoul joined #salt
07:33 Guest73 joined #salt
07:49 GMAzrael joined #salt
07:58 Garo_ joined #salt
08:00 Garo_ joined #salt
08:02 JawnAuz joined #salt
08:13 zerocoolback joined #salt
08:23 johnj joined #salt
08:32 DanyC joined #salt
08:47 zerocoolback joined #salt
08:51 GMAzrael joined #salt
08:55 evle1 joined #salt
09:08 latouche joined #salt
09:09 ahrs joined #salt
09:18 shoemonkey joined #salt
09:21 Guest95 joined #salt
09:24 johnj joined #salt
09:27 onlyanegg joined #salt
09:52 GMAzrael joined #salt
09:53 dimeshake joined #salt
09:59 jas02 joined #salt
10:00 jas02 joined #salt
10:06 mk-fg joined #salt
10:06 mk-fg joined #salt
10:11 yujunz joined #salt
10:25 johnj joined #salt
10:54 GMAzrael joined #salt
11:19 shoemonkey joined #salt
11:26 johnj joined #salt
11:26 Guest95 joined #salt
11:30 mike25de joined #salt
11:33 mike25de_ joined #salt
11:39 Muir joined #salt
11:40 mike25de joined #salt
11:44 mike25de joined #salt
12:06 DanyC joined #salt
12:09 ONDIE joined #salt
12:10 ONDIE left #salt
12:24 jas02 joined #salt
12:27 johnj joined #salt
12:39 zerocoolback joined #salt
12:44 alex-zel joined #salt
12:45 alex-zel joined #salt
12:45 alex-zel hello
12:45 alex-zel how can i install salt-minion with python3 instead of 2?
12:45 Muir joined #salt
12:46 GMAzrael joined #salt
12:50 XenophonF joined #salt
12:53 shoemonkey joined #salt
13:01 zerocoolback joined #salt
13:09 DanyC joined #salt
13:26 Sammichmaker joined #salt
13:28 johnj joined #salt
13:29 cyteen joined #salt
13:47 GMAzrael joined #salt
14:08 zerocoolback joined #salt
14:10 DanyC joined #salt
14:13 evle joined #salt
14:22 zerocoolback joined #salt
14:28 jas02 joined #salt
14:29 johnj joined #salt
14:29 aldevar joined #salt
14:29 aldevar left #salt
14:30 ssplatt joined #salt
14:32 shoemonkey joined #salt
14:33 tiwula joined #salt
14:33 zerocoolback joined #salt
14:40 GMAzrael joined #salt
14:44 Hybrid joined #salt
14:45 omie888777 joined #salt
14:52 GMAzrael joined #salt
14:52 jas02 joined #salt
14:58 yujunz joined #salt
15:05 saltnoob joined #salt
15:05 saltnoob Hi all
15:10 DanyC joined #salt
15:11 saltnoob I have a noob question how can I use bash to run an ls -la  on a directory and then take that output and turn it into a dictionary
15:11 saltnoob https://gist.github.com/anonymous/1338988ccabef0f97ef08b5664cc2d73
15:11 saltnoob somthing like that
15:16 saltnoob ideally Id like it to view everything seperated by whitespace as a new item then I can do some jinja to grab the bits I need out of the output without getting messy with cmd.shell everywhere
15:30 johnj joined #salt
15:53 jas02 joined #salt
15:53 GMAzrael joined #salt
16:09 jas02 joined #salt
16:11 DanyC joined #salt
16:28 sjorge joined #salt
16:31 johnj joined #salt
16:31 DanyC joined #salt
16:39 johnj joined #salt
17:02 DanyC joined #salt
17:08 ProT-0-TypE joined #salt
17:18 GMAzrael joined #salt
17:18 fxhp joined #salt
17:25 cyborg-one joined #salt
17:26 Garo_ left #salt
17:28 Muir joined #salt
17:31 Guest73 joined #salt
17:35 zerocoolback joined #salt
17:44 Guest73 joined #salt
17:53 mike25de saltnoob: maybe you can do some sed after the ls?
17:55 GMAzrael joined #salt
18:00 Lionel_Debroux joined #salt
18:08 GMAzrael joined #salt
18:13 saltnoob hey mike yea I can get by with sed and grep but wanted to make it a proper dict
18:19 johnj joined #salt
18:21 ProT-0-TypE joined #salt
18:23 lkolstad joined #salt
18:39 GMAzrael joined #salt
18:50 johnj joined #salt
18:53 omie888777 joined #salt
18:57 rgrundstrom joined #salt
18:57 rgrundstrom Good evening everyone
19:15 jas02 joined #salt
19:19 DanyC joined #salt
19:39 GMAzrael joined #salt
19:40 mike25de rgrundstrom: hi
19:41 mike25de saltnoob: i am not sure... that can be done easily ...
19:41 mike25de maybe you have to create a py script... to read the contents of the folder... parse it and create a yaml ouput for you
19:54 felskrone joined #salt
20:15 GMAzrael joined #salt
20:30 tiwula joined #salt
20:32 tiwula joined #salt
20:33 tiwula joined #salt
20:34 cyborg-one joined #salt
20:35 tiwula joined #salt
20:37 NightMonkey joined #salt
20:37 tiwula joined #salt
20:39 tiwula joined #salt
20:49 el_bunda joined #salt
20:54 armyriad joined #salt
20:56 whytewolf saltnoob: idealy you would use a combination of file.find, file.stats, and file.lstat
20:56 whytewolf you actually can get a lot more info about a file then just a simple la with those
20:57 whytewolf you might just want to look through all the file.* functions some are about getting data on files https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.file.html
21:11 hoonetorg joined #salt
21:18 ProT-0-TypE joined #salt
21:53 jalaziz joined #salt
22:06 shoemonkey joined #salt
22:14 OliverUK joined #salt
22:16 OliverUK joined #salt
22:17 OliverUK joined #salt
22:18 XenophonF joined #salt
22:19 OliverUK joined #salt
22:20 OliverUK joined #salt
22:21 OliverUK joined #salt
22:21 GMAzrael joined #salt
22:22 OliverUK joined #salt
22:25 Whissi joined #salt
22:26 JawnAuz I currently have a cmd.run in one of my states targeting Windows minions that sets service dependency. Is there a way to do this in a more stateful way, so it can only run if the dependency isn't already set? cmd.mod_run_check might work but no documentation, just a mention? Unsure of usage.
22:37 whytewolf mod functions typically are not edited. they change the behavour of other options. in this case onlyif and unless.
22:37 whytewolf which is what you really should be looking at for making a cmd.run stateful
22:38 whytewolf https://docs.saltstack.com/en/latest/ref/states/requisites.html#unless
22:38 whytewolf https://docs.saltstack.com/en/latest/ref/states/requisites.html#onlyif
22:41 JawnAuz Ah, thank you!
22:45 rgrundstrom whytewolf: You still around?
22:46 whytewolf now and again.
22:46 rgrundstrom whytewolf: What is wrong with this? onlyif: {{salt['grains.get']('osfinger') == "Ubuntu-17.04"}}
22:46 rgrundstrom Its not working
22:46 whytewolf it isn't a shell comman
22:47 whytewolf d
22:47 rgrundstrom whytewolf: So I have to use a if state instead then?
22:48 whytewolf or turn the output into a shell command that returns correctly
22:48 whytewolf one or the other
22:48 rgrundstrom whytewolf: ok, thanks.
22:51 * whytewolf is both looking forward and dreading this coming week
22:57 xet7 joined #salt
23:08 justan0theruser joined #salt
23:09 XenophonF what's going on, whytewolf?
23:09 whytewolf last week of working at the bank
23:13 zerocoolback joined #salt
23:15 XenophonF congratulations!
23:15 XenophonF or condolences, as appropriate.
23:16 XenophonF hopefully you are heading to greener pa$ture$
23:22 GMAzrael joined #salt
23:24 whytewolf Well slightly less money. But better piece of mind.
23:32 Guest73 joined #salt
23:38 Guest73 joined #salt
23:55 XenophonF congratulations are definitely in order, then

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