Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2018-01-02

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

All times shown according to UTC.

Time Nick Message
00:00 saltslackbridge joined #salt
00:07 rem5_ joined #salt
00:11 cyteen joined #salt
00:18 rem5_ joined #salt
00:20 mritchie joined #salt
00:34 rem5_ joined #salt
00:45 tiwula joined #salt
00:59 mritchie joined #salt
01:02 gnomethrower joined #salt
01:23 tiwula joined #salt
01:23 dhwt joined #salt
01:37 stotch_ joined #salt
01:49 djinni` joined #salt
02:11 tiwula joined #salt
02:14 Larri joined #salt
02:16 Larri joined #salt
02:34 nomeed joined #salt
03:02 ilbot3 joined #salt
03:02 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.8, 2017.7.2 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic, and https://saltstackcommunity.herokuapp.com (for slack) <+> We are volunteers and may not have immediate answers
03:21 tiwula joined #salt
04:09 shiranaihito joined #salt
05:23 rem5_ joined #salt
05:24 rem5_ joined #salt
05:24 rem5_ joined #salt
05:25 rem5_ joined #salt
05:26 rem5_ joined #salt
05:28 rem5_ joined #salt
05:55 Eugene joined #salt
06:03 Bryson joined #salt
06:28 evle joined #salt
06:46 upb_ joined #salt
06:58 colttt joined #salt
07:15 Ricardo1000 joined #salt
07:24 girishb joined #salt
07:26 mrueg joined #salt
07:33 mrueg joined #salt
07:37 xet7 joined #salt
07:57 Hybrid joined #salt
08:17 xet7 joined #salt
08:24 LocaMocha joined #salt
08:25 mbologna joined #salt
08:25 jrenner joined #salt
08:35 xet7 joined #salt
08:57 Gabemo joined #salt
09:04 gmoro joined #salt
09:05 mikecmpbll joined #salt
09:16 gmoro joined #salt
09:22 aldevar joined #salt
09:59 ymasson joined #salt
10:02 rofl____ joined #salt
10:09 indistylo joined #salt
10:23 alexlist joined #salt
10:26 alexlist joined #salt
11:12 ThomasJ|d joined #salt
11:34 okaiser joined #salt
12:11 aldevar joined #salt
12:18 nickadam joined #salt
12:20 coredumb joined #salt
12:27 pualj joined #salt
12:38 willprice joined #salt
12:47 pualj joined #salt
12:55 pualj_ joined #salt
12:57 rem5_ joined #salt
13:08 skeezix-hf joined #salt
13:12 pualj joined #salt
13:13 Nahual joined #salt
13:16 rem5_ joined #salt
13:32 pualj_ joined #salt
13:39 edrocks joined #salt
13:53 edrocks joined #salt
13:57 willprice joined #salt
13:57 willprice94 joined #salt
13:58 KingJ joined #salt
14:03 mchlumsky joined #salt
14:04 EvaSDK joined #salt
14:16 mchlumsky joined #salt
14:16 gh34 joined #salt
14:27 girishb joined #salt
14:27 nopenope joined #salt
14:28 girishb is there a way where I can get last Job ID status on minion through python API ?
14:28 girishb I known I can get it on salt master , but need to get status on Minion. plz help
14:28 mchlumsky joined #salt
14:30 edrocks joined #salt
14:37 cgiroua joined #salt
14:40 nethershaw joined #salt
15:08 XenophonF the saltutil exec module has functions that work with jobs on the minion
15:09 XenophonF maybe there's something there that would work for you?
15:19 racooper joined #salt
15:31 mikecmpbll joined #salt
15:38 riftman joined #salt
15:47 pualj_ joined #salt
15:49 mchlumsky joined #salt
15:57 mikecmpb_ joined #salt
16:04 indistylo joined #salt
16:05 megamaced joined #salt
16:07 fxhp joined #salt
16:17 heaje joined #salt
16:18 lordcirth_work joined #salt
16:25 wryfi joined #salt
16:27 englishm_work joined #salt
16:28 major joined #salt
16:55 KennethWilke joined #salt
17:00 Bryson joined #salt
17:01 Shirkdog joined #salt
17:03 girishb joined #salt
17:07 tiwula joined #salt
17:28 jbulger joined #salt
17:31 bbbryson joined #salt
17:41 pipps joined #salt
17:42 bindhya joined #salt
17:43 pualj_ joined #salt
17:48 edrocks joined #salt
17:51 mpanetta joined #salt
17:53 pipps joined #salt
18:22 pipps99 joined #salt
18:22 onlyanegg joined #salt
18:34 _bw joined #salt
19:01 pualj_ joined #salt
19:02 cyteen joined #salt
19:11 wwalker joined #salt
19:13 mTeK joined #salt
19:14 mikecmpbll joined #salt
19:23 socket- joined #salt
19:27 mikecmpb_ joined #salt
19:31 major joined #salt
19:33 mikecmpbll joined #salt
19:45 hemebond joined #salt
20:05 Hybrid joined #salt
20:05 kettlewell joined #salt
20:06 nethershaw joined #salt
20:16 kettlewell joined #salt
20:22 Hybrid joined #salt
20:25 kettlewell joined #salt
20:41 pipps joined #salt
20:47 kettlewe_ joined #salt
20:50 pipps joined #salt
20:51 Bryson joined #salt
20:54 kettlewell joined #salt
20:58 justanotheruser joined #salt
20:59 jeffspeff joined #salt
20:59 edrocks joined #salt
21:00 nixjdm joined #salt
21:00 evle joined #salt
21:00 jeffspeff is this the correct way to check if a directory exists? {% if salt['file.directory_exists']('C:\ProgramData') %}
21:07 mikecmpb_ joined #salt
21:12 aldevar joined #salt
21:19 kettlewell joined #salt
21:20 major joined #salt
21:27 Edgan jeffspeff: Why would you not just add the directory to your state to be sure it exists with the right owner, group, permission, etc?
21:27 Edgan jeffspeff: Even if something creates it, you can ensure it exists.
21:28 jeffspeff I don't want to create it.
21:28 jeffspeff I want to run a command if it exists and do nothing if it does not exist
21:29 saltslackbridge <gtmanfred> if it was linux, i would use unless or onlyif and `test -d /etc/whatever`
21:29 saltslackbridge <gtmanfred> no idea how to do that in powershell
21:29 Edgan jeffspeff: cmd.run:
21:29 Edgan - unless
21:29 saltslackbridge <gtmanfred> Test-Path
21:30 pualj joined #salt
21:30 saltslackbridge <gtmanfred> https://docs.saltstack.com/en/latest/ref/states/requisites.html#unless
21:30 jeffspeff let me rephrase. i want to run a module if the directory exists and do nothing if it doesn't
21:31 saltslackbridge <gtmanfred> sure
21:31 saltslackbridge <gtmanfred> just add an unless or onlyif to the state, and use powershell’s `Test-Path` to check if it exists or not
21:32 saltslackbridge <gtmanfred> it has basically the same result of wrapping the state with jinja that checks file.directory_exists
21:32 saltslackbridge <gtmanfred> but doesn’t use jinja, and checks at runtime, instead of before any states are run
21:32 evle joined #salt
21:35 jeffspeff this is what i have https://gist.github.com/jeffclay/d934f4b2879e69c75e7a7da5c45075cb for some reason, those if's aren't returning true when I run them in a state (i gather this by the contained module not running). but if i execute 'salt MINION file.directory_exists 'C:\ProgramData\chocolatey\lib\flashplayeractivex'' it returns true
21:35 sjorge joined #salt
21:37 saltslackbridge <gtmanfred> onlyif example added in the comments
21:37 wedgie hello, when doing a cmd.run from the cli, is there a simple way to limit output to only the nodes on which the command exited non-zero?
21:38 evle3 joined #salt
21:40 saltslackbridge <gtmanfred> no
21:40 saltslackbridge <gtmanfred> well
21:40 saltslackbridge <gtmanfred> notafiak
21:41 saltslackbridge <gtmanfred> you would probably need to set the outputter to yaml or something instead of highstate, and then parse the data yourself
21:45 izibi joined #salt
21:47 evle1 joined #salt
21:50 ipsecguy joined #salt
21:51 izibi joined #salt
21:52 pipps joined #salt
21:58 jeffspeff gtmanfred, is this the correct way to use onlyif in a module.run state? https://gist.github.com/jeffclay/4e27796184442204abc1a29b3cc5f565
22:00 evle1 joined #salt
22:04 saltslackbridge <gtmanfred> you cannot use modules in only if
22:05 saltslackbridge <gtmanfred> it uses cmd.run to figure out if it ran correctly
22:05 saltslackbridge <gtmanfred> I gave you a correct version in this gist https://gist.github.com/jeffclay/d934f4b2879e69c75e7a7da5c45075cb
22:05 saltslackbridge <gtmanfred> well, before you deleted it
22:05 jeffspeff sorry, didn't see it there
22:06 saltslackbridge <gtmanfred> just literally, `- onlyif: Test-Path -Path "C:\ProgramData\chocolatey\lib\flashplayeraplugin" -PathType Container`
22:13 jeffspeff gtmanfred, just tried that. here's the state and the result https://gist.github.com/jeffclay/4e27796184442204abc1a29b3cc5f565
22:13 saltslackbridge <gtmanfred> back it up 2 spaces, it is not an argument that gets sent to the chocolatey.uninstalled
22:13 saltslackbridge <gtmanfred> it gets send to module.run
22:15 jeffspeff ok, trying again
22:18 jeffspeff gtmanfred, do i need to specify the shell?
22:18 jeffspeff https://gist.github.com/jeffclay/4e27796184442204abc1a29b3cc5f565
22:18 wct joined #salt
22:18 saltslackbridge <gtmanfred> you can’t specify shell
22:19 saltslackbridge <gtmanfred> if will just run cmd.retcode
22:19 saltslackbridge <gtmanfred> if you need to specify a different shell, you will need to set it in the minion config, grains or pillar data
22:19 saltslackbridge <gtmanfred> as the default value
22:21 jeffspeff gtmanfred, take a look at the results in https://gist.github.com/jeffclay/4e27796184442204abc1a29b3cc5f565
22:21 saltslackbridge <gtmanfred> yeah, then sounds like you will need to set the default shell to powershell if you want to use onlyif
22:21 wct joined #salt
22:25 mschiff joined #salt
22:25 mschiff joined #salt
22:27 mschiff joined #salt
22:29 pipps joined #salt
22:32 shadoxx ok, have a weird salt-cloud issue
22:33 shadoxx probably more of an ubuntu question, now that i think about it
22:36 patb_ left #salt
22:39 Bryson joined #salt
22:56 mikecmpbll joined #salt
23:08 pipps joined #salt
23:09 cyborg-one joined #salt
23:12 cyteen joined #salt
23:13 elektrix joined #salt
23:22 cyborg-one left #salt
23:34 onlyanegg joined #salt
23:41 onlyaneg1 joined #salt

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