Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-11-15

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

All times shown according to UTC.

Time Nick Message
00:00 UtahDave Benben: make sure that there is a top file here on your master:    /srv/salt/top.sls
00:00 heewa UtahDave: I've been trying to fix problems I'm having with pillar all day. Master hasn't been reading my pillar confs, causing me to be unable to salt, and unable to bring up replica DB boxes I sorely need.
00:00 UtahDave heewa: what version of Salt?
00:01 Benben Utah : oh... i thought the top.sls had to be in /etc/salt nex to master conf file..
00:01 heewa UtahDave: I'm trying to investigate, but I'm at a loss. Not sure what to check next. Oh, I'm running off the develop branch directly, cuz I need a fix I made on it.
00:01 UtahDave Benben: nope.
00:02 UtahDave heewa: I had someone report just a little while ago that the develop branch has a regression on pillar.
00:02 UtahDave heewa: could you open an issue on that?  I'd like to mark  it super high priority. We might be able to fix it today
00:02 jslatts joined #salt
00:03 heewa UtahDave: yessir. Also I'm super comfy with diving into this codebase. Just kinda stuck on figuring out what it's supposed to be doing, so I can spot what it's doing wrong.
00:03 UtahDave mapu: have you had a chance to open an issue on this pillar bug?
00:04 Benben Utah: thx, seems to be working a lot better now
00:04 UtahDave Benben: great!
00:04 Benben Utah: well, at least it seems to be doing something. I'll wait to see if things are installing correctly :)
00:04 Gareth UtahDave: Looking at adding support for Debian networking.  should the output be the same?
00:05 Benben Utah : any idea how i can change this /srv folder ? i thought launching salt-master with -c /my_folder would do the trick
00:05 UtahDave Gareth: yeah
00:07 UtahDave Benben: -c changes the config directory     the top.sls has to go in your file_roots directory
00:07 Benben Utah : i think i saw something in master.conf
00:07 Benben yeaps
00:07 UtahDave Benben: file_roots is defined in your master config
00:07 UtahDave yeah
00:07 Benben thanks, now things start to make sense
00:07 Benben I got a bit confused.
00:07 Benben between conf and srv
00:07 UtahDave yeah, I can understand that
00:08 Gareth UtahDave: okay cool. thanks.
00:08 Benben thanks a lot. If anyone has a saying on the documentation, i really think that a few more pages should be spend on giving and overview of the system
00:08 Benben giving an overview
00:08 Benben with pictures or graphics
00:09 forrest Benben, you mean of just Salt overall?
00:10 mapu UtahDave: I have not yet- got a bit waylaid by work and now dinner.
00:10 Benben forrest : yeap, the master / minion, the configuration files, the sls files and the various command lines + the general steps on how to setup a cluster
00:10 mapu I should have something in the next couple of hours
00:10 forrest gotcha
00:11 Benben forrest : plus, the paradox is that it's probably harder to play with VMs installed on your laptop than in a regular production environment
00:11 forrest yea
00:12 Benben forrest : i remember i struggled a lot trying to understand the difference between vagrant configuration file, then the minion configuration file (which seems silly to me right now, but at the time i never played with vagrant or salt)
00:12 forrest yea I understand
00:13 Benben Maybe i'll take the time to write a full step by step guid on running a master/minion cluster on a mac laptop to start playing.
00:14 Benben because i just reinstalled everything a few days ago and there are a LOT of gotchas if you want to do it correctly.
00:15 seventeenpoint2 I'm getting unexpected compound matching behavior
00:15 Benben (starting with not even trying to install everything manually. Use brew from the start)
00:16 Benben anyway, this IRC channel saved me twice, so thanks everyone. I'll now be able to go to bed.
00:16 jimallman joined #salt
00:17 ajw0100 joined #salt
00:17 forrest Benben, if you make a tutorial like that for mac, can you do it in restructured text formatting wise? Then we could add it to the docs
00:17 jslatts joined #salt
00:18 Benben forrest : what's a "restructured text" ?
00:18 forrest restructured text is a type of formatting to create headers and such
00:18 Benben oh ok
00:18 Benben is there a description of the format ?
00:18 seventeenpoint2 is compound matching with pillar globs not returning anything a known issue?
00:19 forrest yea, there is this if you wanna get crazy: http://docutils.sourceforge.net/docs/user/rst/quickref.html
00:19 Benben Ok, well, i'll be more than glad to help. I'll probably do that indeed.
00:19 Benben I'll try to do it while it's still fresh
00:20 forrest you could also look at files such as https://github.com/saltstack/salt/blob/develop/doc/topics/tutorials/quickstart.rst to see what it looks like when things are formatted, and then https://raw.github.com/saltstack/salt/develop/doc/topics/tutorials/quickstart.rst
00:20 forrest shows you what it looks like
00:20 forrest cool!
00:20 Benben ok, i remember now about this "reStructured" format
00:20 Benben saw it before
00:21 Benben It's going to be a "Developper going to salt" type of tutorial. For developpers, and not admin. So there probably are going to be things that are obvious to admins.
00:21 forrest that's good, could use a tutorial like that!
00:22 UtahDave Benben: yeah, definitely!
00:22 seventeenpoint2 What's going on here? https://gist.github.com/anonymous/a7d8fc4bf00f6d981458
00:22 Benben I'll try to keep it standalone, because i may include it in a personnal page one day
00:22 seventeenpoint2 The minions are getting matched
00:22 seventeenpoint2 but the module can't be executed
00:22 forrest Benben, yea that works, it would be easy to make a page for it.
00:22 UtahDave seventeenpoint2: what's the error you're getting?
00:22 forrest within salt itself that is
00:22 Benben Ok, good night everyone
00:23 Benben keep up the good work
00:23 seventeenpoint2 no error, but I expect grains.ls to return the grains
00:23 Gareth latest develop branch, seeing this when trying the minion: TypeError: argument of type 'bool' is not iterable.  possibly pillar related?
00:23 Gareth trying to start.
00:23 UtahDave Gareth: when did you last git pull?
00:23 UtahDave seventeenpoint2: what's the exact command you're using?
00:24 seventeenpoint2 sudo salt -v -C 'I@role:app' grains.ls
00:24 seventeenpoint2 where each of the servers listed in the output have a pillar that has that in it
00:24 seventeenpoint2 they get targeted fine
00:24 seventeenpoint2 but the job doesn't return
00:25 UtahDave seventeenpoint2: how do you know they're getting targeted fine?
00:25 Gareth UtahDave: just a moment ago.
00:26 seventeenpoint2 because if I use * then it selects all my servers instead of just the ones with the pillar data
00:27 Gareth UtahDave: hm. nm.  something in my branch.
00:28 UtahDave seventeenpoint2: what does your pillar top.sls and the pillar file look like?  can you pastebin a sanitized version?
00:30 pipps_ joined #salt
00:31 alunduil joined #salt
00:31 exabytes18 left #salt
00:31 mgw joined #salt
00:33 seventeenpoint2 UtahDave: one sec
00:36 seventeenpoint2 UtahDave: https://gist.github.com/anonymous/579b975182e04bbd6edc
00:37 UtahDave seventeenpoint2: what's the name of one of your minions that should match?
00:38 seventeenpoint2 it should match all the ones listed in the first one I linked
00:38 seventeenpoint2 https://gist.github.com/anonymous/a7d8fc4bf00f6d981458
00:38 seventeenpoint2 Those are the right minions
00:38 seventeenpoint2 the output is different when I use `salt '*' grains.ls
00:38 seventeenpoint2 it gets all the servers when I do that
00:40 UtahDave what version of Salt, seventeenpoint2?
00:40 seventeenpoint2 https://gist.github.com/anonymous/1c59ddb0560cef458c1c
00:41 seventeenpoint2 https://gist.github.com/anonymous/c2ee9c24f5de478feabc
00:41 UtahDave seventeenpoint2:   sudo salt \* test.versions_report
00:41 ajw0100 joined #salt
00:41 UtahDave ok
00:41 UtahDave same on the minions?
00:41 seventeenpoint2 should be the same on all servers
00:42 seventeenpoint2 just bootstraped them all today
00:44 mapu_ joined #salt
00:44 UtahDave seventeenpoint2: OK, could you open an issue on that? Please include the version reports and the info you gave here.
00:44 seventeenpoint2 Sure thing
00:44 UtahDave your pillar stuff looks good. I can't see anything wrong from here.
00:46 seventeenpoint2 yeah
00:46 seventeenpoint2 running a tcpdump on the minions shows that the salt master is actually contacting them too
00:46 seventeenpoint2 but apparantly the minions don't care
00:48 zandy joined #salt
00:51 DredTiger joined #salt
00:57 zandy joined #salt
01:01 DerekRBN joined #salt
01:01 amanuel_ joined #salt
01:01 DerekRBN Hey guys anyone here? I have a question about updating to the new release
01:03 UtahDave sure, what's your question, DerekRBN
01:03 UtahDave ?
01:03 DerekRBN Yum sees 0.17.1 as current. I know it was only put out this morning but as i have autoscaling instances using the bootstrap we've got a error killing us right now and I need to update to 17.2 asap
01:03 jslatts joined #salt
01:03 UtahDave 0.17.2 is in pypi right now
01:04 DerekRBN Awesome thanks
01:04 UtahDave np!
01:05 UtahDave our packagers are currently getting all the packages ready.  We'll make an official announcement when they are all ready
01:07 pipps__ joined #salt
01:08 halfss__ joined #salt
01:09 DerekRBN cool we had this new feature thing stopping provisioning, talked to the guys here at reinvent yesterday and they told me to update to 17.2, goose chase it wasnt out yet
01:10 UtahDave ah, yeah.
01:10 UtahDave ah, cool.  Did they get you a saltstack t-shirt?
01:12 DerekRBN hope this fixes it. about to test. Yeah i got one they gave me flack because marc sent some out for us. but i wear them sooo free billboard
01:12 DerekRBN so now i have two, :D
01:13 DredTiger joined #salt
01:14 Teknix joined #salt
01:17 hvn joined #salt
01:17 xl1 joined #salt
01:18 hvn left #salt
01:23 UtahDave nice!
01:23 zandy joined #salt
01:23 finisherr_ joined #salt
01:24 redondos joined #salt
01:28 seventeenpoint2 joined #salt
01:28 tdillio joined #salt
01:28 seventeenpoint2 I had one more question
01:28 seventeenpoint2 where can I find the entrypoint for minions when they receive data from the saltmaster
01:29 finisherr_ joined #salt
01:29 tdillio Anyone know how I can auto-generate a password with salt.states.user? I don't need to know what the password is, I just want to set it to something long and random.
01:31 deepakmd_oc joined #salt
01:32 finisherr_ joined #salt
01:35 finisherr_ joined #salt
01:36 seventeenpoint2 Found it
01:36 seventeenpoint2 Cheers all!  Thanks UtahDave
01:39 finisherr_ joined #salt
01:40 DerekRBN Soo doesnt look like 17.2 master fixes the KeyError: 'ext_job_cache'
01:41 jacksontj joined #salt
01:43 finisherr_ joined #salt
01:45 log0ymxm joined #salt
01:46 finisherr_ joined #salt
01:49 finisherr_ joined #salt
01:51 anti joined #salt
01:52 finisherr_ joined #salt
01:53 Teknix joined #salt
01:56 finisherr_ joined #salt
02:01 finisherr_ joined #salt
02:10 finisherr_ joined #salt
02:13 ebodine joined #salt
02:16 finisherr_ joined #salt
02:17 finisherr_ left #salt
02:21 franky_ joined #salt
02:30 stooch1122 joined #salt
02:34 cocoy1 joined #salt
02:37 v0id__ joined #salt
02:39 Linz_ joined #salt
02:41 oz_akan_ joined #salt
02:45 oz_akan_ joined #salt
02:47 stooch1122 joined #salt
02:48 aib_233 joined #salt
02:59 junedm joined #salt
03:03 mwillhite joined #salt
03:06 DanGarthwaite left #salt
03:20 halfss__ joined #salt
03:22 Linz joined #salt
03:27 ConceitedCode joined #salt
03:28 ConceitedCode Hey guys. I've been playing with the iptables module and when I run 'salt-call iptables.get_rules' I get 'salt-call: error: unrecognized arguments: !'
03:29 ConceitedCode I'm not sure where the ! is coming from. any ideas?
03:30 ConceitedCode I'm using salt version 0.17.1 on Ubuntu 12.04
03:34 forrest ConceitedCode, get_rules is specifically for rules loaded into memory
03:34 forrest are they currently that way?
03:34 ConceitedCode I believe so. let me double check.
03:35 jhulten joined #salt
03:35 ConceitedCode yup
03:35 dvogt joined #salt
03:35 RealOpty joined #salt
03:35 RealOpty gello
03:36 forrest can you try iptables.get_policy filter INPUT
03:36 forrest to see if you can return the default policy?>
03:36 ConceitedCode nope. same problem.
03:36 ConceitedCode its trying to run iptables-save using cmd.run and fails then
03:37 forrest Weird I'm not sure then, if no one responds it might be worth opening a discussion on the mailing list for
03:37 forrest I've gott go to the gym, let me know if you figure it out
03:37 Baribal__ joined #salt
03:37 ConceitedCode ok. thanks for trying :)
03:39 ajw0100 joined #salt
03:44 mgw joined #salt
03:44 vipuls joined #salt
03:45 _sentx joined #salt
03:48 larstr_ joined #salt
03:52 Anb_ joined #salt
03:54 Corey joined #salt
03:55 MK_FG joined #salt
03:56 dave_den joined #salt
03:57 sroegner joined #salt
03:59 gmoro joined #salt
03:59 g3cko joined #salt
04:01 dcolish joined #salt
04:05 ckao joined #salt
04:05 N3rd2600 joined #salt
04:09 iMil joined #salt
04:09 dvogt joined #salt
04:10 lineman60 joined #salt
04:12 Tracy joined #salt
04:12 nocturn joined #salt
04:12 Corey joined #salt
04:12 Corey_ joined #salt
04:15 redondos joined #salt
04:15 redondos joined #salt
04:15 davet joined #salt
04:16 iMil joined #salt
04:16 iMil joined #salt
04:18 Corey joined #salt
04:18 Corey_ joined #salt
04:19 xmltok joined #salt
04:21 micko joined #salt
04:24 ConceitedCode I figured out the problem and a workaround for the moment. here's the github issue for it. https://github.com/saltstack/salt/issues/8546
04:24 log0ymxm joined #salt
04:24 Corey joined #salt
04:25 log0ymxm joined #salt
04:25 Corey_ joined #salt
04:31 Corey joined #salt
04:31 Corey_ joined #salt
04:35 pipps_ joined #salt
04:37 Corey joined #salt
04:38 Corey_ joined #salt
04:38 Ryan_Lane joined #salt
04:40 forrest ahh cool, thanks for the update!
04:40 shinylasers joined #salt
04:40 ravibhure joined #salt
04:41 anuvrat joined #salt
04:43 shinylasers joined #salt
04:43 Corey joined #salt
04:44 Corey_ joined #salt
04:44 ravibhure1 joined #salt
04:45 jhulten joined #salt
04:47 bhosmer joined #salt
04:49 Corey joined #salt
04:51 Corey_ joined #salt
04:55 Corey joined #salt
04:57 Corey_ joined #salt
05:00 lemao joined #salt
05:02 Corey joined #salt
05:03 Corey_ joined #salt
05:08 Corey joined #salt
05:10 Corey_ joined #salt
05:14 Corey joined #salt
05:16 lineman60 joined #salt
05:16 Corey_ joined #salt
05:17 Chrisje joined #salt
05:21 Corey joined #salt
05:23 Corey_ joined #salt
05:23 Chrisje joined #salt
05:27 Corey joined #salt
05:30 Corey_ joined #salt
05:33 Corey joined #salt
05:33 pipps joined #salt
05:36 Corey_ joined #salt
05:40 Corey joined #salt
05:43 druonysus joined #salt
05:49 sroegner joined #salt
05:52 jdenning joined #salt
05:55 zach forrest / dave_den / basepi - thank you guys today. Saved my butt from getting fired over that bug :)
05:55 forrest zach, lol np man
05:55 forrest Why would they have fired you over that?
05:55 forrest shit happens
05:55 zach 16 hours of work today
05:55 zach we have a very interesting SLA
05:55 forrest it's not like you went 'YEA LET ME JUST SPIN UP A MILLION PROCESSES ON PURPOSE!'
05:55 basepi Not sure what I did , but you're welcome! =P
05:55 zach I'm in the finance / security realm of things, SLAs are very big monies
05:56 zach (that I don't get)
05:56 forrest yea I remember you saying that, but sometimes systems go down
05:56 forrest if anything it's a good opportunity to evaluate disaster recovery/contingency plans
05:56 zach I know, we have had a ton of instabilities lately
05:56 zach Indeed!
05:56 zach That's what I spent all day
05:56 zach Time for dinner now that it's midnight heh. Thanks again guys
05:57 forrest Maybe you guys should look at a second DC/secondary salt master setup just in case.
05:57 forrest Have a good one!
05:57 zloidemon Hello
05:57 forrest hi
05:58 Corey Sorry about the flappy nonsense earlier.
05:58 forrest yea all your spam
05:58 forrest thanks Corey! :P
06:06 [1]VertigoRay joined #salt
06:11 druonysus joined #salt
06:11 druonysus joined #salt
06:35 anti joined #salt
06:39 Furao joined #salt
06:45 [1]VertigoRay joined #salt
06:47 [diecast] joined #salt
06:48 jcsp1 joined #salt
06:53 VertigoRay joined #salt
06:55 malinoff joined #salt
06:55 malinoff Hi, #salt
06:58 hvn joined #salt
06:58 hvn left #salt
06:59 IJNX joined #salt
07:00 carlos joined #salt
07:01 lemao joined #salt
07:01 matanya joined #salt
07:10 matanya joined #salt
07:11 matanya joined #salt
07:21 xet7 joined #salt
07:22 rofl____ can i do a force on file.symlink?
07:22 rofl____ in some way
07:23 rofl____ i get a error that a file exists where the symlink should be
07:23 rofl____ but i still want to force the symlink
07:29 dvogt joined #salt
07:29 pears looks like only states.file.symlink has that
07:32 RealOpty can someone point me to a list of grains?
07:33 juasiepo joined #salt
07:34 rofl____ pears: so i can do it in a .sls ?
07:34 pears rofl____: yeah
07:34 pears http://docs.saltstack.com/ref/states/all/salt.states.file.html#salt.states.file.symlink
07:34 rofl____ pears: excellent, thx :)
07:37 malinoff RealOpty, what's the question?
07:38 RealOpty mmm list of commands built into salt?
07:38 RealOpty Also id like salt to set my /etc/apt/sources.list
07:39 malinoff RealOpty, grains != commands
07:39 malinoff RealOpty, you know, salt has docs: http://docs.saltstack.com/index.html
07:39 RealOpty salt '*' test.ping <-
07:39 RealOpty im reading them
07:39 malinoff Aaaand?
07:39 rofl____ why does salt-call state.highstate give INFO messages to STDERR?
07:39 RealOpty im not getting tooooo far
07:39 RealOpty lol
07:39 malinoff Didn't you find installation link?
07:40 RealOpty im installed and setup on 6 nodes
07:40 malinoff Nice. What's the actual question?
07:41 RealOpty 1) how do i find out a complete list of things salt can do, such as salt '*' test.ping
07:41 malinoff rofl____, it's default behavior
07:41 rofl____ malinoff: isnt that unix unbehavior?
07:41 rofl____ stderr should do errors, not info messages?
07:41 BbT0n joined #salt
07:41 rofl____ when i put the salt-call in my crontab, i want a email if i have errors
07:41 rofl____ not otherwise
07:42 malinoff rofl____, It's a logger message. Use -l to change the output
07:42 malinoff RealOpty, http://docs.saltstack.com/ref/modules/all/index.html
07:43 rofl____ malinoff: that'll do, thx
07:43 RealOpty malinoff, thanks buddy!
07:44 malinoff rofl____, well, I think the salt approach is to run commands from the master - and salt-call should be used for debugging and similar tasks. Not just for that, of course, but anyway
07:44 malinoff RealOpty, np
07:44 RealOpty 2) is there a tutorial you know of to setup my /etc/sources.list ? all the nodes are on the same OS, debian 7
07:45 rofl____ malinoff: either way i want to do a interval'ed run for the highstate. and its nice to only get notified if some stuff goes bad
07:45 RealOpty via salt of course ^
07:46 malinoff RealOpty, http://docs.saltstack.com/ref/states/all/salt.states.pkgrepo.html#module-salt.states.pkgrepo
07:46 slav0nic joined #salt
07:46 RealOpty perfect, i was reading apt -- top of list
07:46 malinoff rofl____, you can set up a scheduler: http://docs.saltstack.com/topics/jobs/schedule.html
07:46 malinoff On the master, of course.
07:47 malinoff Or on a minion, if you want to
07:48 rofl____ malinoff: i tried, but it wouldnt work on the master
07:48 rofl____ i didnt debug it much tho
07:48 rofl____ but how would i get a message if minions fail the highstate by a schedule?
07:48 hvn joined #salt
07:49 malinoff rofl____, you can fire an event: http://docs.saltstack.com/topics/reactor/index.html
07:50 redondos joined #salt
07:50 redondos joined #salt
07:50 hvn left #salt
07:50 rofl____ malinoff: holy moly
07:50 rofl____ to much stuff to learn
07:50 rofl____ :D
07:50 malinoff rofl____, yeah. Salt is huge :)
07:52 malinoff It took 4 months to understand how it works. But it's worth it.
07:52 rofl____ absolutely
07:53 rofl____ im enjoying it more and more every day
07:53 malinoff Yep. It's like learning python just after C++ or java
07:54 rofl____ or just finding salt right before implementing puppet/ruby ;)
07:54 malinoff Uuuhh
07:54 malinoff ruby
07:54 malinoff Don't say that word
07:54 rofl____ yeah i know
07:54 rofl____ thats why i love salt
07:55 rofl____ enough with the ruby webscale!
07:55 malinoff rofl____, http://mongodb-is-web-scale.com/
07:55 rofl____ oh yeah
08:01 scott_w joined #salt
08:01 balboah joined #salt
08:03 bezaban finished the backlog from yesterday
08:03 bezaban and good morning
08:03 bezaban zach's issue was a bit worrying
08:04 bezaban as we operate under similar SLAs
08:05 RealOpty http://www.severalnines.com/
08:06 giantlock_ joined #salt
08:07 krissaxton joined #salt
08:07 krissaxton left #salt
08:08 harobed joined #salt
08:18 networkpadawan joined #salt
08:19 sgviking joined #salt
08:19 matanya joined #salt
08:23 rmt joined #salt
08:24 bhosmer joined #salt
08:29 matanya joined #salt
08:36 zach bezaban: The fix is rolled out already in git, soon to be in epel-testing (monday or so) - should be good :)
08:38 bezaban zach: that has a somewhat calming effect
08:39 jpcw joined #salt
08:44 druonysus joined #salt
08:44 druonysus joined #salt
08:47 xl1 left #salt
08:49 xl1 joined #salt
08:49 xl1 left #salt
08:50 mattmtl joined #salt
08:52 matanya joined #salt
08:54 Ryan_Lane joined #salt
08:56 xl1 joined #salt
08:57 eagles0513875_ joined #salt
08:57 eagles0513875_ hey guys :) lookign forward to testing out saltstack :)
08:57 eagles0513875_ question if i want to download salt stack im guessing the only way is via git correct?
09:01 malinoff eagles0513875_, http://docs.saltstack.com/topics/installation/index.html
09:03 aib_233 joined #salt
09:16 Koma joined #salt
09:18 ajw0100 joined #salt
09:18 redondos joined #salt
09:19 jcookeman joined #salt
09:30 favadi joined #salt
09:30 scott_w joined #salt
09:38 tmolnar joined #salt
09:38 tmolnar good morning
09:39 jcookeman tmolnar: good morning
09:40 networkpadawan joined #salt
09:41 matanya joined #salt
09:52 matanya joined #salt
09:56 sroegner joined #salt
09:56 unicoletti_ joined #salt
09:58 tmolnar when I try to set up bonding, it says "Invalid option"
09:58 tmolnar Option: mode, Expected: [0|1|2|3|... but I use mode: 1
09:59 matanya joined #salt
10:02 Ryan_Lane joined #salt
10:14 matanya joined #salt
10:16 jeddi joined #salt
10:19 lemao joined #salt
10:26 matanya joined #salt
10:29 giantlock_ joined #salt
10:33 malinoff tmolnar, What command do you run?
10:35 dave_den joined #salt
10:37 tmolnar I just ran the bonding configuration from here: http://docs.saltstack.com/ref/states/all/salt.states.network.html#module-salt.states.network
10:38 tmolnar eh, problem solved
10:38 tmolnar with mode: active-backup
10:39 juasiepo joined #salt
10:40 bhosmer joined #salt
10:43 tmolnar it works, thanks :)
10:43 tmolnar self support :D
10:49 jeddi joined #salt
10:50 jcsp joined #salt
10:51 giantlock_ joined #salt
10:53 viq http://docs.saltstack.com/ref/configuration/logging/handlers/salt.log.handlers.sentry_mod.html - but _where_ should it be defined?
10:58 N-Mi joined #salt
10:58 N-Mi joined #salt
11:01 ravibhure joined #salt
11:03 Ryan_Lane joined #salt
11:09 MrTango joined #salt
11:12 giantlock_ joined #salt
11:20 Valdo joined #salt
11:21 sroegner_ joined #salt
11:25 druonysus joined #salt
11:26 s0undt3ch joined #salt
11:28 bezaban collected all the password hashes and public keys I need. Time to roll out.  Who needs centralized authentication anywaY
11:29 bezaban if only openssh supported ocsp
11:29 bezaban might have to write something to roll back public keys based on CRL
11:29 viq I _think_ I defined on master and all minions sentry_handler as described at http://docs.saltstack.com/ref/configuration/logging/handlers/salt.log.handlers.sentry_mod.html but tcpdump doesn't even show connection attempts with log_level: debug - what am I doing wrong?
11:30 viq bezaban: I think there was something about ssh and certificates, I don't remember the details though at the moment
11:30 bezaban wait. gssapi might work.
11:31 bezaban viq: thanks, I'm very interested if you remember any more specifics
11:31 bezaban and can't help on your issue :)
11:32 bezaban although I'm using smart cards, so also need support over various OS to forward it to ssh.  I'll stick with CAPI/opensc and research it more at a later point.
11:35 unicoletti viq: perhaps you need to install the raven client? http://pypi.python.org/pypi/raven
11:35 unicoletti it is required for the sentry returner
11:37 viq bezaban: http://security.stackexchange.com/questions/30396/how-to-set-up-openssh-to-use-x509-pki-for-authentication
11:37 viq unicoletti: OK, let's see about that then
11:39 bezaban thanks viq.
11:40 viq generally 'openssh x.509' on google returns some hits
11:40 bezaban yeah. Most are custom builds which I'm not sure I can go for
11:40 krissaxton joined #salt
11:40 bezaban well all, since it doesn't support x509 natively
11:41 viq unicoletti: hah, it's not happy once I installed raven: http://pbot.rmdir.de/7v88LnBksCrL4ZMBfjWc8w
11:43 bezaban but an acceptable approach (for now) is to get ssh keys from the smart cards along with user information/cert id#, then publish them with salt to relevant machines.  then I can use the cert # in a cron to check ocsp status periodically and remove the revoked keys
11:43 viq where the block is http://pbot.rmdir.de/xMf8bVNhoO7JWNlMCEkLgg
11:43 viq bezaban: sounds nice
11:43 unicoletti viq: raven is required by the sentry handler, see https://github.com/saltstack/salt/blob/develop/salt/log/handlers/sentry_mod.py#L73
11:44 bezaban it's a very low amount of users at the moment, but building with scalability in mind
11:44 viq unicoletti: ah, indeed. Would be useful to put it in documentation then
11:44 viq bezaban: always a good idea
11:44 bezaban :)
11:45 bezaban if the smart card is lost it still requires a pin, so revocation can wait an hour or two
11:45 krissaxton left #salt
11:46 diegows_ joined #salt
11:49 viq I wonder if it's falling over on port in URL
11:51 unicoletti viq: it shouldn't as it's supported
11:51 unicoletti perhaps you are using an old raven client?
11:52 viq I just did 'pip install'
11:52 viq http://pbot.rmdir.de/7v88LnBksCrL4ZMBfjWc8w is what I'm getting
11:52 unicoletti when furao logs in you can ask him, I think he wrote it
11:53 viq both with http://pbot.rmdir.de/xMf8bVNhoO7JWNlMCEkLgg and http://pbot.rmdir.de/hsvQtj_wlrDP9RExor6e2Q as config
11:53 unicoletti no, sorry it's s0undt3ch according to the git log
11:53 viq OK, thanks
11:53 * viq pokes s0undt3ch
11:59 zandy joined #salt
12:04 Ryan_Lane joined #salt
12:05 halfss joined #salt
12:23 bezaban I want to list network.hw_addr and the ipv4 address for hosts specified in a nodegroup
12:24 bezaban is there a way to run multiple module commands in one command
12:24 bezaban like when I list multiple grains
12:25 networkpadawan joined #salt
12:26 bezaban I want to return network.hw_addr eth0 and the ip address for that interface.  I could just cmd.run ip a and parse that, but curious about how modules work :)
12:26 s0undt3ch viq: what's up?
12:29 cron0 joined #salt
12:35 viq s0undt3ch: sentry logging bombs out on me
12:35 s0undt3ch viq: got a trace?
12:35 viq yeah, and relevant configs, sec
12:35 viq configs: http://pbot.rmdir.de/xMf8bVNhoO7JWNlMCEkLgg or http://pbot.rmdir.de/hsvQtj_wlrDP9RExor6e2Q
12:35 s0undt3ch viq: awesome, created a ticket yet?
12:36 viq error: http://pbot.rmdir.de/7v88LnBksCrL4ZMBfjWc8w
12:36 viq no, not yet
12:36 viq seeing first if it's a PEBKAC ;)
12:36 s0undt3ch nope, I seem to be the culprit there ;)
12:37 s0undt3ch viq: can you file a ticket please, with the same info you just gave me?
12:37 viq aye aye, captain!
12:38 thelorax123 joined #salt
12:38 viq Yesterday I was bugging the sentry people, as sentry wasn't working, now it's your turn once they fixed their part ;P
12:38 viq And all that for just wanting to see what it's about ;)
12:39 vejdmn joined #salt
12:41 viq s0undt3ch: https://github.com/saltstack/salt/issues/8556
12:42 elfixit joined #salt
12:42 viq And 8557 while I'm at it ;)
12:44 s0undt3ch viq: Thanks! I'll take care of it
12:45 viq thanks :)
12:45 s0undt3ch Anytime!
12:45 s0undt3ch ;)
12:48 mwillhite joined #salt
12:59 networkpadawan joined #salt
13:00 mgw joined #salt
13:02 giantlock_ joined #salt
13:05 s0undt3ch viq: https://github.com/saltstack/salt/pull/8558
13:05 s0undt3ch viq: once merged should solve your issues
13:05 blee joined #salt
13:05 viq thank you :)
13:05 s0undt3ch viq: Anytime!
13:06 viq :)
13:09 zandy joined #salt
13:13 druonysus joined #salt
13:13 viq s0undt3ch: sweet, with that file edited indeed stuff starts showing up in sentry
13:13 s0undt3ch viq: Nice!
13:20 viq Probably will be trying the logstash handler next ;)
13:21 bhosmer joined #salt
13:23 mwillhite joined #salt
13:25 zandy joined #salt
13:31 baffle Hmm, when building from develop right now, salt-minion crashes on start with the following trace: http://paste2.org/8g7AyA6v
13:31 baffle Is it just my environment? :)
13:35 zandy_ joined #salt
13:39 zandy joined #salt
13:42 Ryan_Lane joined #salt
13:48 mapu joined #salt
13:48 flupke joined #salt
13:48 mastrolinux joined #salt
13:49 hvn joined #salt
13:49 flupke hello, is there a way to use a .tar.gz file on a http server as file.recurse source? Or at least a local directory not in salt?
13:50 mastrolinux Hi, is there a way to define a cmd.run executed if and only if another state needs it and not every time? (there is no way to specify unless in my case)
13:50 networkpadawan joined #salt
13:50 mwillhite joined #salt
13:51 hvn left #salt
13:51 rjc joined #salt
13:51 s0undt3ch baffle: you need to update your master to latest develop
13:52 ipmb joined #salt
13:54 tty-1 joined #salt
13:55 sroegner_ joined #salt
13:55 blee_ joined #salt
13:56 craigpearson joined #salt
13:56 flupke mastrolinux: never tried myself but cmd.wait looks like what you're looking for: http://intothesaltmine.org/blog/html/2013/03/01/using_the_cmd_module_in_salt_states.html
14:01 brianhicks joined #salt
14:04 snuffeluffegus joined #salt
14:05 baffle s0undt3ch: Is develop master backwards compatible with older 0.17.X minions?
14:06 racooper joined #salt
14:08 Brew joined #salt
14:09 bhosmer joined #salt
14:12 juicer2 joined #salt
14:12 jimallman joined #salt
14:14 blee joined #salt
14:16 bhosmer joined #salt
14:16 bezaban there is currently no module to manage debian and debian style network configuration? Correct? :)
14:16 mastrolinux flupke: I use cmd.wait all the time but it does not fit this time, I cannot trigger the event
14:16 MTecknology Heh... I'm trying to figure out how the heck I installed salt on this box...
14:17 MTecknology rpm -qa | grep salt  shows nothing
14:18 mastrolinux MTecknology: pip freeze | grep salt
14:19 MTecknology ah... that'd make sense - pip not installed atm
14:19 mgw joined #salt
14:20 MTecknology mastrolinux: genious
14:23 anti joined #salt
14:23 gmoro joined #salt
14:24 MTecknology mastrolinux: Any suggestions for this one? http://dpaste.com/1464440/
14:26 funzo joined #salt
14:27 mackstick Install gcc?
14:27 mackstick Or try using distribution packages of msgpack and pycrypto
14:27 MTecknology 08:30 is too early to think :(
14:27 MTecknology thanks
14:28 nahamu http://docs.saltstack.com/topics/hacking.html
14:31 naemono joined #salt
14:31 naemono https://github.com/saltstack/salt/issues/8560
14:31 naemono Would anyone be able to point me in the right direction to get things back functional?  The upgrade to 0.17.2 went very badly...
14:32 jeff_oncell joined #salt
14:32 nahamu 0.17.2 is out?
14:33 baffle s0undt3ch: It sure made things happier. :)
14:34 AdamSewell joined #salt
14:35 naemono @nahamu https://github.com/saltstack/salt/releases/tag/v0.17.2    Grabbed the tar.gz, and compiled a deb package...
14:35 networkpadawan joined #salt
14:37 micah_chatt joined #salt
14:37 MTecknology *grumble*  /usr/include/openssl/opensslconf.h:31: Error: CPP #error ""This openssl-devel package does not work your architecture?"". Use the -cpperraswarn option to continue swig processing.
14:37 MTecknology I call bullshit
14:37 mwillhite joined #salt
14:38 naemono Strange... I mentioned in the bug that even after downgrade I couldn't run any salt commands on master, but after some time it seems to have straightened itself out...   still got massive bugs with pkgrepo states in 0.17.2 though... they appear to be completely broken..
14:40 pass_by_value joined #salt
14:41 MTecknology what?....     Could not fetch URL https://pypi.python.org/simple/yum-metadata-parser/: HTTP Error 503: Backend is unhealthy
14:43 brutasse MTecknology: pypi is down
14:43 NotreDev joined #salt
14:43 MTecknology brutasse: I broke it! :(
14:43 brutasse http://status.python.org/
14:44 MTecknology I hope they'll forgive me!
14:44 kermit joined #salt
14:44 mastrolinux looks much more like there are problems with python2.6
14:45 MTecknology getting salt installed on this particular system is a lot like working with perl. :(
14:47 nahamu I'm having trouble building my esky build of 0.17.2
14:47 mlister2006 naemono: how did you upgrade salt. (pyhton setup.py install ??, after untar)
14:47 nahamu error message it dies with is: NameError: global name '__file__' is not defined
14:47 sroegner_ joined #salt
14:47 jrdx joined #salt
14:49 naemono mlister2006:  grabbed the tar.gz from github, untarred it, edited the change log and ran 'dpkg-buildpackage -b'.  Then I took the .deb packages to a single minion, and my master.  Upgraded the minion with 'dpkg -i salt-common*.deb', then 'dpkg -i salt-minion*.deb' keeping config file
14:49 quickdry21 joined #salt
14:49 ravibhure joined #salt
14:49 nahamu https://us-east.manta.joyent.com/nahamu/public/salt/0.17.2-build-error.txt
14:50 naemono mlister2006: Then tried to run a test high state from master, and got the pkgrepo error.  figured it might be a version mismatch between minion & master, so I upgraded master in the same way, and after that, all salt commands on master failed with 'unable to authenticate'
14:51 mlister2006 ah. I am not deb expert, but on CentOS something like this works. (On CenOS: mkdir /tmp/broken; cd /usr/lib/python2.6/site-packages; mv salt* /tmp/broken/.) and then try (python setup.py install) again. see if that helps. (i.e clean up all old code first)
14:51 JasonSwindle joined #salt
14:52 mlister2006 not sure exactly how the upgrade works, but I noticed sometimes old filed left in our install and generally cleaning up old code works better. not an elegant way to do that, but just a workaround.
14:57 tyler-baker joined #salt
14:57 tyler-baker joined #salt
14:58 mwillhite joined #salt
15:00 sroegner_ mapu: what did you end up using for your salt-cloud version?
15:01 mapu .0.89
15:01 Gifflen joined #salt
15:01 mapu what I did was this-
15:01 mapu actually- let me check my final setup
15:01 sroegner_ mine stopped working this morning
15:01 sroegner_ it's getting aggravating
15:02 mapu Salt Cloud: 0.8.9
15:02 mapu with Salt: 0.17.0-4599-g359d339
15:02 MTecknology that pypi issue is funny...    Not Found (yum-metadata-parser does not have any releases)
15:02 sroegner_ this is always the verion it shows no matter what
15:02 sroegner_ mapu: where did you pull yours from?
15:02 mapu Here is what I did:
15:03 mapu git clone https://github.com/saltstack/salt.git
15:04 mapu then- since I had been installing and reinstalling, did a python setup.py install --force
15:04 mapu Prior the that, I did a 'pip install -e ."
15:04 mapu (in the salt directory)
15:04 MTecknology I'm just having one hell of a time today... I tried upgrading the salt package on my apt server and now I'm getting more things breaking
15:05 mapu I';m going to be launching a completely clean system today and running through all of my install steps to be precise about where I saw breakage, and exactly what I did to fix
15:05 sroegner_ mapu: ok - that's more or less what I tried
15:06 MTecknology http://dpaste.com/1464533/  *grumble*
15:06 mapu now- try this too -
15:06 mapu grab the salt-cloud standalone
15:06 mapu and then git checkout b3b2ccf498d2f826a8ecb512c633528108bdfbc6
15:06 sroegner_ yea
15:07 sroegner_ tried that too
15:07 sroegner_ gives me a timeout trying to use it
15:07 sroegner_ never comes back i mean
15:07 sroegner_ I'll just rebuild the master
15:07 mapu then did python setup.py install --force ?
15:07 sroegner_ yes
15:07 sroegner_ just like UtahDave said yesterday
15:07 mapu and you restarted master ?
15:07 mapu Ok-
15:07 sroegner_ nope
15:08 mapu restart master
15:08 sroegner_ why would i have to restart the master?
15:08 sroegner_ ok
15:08 mapu Oh- I am dealing with my master
15:08 mapu and I only have a few test minions as I am not in production
15:09 thelorax123 joined #salt
15:11 JulianGindi joined #salt
15:11 naemono mlister2006:  Thanks for the kick in the right direction.  After removal of packages on master, and cleaning up /usr/* for any python salt directories, I'm not getting the authentication error any longer, so that's good.  things aren't completely broken.  Unfortunately the pkgrepo issue persists, and being that most of my states include a repo, this is really bad here for my production setup...
15:11 NotreDev joined #salt
15:13 bhosmer joined #salt
15:14 giantlock_ joined #salt
15:15 octariNSA joined #salt
15:18 bhosmer joined #salt
15:23 lineman60 joined #salt
15:24 jankowiak joined #salt
15:27 opapo joined #salt
15:28 lineman60 joined #salt
15:30 nahamu I'm trying to do a git bisect to identify when my esky builds broke
15:31 nahamu aha! it worked!
15:31 nahamu and the commit it fingers even seems relevant to the error message.
15:34 nahamu s0undt3ch: you broke the SmartOS esky build 10 days ago...
15:34 nahamu perhaps you can help me fix it?
15:34 sroegner_ joined #salt
15:35 blee_ joined #salt
15:35 nahamu s0undt3ch: https://github.com/saltstack/salt/issues/8561
15:36 smccarthy joined #salt
15:37 BenBen joined #salt
15:37 bhosmer joined #salt
15:37 alunduil joined #salt
15:37 BenBen hi there
15:38 BenBen I've done typing the step by step guide to setting up a testing cluster for mac os x. It's in the .rst format as forrest asked me to yesterday. Who should I give this file to ?
15:38 shinylasers joined #salt
15:39 shinylasers joined #salt
15:39 bhosmer joined #salt
15:42 HeadAIX joined #salt
15:44 pdayton joined #salt
15:47 foxx[cleeming] joined #salt
15:47 foxx[cleeming] joined #salt
15:48 octarine joined #salt
15:49 juasiepo joined #salt
15:55 halfss joined #salt
15:57 nahamu in context, that commit is totally broken
15:58 nahamu we're in the "except NameErrror" specifically meant to catch __file__ not being defined and then trying to examine __file__
15:58 jalbretsen joined #salt
15:58 halfss joined #salt
15:59 halfss joined #salt
16:01 unicoletti left #salt
16:05 pipps_ joined #salt
16:05 vejdmn joined #salt
16:09 redondos joined #salt
16:11 vejdmn joined #salt
16:12 jdenning joined #salt
16:12 cro joined #salt
16:14 nahamu we're actually not still in the except, but that section should have been in the try...
16:15 networkpadawan joined #salt
16:17 forrest joined #salt
16:18 shinylasers joined #salt
16:19 UtahDave joined #salt
16:19 smccarthy2 joined #salt
16:20 s0undt3ch nahamu: yes, I did, and if you pull the latest changes from develop or 0.17 branches, i fixed
16:20 s0undt3ch *it's
16:21 mwillhite joined #salt
16:21 nahamu s0undt3ch: ah, good. which commit?
16:22 penguin_dan joined #salt
16:22 nahamu this one? https://github.com/saltstack/salt/commit/99148a1380741ac1f22d58dcfbcd6dbc1e134c5a
16:23 s0undt3ch nahamu: just updated the ticket
16:23 s0undt3ch which includes the commits
16:23 nahamu s0undt3ch: perfect. thanks!
16:23 s0undt3ch nahamu: Anytime!
16:23 nahamu It's a shame this didn't get caught before 0.17.2 was tagged.
16:23 bhosmer joined #salt
16:24 forrest hey s0undt3ch, if you have time today can you take a look at https://github.com/gravyboat/salt/blob/develop/doc/topics/tutorials/salt_bootstrap.rst and see what else you think it needs from a walkthrough/documentation standpoint
16:24 s0undt3ch nahamu: it's an issue in 0.17.2?
16:26 nahamu s0undt3ch: yes. a checkout of the tag named "v0.17.2" will fail an esky build.
16:26 nahamu a checkout of the 0.17 branch with the merge you just put in will succeed (but get a git version style name)
16:26 mkoistinen I've successfully installed salt on Mac OS X 10.8.5 using mac ports. There were no errors that I could find, yet I can't seem to find any configuration files nor man-entries.
16:27 zandy joined #salt
16:28 mkoistinen Where would I find the configuration files on Mac OS X? (They're not in /etc/salt as they are on Linux)
16:28 JasonSwindle left #salt
16:29 UtahDave joined #salt
16:29 nahamu UtahDave: heads up: https://github.com/saltstack/salt/issues/8561
16:30 s0undt3ch nahamu: yes, that the 0.17 bugfix branch, you'll always get a git version style version out of it
16:30 nahamu Windows esky build of the v0.17.2 tag might fail.
16:30 nahamu s0undt3ch: has merged the fix from develop into 0.17
16:30 s0undt3ch nahamu: nope, windows esky is fixed
16:30 redondos joined #salt
16:31 UtahDave nahamu: ah, yeah, I ran into that yesterday.
16:32 nahamu s0undt3ch: not when you're sitting directly on a version tag.
16:32 UtahDave nahamu: Yeah, I had to cherry-pick s0undt3ch's fix into my local clone
16:33 s0undt3ch nahamu: yes, when it's tagged, it's a "clean" version
16:33 nahamu s0undt3ch: right.
16:34 nahamu It's just a shame that an automated build process trying to do an esky build of 0.17.2 would fail. That's all I was trying to say.
16:35 pipps joined #salt
16:36 s0undt3ch nahamu: I'm thinking of adding esky builds to our jenkins system
16:37 nahamu s0undt3ch: that would certainly have caught the bug. :)
16:37 s0undt3ch true
16:37 UtahDave nahamu: Yeah, I'm planning on testing the esky build process on the branches before we tag the new version
16:37 UtahDave on windows, at least
16:38 nahamu UtahDave: does SaltStack the company have an account with Joyent?
16:38 * Gareth waves
16:38 nahamu I'd be happy to help automate the salt-cloud and other automation goop to help you guys automate testing on SmartOS and esky build testing.
16:39 erchn joined #salt
16:39 UtahDave nahamu: yeah, we do
16:39 nahamu (especially if I could then convince you guys to host esky builds for SmartOS on your own servers... ;) )
16:39 BenBen UtahDave: still interested by a mac os x walkthrough ?
16:39 mr_chris What is the point of the new minion_id file?
16:40 erchn hey guys, at one point there was an issue filed about allowing multiple imports (pillar only?) and combining the import results for common keys.  I can't find it, anyone know the status?
16:40 UtahDave hey, Gareth!
16:40 mr_chris I spun up a new server from a template, change the hostname, and spent about half an hour trying to figure out why it was still trying to authenticate as the old hostname.
16:40 Gareth UtahDave: morning :)
16:40 nahamu I'm almost done with writing a Joyent Manta job that would spit out a fresh esky build, but tripping over the bug in 0.17.2 slowed me down.
16:40 UtahDave BenBen: Yeah, that would be very much appreciated!
16:41 mr_chris Then I learned about minion_id and saw that not only was it never there in previous versions, it also does not get updated with a hostname change.
16:41 mkoistinen BenBen: I am!
16:41 redondos joined #salt
16:42 redondos joined #salt
16:42 mkoistinen BenBen: I just installed via sudo port install salt, and it went smoothly, but there's no man files and no configuration files.
16:42 mkoistinen BenBen: Any idea where they are for Mac OS X, or should I just create what is missing in /srv/salt and /etc/salt?
16:43 BenBen mkoistinen: i've just installed a full master / minion configuration on my mac, using a virtualbox VM for the minion. I've sent UtahDave the link to the .rst file, hopefully it should be available to everyone soon
16:43 mkoistinen super. would you mind just pointing me to the conf files?
16:43 cro mkoistinen: When installed via MacPorts the conf files and manpages should be in /opt/local
16:43 cro e.g. /opt/local/etc, /opt/local/man
16:43 mkoistinen Perfect, thank you.
16:44 cro (or maybe /opt/local/share/man)
16:44 micah_chatt Does anyone have a good way to dynamically add/delete keys from say an AWS autoscale cluster?
16:44 cro mkoistinen: If they are not there, I need to fix the Portfile so they get dropped in there.
16:44 mkoistinen I see no salt folder in any of those locations =/
16:45 mkoistinen (also, man files aren't being installed)
16:45 mkoistinen cd /opt/local/man
16:45 davet joined #salt
16:46 mkoistinen Well, /opt/local/man *has* been modified by the install... perhaps I need to update the manpage db?
16:46 micah_chatt The 'key' execution module only has a function to get the fingerprint, it seems it would be useful to have the ability to add/remove them as well
16:47 erchn ok found it, issue 3991, anyone know what release "Hydrogen" is?  18?
16:47 UtahDave erchn: I'm not sure on that bug. Have you tried it lately?
16:47 erchn it shows open still, so I'm sure it's not fixed
16:48 erchn it's not a bug, it's a feature enhancement
16:48 erchn https://github.com/saltstack/salt/issues/3991
16:48 erchn I've more or less gotten around some of the issues using jinja macros, but it's kinda ugly
16:49 BenBen mkoistinen: you can find the .rst file here http://simpleapp.fr/salt_step_by_step_macosx.rst
16:49 UtahDave Yeah, Hydrogen is basically 0.18.0
16:49 mkoistinen Thanks BenBen
16:49 erchn UtahDave: thank you, I assume that's a few weeks minimum away, maybe new year
16:49 BenBen mkoistinen: I just finished typing it a few hours ago, so it may still have some typos
16:50 mkoistinen OK, I won't bitch too much =)
16:51 pipps_ joined #salt
16:51 mkoistinen Although, the big one is that these are for a brew install, and I've done a port install =(
16:52 mkoistinen I'm putting 'find' to work... =)
16:52 [diecast] joined #salt
16:54 mkoistinen BenBen: if I should find some edits to the rst file, do you have it in a git repo somewhere?
16:54 redondos joined #salt
16:54 UtahDave forrest: hey, are you around?
16:55 forrest yea I am, was in a meeting, what's up
16:55 UtahDave forrest: can I pm you?
16:55 BenBen unfortunately i don't for now. Keep your version somewhere, if the documentation is useful enough it would probably end up in some salt git somewhere
16:55 forrest go for it UtahDave
16:56 mkoistinen cro: running 'find / -name minion' on my fresh install via 'sudo port install salt' turns up only files in /private/tmp/pip-build-root/salt/conf/minion and /private/tmp/pip-build-root/salt/tests/integration/files/conf/minion
16:57 BenBen forrest: ok great
16:57 cro mkoistinen: OK, I'll take care of that
16:57 cro thanks for checking
16:57 mkoistinen ok. where should I put them? /opt/local/etc/?
16:58 mkoistinen I just need to know where the binary will check for a configuration at this point.
16:58 BenBen mkoistinen: you mean the salt-master command ?
16:59 mkoistinen Well, yes, but I'll be using salt-ssh mainly.
16:59 jslatts joined #salt
16:59 cro mkoistinen: huh...that's probably not right, but salt is looking in /etc
16:59 mkoistinen ??
16:59 cro specficially /etc/salt
17:00 thelorax123 joined #salt
17:00 mkoistinen what do you mean by "that's probably not right"?
17:00 cro Most packages installed via Ports look for conf files in /opt/local/etc
17:01 schristensen joined #salt
17:01 cro that's part of the philosophy of macports--mess as little as possible with the stock MacOS install
17:01 mkoistinen Ooh. ok. Got it.
17:01 mkoistinen Thanks for your help cro, BenBen!
17:01 cro I'll open a GitHub issue so I don't forget to fix it
17:01 cro np :-)
17:02 micah_chatt UtahDave: is there a 'blessed' way of going about authenticating minions' keys in an autoscale setup?
17:03 micah_chatt I've been working on an idea, and was basing it of something like this https://gist.github.com/micahhausler/7487800
17:03 jdenning joined #salt
17:05 micah_chatt does that seem like a bad idea?
17:05 dave_den mkoistinen: there's no 'minion' file in the salt source. try:  find / -name '*minion*'
17:06 amahon joined #salt
17:06 KyleG joined #salt
17:06 KyleG joined #salt
17:07 jslatts joined #salt
17:10 UtahDave micah_chatt: are you in a vpc?
17:10 micah_chatt UtahDave: yes
17:10 Gareth results of some quick hacking this morning on a Debian ip module: https://gist.github.com/garethgreenaway/7487923
17:12 shinylasers joined #salt
17:12 UtahDave micah_chatt: then you could leave your master in open_mode and just let new vms in automatically.
17:12 UtahDave nice, Gareth!
17:12 micah_chatt UtahDave: I also want to clean up old accepted keys of dead hosts, so that running salt -g "autoscale:web*" runs faster
17:13 micah_chatt cause otherwise it would really add up
17:16 dave_den micah_chatt: you could also create a reactor that fires when new keys are sent from autoscale minions. that way you could do any configuration or authentication of the minion before accepting the key...
17:16 ravibhure joined #salt
17:18 micah_chatt dave_den: but what about cleanup?
17:18 dave_den micah_chatt: minions can revoke their own keys. have them do that when they are scaled down.
17:18 micah_chatt ahh ok
17:18 micah_chatt where is the docs on that?
17:19 Gareth UtahDave: thanks :) do you still have that gist showing the output on a RH machine?
17:19 micah_chatt is it saltutil.revoke_auth ?
17:19 Gareth nm. found it.
17:19 dave_den micah_chatt:  yes. http://docs.saltstack.com/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.revoke_auth
17:20 micah_chatt cool, thank you! I think that could work
17:20 halfss joined #salt
17:22 troyready joined #salt
17:23 snewell joined #salt
17:27 micah_chatt dave_den: are you thinking of like an SNS notification to the clients to be called when the instance goes down? so salt-minion can de-auth before the server goes offline?
17:27 bhosmer joined #salt
17:29 dave_den micah_chatt: the instances get a shutdown command when they are being terminated. you can configure them to run salt-call saltutil.revoke_auth on shutdwn.
17:29 jrdxusa joined #salt
17:29 micah_chatt ahhh ok
17:30 jhulten joined #salt
17:30 dave_den i think aws gives the instance 20 or 30 seconds to do graceful shutdown before it's terminated
17:30 Linz joined #salt
17:30 cheus joined #salt
17:34 zandy joined #salt
17:34 bhosmer joined #salt
17:35 cdcalef joined #salt
17:36 druonysus joined #salt
17:36 [diecast] joined #salt
17:37 mwillhite joined #salt
17:38 anti joined #salt
17:40 scott_w joined #salt
17:44 mgw joined #salt
17:45 snewell I'm trying to use salt.states.user to create a user, but am having issues with the password.  The password hash I have seems much shorter than it should be.  Anyone have examples of how to create password hashes?
17:45 ravibhure left #salt
17:46 forrest snewell, https://gist.github.com/UtahDave/3785738
17:48 tdillio joined #salt
17:48 BenBen joined #salt
17:50 diegows_ joined #salt
17:51 druonysuse joined #salt
17:51 snewell @forrest:  Thanks.  That's the one I'm using, but that python snippet at the top only generates a string about 13 characters long.  What am I missing?
17:51 redondos joined #salt
17:51 forrest snewell, I'm not sure, when I run that exacpt command, I get a very lengthy hash
17:52 snewell forrest: Hmm.  I'll try again.  Thanks!
17:52 scott_w joined #salt
17:54 snewell forrest: Do I replace the 'password' string with my password?
17:54 tdillio Is it possible to use a salt:// url as the identity value for the git salt state?
17:54 forrest snewell, yea
17:55 forrest tdillio, I actually don't know... How would that work if you were to do that? You'd have the .git file saved within a subdir?
17:55 snewell forrest: thanks.  That's what I thought, but not working.  I'll keep trying
17:56 forrest snewell, yea that's really weird, what version of python are you on?
17:57 snewell forrest: python2.7.2.  Got it working.  Tried in on the Mac, and got weird results, but when I tried it on linux, it seemed to work.  Testing now...
17:57 forrest interesting
17:57 forrest I don't have a mac so I've never used Python on there, I wonder if perhaps it's using a different hash system for crypt
17:58 jslatts joined #salt
17:58 tdillio forrest: I'm using git.latest and creating a non bare directory, I think I'm going to have to ditch the git salt state entirely and use the cmd state to call git directly, I've been trying to make the git sate work for my use case and not having any success.
17:58 forrest ahh ok
17:59 snewell forrest:  Also, seems to have something to do with '!' in the password.  Python seems to hate that.  Trying to figure out how to escape that now...
18:00 bitz joined #salt
18:00 scott_w joined #salt
18:01 jhulten joined #salt
18:02 jhulten joined #salt
18:03 jacksontj joined #salt
18:03 jslatts joined #salt
18:08 amckinley joined #salt
18:09 pdayton joined #salt
18:10 snewell Apparently, python crypt.crypt chokes when there is an '!' embedded in the password.
18:10 _ikke_ really?
18:11 pears works okay for me
18:12 pears >>> crypt.crypt('hello!', 'xx')
18:12 pears 'xxVlTgac0tKK.'
18:13 snewell pears: Maybe it's when I try to run it from the command line with python -c...
18:13 forrest yea fails for me with pythonc
18:13 forrest *python -c
18:13 snewell anyway, I gave up, and changed the password I'm using
18:13 snewell May actually be bash that is choking... (Runs off to investigate...)
18:14 pears python -c 'import crypt; print crypt.crypt("hello!", "xx")'
18:14 pears xxVlTgac0tKK.
18:14 forrest snewell, python -c "import crypt; print crypt.crypt('hello\!', '\$6\$SALTsalt\$')"
18:14 forrest $6$SALTsalt$7nVAQp7R/lJM4Fme.CMA8n0H/aAii13L23KRVwy2nU/HlnGw71beH18.i1t/ylo8F6sDly/4D0PogXwOuLRIR1
18:14 forrest works fine for me
18:14 _jslatts joined #salt
18:14 forrest python -c "import crypt; print crypt.crypt('hello!', '\$6\$SALTsalt\$')"
18:14 forrest -bash: !',: event not found
18:14 forrest doesn't
18:15 snewell forrest:  I thought it worked too, but password hash actually requires that I login with password of hello\!
18:15 forrest lame
18:16 snewell yeah.  Oh well.  Giving up and moving on...
18:16 snewell :D
18:16 forrest let me know if you end up figuring it out
18:16 snewell yep
18:17 snewell So, next users question...  How can I create a user that can't login?  Do I just set shell to false?
18:17 forrest pretty sure
18:17 tdillio Can I not use something like: [ ! -d some_dir ] for the "onlyif" parameter for cmd.run? it seems to be ignoring the check...
18:17 snewell in the state file, I mean...
18:19 tdillio as in the command runs even if I use: [ -d some_dir ]
18:19 forrest snewell, I imagine you'd just use the standard /sbin/nologin
18:19 ajw0100 joined #salt
18:19 forrest for the shell
18:19 _ikke_ try 'test -d some_dir'
18:19 snewell forrest: thanks, I'll try that
18:20 snewell didn't know if there was a specific "salt pattern" for that
18:23 tdillio _ikke_: much thanks, test ! -d some_dir did the trick
18:26 forrest snewell, yea not as far as I know
18:31 pentabular joined #salt
18:32 mapu joined #salt
18:32 zach joined #salt
18:34 zandy joined #salt
18:35 marcel- joined #salt
18:36 lineman60 joined #salt
18:36 scott_w joined #salt
18:37 ajw0100 joined #salt
18:38 opapo joined #salt
18:39 jrdxusa joined #salt
18:39 harobed_ joined #salt
18:40 smccarthy joined #salt
18:43 DredTiger joined #salt
18:46 luminous if you have some jobs that appear 'stuck' what can you do to 'reset' them, or 'clear' them, else find out why thye are stuck?
18:47 forrest luminous: http://docs.saltstack.com/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.kill_job
18:47 forrest that can kill, otherwise try find_job
18:47 forrest which is just above it on that doc page
18:48 luminous ah! I was looking in jobs runner
18:48 luminous thanks forrest!
18:48 forrest np
18:49 pentabular left #salt
18:50 Ryan_Lane joined #salt
18:52 bhosmer_ joined #salt
18:54 gasbakid joined #salt
18:56 redondos joined #salt
18:56 redondos joined #salt
19:00 pdayton joined #salt
19:05 mkoistinen cro:, BenBen:, dave_den: and anyone else interested in Mac OS X installations: salt-ssh appears to work fine once I created configuration files at /etc/salt/*. However, I have now confirmed that no man pages were installed via macports on my system relating to salt (I grep'ed the contents of /opt/local/share/man for salt, came up empty).
19:06 pass_by_value joined #salt
19:06 scott_w joined #salt
19:07 BenBen mkoistinen: ok, thx for the info
19:08 mkoistinen Is it possible to install salt-cloud on Mac OS too, somehow?
19:08 mkoistinen pip install?
19:08 mkoistinen Yup, nevermind =)
19:09 jslatts joined #salt
19:09 travisfischer joined #salt
19:11 Brew joined #salt
19:11 cron0 joined #salt
19:12 scott_w_ joined #salt
19:12 redondos joined #salt
19:13 salticus joined #salt
19:14 mkoistinen I posted a note regarding the above here: http://www.saltstack.com/salt-blog/2013/11/4/salt-now-available-in-macports (although it is awaiting moderation, it seems)
19:17 jacksontj joined #salt
19:17 jergerber joined #salt
19:18 scott_w joined #salt
19:20 jacksontj joined #salt
19:21 snewell How do I copy a file and chown it to a different user in the same state file?
19:21 snewell Would that be salt.states.file.managed?
19:21 scott_w_ joined #salt
19:21 EugeneKay Yup.
19:25 redondos joined #salt
19:27 foxx joined #salt
19:27 foxx joined #salt
19:34 oz_akan_ joined #salt
19:34 NotreDev i have a very simple state that is supposed to start the supervisord service on my CentOS box. it doesn't. http://pastebin.com/3hWrPUGZ
19:35 oz_akan_ joined #salt
19:35 zandy joined #salt
19:36 djinni` joined #salt
19:37 felskrone joined #salt
19:37 felskrone hey
19:37 emilisto joined #salt
19:37 icarus joined #salt
19:37 fivethreeo joined #salt
19:37 djbclark joined #salt
19:37 hotbox joined #salt
19:37 zakm joined #salt
19:37 blee_ joined #salt
19:37 djbclark joined #salt
19:37 \ask joined #salt
19:37 jcsp joined #salt
19:37 Nazca__ joined #salt
19:37 baoboa joined #salt
19:37 vipul joined #salt
19:37 iMil joined #salt
19:37 iMil joined #salt
19:37 lemao joined #salt
19:38 flebel joined #salt
19:39 felskrone has anyone here sort of "automated" the key-management in a way, that minions can disappear and get recreated with a different key?
19:42 ccase joined #salt
19:43 nahamu Teknix: https://us-east.manta.joyent.com/nahamu/public/salt/salt-0.17.2-esky-smartos.tar.gz
19:43 nahamu untested
19:43 Teknix nahamu: cool, I'll test ;)
19:44 nahamu if you want to test the esky update process I could drop the zip file on a regular web server...
19:46 nahamu Teknix: the URL to give to the esky update feature is http://www.shalman.org/salt/
19:46 anti__ joined #salt
19:49 vejdmn joined #salt
19:51 nahamu update feature worked for me.
19:53 jacksontj joined #salt
19:55 pentabular joined #salt
20:02 quickdry21_ joined #salt
20:05 shinylasers joined #salt
20:06 sroegner_ anybody out there who uses salt-cloud maps on ec2 and has 1 minute to verify a potential problem?
20:09 elfixit joined #salt
20:09 [diecast] joined #salt
20:11 jcsp1 joined #salt
20:12 pdayton joined #salt
20:15 pipps joined #salt
20:18 barryjcu joined #salt
20:19 barryjcu does anyone out there know how to specify, in a the /etc/salt/cloud.profiles file, a specific network for vm to connect to?
20:19 barryjcu I'm using Openstack as my provider
20:20 AdamSewell joined #salt
20:22 NotreDev where does __salt__ come from? is this a global? https://github.com/saltstack/salt/blob/develop/salt/states/service.py#L278
20:24 racooper joined #salt
20:26 tyler-baker joined #salt
20:27 bhosmer joined #salt
20:27 tyler-baker joined #salt
20:27 jslatts joined #salt
20:28 micah_chatt joined #salt
20:36 zandy joined #salt
20:36 snewell What is the saltstack way of running mysql_secure_installation after mysql server has been installed?
20:38 backjlack joined #salt
20:39 UtahDave joined #salt
20:40 _ikke_ snewell: use cmd.watch with a requirement on mysql
20:41 snewell _ikke_: Thanks.  Off to read about cmd.watch
20:41 mpanetta joined #salt
20:42 NotreDev the authors of salt don't apparently believe in classes.
20:42 heewa NotreDev: I'm looking for something similar, __pillar__. Did you find out? I'm starting with a bit of fear at loader.py, in the 'gen_functions' method, which looks like it's implicitly loading modules (~ lines 625-635) and setting global vars of __grains__ and __pillar__ (~692).
20:43 mpanetta joined #salt
20:43 NotreDev i gave up tracing it down all the way, but start with this: https://github.com/saltstack/salt/blob/0f149ed23a4282d7cb73ffb18e33c8fac03bfc07/salt/loader.py#L546
20:43 heewa NotreDev: I know, I kinda hate how magic/implicit a lot of salt codebase is. Also, check out lines 857 and 546 for your __salt__ global.
20:43 heewa haha, yep
20:44 NotreDev i'd love to help with the proj, but i disagree with the development guidelines they're using.
20:45 isomorphic joined #salt
20:45 NotreDev the more i look at the man behind the curtain, the more scared i get about using this in production
20:47 bhosmer joined #salt
20:47 jcsp1 NotreDev: grep -r "class " salt/ | wc -l
20:47 jcsp1 272
20:48 jcsp1 is there something in particular that should be a class that isn't?
20:49 NotreDev i'll ask that from the other way around. notice anything wrong with the code cited above?
20:50 UtahDave NotreDev: Salt does use classes in a few places, but we use basic python datastructures for everything else. dicts in particular
20:50 mapu joined #salt
20:50 NotreDev see your initialization of modules? that looks very class-ish.
20:50 NotreDev but it isn't classish. and instead the code is overly complex.
20:50 vejdmn joined #salt
20:54 tty-1_ joined #salt
20:54 bhosmer joined #salt
21:01 smccarthy2 joined #salt
21:02 pipps_ joined #salt
21:03 smccarthy2 joined #salt
21:12 vejdmn joined #salt
21:18 thelorax123 joined #salt
21:19 amckinley joined #salt
21:19 scott_w joined #salt
21:20 pipps joined #salt
21:20 shinylasers joined #salt
21:26 pentabular joined #salt
21:26 pentabular left #salt
21:33 pdayton joined #salt
21:34 jacksontj joined #salt
21:37 zandy joined #salt
21:40 pipps_ joined #salt
21:47 noob joined #salt
21:48 Guest50981 anyone see something wrong w/this?
21:48 Guest50981 statsd:   foo:     git.clone:       - cwd: /tmp/github.com/statsd       - repository: https://github.com/etsy/statsd.git
21:48 Guest50981 crap hold on
21:49 Guest50981 statsd:
21:49 Guest50981 foo:
21:49 Guest50981 git.clone:
21:49 _ikke_ PLease use a pastebin
21:49 _ikke_ http://gist.github.com or something
21:50 Guest50981 right on - here:  https://gist.github.com/joekimfoo/8b05d9f0d22cdb0c8b9c
21:51 _ikke_ the foo: part
21:51 thelorax123 joined #salt
21:53 Guest50981 I editted it can you look again?
21:54 _ikke_ clone: -> - clone:
21:55 Guest50981 ok, now I get ScannerError: mapping values are not allowed here   in "<unicode string>", line 4, column 12:           - cwd: /tmp/github.com/statsd
21:57 _ikke_ Could you update the gist again?
21:57 luminous so I have debug logging enabled, and when running a cloud map, I get: Nov 15 21:43:44 salt-cloud saltcloud.cli: Applying map from '/tmp/tmpic3NvR'.
21:57 luminous it hangs here forever
22:00 Guest50981 done
22:02 sroegner_ luminous: how did you install salt-cloud and what is your salt version?
22:02 socket1 joined #salt
22:02 BbT0n joined #salt
22:02 _ikke_ Guest50981: Here are a few example stats: http://docs.saltstack.com/topics/tutorials/starting_states.html
22:03 _ikke_ Guest50981: Look at ssh/server.sls on that pag
22:03 _ikke_ page
22:05 Guest50981 _ikke_: I think I'm following that pattern now, but I don't see what's wrong
22:06 _ikke_ Did you also update the state itself in the gist?
22:06 scott_w joined #salt
22:07 pass_by_value left #salt
22:07 Guest50981 I'm sorry I'm not following you
22:08 ipmb joined #salt
22:08 _ikke_ Guest50981: Is what's in the gist what you have in the state?
22:09 Guest50981 the state is "git", am I right?
22:09 _ikke_ state file
22:09 Guest50981 git is a built-in state, so I've succeeded in calling: salt-call --local git.checkout /tmp/github.com/statsd 2ccde8266bbe941ac5f79efe39103b99e1196d92
22:09 _ikke_ the .sls file
22:10 Guest50981 it's like pkg, if i understand correctly
22:11 dccc joined #salt
22:12 heewa s0undt3ch: You around? I think I'm hitting an issue with pillar conf passing between master & minion that's similar to one you fixed a little while ago.
22:12 _ikke_ Guest50981: https://gist.github.com/Ikke/38a12ed8b1240d6b836f
22:12 s0undt3ch heewa: oh? what's up?
22:14 heewa s0undt3ch: I'm getting the global __pillar__ var in a module being set to 'False' (rather than a dict). I traced it (through a truly terrifying labyrinth of abstract/implicit/run-time code), to (most probably, like 95% sure) the minion getting the bool value from the master.
22:14 s0undt3ch heewa: update your master to latest
22:14 sroegner_ joined #salt
22:15 heewa s0undt3ch: I'm running my minion off the develop branch. It should check that the pillar it got from the master is correct, at least at the type level, right?
22:15 s0undt3ch the issue is in your master
22:16 heewa s0undt3ch: Fine fine, I'll do that, even though there's another pillar bug on the develop branch that I hit with my master. I guess there's no point in tracking down this bug in an old part of the codebase.
22:16 s0undt3ch heewa: what other issue?
22:16 heewa s0undt3ch: But I'm still going to add a sanity check & nice error in my minion. It can't just pretend that 'False' is a sane value for __pillar__. Stuff blows up elsewhere.
22:16 alunduil joined #salt
22:17 s0undt3ch heewa: False is not a sane value for __pillar__
22:17 heewa s0undt3ch: I dunno, I've been like full-time staring at so many combinations of versions of salt minion/master for days trying to get things to work. Lemme submit a fix for the minion & I'll put my master on develop & see where it explodes.
22:18 s0undt3ch heewa: before updating minions you should always update master first
22:18 s0undt3ch heewa: let me confirm
22:18 forrest At least it's friday Heewa :P
22:18 s0undt3ch UtahDave: always update the master before the minions, right?
22:18 UtahDave yeah, master first
22:19 heewa forrest: That's definitely helping. Also the several beers I'm going to have before leaving the office. My buddy next to me helped me bring up the replica DBs by hand so I wouldn't cry onto my keyboard.
22:19 forrest lol
22:19 forrest better share your beers with him
22:19 Guest50981 _ikke_: thanks, I think my prob was -clone and -cwd needed to be on the same level, after I fix it, my results and yours are the same, but it still doesn't work - I updated my gist
22:22 scooby2_ joined #salt
22:22 _ikke_ Guest50981: aparently, git.clone is not known
22:23 _ikke_ Guest50981: there is git.latest and git.present
22:23 ipmb joined #salt
22:23 Guest50981 http://docs.saltstack.com/ref/modules/all/salt.modules.git.html#salt.modules.git.clone
22:24 _ikke_ Guest50981: A module is something different from a state
22:24 _ikke_ http://docs.saltstack.com/ref/states/all/salt.states.git.html#salt.states.git.present
22:26 Guest50981 I'm confused
22:26 kermit joined #salt
22:26 pentabular1 joined #salt
22:27 _ikke_ Guest50981: Salt has two parts: remote command execution, and state management
22:27 scott_w joined #salt
22:28 ajw0100 joined #salt
22:31 _ikke_ Guest50981: salt.modules.git is part of the remote command execution
22:31 _ikke_ salt.states.git is part of the state managemetn
22:32 Guest50981 so how can I run a module command in an *.sls?  or is that bad form?
22:33 _ikke_ Guest50981: what is it that you want to achieve?
22:33 pdayton joined #salt
22:34 _ikke_ http://docs.saltstack.com/ref/states/all/salt.states.git.html#salt.states.git.latest is what you want
22:35 FL1SK joined #salt
22:36 Guest50981 yes I think that will do it - I thought that call wouldn't pull a specific rev bc of its name
22:36 Guest50981 thanks!
22:37 zandy joined #salt
22:51 giantlock_ joined #salt
22:51 mapu UtahDave: I was trying to document the steps to get my pillar issue I was describing last night so I could submit it- but I have not been able to replicate it. Which leads me to believe it's something local to my environment.
22:52 UtahDave ah, ok
22:59 micah_chatt joined #salt
23:02 tianyi joined #salt
23:07 KyleG1 joined #salt
23:07 andrej joined #salt
23:11 nicksloan joined #salt
23:11 wramthun joined #salt
23:12 luminous so I have debug logging enabled, and when running a cloud map, I get: Nov 15 21:43:44 salt-cloud saltcloud.cli: Applying map from '/tmp/tmpic3NvR'. salt-cloud 0.8.9 and salt 0.16.4, map looks like: openstack-1_ubuntu-1204-lts-precise-pangolin_1gb-standard-instance: [p-foobar, basldhksaldh]
23:13 tianyi joined #salt
23:13 snewell joined #salt
23:17 luminous is there a double debug mode for logging in salt-cloud?
23:17 luminous like -vvv in ssh
23:20 abe_music joined #salt
23:21 sroegner_ joined #salt
23:22 foxx[cleeming] joined #salt
23:22 foxx[cleeming] joined #salt
23:26 anti_ joined #salt
23:30 thrashr888 joined #salt
23:31 snewell I'm trying to use git.config_set in a state file, but I get the error "State git.config_set found in sls test is unavailable".  Suggestions?
23:32 abe_music so, i updated earlier to the develop branch from 0.16.x after i noticed salt and salt-cloud were merged....i'm not able to run any of my states in my base env now
23:32 abe_music not sure what's happened...maybe some new master config that i'm missing?
23:33 _ikke_ snewell: git.config_set is a command, not a state
23:34 snewell So, I'm confused... How, then, do I use commands in a state file?
23:34 snewell RTFM pointers encouraged!
23:35 anti_ joined #salt
23:35 EugeneKay You can cmd.run inside of a state, but it must be idempotent - IE, running it multiple times won't break things.
23:35 EugeneKay Setting a git-config variable should be perfectly fine to do.
23:35 heewa abe_music: Unless you need something specifically not in 0.17.1, it's probably better to run from there.
23:38 zandy joined #salt
23:46 Gifflen joined #salt
23:46 snewell can somebody point me to an example of how I could set git-config variables from a state file?
23:48 abe_music heewa: on further examination i found that newer code has started using 'saltenv' to reference the environment instead of 'env'....this was causing my custom fileserver backend to break. after fixing that things are back to normal
23:49 abe_music will probably find similar things as are start using it more, but now i know where to start looking
23:50 EugeneKay snewell: FooState:\n  cmd.run:\n    - cwd: "/path/to/git/repo/"\n    - name: "git config some.var myvalue"
23:51 EugeneKay (roughly)
23:51 shennyg joined #salt
23:52 snewell EugeneKay: So, I can't use the git.config_set module?
23:53 EugeneKay No clue; I've not touched that module.
23:53 EugeneKay If it works, great. If not, file a bug(and maybe a patch to go with it)
23:54 snewell I can get it to run from cli, but not from within a state file.  I'm sure it's that I'm not understanding syntax...
23:54 EugeneKay Pastebin ;-)
23:55 snewell http://pastebin.com/fh1anKZw
23:55 EugeneKay Looks right. What's the error?
23:56 snewell http://pastebin.com/L0s4TwcY

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