Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-11-24

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

All times shown according to UTC.

Time Nick Message
00:10 jfelchner joined #salt
00:12 dendazen joined #salt
00:13 DEger joined #salt
00:17 mohae joined #salt
00:18 sh123124213 joined #salt
00:18 jhauser joined #salt
00:20 georgemarshall joined #salt
00:23 msn2 joined #salt
00:31 jas02 joined #salt
00:35 s_kunk joined #salt
00:35 Klas joined #salt
00:36 fannet joined #salt
00:41 CampusD joined #salt
00:42 CampusD Is the format of the PATH correct on this cmd.run? https://gist.github.com/anonymous/112c6a92c3f67395ee03f8960668af48
00:43 hemebond I don't think so.
00:43 Sammichmaker joined #salt
00:43 hemebond Shouldn't env also be a dict?
00:43 hemebond Oh, no, list apparently. Interesting.
00:43 hemebond CampusD: You're missing the join part.
00:44 hemebond https://docs.saltstack.com/en/latest/ref/states/all/salt.states.cmd.html#salt.states.cmd.run
00:44 CampusD I am getting an exception https://gist.github.com/anonymous/1bc9b41810fe3797d18b99d1d1254e9c
00:45 DEger joined #salt
00:45 CampusD so this format then, "PATH=/some/path:$PATH"
00:47 vegasq joined #salt
00:47 CampusD oh i see, set it in a jinja var, then call it
00:49 CampusD or like you said use |join(':')
00:56 nethershaw joined #salt
00:58 keimlink_ joined #salt
00:59 akhter joined #salt
01:02 s_kunk joined #salt
01:04 edrocks joined #salt
01:22 swa_work joined #salt
01:24 swills joined #salt
01:24 fannet joined #salt
01:25 pipps joined #salt
01:27 zzuf joined #salt
01:32 jas02 joined #salt
02:04 catpigger joined #salt
02:18 fannet joined #salt
02:33 jas02 joined #salt
02:38 evle joined #salt
02:47 ilbot3 joined #salt
02:47 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:54 bltmiller joined #salt
03:13 fannet joined #salt
03:21 cyborg-one joined #salt
03:24 dxiri joined #salt
03:27 pipps joined #salt
03:32 _JZ_ joined #salt
03:32 tristianc joined #salt
03:34 jas02 joined #salt
03:39 cyborg-one joined #salt
03:46 gableroux joined #salt
03:51 chamunks joined #salt
03:52 bastiandg joined #salt
03:53 descrepes joined #salt
03:53 jerrcs joined #salt
03:58 onlyanegg joined #salt
04:03 lyddragon joined #salt
04:04 swa_work joined #salt
04:07 fannet joined #salt
04:07 edrocks joined #salt
04:10 lyddragon hi
04:10 lyddragon 有人在吗?
04:13 lyddragon system:CentOS 7.2 ; SaltStack version:  salt-minion-2015.5.10-2.el7.noarch;  error:[pid 13017] close(8)                    = -1 EBADF (Bad file descriptor)
04:14 bltmiller joined #salt
04:16 informant joined #salt
04:18 darthzen_ joined #salt
04:27 LV-426 joined #salt
04:28 dxiri joined #salt
04:30 dxiri joined #salt
04:34 akhter joined #salt
04:35 jas02 joined #salt
04:40 valkyr2e joined #salt
04:48 donmichelangelo joined #salt
05:01 fannet joined #salt
05:03 impi joined #salt
05:07 pipps joined #salt
05:15 rem5 joined #salt
05:16 DaveQB joined #salt
05:20 DEger joined #salt
05:22 swa_work joined #salt
05:28 justanotheruser joined #salt
05:31 brantfitzsimmons joined #salt
05:32 bocaneri joined #salt
05:33 justanotheruser joined #salt
05:36 jas02 joined #salt
05:39 mpanetta_ joined #salt
05:46 rdas joined #salt
05:54 keimlink joined #salt
05:56 fannet joined #salt
06:02 ivanjaros joined #salt
06:05 swa_work joined #salt
06:06 dxiri joined #salt
06:09 edrocks joined #salt
06:21 darthzen_ joined #salt
06:29 combinare joined #salt
06:32 kgoetz is https://github.com/saltstack-formulas the only centralised location for locating saltstack formulas?
06:36 jas02 joined #salt
06:50 fannet joined #salt
07:11 fracklen joined #salt
07:20 sh123124213 joined #salt
07:22 dendazen joined #salt
07:25 preludedrew joined #salt
07:25 Guest2 joined #salt
07:26 nidr0x joined #salt
07:26 ivanjaros3916 joined #salt
07:35 ReV013 joined #salt
07:37 jas02 joined #salt
07:43 fracklen joined #salt
07:43 sh123124213 joined #salt
07:44 fannet joined #salt
07:51 Rumbles joined #salt
07:53 sh123124213 joined #salt
07:59 pipps joined #salt
08:01 sh123124213 joined #salt
08:11 edrocks joined #salt
08:12 keimlink joined #salt
08:14 sh123124213 joined #salt
08:16 sh123124213 joined #salt
08:23 samodid joined #salt
08:23 hemebond kgoetz: That I know of.
08:33 JohnnyRun joined #salt
08:38 jas02 joined #salt
08:39 fannet joined #salt
08:39 sgo_ joined #salt
08:45 fracklen joined #salt
08:51 ronnix joined #salt
08:54 mikecmpbll joined #salt
08:56 krymzon joined #salt
08:57 sh123124213 joined #salt
09:01 pipps joined #salt
09:02 zulutango joined #salt
09:02 DEger joined #salt
09:05 s0undt3ch joined #salt
09:15 JPT joined #salt
09:16 rdas joined #salt
09:18 s_kunk joined #salt
09:18 remyd1 joined #salt
09:19 remyd1 Hello :)
09:25 fracklen joined #salt
09:26 fracklen joined #salt
09:28 Rumbles joined #salt
09:30 jhauser joined #salt
09:33 fannet joined #salt
09:34 _JZ__ joined #salt
09:35 amontalban joined #salt
09:35 amontalban joined #salt
09:37 hemebond joined #salt
09:39 jas02 joined #salt
09:49 sh123124213 joined #salt
09:50 fannet joined #salt
09:51 sh123124213 joined #salt
09:53 N-Mi joined #salt
09:53 felskrone joined #salt
09:58 JohnnyRun joined #salt
10:08 fracklen joined #salt
10:08 sh123124213 joined #salt
10:09 Macho_ joined #salt
10:10 Macho_ Hey guys, Can I somehow stop execution of a salt sls formula if some kind of condition is met in the middle of sls execution ?
10:11 cyteen joined #salt
10:23 manji Macho_, you can add requirements
10:23 manji so if one of your states fails due to this condition
10:23 amcorreia joined #salt
10:24 manji the ones that "depend" on it
10:24 manji will not be executed
10:24 Macho_ That would be a really long dependency lsit
10:24 Macho_ list*
10:24 Macho_ I just want to kill the execution of the sls.
10:25 Macho_ there is 'failhard'
10:25 Macho_ but it works when the state fails.
10:25 Macho_ I want it to run when state passes.
10:26 Macho_ something like ANTI of this https://docs.saltstack.com/en/latest/ref/states/failhard.html
10:32 hemebond You can make a highstate fail hard when there is any error.
10:32 hemebond Oh, like Macho linked to.
10:33 hemebond Wait, what?
10:34 hemebond Couldn't you create some sort of flag on the system and then use only_if to test for it in each state?
10:34 hemebond To be honest, it sounds like you're approaching things from a funny angle.
10:35 Macho_ Can I declare a saltstack variable in runtime between states ?
10:35 hemebond No,
10:35 hemebond (I think you mean a Jinja variable)
10:36 Macho_ not jinja.
10:36 Macho_ {%- set app = salt['pillar.get']('app', 'u') -%}
10:36 hemebond Oh a pillar
10:36 hemebond No. But you could possibly set a grain.
10:37 Macho_ in run time ? and then destroy it once the state has passed ?
10:37 hemebond You might be able to.
10:37 hemebond Wait...
10:37 hemebond No, you can't.
10:37 Macho_ :'(
10:37 hemebond Jinja is evaluated right at the start, before any states are applied.
10:38 hemebond State files are "compiled", e.g., run through a jinja then yaml parser.
10:38 Macho_ I want to generate a variable in one state and then use it in abother
10:38 Macho_ another*
10:38 whytewolf you can't
10:38 Macho_ :'(
10:38 hemebond I think you need to rethink your approach,.
10:38 whytewolf ^
10:39 hemebond Your states should be idempotent.
10:39 Macho_ I know an Ansible feature where you can set and then use a variable in run time. It's very useful there.
10:39 Macho_ if you guys can confirm I will raise a feature request.
10:40 whytewolf it will be closed with no fix
10:40 jas02 joined #salt
10:42 whytewolf it would take a major rewrite of a lot of saltstack and a change in the way things work. it would break backwords compatability
10:43 jeddi joined #salt
10:49 hemebond It would essentially make your states stateful.
10:50 akhter joined #salt
11:00 zulutango joined #salt
11:03 DEger joined #salt
11:03 fracklen joined #salt
11:04 pipps joined #salt
11:05 fracklen joined #salt
11:09 abednarik joined #salt
11:13 edrocks joined #salt
11:15 Flying_Panda hi all silly question with salt mine for docker is it possible to get the ip info for a single image? rather than all images currently running
11:16 josuebrunel joined #salt
11:18 josuebrunel left #salt
11:18 Flying_Panda somthing like salt '*DOC*'  mine.get_docker name = localhost:5000/docker/app1:latest
11:20 penguenman joined #salt
11:20 penguenman hi guys
11:20 penguenman can anyone use this module in latest of salt version (2016.3.4)
11:20 penguenman https://github.com/saltstack-formulas/ec2-autoscale-reactor
11:21 penguenman because i am getting an error exception when reaction try to bootstrapt target ec2 machine
11:21 penguenman exception: http://pastebin.com/1f4RnCXu
11:21 penguenman anyone have an idea ?
11:23 xenocode joined #salt
11:26 whytewolf Flying_Panda: it does not look like you can get only one container. however you can tell it to expose the container_ids in the output
11:27 Flying_Panda yea noticed that I didint want 1 container I wanted all containers from a specific image
11:27 sgo_ joined #salt
11:27 whytewolf Flying_Panda: oh, well since it doens't have any kind of image information there. i would say no.
11:28 Flying_Panda it does initally it prints localhost:5000/docker/app1:latest: info      localhost:5000/docker/app2: info
11:29 Flying_Panda want to try and grab all the data under app1
11:29 Flying_Panda ignore app2
11:29 Flying_Panda push to proxy config
11:29 whytewolf i meant in the function ... it doesn't have a filter
11:29 Flying_Panda yea thought as much hoped it would just be one of thoes undockumented querks :D
11:30 whytewolf other then interface and cidr
11:30 whytewolf things like that are not undocumented because they are taken directly from the code. if you don't see something in the function decleration it isn't there
11:31 whytewolf they might be missed in the document under the function decleration
11:31 Flying_Panda oh I just checked -d
11:32 whytewolf ahh yeah that only prints out the documentation not the function decleration. so that could be missed
11:32 whytewolf normally i go to the webpage. just to see it
11:32 whytewolf https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.mine.html#salt.modules.mine.get_docker
11:34 Flying_Panda guess I could write a little function to fish that out
11:34 ronnix joined #salt
11:34 Flying_Panda or move to a different port
11:35 whytewolf a world of possabilities
11:40 whytewolf penguenman: I can't be sure, that module is getting a little long in the tooth. and hasn't been updated in awhile
11:41 penguenman whytewolf: have you aby suggestion to fix it
11:41 penguenman any suggestion to review or fix it according to new salt version
11:42 whytewolf i don't know enough to know what is wrong with it.
11:42 whytewolf I don't have an aws account to play with
11:44 whytewolf i would say toss everything in trace mode. and see what is actually going on in the backend
11:46 sh123124213 joined #salt
11:46 friendly12345 joined #salt
11:49 sh123124213 joined #salt
11:49 friendly12345 left #salt
11:59 penguenman whytewolf : what does toss mean ?
11:59 penguenman you mean that execute my flow in trace mode ?
12:00 whytewolf penguenman: change the logging level to trace
12:00 penguenman of couse i will try it to tracing flow
12:10 dRiN_ joined #salt
12:11 keimlink joined #salt
12:13 Zaunei joined #salt
12:22 penguenman whytewolf: http://pastebin.com/yaYEc0Ng
12:29 ProT-0-TypE joined #salt
12:41 sh123124213 joined #salt
12:41 sh123124213 joined #salt
12:42 jas02 joined #salt
12:44 sh123124213 joined #salt
12:45 sh123124213 joined #salt
12:51 numkem joined #salt
12:52 sh123124213 joined #salt
12:52 krymzon joined #salt
12:58 o1e9 joined #salt
13:02 abednarik joined #salt
13:05 pipps joined #salt
13:15 edrocks joined #salt
13:18 sh123124213 joined #salt
13:27 rem5 joined #salt
13:29 teclator joined #salt
13:56 fredvd joined #salt
13:59 dkrae joined #salt
14:05 ernescz joined #salt
14:15 ronnix joined #salt
14:24 KennethWilke joined #salt
14:27 Reverend is everyone sleepy today?
14:27 Reverend soooo quiet :P
14:28 pcdummy Reverend: no :)
14:33 tmrtn[m] joined #salt
14:36 ssplatt joined #salt
14:44 jas02 joined #salt
14:47 mirceaulinic joined #salt
14:48 ProT-0-TypE joined #salt
14:49 freelock[m] joined #salt
14:49 jcl[m] joined #salt
14:49 Mads[m] joined #salt
14:49 saintaquinas[m] joined #salt
14:49 dnull[m] joined #salt
14:49 jerrykan[m] joined #salt
14:49 ThomasJ|m joined #salt
14:49 M-MadsRC joined #salt
14:49 M-liberdiko joined #salt
14:51 dxiri joined #salt
14:58 dps joined #salt
15:00 Reverend is there any way to regurgetate the nodegroup of a minion in an SLS
15:00 Reverend im wondering about using teh nodegroup in a pillar, like config:nodegroup:hosts for example
15:04 DEger joined #salt
15:08 Mandorath_ joined #salt
15:13 cscf Reverend, that would be tricky, since the same minion can be in multiple nodegroups
15:15 Mandorath_ Is it possible to exclude a minion from all the states declared in the base: '*'?
15:17 Neighbour is a .sls-file rendered before it's sent to a minion, or after?
15:18 Neighbour Mandorath_: https://docs.saltstack.com/en/latest/topics/targeting/compound.html suggests it is possible
15:19 gableroux joined #salt
15:25 Reverend cscf: ahh, i see.
15:26 Reverend cscf: maybe I just have a pillar of data that matches nodegroups, and tells the minion what nodegroup it's in :P
15:29 Aikar joined #salt
15:32 voileux_ joined #salt
15:33 dendazen joined #salt
15:40 jas02 joined #salt
15:40 ReV013 left #salt
15:46 jas02_ joined #salt
15:48 abednarik joined #salt
15:49 hlub hmm, slack returner fails silently, no log messages.
15:52 gableroux joined #salt
16:04 jav joined #salt
16:08 ivanjaros joined #salt
16:14 fracklen joined #salt
16:17 edrocks joined #salt
16:20 amcorreia joined #salt
16:37 abednarik joined #salt
16:38 pipps joined #salt
16:40 rem5 joined #salt
16:41 ronnix_ joined #salt
16:44 jas02 joined #salt
16:48 DEger joined #salt
16:51 samodid joined #salt
16:53 raspado joined #salt
16:57 capricorn_1 joined #salt
17:00 deei joined #salt
17:01 cyborg-one joined #salt
17:08 sgo_ joined #salt
17:20 XenophonF finally, i'm deploying something _important_ with salt
17:20 XenophonF my new minecraft server
17:22 xmj is it webscale?
17:28 pipps joined #salt
17:33 keimlink joined #salt
17:35 Trauma joined #salt
17:37 DEger joined #salt
17:37 impi_ joined #salt
17:39 kingpower joined #salt
17:48 XenophonF no i'm setting it up here at home
17:48 jas02 joined #salt
17:51 yuhll joined #salt
17:54 nidr0x joined #salt
17:57 impi_ joined #salt
17:59 tercenya joined #salt
18:06 jas02 joined #salt
18:10 tercenya joined #salt
18:10 sjorge joined #salt
18:10 sjorge joined #salt
18:12 dxiri joined #salt
18:13 numkem joined #salt
18:16 ronnix joined #salt
18:20 DEger joined #salt
18:26 dxiri joined #salt
18:27 sjorge joined #salt
18:27 sjorge joined #salt
18:29 jas02 joined #salt
18:30 sgo_ joined #salt
18:31 abednarik joined #salt
18:32 abednarik joined #salt
18:35 _KaszpiR_ joined #salt
18:37 s_kunk joined #salt
18:42 debian112 joined #salt
18:43 jkleckner joined #salt
18:48 fracklen joined #salt
18:49 jas02_ joined #salt
18:59 DEger joined #salt
19:00 andi- joined #salt
19:01 jas02 joined #salt
19:03 jas02 joined #salt
19:08 ssplatt joined #salt
19:14 jkleckner left #salt
19:14 jkleckner joined #salt
19:14 jkleckner joined #salt
19:16 jkleckner left #salt
19:18 andi- joined #salt
19:19 jkleckner1 joined #salt
19:19 edrocks joined #salt
19:21 akhter joined #salt
19:22 jkleckner joined #salt
19:24 ronnix joined #salt
19:30 pipps joined #salt
19:38 Trauma joined #salt
19:50 jas02 joined #salt
19:53 nicksloan joined #salt
19:58 joesusecom joined #salt
20:03 cscf XenophonF, is there a salt-formula for that?  You should make it one :)
20:06 cyborg-one joined #salt
20:10 yuhll joined #salt
20:16 impi joined #salt
20:18 raspado just to be on the safe side, to allow other minions to talk to other masters , all I need to do is copy /etc/salt/pki/master/{master.pem and master.pub} to all the salt masters ?
20:18 dxiri_ joined #salt
20:18 hemebond raspado: Correct.
20:18 hemebond (I think)
20:18 raspado hehe
20:26 cyteen joined #salt
20:28 cscf Test in dev :)
20:29 raspado i guess thats all there is to it https://docs.saltstack.com/en/latest/topics/tutorials/multimaster.html#prepping-a-redundant-master
20:43 raspado joined #salt
20:47 andi- joined #salt
20:48 CrashOverride joined #salt
20:50 jas02 joined #salt
20:52 cyteen joined #salt
21:03 Deliant joined #salt
21:21 VR-Jack2-H joined #salt
21:41 amontalban joined #salt
21:42 CrashOverride joined #salt
21:49 sgo_ joined #salt
21:51 jas02 joined #salt
22:05 jeddi joined #salt
22:08 ronnix_ joined #salt
22:25 raspado joined #salt
22:29 yuhll joined #salt
22:30 cyborg-one joined #salt
22:30 raspado I updated the pki master pub/priv key but now on provisioning a minion through salt-cloud it hangs at "*  INFO: Running install_centos_stable_deps()"
22:34 raspado oh i seeee i SEEEEEEE
22:38 xet7 joined #salt
22:43 CrashOverride joined #salt
22:48 ronnix joined #salt
22:50 abednarik joined #salt
22:52 jas02 joined #salt
22:54 zzuf joined #salt
23:11 amontalban joined #salt
23:11 amontalban joined #salt
23:12 kgoetz hemebond: thanks (belatedly). I sense I'll be writing a lot of formulas if that is all the pre canned stuff. since i'm trying to move from ansible it will be very noticable
23:13 hemebond kgoetz: ???? Good luck
23:13 kgoetz thanks :)
23:13 hemebond Feel free to submit your formulas to saltstack-formulas. All the formulas on there are community-made.
23:14 hemebond (or submit pull requests to improve the formulas already there)
23:15 kgoetz i will definitely keep it in mind. i'm not there yet - still can't get my pillars to override other formula settings. all in good time
23:19 ssplatt joined #salt
23:25 cyteen joined #salt
23:34 dxiri joined #salt
23:53 jas02 joined #salt
23:56 catpiggest joined #salt

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