Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-05-17

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

All times shown according to UTC.

Time Nick Message
00:01 loz-- joined #salt
00:06 subsignal joined #salt
00:28 julez joined #salt
00:33 bhosmer joined #salt
00:44 Pulp joined #salt
00:52 solidsnack joined #salt
00:54 solidsnack joined #salt
01:04 otter768 joined #salt
01:10 c10b10 joined #salt
01:16 kitplummer joined #salt
01:18 clintberry joined #salt
01:22 beauby joined #salt
01:22 Pulp joined #salt
01:27 emaninpa joined #salt
01:33 bhosmer joined #salt
01:49 ilbot3 joined #salt
01:49 Topic for #salt is now Welcome to #salt | 2015.5.0 is the latest | Please use https://gist.github.com for code, don't paste directly into the channel | Please be patient when asking questions as we are volunteers and may not have immediate answers | Channel logs are available at http://irclog.perlgeek.de/salt/
02:05 rideh joined #salt
02:07 scoates joined #salt
02:08 beauby joined #salt
02:16 cromark joined #salt
02:19 mapu joined #salt
02:19 dalexander joined #salt
02:21 bhosmer joined #salt
02:27 solidsnack joined #salt
02:30 bfoxwell joined #salt
02:31 beauby joined #salt
02:43 favadi joined #salt
02:46 solidsnack joined #salt
02:55 mapu joined #salt
02:55 bash124512 joined #salt
02:57 donmichelangelo joined #salt
02:59 c10b10 joined #salt
03:05 otter768 joined #salt
03:07 beauby joined #salt
03:10 sfoger joined #salt
03:11 markm__ joined #salt
03:18 MatthewsFace joined #salt
03:31 funzo joined #salt
03:32 funzo joined #salt
03:32 funzo joined #salt
03:48 AbyssOne joined #salt
04:07 Antiarc joined #salt
04:08 Antiarc joined #salt
04:13 Antiarc joined #salt
04:14 Antiarc joined #salt
04:19 Antiarc joined #salt
04:22 bhosmer joined #salt
04:26 kusams joined #salt
04:37 evle1 joined #salt
04:37 kusams joined #salt
04:40 subsignal joined #salt
04:45 ventris joined #salt
04:48 c10b10 joined #salt
05:01 cberndt joined #salt
05:06 otter768 joined #salt
05:16 neogenix joined #salt
05:25 lictor36 joined #salt
05:53 aruniiird joined #salt
05:53 aruniiird Just posting the question again (went offline): Hi all, I am new to saltstack... I have a process which runs for long time and give a huge output... I was trying with cmd.run and get jobs output using 'salt-run jobs.lookup_jid <JOB_ID>', but it is not returning anything... Can somebody help here? the same thing works for smaller commands like 'ls' etc
05:54 cromark joined #salt
06:02 kitplummer joined #salt
06:06 stoogenmeyer joined #salt
06:11 ajw0100 joined #salt
06:13 overyander joined #salt
06:21 c10b10 joined #salt
06:23 bhosmer joined #salt
06:40 subsignal joined #salt
06:52 _2_chopi4453 joined #salt
06:52 _2_chopi4453 hi
06:52 _2_chopi4453 left #salt
06:53 aruniiird joined #salt
06:53 aruniiird Just posting the question again (went offline): Hi all, I am new to saltstack... I have a process which runs for long time and give a huge output... I was trying with cmd.run and get jobs output using 'salt-run jobs.lookup_jid <JOB_ID>', but it is not returning anything... Can somebody help here? the same thing works for smaller commands like 'ls' etc
07:06 otter768 joined #salt
07:12 c10b10 joined #salt
07:18 kitplummer joined #salt
08:07 schristensen joined #salt
08:23 bhosmer joined #salt
08:27 slav0nic joined #salt
08:34 chiui joined #salt
08:42 viq joined #salt
08:55 joeto joined #salt
09:07 kitplummer joined #salt
09:07 otter768 joined #salt
09:09 c10b10 joined #salt
09:09 dan6363 joined #salt
09:12 Pulp joined #salt
09:31 cromark joined #salt
09:44 lictor36 joined #salt
09:52 CeBe joined #salt
09:56 JPT joined #salt
09:57 linjan joined #salt
10:09 JayFK joined #salt
10:09 Jim-_ joined #salt
10:23 paolo running this command, salt-call state.highstate, is there some option to only show failed states instead of full output?
10:24 bhosmer joined #salt
10:42 subsignal joined #salt
10:45 keimlink joined #salt
10:47 bhosmer joined #salt
10:55 kitplummer joined #salt
11:06 yomilk joined #salt
11:08 otter768 joined #salt
11:30 bhosmer joined #salt
11:33 cromark joined #salt
11:34 JayFK joined #salt
11:36 diegows joined #salt
11:42 cromark joined #salt
11:45 mapu joined #salt
11:49 linjan joined #salt
12:12 cberndt joined #salt
12:25 bhosmer joined #salt
12:44 subsignal joined #salt
12:56 subsignal joined #salt
13:06 ndrei joined #salt
13:08 Berty_ joined #salt
13:09 otter768 joined #salt
13:24 Fiber^ joined #salt
13:31 bhosmer joined #salt
13:42 kitplummer joined #salt
13:46 cromark joined #salt
14:04 bash124512 how do I get info on minions that are not approved ? :)
14:05 st_iron joined #salt
14:06 st_iron testing the 2015.05 on my system :)
14:07 kitplummer joined #salt
14:16 scoates joined #salt
14:21 c10b10 joined #salt
14:21 stoogenmeyer joined #salt
14:24 ProT-0-TypE joined #salt
14:34 armguy paolo~ wouldn't something like this work? salt '*' state.highstate --state-output=changes
14:35 armguy oh nvm you said failures not changes
14:44 ageorgop joined #salt
14:47 kusams joined #salt
14:58 julez joined #salt
14:58 assaulty joined #salt
15:01 assaulty is there a good collection of salt states that I can reuse
15:03 Tyrm joined #salt
15:04 cromark joined #salt
15:04 st_iron https://github.com/saltstack-formulas
15:04 st_iron ^ assaulty
15:05 Guest16184 left #salt
15:06 assaulty @st_iron thank you!
15:06 totte joined #salt
15:08 kitplummer joined #salt
15:08 assaulty trying to create a state which extracts a zip file
15:08 assaulty the zipfile has no subfolder
15:08 assaulty when I try to extract it to /usr/local
15:09 assaulty salt errors out saying directory already exists
15:09 assaulty so I added if_missing tag
15:09 assaulty but now I see that the permissions are wrong
15:09 assaulty what am I doig wrong?
15:10 ek6 the permissions are wrong on the files post unzip?
15:10 otter768 joined #salt
15:10 assaulty correct
15:11 assaulty even though when I extract the zip file manually, the files are correct
15:11 assaulty the execute bit on the files is gone when I use salt
15:11 ek6 err..what version of salt, what os, what specific module are you using
15:12 assaulty salt 2015.5.0 (Lithium)
15:13 assaulty CentOS 6.6
15:13 assaulty using archive module...
15:14 assaulty https://gist.github.com/sidcarter/06fd686bb43fc0d7d778
15:17 ek6 well to test...id say try using the older version and call the cmd_unzip module and see if thats what you expect
15:18 ek6 snip from module docs Changed in version 2015.5.0: This function was rewritten to use Python's native zip file support. The old functionality has been preserved in the new function archive.cmd_unzip. For versions 2014.7.x and earlier, see the archive.cmd_zip documentation.
15:20 assaulty k..cool
15:20 ndrei joined #salt
15:31 bhosmer joined #salt
15:32 ageorgop joined #salt
15:34 c10b10 joined #salt
15:35 Jim-_ joined #salt
15:36 stoogenmeyer joined #salt
15:36 rideh joined #salt
15:36 Norrland joined #salt
15:39 hasues joined #salt
15:39 ashw7n joined #salt
15:40 cromark joined #salt
15:40 hasues left #salt
15:41 ashw7n hello everyone, i have an issue with salt-mine which I am breaking my head with
15:50 ageorgop joined #salt
15:52 bhosmer joined #salt
15:57 bash124512 assaulty : I got the same error on 2015.5.0. might be a bug. could you please gist the error so I can verify ?
15:57 Norrland Is it possible to exclude minions by grains in the top.sls?
15:58 ashw7n I have a mine function for getting network_address and want to use this to create a map of ip to host (dont ask me why) and am doing this as shown here http://pastebin.com/PQSZLhm3
16:00 ashw7n i want to change the network interface to another interface, but the template file does not seem to pick that change
16:01 ashw7n do i need to restart salt-master after changing mine function list?
16:05 cberndt joined #salt
16:08 cberndt joined #salt
16:08 kitplummer joined #salt
16:13 Berty_ joined #salt
16:22 cromark joined #salt
16:33 stoogenmeyer joined #salt
16:34 Chadk joined #salt
16:36 Dev0n joined #salt
16:42 JDiPierro joined #salt
16:42 martoss joined #salt
16:47 julez joined #salt
16:52 bhosmer joined #salt
16:54 JayFK joined #salt
16:56 bhosmer_ joined #salt
16:57 bhosmer joined #salt
17:08 theologian joined #salt
17:08 rickflare joined #salt
17:10 seblu joined #salt
17:11 otter768 joined #salt
17:14 bhosmer joined #salt
17:16 stoogenmeyer joined #salt
17:21 c10b10 joined #salt
17:21 bhosmer joined #salt
17:22 hannesstruss joined #salt
17:22 primechuck joined #salt
17:27 armguy joined #salt
17:43 Berty_ joined #salt
17:47 martoss joined #salt
17:52 c10b10 joined #salt
17:54 ajw0100 joined #salt
17:55 bhosmer joined #salt
17:57 kitplummer joined #salt
18:02 Berty_ joined #salt
18:07 WildPikachu https://gist.github.com/nkukard/a20906259e9a0cb3b03c  <= Does anyone have advise how I can create that file if it does not exist, then have that block inserted
18:07 stoogenmeyer joined #salt
18:08 WildPikachu I can't make it managed because I want server-specific content after that block
18:10 ek6 while you could still do it with managed your just asking to file.touch  to make sure it exists?  you need more then that to please your markers so not clear what your asking
18:11 kiorky joined #salt
18:14 WildPikachu ek6, so my block replace and accumulators must then require file.touch? would a cmd also be a good idea   sh -c "[ ! -e ] && touch /etc/shorewall/rules"  or is that the wrong way to do it?
18:15 WildPikachu ek6, you mentioned still doing it with managed? would that not totally replace all the changes I make to the end of the file?
18:15 ek6 ug....no....file.touch at the start would create the file if it didnt already exists....
18:16 WildPikachu thanks ek6
18:17 ek6 and while i havent done it in awhile you can im 99% sure run file.managed without a source..to just set other options
18:18 ek6 and thats probably how i would do it....with managed doing the creation and content fill with your basics and then hamstring it with an unless to keep it from overwriting existing
18:19 ek6 but I could easily be misunderstanding what your trying to do
18:21 WildPikachu ek6, let me read the doc again on file.managed :), yep, you understand 100%
18:26 WildPikachu ek6, I don't think blockreplace supports the 'require' , so I can't put a require on the file.managed
18:29 ek6 im still lost on whats creating the file before your blockreplace
18:31 WildPikachu https://gist.github.com/nkukard/a20906259e9a0cb3b03c <= ek6 , I added line 1-6 and line 18
18:31 evle joined #salt
18:33 WildPikachu ek6, let me try harder and read up more :)
18:36 julez joined #salt
18:36 ek6 So let me say this....because you could have good reason to do it the way you are....    A. I dont see where your creating your markers that your trying to do blockreplace against    B. since you have an accumulated anyway why you are not just using a file.managed with a jinja template that pulls in your server specific accumulated block
18:37 ek6 and if i was confusing with B its basically the example in the docs under states.file.accumulated
18:38 WildPikachu ek6, line 16 creates the markers if they don't exist, right?
18:39 ek6 ah yes..missed that...but not sure even with that it will create the file if it didnt already exists...
18:40 WildPikachu ek6, thats the problem, line 18 doesn't work, but its fine, I'll come right now with your help :)
18:42 ek6 last question since im staring at it.....just seems odd to me the way your doing your ordering with the require_in
18:42 ek6 thats like you want that run before the blockreplace to have it at the top of the file...but then your useing prepend which would still put the blockreplace above your accumulated..right?
18:43 WildPikachu I was following the example in salt.states.file.html in the docs, but I am changing that to append now, I am creating the file now with managed with Replace: set to false :)
18:49 ek6 alright well hopefully I helped :)   I do think in the end you should go all the way to a jinja managed file and just be pulling in your system specific content..or go the more 'simple' way towards file.managed content creation and then appending or doing system specific block replace on markers you set up with the file.managed
18:49 WildPikachu ek6, I am actually heading towards your last recommendation :)
18:50 WildPikachu there is just 1 more stupid question I have , is the .sls run in the order in the file?
18:50 ek6 at the end of the day salt is a bag of hammers...if the screw ends up in the wood without your thumb attached its all good
18:51 ek6 its not stupid and in general yes....but there are 1001 ways that can get altered from the order to mod aggregate etc etc..
18:52 c10b10 joined #salt
18:53 WildPikachu noted, thanks, and one more thing which I could not find detailed (maybe I missed it), is if I have multiple sls files, will they be read in order? or must they be explicitly include'ed
18:53 ek6 im not a super fan of _in function because it tears up readability a bit for some peope
18:53 ek6 are you asking about top file ordering?  or ordering of states you have specifically included
18:54 WildPikachu ek6, say I have a top file,   '*'  -shorewall    , and I have 3 .sls files in shorewall/   init.sls , test1.sls and test2.sls
18:54 WildPikachu will test1.sls and test2.sls be read by default, or must I explicitly include them with http://docs.saltstack.com/en/latest/ref/states/include.html
18:55 Jim-_ joined #salt
18:55 linjan joined #salt
18:56 ek6 on the subject of top file ordering i wave the white flag and say that I dont know and dont count on specific ordering happening..... if I want things dont in a specific order I include them and link in the requires...but that may just be me
18:56 WildPikachu thanks for the input ek6
18:57 WildPikachu I was more referring to directories I put sls files in, my top file is also all over the place when I highstate on a machine :)
18:58 primechuck joined #salt
18:58 kitplummer joined #salt
18:58 WildPikachu ek6, working 100% :)
18:58 ek6 oh..if im looking at that example...you would be executing the init and nothing else
18:59 WildPikachu https://gist.github.com/nkukard/a20906259e9a0cb3b03c <= this is what I ended up with ek6, with your help of course
18:59 ek6 now if in your shorewall init if you then included the two tests in an include I do believe it will run those in order
19:00 Pg3 joined #salt
19:01 ek6 if nail is in board and your happy then all is well
19:01 WildPikachu thanks ek6 :) started with a screw, ended with a nail ... good thing
19:03 MatthewsFace joined #salt
19:08 martoss joined #salt
19:10 kermit joined #salt
19:12 otter768 joined #salt
19:22 ageorgop joined #salt
19:22 primechuck joined #salt
19:28 cromark joined #salt
19:30 Berty_ joined #salt
19:32 tomh- joined #salt
19:35 hannesstruss joined #salt
19:37 dude051 joined #salt
19:43 ckao joined #salt
19:56 bhosmer joined #salt
20:04 MTecknology basepi: !!!!   http://www.amazon.com/gp/product/B003P5LQIC
20:06 ageorgop joined #salt
20:06 cberndt joined #salt
20:12 c10b10 joined #salt
20:16 ProT-0-TypE joined #salt
20:24 julez joined #salt
20:27 MatthewsFace joined #salt
20:31 ageorgop joined #salt
20:47 kitplummer joined #salt
20:52 bhosmer joined #salt
20:53 cromark joined #salt
20:54 c10b10 joined #salt
20:57 mdupont joined #salt
21:00 ashw7n salt-call 2015.5.0 (Lithium) does not seem to have the salt.utils.ipaddr
21:00 ashw7n file
21:00 keimlink joined #salt
21:00 ashw7n May 17 20:54:29 kubernetes-minion-1-7250 salt-minion[27734]: [DEBUG   ] Failed to import states container_bridge: May 17 20:54:29 kubernetes-minion-1-7250 salt-minion[27734]: Traceback (most recent call last): May 17 20:54:29 kubernetes-minion-1-7250 salt-minion[27734]: File "/usr/lib/python2.7/site-packages/salt/loader.py", line 951, in _load_module May 17 20:54:29 kubernetes-minion-1-7250 salt-minion[27734]: ), fn_, fpath, desc) May
21:01 ashw7n kubernetes project has a file that uses this and what was working all this while , suddenly is breaking
21:02 ashw7n May 17 20:54:29 kubernetes-minion-1-7250 salt-minion[27734]: File "/var/cache/salt/minion/extmods/states/container_bridge.py", line 18, in <module> May 17 20:54:29 kubernetes-minion-1-7250 salt-minion[27734]: import salt.utils.ipaddr as ipaddr May 17 20:54:29 kubernetes-minion-1-7250 salt-minion[27734]: ImportError: No module named ipaddr
21:03 c10b10 joined #salt
21:05 ashw7n https://github.com/GoogleCloudPlatform/kubernetes/blob/master/cluster/saltbase/salt/_states/container_bridge.py
21:08 bhosmer joined #salt
21:09 hannesstruss joined #salt
21:13 otter768 joined #salt
21:15 primechuck joined #salt
21:34 jhauser joined #salt
21:49 primechuck joined #salt
22:08 kusams joined #salt
22:14 ndrei joined #salt
22:17 MaliutaLap joined #salt
22:17 MaliutaLap left #salt
22:28 kermit joined #salt
22:30 ndrei joined #salt
22:35 cberndt joined #salt
22:36 kitplummer joined #salt
22:40 kermit joined #salt
22:41 kermit joined #salt
22:43 JDiPierro joined #salt
22:47 primechuck joined #salt
22:49 markm joined #salt
23:02 mosen joined #salt
23:08 bhosmer joined #salt
23:09 mosen new doco stylesheet, nice
23:12 cromark joined #salt
23:13 kylepetty joined #salt
23:13 Cidan joined #salt
23:13 kylepetty left #salt
23:14 otter768 joined #salt
23:16 diegows joined #salt
23:16 primechuck joined #salt
23:18 bhosmer joined #salt
23:21 Dev0n joined #salt
23:21 kermit joined #salt
23:24 c10b10 joined #salt
23:25 keimlink joined #salt
23:42 FRANK_I joined #salt

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