Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-09-14

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

All times shown according to UTC.

Time Nick Message
00:00 laax joined #salt
00:03 shadowbeast salt-cloud should work with an ESXi host directly and not through vsphere when using the vmware provider right?
00:06 joe_n joined #salt
00:07 dendazen joined #salt
00:14 mosen joined #salt
00:34 otter768 joined #salt
00:40 joe_n joined #salt
00:43 shadowbeast i could really use a demo ESXi profile if someone has one to look at.  Thanks
00:48 culexor joined #salt
00:49 seatan joined #salt
00:51 JDiPierro joined #salt
00:54 orion203 joined #salt
00:54 zwi joined #salt
01:01 sunkist joined #salt
01:10 pravka joined #salt
01:12 JDiPierro joined #salt
01:38 bfoxwell joined #salt
01:46 catpigger joined #salt
01:47 ilbot3 joined #salt
01:47 Topic for #salt is now Welcome to #salt | 2015.5.5 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/
01:49 seatan joined #salt
01:50 JDiPierro joined #salt
02:01 laax joined #salt
02:09 amcorreia joined #salt
02:17 jfred joined #salt
02:17 kermit joined #salt
02:29 pratikmallya joined #salt
02:44 evle joined #salt
02:48 favadi joined #salt
02:50 pratikmallya joined #salt
02:51 seatan joined #salt
02:52 Furao joined #salt
03:01 pratikma_ joined #salt
03:02 tzero joined #salt
03:16 pratikmallya joined #salt
03:24 Edgan___ joined #salt
03:26 joe_n joined #salt
03:26 cztanu joined #salt
03:29 xenoxaos joined #salt
03:30 gchao joined #salt
03:32 pratikma_ joined #salt
03:51 JDiPierro joined #salt
03:52 seatan joined #salt
04:01 Furao joined #salt
04:01 Gareth joined #salt
04:02 laax joined #salt
04:13 larsfronius joined #salt
04:15 joe_n joined #salt
04:35 evle Is there a reason why debian repository has 2015.5.3 and not 2015.5.5?
04:43 edulix joined #salt
04:44 joe_n joined #salt
04:46 zer0def joined #salt
04:48 iggy evle: the packages are built by a volunteer, and volunteers generally don't operate on other people's schedules
04:51 ramteid joined #salt
04:53 seatan joined #salt
05:01 rdas joined #salt
05:02 pratikmallya joined #salt
05:04 joe_n joined #salt
05:04 dendazen joined #salt
05:10 Bryson joined #salt
05:22 laax joined #salt
05:24 dingo :)
05:24 dingo good answer iggy
05:24 dingo as i'm currently rolling out a new release of python 'wcwidth' package late on a sunday night on volunteer basis
05:25 dingo because the printable width of strings containing combining characters is important ...
05:25 dingo life is serious
05:25 dingo and i'm procrastinating ;p
05:31 forrest joined #salt
05:44 Ztyx joined #salt
05:44 joe_n joined #salt
05:44 Ztyx left #salt
05:53 Towlie joined #salt
05:54 seatan joined #salt
05:54 Towlie herrow?
05:56 Towlie I SAID FRUCKING HERROW!
05:57 Towlie GOD DAMN MONGOLAINS!
05:58 Towlie try to break down my shitty wall
06:00 JDiPierro joined #salt
06:03 Furao joined #salt
06:04 anmolb joined #salt
06:05 Towlie alright, i'm the FUCK outta here. I have some pot to smoke n shit.
06:06 Norrland maybe he thought this was #bath-salt
06:07 rofl____ lol
06:07 rofl____ yeah
06:07 trph joined #salt
06:09 colttt joined #salt
06:10 dopesong joined #salt
06:13 forrest joined #salt
06:15 sxar_ joined #salt
06:15 otter768 joined #salt
06:16 Furao joined #salt
06:18 Ztyx joined #salt
06:20 kbyrne joined #salt
06:26 sirex joined #salt
06:27 harkx joined #salt
06:29 auzty joined #salt
06:30 keimlink joined #salt
06:31 KermitTheFragger joined #salt
06:34 forrest joined #salt
06:37 JDiPierro joined #salt
06:39 illern joined #salt
06:44 harkx joined #salt
06:45 kawa2014 joined #salt
06:47 jhauser joined #salt
06:54 laax joined #salt
06:55 seatan joined #salt
07:04 rubendv joined #salt
07:04 rubendv joined #salt
07:05 illern joined #salt
07:07 katyucha joined #salt
07:10 eseyman joined #salt
07:18 kbaikov joined #salt
07:19 tes joined #salt
07:25 Furao joined #salt
07:27 seatan joined #salt
07:29 TOoSmOotH joined #salt
07:30 larsfronius joined #salt
07:38 markm_ joined #salt
07:38 stqism joined #salt
07:40 aqua^c joined #salt
07:45 mattiasr joined #salt
07:47 Fiber^ joined #salt
07:48 meganerd joined #salt
07:51 linjan_ joined #salt
07:54 isn joined #salt
07:54 isn hi team how to delete the public key from master
07:55 aristedes joined #salt
07:56 isn I am getting this error from minion
07:56 impi joined #salt
07:57 chiui joined #salt
07:57 isn [CRITICAL] The Salt Master has rejected this minion's public key! To repair this issue, delete the public key for this minion on the Salt Master and restart this minion. Or restart the Salt Master in open mode to clean out the keys. The Salt Minion will now exit.
07:57 isn I tried master restart but no use.
07:57 aristedes left #salt
08:00 slav0nic joined #salt
08:01 gmoro joined #salt
08:05 GreatSnoopy joined #salt
08:05 laax_ joined #salt
08:08 s_kunk joined #salt
08:08 Ztyx joined #salt
08:08 Ztyx joined #salt
08:11 Ztyx1 joined #salt
08:14 trph joined #salt
08:15 laax joined #salt
08:16 otter768 joined #salt
08:18 honestly salt-key -l
08:18 honestly then salt-key -d
08:18 honestly on the master
08:20 thefish joined #salt
08:20 zer0def joined #salt
08:21 Grokzen joined #salt
08:27 keimlink joined #salt
08:28 impi joined #salt
08:29 Xevian joined #salt
08:29 N-Mi joined #salt
08:30 laax joined #salt
08:36 s_kunk joined #salt
08:39 larsfronius joined #salt
08:43 Furao joined #salt
08:43 malinoff joined #salt
08:46 laax_ joined #salt
08:53 cyborg-one joined #salt
08:55 fersur3 joined #salt
08:55 fersur3 When should SaltStack users willing to beta test RAET start testing RAET with 2015.8.0rc5 or higher?
08:55 chiui joined #salt
09:00 seatan joined #salt
09:01 MadsRC Any way to match, in salt top.sls, all minions, except one
09:03 hipikat MadsRC: compound matcher with a 'not' operator?
09:03 babilen MadsRC: Use a compound matcher with "* and not THE_MINION_ID_YOU_DONT_WANT"
09:03 MadsRC uh, thanks! :D Wanted to make sure before I made this change on a lot of hosts :D
09:04 babilen (or whatever you'd like to use to identify that one minion)
09:08 linjan_ joined #salt
09:09 Ztyx joined #salt
09:13 zerthimon joined #salt
09:19 Ztyx left #salt
09:26 john joined #salt
09:26 Guest25438 hello guys, I have a little question. what is the format to have several mignons as a target. the doc says "python list format"
09:26 Guest25438 I tried everything, and nothing work
09:27 rubenb "['mignion1', 'mignion2']"
09:27 Guest25438 its what I thought, but same error
09:27 Guest25438 I'll try again
09:27 rubenb That's python list format
09:27 Guest25438 thx rubenb
09:28 rubenb Otherwise, try "[\"mignion1\", \"mignion2\"]"
09:28 Guest25438 does not work. I tried salt "['mignion1', 'mignion2']" 'state.sls' test and I got "no minion was found. if I try minion1 alone, or minion2, it's ok
09:29 Guest25438 ok.
09:31 Guest25438 not working either. I don't understand :-/
09:32 * ze- looks at the topic. ... still no package for debian 2015.5.5 :(
09:34 rubenb Guest25438:  Try: `salt -L minion1,minion2 test.ping`
09:35 rubenb That should work according to: https://docs.saltstack.com/en/stage/ref/cli/index.html
09:37 Guest25438 rubenb...it works. please marry me :D
09:37 Guest25438 thanks a lot!!!
09:38 rubenb No problem.
09:57 babilen mignion :)
09:58 chiui joined #salt
10:01 |Fiber^| joined #salt
10:09 ctolsen joined #salt
10:17 otter768 joined #salt
10:22 wnkz joined #salt
10:23 goldbuick__ joined #salt
10:24 aqua^c joined #salt
10:38 JDiPierro joined #salt
10:42 Furao joined #salt
10:42 TyrfingMjolnir joined #salt
10:47 lupulcelbun joined #salt
10:47 joe_n joined #salt
10:57 kukacz joined #salt
10:58 giantlock joined #salt
10:59 jmreicha_ joined #salt
11:06 shiriru joined #salt
11:07 amcorreia joined #salt
11:10 LinuxHorn joined #salt
11:10 grepory joined #salt
11:19 rubendv joined #salt
11:20 simon_saltappren joined #salt
11:21 simon_saltappren hey people, how can I pull a file from a minion (i'm using salt-ssh) to the master. the thing is that I want to bootstrap my saltmaster (with sign verification) so I need to install there stuff (salt-ssh add PPA,install salt-master etc.) and pull the certificate from /etc/salt/pki/master/master.pub...
11:23 simon_saltappren later I can bootstrap minions with the same technique... salt-ssh 'minion-*' minion.sls and there I will again add PPA, install package and push master's cert so they can verify it
11:23 simon_saltappren I tried cp.push but it doesn't work with salt-ssh, unfortunately... but I came up with the idea that maybe I can pass the content of the file (master.pub) to grains... is that even possible?
11:24 rubenb Yes, it's possible, but grains are insecure.
11:24 simon_saltappren I want to have a state in sls cmd.run "cat /etc/salt/pki/master/master.pub" and put the output in a variable and later set grains some key to the value of that variable
11:25 rubenb You could do a 'salt hostname cmd.run "cat /filename"'
11:25 simon_saltappren public certificate doesn't need to be secret it's not the private key
11:25 simon_saltappren yea but then I got json output... how can I redirect remote cmd to a local file?
11:26 simon_saltappren or better how can I do it in SLS file (that's why I thought about grains here)
11:26 simon_saltappren 'salt hostname cmd.run "cat...": there is json or that colored one output...
11:27 rubenb You can prepend it with an outputter module.
11:27 rubenb For example:
11:27 rubenb --output=txt
11:27 rubenb These are all built-in: https://docs.saltstack.com/en/latest/ref/output/all/index.html
11:28 simon_saltappren another way to bypass it would be to run state in the context of a localhost from which I run salt-ssh (so my temp salt-master)... so I can for instance have all states in SLS file that will be executed on the remote host
11:28 simon_saltappren but one of them will be executed locally.. then i can do a simple 'scp <hostname>:/etc/salt/pki..'
11:28 simon_saltappren and can I somehow access that output in SLS ??
11:29 simon_saltappren create a state which will store the output of that CMD in a variable so I can set there that grains
11:32 simon_saltappren because if I understand correctly that --output=txt/raw is a parameter or salt binary itself... not the param of the module (that one in SLS)... so how can I access that output inside SLS?? to set that grain to that value?
11:33 simon_saltappren besides code inside SLS is evaluated before execution of the state? or after? cos if it's evalued on the master then I won't be able to do that :-( cos I need to run a cmd remotely.. grab the output and then put it into a global variable (grains)
11:33 TyrfingMjolnir joined #salt
11:40 JDiPierro joined #salt
11:40 scoates joined #salt
11:42 aqua^c joined #salt
11:44 aparsons joined #salt
11:50 ITChap joined #salt
11:52 ITChap HI everyone
11:53 ITChap I have a lot of issues with my saltmaster on SmartOS
11:53 ITChap did anybody else encountered issues ?
11:54 ITChap Request timeout 80% of the time
11:54 ITChap even test.ping
11:54 ITChap I doesn't seem to be linked to the key rotation
11:54 Norrland which version of salt?
11:59 Ztyx joined #salt
11:59 zer0def joined #salt
12:00 kawa2014 joined #salt
12:03 ITChap Norrland, 2015.5.3
12:04 rofl____ babilen: got any feedback on your 2015.8.0 issues?
12:08 pratikmallya joined #salt
12:12 tmclaugh[work] joined #salt
12:15 babilen rofl____: Most severe ones are fixed in -2
12:16 rofl____ babilen: good
12:16 pratikma_ joined #salt
12:18 otter768 joined #salt
12:18 st_iron joined #salt
12:18 st_iron hi
12:19 ITChap Just upgraded to 2015.8.0 on my smartos
12:19 ITChap looks better now
12:19 ITChap but I have some errors "Bad load from minion"
12:26 vovcia joined #salt
12:26 vovcia hello :) im having troubles with use of mine.get in state
12:27 vovcia im trying to use jinja in sls: {% for server, addr in salt['mine.get']('*', 'network.ip_addrs', expr_form='pillar').items() %}
12:27 vovcia salt '*' mine.get '*' 'network.ip_addrs' works ok (displays IP)
12:28 vovcia salt 2015.5.3
12:32 amcorreia joined #salt
12:36 giantlock joined #salt
12:38 dendazen joined #salt
12:39 Ztyx joined #salt
12:40 Ztyx left #salt
12:41 toddnni joined #salt
12:41 seatan joined #salt
12:46 dthom91 joined #salt
12:48 ITChap vovcia, '*' doesn't work because you specify that you use a pillar
12:48 ITChap try to run salt-run  mine.get '*' 'network.ip_addrs pillar
12:48 ITChap and salt-run  mine.get '*' 'network.ip_addrs compound
12:49 ITChap the first one is exactly the command used in your for loop
12:49 ITChap the second one use a compound instead of pillar
12:49 seatan joined #salt
12:49 ITChap {% for server, addr in salt['mine.get']('*', 'network.ip_addrs', expr_form='compound').items() %}
12:49 vovcia hmm pillar returns nothing and compound actual ip's
12:49 ITChap should work
12:52 vovcia ITChap: works like a charm, thank You :)
12:52 ITChap :) you're wlecome
12:53 codekobe joined #salt
12:53 neilf joined #salt
12:54 Ztyx joined #salt
12:55 losh joined #salt
12:58 sastorsl joined #salt
12:58 dthom91 joined #salt
12:59 sastorsl file.recurse and include_pat: 'E@.+\.conf$' - I would expect this to match "test.conf" but not "test.confX", but according to my tests it does match the latter. Anybody else seen this - or am I mistaken?
12:59 sastorsl *matches both*
13:00 sastorsl salt-2015.5.3-3.el6.noarch
13:01 seatan joined #salt
13:02 simon_saltappren how can I execute something on a minion (run a command, grab ip address etc) and later make it available for other minions, so I can for instance inject it inside states?
13:03 numkem joined #salt
13:03 simon_saltappren for instance i'd like to have a state called gather_data.sls and later a dependent state minion2.sls which will somehow use info gathered during the gather_data.sls execution
13:04 numkem joined #salt
13:05 simon_saltappren so 3 questions. how can i make two states dependent and run one after another when executed successfully for instance?... how can I pass data between states? and how can I gather data from minions and pass that to other states?
13:05 JDiPierro joined #salt
13:06 AlexMur joined #salt
13:06 sastorsl simon_saltappren: I've not worked with this, but https://docs.saltstack.com/en/stage/topics/mine/index.html
13:07 kawa2014 joined #salt
13:08 wnkz_ joined #salt
13:09 XenophonF joined #salt
13:09 DammitJim joined #salt
13:09 seatan_ joined #salt
13:10 dthom91 joined #salt
13:11 kavakava joined #salt
13:15 malinoff joined #salt
13:16 XenophonF anyone else running salt minions on server core editions of windows?
13:16 Cyis simon_saltappren: making one state dependent on another sounds like you want to look at orchestration
13:17 Ztyx left #salt
13:17 ferbla joined #salt
13:18 bhosmer joined #salt
13:18 __monty__ joined #salt
13:19 AlexMur joined #salt
13:19 stephanbuys joined #salt
13:20 bfoxwell joined #salt
13:20 simon_saltappren Cyis: exactly. I want to spawn a bunch of different services on multiple servers, so I created an SLS for each service. And I'd like to instance inject current IP address from one minion to another which runs a dependent service...
13:20 Cyis XenophonF: not sure about 'server core editions' but we have minions running on 2003, 2008 R2 and 2012 R2
13:20 simon_saltappren another case is that one service when installed generates self-signed certificate and I'd like to download that public cert from that minion and inject it to other minions, so they can verify the connection
13:21 perfinion isnt salt-mine what you use for stuff like that?
13:21 Cyis perfinion: that's what I would think too but I've not dealt with it myself yet
13:22 perfinion i havent used salt mine either so not sure
13:22 perfinion i just kinda hacked up the configs lol
13:23 timoguin joined #salt
13:25 simon_saltappren I'm testing it right now (salt.mine)... but yea it looks promising to grab data from minions but what about dependencies? and passing it from one state to another... is there a standard way to do it? should I for instance set some pillars? (to pass data, I still don't know how to make one state to wait for another)...
13:26 __monty__ I would like to version my entire salt configuration in a single repository. What's the best way to go about this? Symlinks? Also, what to do with formulas, submodules?
13:27 racooper joined #salt
13:27 hasues joined #salt
13:27 hasues left #salt
13:27 Ztyx joined #salt
13:28 subsignal joined #salt
13:28 _JZ_ joined #salt
13:31 XenophonF Cyis: so at least windows server 2008 r2 server core doesn't come with various things salt expects, like powershell
13:31 phw_ joined #salt
13:31 XenophonF plus, i think the canonical way to install windows features is to use dism---even on windows server 2012 and newer
13:32 phw_ Trying to install a kernel on centos via saltstack fails for the kernel-package. Normal install does not work, but with "verify" I get the error that several files the 'mtime' mismatches and /oot/vmlinuz-MYVERSION is missing;
13:33 giantlock joined #salt
13:35 Cyis XenophonF: I'll confess I haven't done much with salt on the windows side but being as our automation engineer that did deal with the windows servers left last Friday it is now going to fall to me
13:35 cpowell joined #salt
13:35 XenophonF ah, that sucks, Cyis
13:36 Cyis XenophonF: if you saw some of his states you'd say it was a blessing... my first task is to re-write 99% of them
13:36 XenophonF oh :(
13:38 Cyis XenophonF: like one directory that has ~35 states that are pretty much copy and paste duplicates with only binary payload and a couple variables changes
13:38 kawa2014 joined #salt
13:38 * XenophonF winces
13:38 Cyis coupled by the state fails if ran against a minion not coded in the state itself
13:40 Cyis he does a set map = salt['grains.filterd_by']({ ... }, grain='host') where everything is duplicated but only for the hosts it would normally be ran against
13:41 Cyis rather than put it in a pillar that would be loaded by the target minions
13:41 toddnni joined #salt
13:41 john joined #salt
13:42 protoz joined #salt
13:43 tanta joined #salt
13:43 mpanetta_ joined #salt
13:52 dthom91 joined #salt
13:55 clintberry joined #salt
13:56 DammitJim joined #salt
13:59 dthom91 joined #salt
14:02 andrew_v joined #salt
14:03 Ztyx joined #salt
14:05 dyasny joined #salt
14:05 anotherZero joined #salt
14:07 Ztyx joined #salt
14:08 CeBe joined #salt
14:12 debian112 joined #salt
14:13 winn_st joined #salt
14:18 otter768 joined #salt
14:19 toddnni joined #salt
14:19 tanta joined #salt
14:21 losh Hello, I'm including from an sls, which has a file.managed, in the state that's including the parent state, I want to ensure the file that's managed is _absent_ .. is that supported in salt?
14:21 perfinion losh: you want file.absent, not file.managed then i think
14:22 losh perfinion, OK, so it's not an extend?
14:23 perfinion losh: https://docs.saltstack.com/en/stage/ref/states/all/salt.states.file.html#salt.states.file.absent
14:24 dthom91 joined #salt
14:24 losh hmm, i'm  missing something obvious here.  Thanks for the tip perfinion, I'll try figure this out later.
14:26 aqua^c joined #salt
14:27 pviktori_ joined #salt
14:30 zwi joined #salt
14:31 kaptk2 joined #salt
14:32 XenophonF i'm torn - i get why the win_servermanager module was written against powershell, but even on windows server 2012 r2, you can't use powershell to install all windows features on all versions of windows
14:32 XenophonF the right way to do it is to use "dism /online /enable-feature"
14:33 XenophonF for example https://msdn.microsoft.com/en-us/library/cc731178.aspx#BKMK_command
14:33 XenophonF or servermanagercmd
14:39 pravka joined #salt
14:39 XenophonF powershell just isn't guaranteed to be installed on all versions of windows
14:42 lexter joined #salt
14:43 clintberry joined #salt
14:43 bhosmer joined #salt
14:44 Guest66234 dism or DSC (quite powerful!). but indeed, PS must be enabled before
14:45 zer0def joined #salt
14:45 XenophonF even servermanagercmd isn't guaranteed to be installed
14:45 XenophonF it isn't by default on the server core edition of window server 2008 r2
14:45 Rumbles joined #salt
14:46 timoguin joined #salt
14:47 Brew joined #salt
14:47 breakingmatter joined #salt
14:48 Rumbles joined #salt
14:48 Rumbles Hi,
14:50 Rumbles I ahve just run a salt command to distribute a manifest out to a number of servers (using '*' instead of hostname), 3 of the servers returned errors, I wanted to retry just those 3 servers, is there a way to put 'hostname1,hostname2' ? I tried seperating with comma and ; but neither worked....
14:51 Rumbles I looked in the docs but I couldn't find what I was looking for...
14:52 Guest66234 rumbles
14:52 Guest66234 I had the same issue
14:52 Guest66234 you have to specify -L
14:52 Guest66234 salt -L hostname1,hostname2
14:52 Guest66234 https://docs.saltstack.com/en/stage/ref/cli/index.html
14:52 Rumbles ah, nice one, thanks Guest66234 !
14:53 Guest66234 if I understand well your issue!
14:53 Guest66234 but if it works with command line
14:53 Guest66234 I did not succeed to make it work with web api :'(
14:58 timoguin joined #salt
14:59 pratikmallya joined #salt
14:59 Rumbles thankfully I'm not sing the web API yet Guest66234 :)
14:59 Rumbles s/sing/using
14:59 tanta joined #salt
14:59 beneggett joined #salt
15:00 Grokzen Guest66234, Do you mean the salt rest cherrypy web api?
15:00 laax joined #salt
15:02 timoguin joined #salt
15:03 mohae_ joined #salt
15:03 PeterO_ joined #salt
15:05 theologian joined #salt
15:05 pratikma_ joined #salt
15:06 wnkz joined #salt
15:07 racooper joined #salt
15:08 vdmo joined #salt
15:08 sdm24 joined #salt
15:12 illern joined #salt
15:12 Myra joined #salt
15:13 Eureka703 joined #salt
15:15 Guest66234 grozken, yes
15:15 Guest66234 cherrypy. I cannot success to send a state.sls command with several minions
15:16 Guest66234 if target=minion1,minion2 => nothing happens
15:16 XenophonF Guest66234: the api kind of assumes that you'll build the list yourself, programatically
15:16 Guest66234 yep
15:16 Guest66234 in fact, I just need to find where to tell the "-L" argument
15:17 Guest66234 I tried the args but since I use a state.sls command, it is looking for the state file named "-L"...
15:17 Guest66234 if I tell target=minion1,minion2 -L => nothing happens. no return
15:18 jeddi joined #salt
15:19 kawa2014 joined #salt
15:19 dyasny joined #salt
15:19 Ztyx joined #salt
15:20 aristedes joined #salt
15:20 ALLmightySPIFF joined #salt
15:20 Guest66234 regarding the documentation, and example on internet, I have something like that fun="state.sls" tgt="minion1,minion2" args="['mystatefile',' -L']"
15:20 Guest66234 but that's not good. I keep trying
15:21 DaveQB joined #salt
15:23 pcn Guest66234: if you have a list, use the list expansion
15:23 pcn Something liek this: client.cmd(['saltmaster','datanode1'], 'test.ping', expr_form='list')
15:24 pcn The shell expander doesn't seem to work with comas at the moment - maybe that's a bug?
15:25 pcn darkhuy was working on this on Friday, I don't know if he got any deepeer into it.
15:25 XenophonF how on earth is the default shell on windows not cmd?
15:26 pcn What is the default?  Powershell?
15:26 pcn command.com?
15:26 XenophonF The default's /bin/sh!
15:27 pcn For salt?  Yeah, I think that makes sense in a way - you get a sane shell
15:27 kevinquinnyo joined #salt
15:27 XenophonF Except there is no Bourne shell installed on Windows by default
15:27 XenophonF or even installed alongside salt-minion
15:27 pcn I'm surprised about the latter
15:27 slav0nic joined #salt
15:28 Newbie joined #salt
15:28 keimlink joined #salt
15:28 XenophonF maybe there's some python magic wrapper around cmd.exe
15:28 XenophonF because salt-call cmd.run dir works
15:28 Cyis anyone got a good method for dealing with XML files? trying to use most of the file.* methods are problematic at best
15:29 XenophonF Cyis: not yet, but i'm in the same boat
15:29 Cyis I'd like to avoid having to maintain full copies of the files and use file.managed to simply change one item
15:30 DammitJim joined #salt
15:30 XenophonF and coming up with some way to serialize XML as YAML is difficult
15:30 Cyis I'd seen a mention on the salt docs about something to do that but couldn't find any details beyond that
15:30 keimlink joined #salt
15:31 pcn XenophonF: If I needed it badly, I'd suggest using the python renderer and bring in the xml and render the states that way.
15:32 Fiber^ joined #salt
15:32 XenophonF pcn: still, how would one put moderately complicated xml data into pillar?
15:33 pratikmallya joined #salt
15:33 Guest46459 Hello there. As I am new to Saltstack, I have a question. Would it be possible to run e.g. msinfo32 on a Windows-Minion with the cmd-parameter /report and receive the resulting text file on my master machine?
15:33 XenophonF tbh i punted it to ext_file :(
15:33 XenophonF i couldn't come up with a better way
15:35 Cyis XenophonF: http://bit.ly/1UR4frf is the only mention of how I could find but it's not functional
15:37 XenophonF thanks Cyis - i'll have to look for this badgerfish formatter
15:38 Cyis XenophonF: I couldn't find any badgerfish formatter in my searches
15:38 Cyis that was apparently the only place I could find it mentioned
15:38 pratikma_ joined #salt
15:39 Cyis though if that could be found and made to work I think it'd solve some of the issues I'm having
15:41 Gardinero joined #salt
15:41 XenophonF the badgerfish web site had odd looking spam on it, too
15:41 Guest46459 left #salt
15:42 rim-k joined #salt
15:43 XenophonF hm, maybe badgerfish.ning.com isn't the official page? i dunno
15:43 Guest66234 @pcn, thanks but I'm not sure that your expr-form is easy to use with cherrypy
15:43 pcn XenophonF: Yeah, I was thinking of keeping it as text, but that's probably not what you want.
15:44 jalbretsen joined #salt
15:44 Guest66234 pnc, I'll try something. maybe something to add to the POST query
15:45 pcn Guest66234: for rest_cherrypy, are you using pepper?
15:46 zer0def joined #salt
15:46 Guest66234 nope
15:46 Guest66234 I have created a wrapper to use it in .Net
15:47 Guest66234 open source is great, but to integrate it with microsoft technologies, it takes some additional work :)
15:48 aranhoide joined #salt
15:48 pcn Pepper is a pretty thin layer - it's useful, but it also works as documentation.  The call I posted does work via pepper's api
15:50 pdayton joined #salt
15:50 Tecnico1931 joined #salt
15:51 aranhoide how reliable is RAET considered in 2015.5.5?  are people using it in production, or is it still in a very experimental phase as the docs suggest?
15:51 Guest66234 I'll try your idea, it smells good!! thanks :)
15:52 DammitJim weird... I thought states were performed in order
15:55 XenophonF i wish there was a perl renderer or something
15:56 XenophonF i need to process a command output in a module and know exactly how to do it in perl :)
15:58 DammitJim should my init.sls have a definition of what states it calls or should it have the details of the states?
15:59 DammitJim I have an init.sls that has some configuration stuff, but it also references other state executions
15:59 Aikar joined #salt
16:00 pcn XenophonF: post it and we can help cure your addiction
16:00 aparsons joined #salt
16:00 Aikar hi - our minions lost connection to master, and doesnt appear to be reconnecting. restarting minion brought it back... how come its not auto reconnecting? is that a config we need to setup?
16:01 XenophonF i punted and am going to write my own windows_features state
16:01 pdayton joined #salt
16:01 XenophonF so i need to process the output of `dism.exe /online /get-features`
16:01 XenophonF hold on, let me paste it somewhere
16:03 XenophonF https://gist.github.com/xenophonf/7d5b814b408071bfbb46
16:04 XenophonF maybe i can feed the entire thing to match.re or something
16:05 XenophonF using a regexp along the lines of Feature Name : (.*)\nState : (.*)
16:06 RedundancyD joined #salt
16:06 XenophonF er, re.match() i mean
16:07 pcn Usually in python you're better off if you can avoid re (just because you often can avoid it)
16:08 pcn That's jsut hyperbole though, let me see...
16:08 impi joined #salt
16:08 ekristen joined #salt
16:08 alemeno22 joined #salt
16:09 pcn That output looks super-consistent.  Are there any surprises to it?
16:10 pdayton1 joined #salt
16:10 XenophonF i dunno how cmd.run handles newlines in the output - could be \r\n, could be \n
16:10 XenophonF i need to rtfs
16:15 JDiPierro joined #salt
16:17 aparsons_ joined #salt
16:19 otter768 joined #salt
16:20 Bryson joined #salt
16:23 jodv joined #salt
16:24 jodv joined #salt
16:24 pcn XenophonF: is this concise enough to help? https://gist.github.com/pcn/237f2ea459121a48c68c
16:24 bhosmer joined #salt
16:26 pcn Grr, I messed up my iterator, hang on a tic
16:27 JDiPierro joined #salt
16:27 JDiPierro joined #salt
16:27 pcn There we go
16:28 pcn I'm going to expect that the runtime knows what to do with newline based on the platform, tho.  I can't test that at the moment
16:31 XenophonF thanks pcn - I'll give it a try. my multiline regexp isn't working
16:33 spiette joined #salt
16:33 dthom91 joined #salt
16:34 mrwboilers joined #salt
16:37 pdayton joined #salt
16:37 shadowbeast joined #salt
16:37 Ztyx joined #salt
16:38 mrwboilers Is there something that needs to be done to remove a pillar? (Besides saltutil.sync_all or state.highstate?)
16:39 mrwboilers I was playing around with a pillar, but for now I just want to get rid of it. I moved it to another directory so that my salt/pillar directory is empty.
16:39 hasues joined #salt
16:39 hasues left #salt
16:39 mrwboilers Yet whenever I try to apply a state, it fails saying that it couldn't render the pillar's sls file.
16:39 mrwboilers It also says to see the master log for details, but the master log doesn't seem to be logging anything.
16:40 Grokzen joined #salt
16:41 XenophonF pcn: this is weird - re.search('Feature Name : ([A-Z0-9-]+)\sState : Disabled', output, re.MULTILINE) matches
16:42 XenophonF but the same thing with "State : Enabled" in the regexp does not match
16:42 pdayton joined #salt
16:42 XenophonF maybe it isn't doing multiple matches
16:44 XenophonF yeah, that's it - it gets one match and then stops
16:44 writtenoff joined #salt
16:44 mrwboilers I can't find any references to that pillar in the state I'm trying to apply either.
16:44 XenophonF i'd better use findall or finditer
16:46 laax joined #salt
16:46 XenophonF hah botched the regexp too, need to look [a-z] as well as [A-Z]
16:48 bhosmer joined #salt
16:49 XenophonF pcn, I was able to get the regexp working - https://gist.github.com/xenophonf/7d5b814b408071bfbb46#file-list_installed-py
16:53 pdayton joined #salt
16:58 wendall911 joined #salt
17:00 TOoSmOotH anyone able to point me in the rigt direction. I have a numerical value for something in a pillar lets say apples: 2
17:00 TOoSmOotH and I need to in the jinja do smething for the total counts of apple and increment the it
17:00 TOoSmOotH so like for each print apple-1 apple-2
17:01 helgi Hi.  I just installed the salt-minion on a win2k12r2 box and I'm not able to call anything from the win_ip module. Am I missing something in the installation? ("Module 'win_ip' is not available.")
17:01 TOoSmOotH if appleas was 10 it would be apple-1 apple-2 apple... apple-10
17:03 adelcast left #salt
17:04 davisj TOoSmOotH: does this help? http://jinja.pocoo.org/docs/dev/templates/#range
17:04 zwi joined #salt
17:05 SunPowered joined #salt
17:07 adelcast joined #salt
17:07 Akhter joined #salt
17:08 aqua^c joined #salt
17:10 ahammond I have a fairly standard map.jinja that I'm importing. It looks like the pillar's foo.lookup isn't actually being merged. I've confirmed that the pillar is available on all servers (it's under base:* in pillar's top.sls). Any thoughts?
17:12 Thiggy joined #salt
17:13 Thiggy When I run salt-key, it lists 2 keys with the same hostname in Accepted and Denied keys. How can I delete only the one that exists in "Denied" and leave the one in "Accepted" alone?
17:14 TOoSmOotH davisj: yea I will give that a whirl thanks
17:17 bhosmer joined #salt
17:19 sdm24 Thiggy: I think you can remove the file in /etc/salt/pki/master/minions_rejected for the minion
17:19 Thiggy Lemme try that.
17:19 forrest joined #salt
17:20 Thiggy @sdm24 Yup that did the trick. Thanks.
17:20 forrest joined #salt
17:21 sdm24 good to hear
17:24 pdayton joined #salt
17:24 llua^_^AznSmile- joined #salt
17:29 TOoSmOotH davisj: got it working! Thanks a ton!!
17:33 aw110f joined #salt
17:33 flyx is there a salt state to insert a row in a postgres db if it doesn't exist?
17:39 jmreicha joined #salt
17:40 jodv joined #salt
17:41 katyucha joined #salt
17:41 forrest flyx: Only via https://docs.saltstack.com/en/stage/ref/states/all/salt.states.postgres_schema.html as far as I'm aware.
17:41 forrest The postgres states weren't really designed for row insertion, whatever app you are using should be doing that.
17:43 seatan joined #salt
17:48 saffe joined #salt
17:48 Thiggy joined #salt
17:49 pdayton joined #salt
17:50 Akhter Hey guys, is there a way to deploy a map of nodes in multiple AZ's for ec2?
17:52 flyx forrest: okay, thanks.
17:53 forrest flyx: NP
17:57 ferbla_ joined #salt
17:58 baweaver joined #salt
17:59 pdayton joined #salt
18:03 bluenemo joined #salt
18:03 bhosmer joined #salt
18:05 timoguin joined #salt
18:06 alemeno22_ joined #salt
18:09 jodv joined #salt
18:10 larsfronius joined #salt
18:12 giantlock joined #salt
18:16 murrdoc joined #salt
18:18 lowfive joined #salt
18:20 otter768 joined #salt
18:25 Thiggy joined #salt
18:30 Akhter joined #salt
18:31 stevednd joined #salt
18:32 baweaver joined #salt
18:32 bhosmer joined #salt
18:35 timoguin joined #salt
18:43 Viper233 joined #salt
18:45 Thiggy joined #salt
18:46 cyborg-one joined #salt
18:47 XenophonF can anyone point me to the docs that describe return values expected from salt modules?
18:50 timoguin joined #salt
18:50 subsigna_ joined #salt
18:51 notnotpe_ joined #salt
18:51 anotherZero joined #salt
18:52 kossy joined #salt
18:54 pcn buffer 18
18:54 pravka joined #salt
18:55 pravka joined #salt
18:58 deus_ex joined #salt
18:59 pravka joined #salt
19:02 bhosmer joined #salt
19:04 ferbla joined #salt
19:05 ferbla_ joined #salt
19:09 anotherZero joined #salt
19:10 |Fiber^| joined #salt
19:11 kossy joined #salt
19:14 jodv joined #salt
19:16 GreatSnoopy joined #salt
19:19 bfrog joined #salt
19:19 bfrog hey so... what happens when the minions get updated before the master
19:19 bfrog it seems like they can't talk to the master then anymore?
19:20 bfrog shouldn't these things have versioned protocols or something to be backwards/forwards compatible
19:21 rubendv joined #salt
19:22 bfrog I'm getting     TypeError encountered executing state.highstate: get_pillar() got an unexpected keyword argument 'pillarenv'. See debug log for more info.
19:27 ntropy XenophonF: there's no such doc, look at the source for existing modules, you'll be able to figure it out
19:28 XenophonF ntropy: i was afraid that was the answer :)
19:28 ntropy bfrog: i'm pretty sure the recommended upgrade approach was to upgrade the master first :)
19:29 ntropy XenophonF: you fear python?  don't, its really not that bad
19:29 XenophonF ntropy: not at all - i'm pretty comfortable writing idiomatic python
19:29 ntropy ok, so why are you still here? :)
19:30 pdayton joined #salt
19:30 XenophonF Salt's code base can be a little tricky to grok?
19:31 ntropy ill admit i haven't poked around much further beyond modules, grains, runners and returners
19:31 Cyis hmm... seems my if/elif/else block is being totally disregarding
19:31 bfrog ok well its all upgraded now
19:32 bfrog but its still giving me that pillarenv error
19:32 ntropy Cyis: happens all the time :)
19:32 Cyis found the cause and it's not my conditional
19:33 Cyis err... or at least I thought I had
19:33 ntropy bfrog: you've not provided any real info beyond the error message, i've no idea whats up
19:34 bfrog on the master I do salt '*' state.highstate
19:34 bfrog each attached minion reports that back
19:35 ntropy ok, have you tried to do salt-call -l debug state.highstate from one of those minions?  might give you more detail where thats failing
19:35 ntropy or run your master in debug mode, whatever is easier
19:37 Cyis anyone see fault (or way to improve) in https://gist.github.com/jbouse/bb62b0472d48927bde2c
19:38 Cyis problem I'm having now is a minion with 'grains.setval environment development' performed is hitting with prefix == 'broken' which it shouldn't
19:39 pdayton joined #salt
19:48 jmreicha_ joined #salt
19:48 sdm24 Cyis: what does salt 'minions' grains.item environment output?
19:49 bfoxwell joined #salt
19:52 baweaver joined #salt
19:53 aparsons joined #salt
19:58 tardigrade joined #salt
20:00 pdayton joined #salt
20:00 cresten joined #salt
20:01 cresten hey guys! I’m getting an error currently on gce:
20:01 cresten salt-cloud: error: There was a profile error: The defined key_filename
20:01 cresten Any direction of how to fix this issue? vanilla install, just trying to spin up some minions using the default settings
20:03 Cyis sdm24: https://gist.github.com/jbouse/0b9be04b6bd70dbc9256 has both now
20:04 Cyis sdm24: I got rid of the else and now it just simply doesn't have that element defined when rendered
20:05 sdm24 Cyis: so now it returns nothing instead of "prefix: dev"?
20:07 fxhp joined #salt
20:07 keimlink joined #salt
20:10 mrwboilers I have a state with cmd.run: I'm trying to get a jinja conditional to work for the name. The conditional seems to work, but the rest of the cmd.run options after the conditional seem to be ignored. Any idea why that would be?
20:10 pdayton joined #salt
20:13 saltstack393 joined #salt
20:14 saltstack393 Is there a way to schedule grains.items and send it to a returner?
20:14 giantlock joined #salt
20:15 zmalone joined #salt
20:15 saltstack393 I can run salt 'host' grains.items --return blah, but I would like to put it into a schedule pillar and push it to all the hosts
20:15 timoguin joined #salt
20:16 murrdoc joined #salt
20:18 baweaver joined #salt
20:18 cresten joined #salt
20:18 larsfronius joined #salt
20:20 Mate mrwboilers: salt is quite loosly copled in regards of the jinja|yaml|states stack, so you would better cut your problem to layers
20:20 PeterO_ ermm.. anyone ever experience an issue where your saltmaster implodes? We had it working and then all of a sudden this: https://gist.github.com/polds/2003affb9699429a6c3c
20:20 jodv joined #salt
20:21 otter768 joined #salt
20:22 pdayton joined #salt
20:23 PeterO_ Nevermind.. I was in a directory that was rewritten while I was in it by another user.
20:23 Ac-town is there anyway I can easily test a jinja template that has a salt command in it? I'm trying to figure out how to break down this dict so I can use it in the template
20:24 babilen Ac-town: SLS file?
20:24 Ac-town nah this is just a template that becomes a config file
20:25 Ac-town trying to figure out how postgres.db_list is structured so I can pull all the names of the databases out
20:25 babilen https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.cp.html#salt.modules.cp.get_template
20:25 babilen That might help
20:26 babilen (that was the alternative I had in mind: https://docs.saltstack.com/en/stage/ref/modules/all/salt.modules.state.html#salt.modules.state.show_sls )
20:26 Ac-town I think the first one might work, i'll give it a try, thanks
20:27 cresten joined #salt
20:27 babilen Sure, the second one was for the "SLS → true" answer :)
20:27 Ac-town noted :)
20:29 kevinquinnyo joined #salt
20:29 jodv joined #salt
20:30 Ac-town sweet just what I wanted
20:30 ahammond Ok, I've narrowed my issue down to pillar visibility. When I run salt-call pillar.get foo, I get exactly what I'd expect. When I run a state.sls that references that pillar, again, works. However, when I do a salt-run state.orch and my orchestration refers to that pillar... nothing. Help?
20:30 ahammond the pillar involved is in base:* in top.sls, so should be visible on every machine.
20:36 opensource_ninja joined #salt
20:37 jmreicha joined #salt
20:38 cresten joined #salt
20:41 winn_st can you use pure python (#!py) in pillars?
20:41 ahammond winn_st: yup
20:41 winn_st how do you access grains.  master log is telling me 'grains' is undefined
20:42 ahammond with the caveat that you want to remember what pillars are intended for and not abuse them.
20:42 ahammond winn_st that would depend on the context from which you wish to access them. From the cli, salt my_minion grains.get my_grain
20:43 winn_st sorry, i mean in a pillar file
20:43 ahammond winn_st sure, same as you do it in a standard state.sls file. just a sec:
20:44 ahammond https://gist.github.com/ahammond/7d0482160a16424b44fc
20:44 aqua^c joined #salt
20:45 JDiPierro joined #salt
20:46 tardigrade I think he's asking about how to use grains within pure python pillars
20:48 WonderSlug joined #salt
20:48 winn_st yes, i have a pillar file with #!py at the top.  however, __grains__ does not seem to be populated
20:48 WonderSlug left #salt
20:50 zwi joined #salt
20:53 jodv joined #salt
20:53 cresten joined #salt
20:53 winn_st nvm I think it was because __grains__ was not in the run(): function
20:56 cresten Anyone gotten around this error on GCE?
20:56 cresten salt-cloud: error: There was a profile error: The defined key_filename '[REDACTED]' does not exist
21:00 mrwboilers Mate: Sorry for the late reply -- got sidetracked with other issues. I'm not sure what you mean by cutting my problem into layers.
21:03 Mate i meant jinja doesn't have very much to do with cmd.run
21:04 aparsons_ joined #salt
21:04 jodv joined #salt
21:05 KyleG joined #salt
21:05 KyleG joined #salt
21:05 babilen winn_st: Where are you referencing it?
21:05 Mate so you should either check the result of your jinja rendering and the parsed yaml, or call cmd.run directly
21:06 babilen winn_st: Ah, you figured it out already. __grains__ is being monkey-patched in later on, which is why you can't use it in module scope.
21:06 babilen (stopid, I know)
21:08 nofxrok joined #salt
21:10 keimlink joined #salt
21:12 sgargan joined #salt
21:12 racooper Howdy all. I'm running into an error on 2015.5.5 with a grains.list_present call in init.sls.  The relevant info is in https://gist.github.com/racooper/27cdee5293a861c80bd5
21:15 RandyT greetings all
21:16 RandyT I'm seeing the following error working with ec2 deployments using 2015.08.0
21:16 RandyT https://gist.github.com/rterbush/e3808758ea05ecaaec1d
21:17 ntropy racooper: that looks like value to grains.list_present doesn't like to receive a list, it only accepts a string
21:17 RandyT suspect a permissions problem in EC2, but have assigned allow EC2:* in iam for the role and am able to change termination protection from the command line using salt.
21:19 ntropy RandyT: it would really help if you showed the code that spits out this error as well
21:19 ntropy RandyT: but you probably forgot to pass it the required authentication parameters
21:19 ntropy or gave it the wrong ones
21:20 RandyT just doing salt-cloud -p profile targetname
21:20 larsfronius joined #salt
21:20 RandyT not passing any cred since the machine I am running on has the IAM Role
21:20 RandyT let me share the profile info in the gist
21:21 GabLeRoux joined #salt
21:22 RandyT added profile info as comment
21:22 RandyT del_root_vol_on_destroy: was added to try to quiet this.. have tried with with and without
21:22 RandyT the script succeeds in deploying instance, but continue to get this error.
21:24 gldnspud joined #salt
21:25 RandyT ntropy: does 'keyname' need to be a key on disk, or just name of key registered with ec2?
21:26 ntropy i'm not sure about that, not used ec2 with salt
21:28 RandyT ntropy: I've struggled to find compadres working with salt on AWS. Any other place for us oddballs to hang out that I might not be aware of?
21:30 sgargan joined #salt
21:34 sunkist joined #salt
21:35 sgargan joined #salt
21:36 dthom91 joined #salt
21:46 mrwboilers Mate: The jinja seems to be rendering correctly as far as I can tell. But when the state runs, the yaml that comes after the jinja seems to be ignored.
21:51 jodv joined #salt
21:55 Mate and does the output of state.show_highstate seem correct? (btw we could help easier if you show a snippet of your code)
21:55 sgargan joined #salt
22:00 sgargan joined #salt
22:02 jodv joined #salt
22:03 Rebus joined #salt
22:03 jodv joined #salt
22:04 ajw0100 joined #salt
22:04 aron_kexp joined #salt
22:05 bhosmer joined #salt
22:06 baweaver joined #salt
22:08 sgargan joined #salt
22:09 pratikmallya joined #salt
22:12 Phtes Where does a fresh salt master install look for state files? master.d/ ?
22:13 ajw0100_ joined #salt
22:14 sdm24 in /srv/salt
22:14 protoz joined #salt
22:15 baweaver joined #salt
22:15 murrdoc salt '*' config.get fileroots
22:16 Phtes ty
22:20 ajw0100 joined #salt
22:21 sgargan joined #salt
22:22 otter768 joined #salt
22:23 dthom91 joined #salt
22:29 Phtes Ah, it didnt make  any of the file structure
22:29 Phtes interesting
22:29 Phtes missing /srv/salt_modules
22:32 s_kunk joined #salt
22:35 PeterO_ Can someone help me figure out how to use local requires? I have the following: https://gist.github.com/polds/31cdef987f4ab1236092 specifically lines 9-11 in init.sls are the ones causing me issues.
22:36 nofxrok joined #salt
22:37 sdm24 PeterO: the require should match the ID that salt uses, i.e. - file: /etc/rc.d/init.d/myservice, - user: myuser
22:37 PeterO_ So even though they're in different files they should still be picked up?
22:37 sdm24 with the include, yeah
22:38 Phtes K got most things fixed, however im on a master server and i created a state tha runs boto to setup an aws instance, when i try running salt-call --local script.sls script i get "Module not available"
22:38 ajw0100 joined #salt
22:39 sdm24 state.sls, not script.sls
22:39 cresten joined #salt
22:39 Phtes Your a genius, I love you
22:39 sdm24 <3
22:39 PeterO_ ah sdm24 yeah thank you :)
22:39 sdm24 no problem
22:39 Phtes bah i used tabs instead of spaces, F me
22:40 sdm24 yeah that will also do it. YAML is whitespace significant
22:40 Phtes any standard for tabs to spacing in salt?
22:40 murrdoc no tabs
22:40 murrdoc 2 space whitespace
22:40 sdm24 depends what editor you are using. You can make vim use 2 spaces for a tab
22:41 Phtes ty
22:41 murrdoc https://github.com/saltstack/salt-vim
22:42 dthom91 joined #salt
22:42 Topic for #salt is now Welcome to #salt | 2015.8.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/
22:43 basepi That happened.
22:43 murrdoc does it work?
22:43 basepi Also note: https://docs.saltstack.com/en/latest/topics/releases/2015.8.0.html#new-saltstack-installation-repositories
22:43 basepi I GUARANTEE NOTHING
22:44 basepi ;)
22:44 murrdoc HAHA
22:44 murrdoc <3
22:44 basepi But yes, I think it does
22:44 ntropy lol :)
22:44 sdm24 Great on the day before I leave for vacation
22:44 basepi Oh, and before you ask, Ubuntu packages are also coming.
22:44 murrdoc hey basepi where are the
22:44 murrdoc oh ok :)
22:44 basepi sdm24: that's the best time. It means you can (and should) put off upgrading until you come home. xD
22:44 basepi murrdoc: hahaha
22:45 iggy sdm24: don't be a wuss, just upgrade real quick
22:45 basepi Don't worry, this time around I put in a randomizer so it would only disable compound matching for about 25% of commands
22:45 * basepi ducks
22:45 jodv joined #salt
22:46 cresten joined #salt
22:46 murrdoc iggy cant upgrade anymore
22:46 iggy basepi: would it be possible to add a link to some info about supported versions to the release notes (i.e. this and 2015.5 are now the only supported versions)
22:46 iggy I have to do paperwork to change things now
22:46 unholycrab joined #salt
22:46 iggy and f*** doing paperwork
22:46 iggy that's for chumps
22:46 murrdoc https://docs.saltstack.com/en/latest/topics/releases/includes/2015.8.0.pull_list.html
22:46 JDiPierro joined #salt
22:46 basepi I mean, technically with the release of 2015.8.0 it is the only supported release. That said, there will be a 2015.5.6 in the next week or two
22:47 murrdoc this needs a human readable versin
22:47 murrdoc version
22:47 murrdoc https://github.com/saltstack/salt/pull/26410
22:47 iggy basepi: well, okay then... still would be nice to document that somewhere (and make it easily accessibly by linking it off some release type pates)
22:47 murrdoc phew
22:47 LUMtnMan joined #salt
22:48 basepi iggy: good call. I think it's stated somewhere but we should make it more explicit.
22:50 iggy theoretically should be able to ditch the requests dependency since you guys made tornado mandatory now?
22:51 iggy Also, are tornado keys compatible with zmq or raet? is it possible to run one master with multiple transports yet?
22:51 sgargan joined #salt
22:54 bastiandg joined #salt
22:55 ntropy basepi: when will docs.saltstack.com be updated for 2015.8.0?
22:55 linjan joined #salt
22:55 whytewolf ntropy: nowish.
22:58 babilen basepi: Will there be "proper" packages, or will repo.saltstack.com be the only maintained repo now?
22:58 ntropy whytewolf: thanks, ill just keep pressing f5 till it appears ;)
23:00 cresten joined #salt
23:04 babilen Argh, packages are still in contrib. Guess, I'll have to wait forthe next release before I can deploy this version (unless joehh uploads one to main)
23:04 babilen Anyway, hanks for all the work. Am looking forward to trying out some of the new features
23:16 RandyT any salt-cloud ec2 users that could help me figure out what is causing the following error?
23:16 RandyT https://gist.github.com/rterbush/e3808758ea05ecaaec1d
23:17 RandyT the ec2 instance running the salt provisioning process has Allow, ec2:* privleges.
23:17 sgargan joined #salt
23:17 farshid_ joined #salt
23:18 SheetiS did you put the IAM profile in your config so it didn't try and use credentials?
23:18 SheetiS https://docs.saltstack.com/en/stage/ref/clouds/all/salt.cloud.clouds.ec2.html#salt.cloud.clouds.ec2.iam_profile
23:19 RandyT SheetiS: there is an iam_profile defined for each profile
23:19 farshid_ Hi there. I'm new to salt and am trying to add redis to my instance so naturally I went for redis formula. I follow the instruction ()https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#adding-a-formula-directory-manually but running salt-call state.highstate doesn't add redis to my server.  Any help would be greatly appreciated. thanks
23:19 RandyT however, at this stage, is it the instance being deployed that is making this modification, or the salt management server?
23:20 RandyT the management server has ec2:* allow credentials, the image being deployed does not.
23:21 SheetiS I run all my salt-cloud commands from my salt master, and it is what runs everything.  If you use states rather than the sald-cloud CLI, then the system you run the cloud states from (typically still the master) would run them.
23:21 RandyT SheetiS: you can see the profile entry in that same gist that shows the iam_profile parameter.
23:21 RandyT I am running salt-cloud on my master.
23:22 RandyT and using salt-cloud sli
23:22 RandyT *cli
23:23 RandyT SheetiS: this is 2015.08 btw
23:25 SheetiS It might be trying to assign that iam_profile to the new VM rather than use it as the access...  I haven't upgraded to 2015.08 yet myself (though I will be soon), and I am also using credentials rahter than an IAM role in my environment, so I am not sure off the top of my head.
23:25 mortis_ left #salt
23:26 RandyT I'm returning to work on this salt environment (very green here) and started with new deploy recently on 2015.08. Not sure if I am discovering a change/bug in 2015.08 from 2015.05...
23:27 aqua^c joined #salt
23:27 RandyT I've not tried to downgrade to see if the problem persists
23:28 mosen joined #salt
23:29 SheetiS When I first was using salt cloud (2014.01 versions), I don't think IAM roles worked with it.  My understanding is the latest STATES do, but I am not sure all of those changes made it into salt-cloud as well.
23:29 RandyT SheetiS: for fun, I assigned the iam_profile which I know has ec2:* action to this instance I am trying to deploy and am finding the same error
23:30 RandyT I was successfully deploying images and getting network device assignments without issue. This change is either some slight change in config, or 2015.08
23:31 druonysus joined #salt
23:31 RandyT I will see if I can manage a downgrade to rule out that issue...
23:32 k00l joined #salt
23:32 RandyT SheetiS: fwiw, I did specifically upgrade from 2014.04 to be able to take advantage of roles, which were working as expected
23:32 k00l hey everyone.
23:33 k00l is it possable for salt to send an email when it completes a state
23:33 k00l ?
23:34 SheetiS k00l: I believe it would be possible a couple of different ways (via reactor and via returners).
23:34 k00l SheetiS: I would liek to customize the email
23:36 SheetiS writing a custom returner might be your best bet then, or you can see if https://docs.saltstack.com/en/latest/ref/returners/all/salt.returners.smtp_return.html meets your needs
23:36 SheetiS I think it supports a template, but I've not done much with it.
23:36 k00l SheetiS: thanks ill look there :)
23:37 aqua^c joined #salt
23:39 SheetiS RandyT: Sorry I wasn't able to help more.  Hopefully someone else around here is using IAM roles on their 2015.08 installation.  I was looking to try and switch soon myself, but I haven't had time and was going to upgrade to 2015.08 first.
23:40 laax joined #salt
23:57 baweaver joined #salt

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