Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-09-15

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

All times shown according to UTC.

Time Nick Message
00:00 jxqz joined #salt
00:00 robertkeizer joined #salt
00:01 ml623 joined #salt
00:03 ml623 Hello Salt... I have question regaridng scheduling minions highstate runs.... I see the suggested ways are via crond or via  the scheduling system, niehter of which would allow for smart way to control the runs so they dont overwhelm the master...
00:03 ml623 Or is that not an issue for anyone? master can handle any number of concurrent minions?
00:03 mech422 ml623: I can tell ya the wrong way to do it :-)
00:04 mech422 ml623: put a random sleep in your salt wrapper script :-)  Then blame it on the new guy!
00:04 diegows joined #salt
00:05 mech422 ml623: on a more serious note - why not just schedule the machines for different cron intervals/times ?
00:06 sibsibsib joined #salt
00:06 ml623 mech422: yeah, I used that trick in the past, works pretty well... I am using puppet currently and it has a nice module (mcollective plugin for running puppetd, which does exaclty what I want... always run the "minions" about twice per hour, make sure no more than 10 run at a time
00:06 mmilano joined #salt
00:07 ml623 is there something similar in saltstack?
00:07 mech422 ml623: Umm - not that I know off...
00:07 mech422 you can go the other way - call salt '*' state.highstate on the master
00:08 mech422 and there is some rate limiting to let you say "only execute on X% of the minions at once"
00:08 ml623 mech422: yeah, still need to code my logic.. how many are currently running? can I run a couple more?....
00:08 ml623 mech422: oh, rate limiting?
00:09 mech422 err..rate limiting...load limiting..connection limiting  -basically it promises not to bother more then X% of the minions at once :-P
00:09 ml623 I ll read on that... sounds like might be enough... "only execute on X% of the minions at once"... thanks a lot.
00:09 mech422 good luck!
00:11 mech422 joined #salt
00:15 SunSparc joined #salt
00:21 Andrevan joined #salt
00:28 rspectre joined #salt
00:35 aat joined #salt
00:37 kermit joined #salt
00:54 forrest does anyone remember what value you had to pass to the bootstrap so it would pull in the 0.16.4 git tag?
01:00 terminalmage forrest: dunno, but you could try the develop one using v0.16.4 instead
01:00 terminalmage python -m urllib "http://bootstrap.saltstack.org" | sudo sh -s -- git v.0.16.4
01:01 terminalmage er...
01:01 terminalmage python -m urllib "http://bootstrap.saltstack.org" | sudo sh -s -- git v0.16.4
01:01 terminalmage that's the git tag for 0.16.4
01:01 forrest oh that's why I did 0.16.4 instead of v0.16.4
01:01 forrest worked like a charm, thanks
01:01 terminalmage cool
01:02 forrest hey do you know if the jinja mapping that whiteinge did is only 0.16.4+? The salt formulas page says it requires the grains execution module
01:02 terminalmage hmm
01:02 terminalmage you're talking about in the djangocon repo
01:03 terminalmage ?
01:03 forrest the link on the salt formulas page doesn't work otherwise I'd just look at the code
01:03 forrest hmm, nope looks like the error I'm getting isn't because of a version issue
01:03 avienu joined #salt
01:03 terminalmage the stuff that whiteinge did for djangocon is a built-in jinja thing
01:03 forrest I'm just talking about the new formula style in general
01:03 terminalmage ah
01:03 terminalmage I do not know
01:04 terminalmage haven't looked at it
01:04 forrest yea filter_by() keeps failing to pick up the merge for some reason, I'll hit him up when he's around, thanks.
01:04 terminalmage ok
01:04 forrest thanks
01:04 terminalmage np
01:07 mmilano joined #salt
01:12 aat joined #salt
01:22 SunSparc_ joined #salt
01:29 dN0t joined #salt
01:41 redondos joined #salt
01:44 SunSparc joined #salt
01:48 jslatts joined #salt
01:53 SunSparc_ joined #salt
01:58 SunSparc joined #salt
02:05 sixninetynine joined #salt
02:06 redondos joined #salt
02:08 SunSparc joined #salt
02:11 Thiggy joined #salt
02:14 SunSparc_ joined #salt
02:16 juvenn joined #salt
02:19 SunSparc joined #salt
02:21 canci joined #salt
02:23 redondos joined #salt
02:29 SunSparc_ joined #salt
02:38 redondos joined #salt
02:39 bhosmer joined #salt
02:54 SunSparc joined #salt
02:56 jcockhren terminalmage: Not sure why this is failing to build. inline any thoughts and I'll fix it -> https://github.com/saltstack/salt/pull/7248
02:56 jcockhren stepping out for a bit. will follow up later
02:59 mech422 anyone happen to know how to get file.managed to only fire if another file has changed ?  ( sorta like file.managed -watch file:/foo/bar/baz )
02:59 SunSparc joined #salt
03:00 jcockhren mech422: http://docs.saltstack.com/topics/reactor/index.html
03:00 jcockhren mech422: I haven
03:01 jcockhren mech422: I haven't tried it myself but it seems possible
03:01 mech422 ohh- I don't think I've seen this...lemme lookie!
03:01 mech422 Thanks!
03:01 jcockhren np
03:05 redondos joined #salt
03:05 juvenn hi all, what hash function should I use for password of salt.state.user?
03:15 mmilano joined #salt
03:20 redondos joined #salt
03:21 terminalmage jcockhren: that is a common failure, it's something in the tests that we haven't nailed down yet.
03:21 terminalmage not your fault
03:24 oz_akan_ joined #salt
03:24 SunSparc_ joined #salt
03:30 racooper joined #salt
03:39 redondos joined #salt
03:44 avienu joined #salt
03:46 cedwards I'm trying to uncomment a line in /etc/sudoers and I'm getting 'Pattern not found'
03:47 forrest with a sed and replace or what?
03:47 cedwards file.uncomment
03:47 cedwards i've copy/pasted the line i want uncommented..
03:48 cedwards minus the #, per the documentation
03:48 cedwards I guess I could just file.append the line I need instead..
03:49 EugeneKay I do a full file.managed on sudoers, but that's me.
03:49 cedwards I don't do anything with my file other than uncomment %wheel
04:00 sssslang joined #salt
04:00 cedwards no idea why it's not finding the pattern
04:13 redondos joined #salt
04:30 shar joined #salt
04:32 shar left #salt
04:34 txmoose joehh: Sorry for the long delay. I work overnights and sleep during the day time.  No, the box has 165ish days of uptime. No reboots, no restarts.
04:40 redondos joined #salt
04:56 oz_akan_ joined #salt
05:06 xinkeT joined #salt
05:08 redondos joined #salt
05:14 lynxman joined #salt
05:14 lynxman joined #salt
05:15 xl1 joined #salt
05:25 redondos joined #salt
05:26 juvenn joined #salt
05:27 xl2 joined #salt
05:30 UtahDave joined #salt
05:35 forrest hey s0undt3ch, did you ever do: https://github.com/saltstack/salt-bootstrap/issues/69
05:39 terminalmage forrest: looking at the source code for the bootstrap script, this appears to have been done
05:39 terminalmage I see calls to update-rc.d
05:39 forrest yes that's what I saw as well
05:39 forrest but I wasn't sure if there was something else on the roadmap for that or what
05:39 terminalmage yeah
05:40 forrest the thing is those update-rc.d calls only exist in ubuntu
05:41 forrest I see in the centos one he's got it chkconfiged on
05:42 redondos joined #salt
05:44 terminalmage ah
05:45 matanya joined #salt
05:45 forrest yea, the weird thing is though I installed it from the bootstrap a little while ago to test some stuff, and it didn't chkconfig the salt-minion on
05:45 forrest granted is this in stable...
05:45 forrest hmm yep it is
05:47 terminalmage welp... I'm heading to bed. Gotta get up and go to the gym and then go watch the Bears game with my brother
05:47 forrest later, have a good one.
05:47 terminalmage later
05:50 matanya joined #salt
06:01 cedwards I guess it's not possible to - watch: an ssh_auth?
06:06 forrest does it give an error? I don't see why you couldn't.
06:07 forrest - watch: - ssh_auth: asdf doesn't work?
06:08 redondos joined #salt
06:09 cedwards i'm getting a cmd.watch is unavailable
06:09 forrest weird
06:10 cedwards oops
06:10 cedwards cmd.wait is what i'm looking for
06:10 forrest maybe add a watch_in to the ssh_auth?
06:10 forrest oh
06:10 cedwards i blame the booze ;)
06:11 forrest heh
06:15 joehh txmoose: no worries - next thought - what version is it?
06:15 bhosmer joined #salt
06:20 diegows is there a way to copy a file from a minion? salt-cp looks like it works in one direction only
06:21 forrest diegows, http://docs.saltstack.com/ref/modules/all/salt.modules.cp.html#salt.modules.cp.push
06:21 diegows forrest, thanks!
06:21 forrest np
06:21 Corey cp push-- yeah.
06:21 Corey https://github.com/saltstack/salt/issues/1136
06:22 mech422 jcockhren: I got it working (sorta)...
06:22 mech422 jcockhren: I re-invented the flag file :-P  http://pastebin.com/xSsXzTpp
06:22 mech422 seems sorta kludgy though
06:23 mech422 file.managed and friends could use a 'watch_call_only' sorta flag
06:24 xl1 joined #salt
06:29 Lue_4911 joined #salt
06:35 redondos joined #salt
06:52 redondos joined #salt
06:59 Katafalkas joined #salt
07:11 oz_akan_ joined #salt
07:13 redondos joined #salt
07:14 xl2 joined #salt
07:19 xl1 joined #salt
07:19 xl1 joined #salt
07:19 az87c joined #salt
07:39 redondos joined #salt
07:56 redondos joined #salt
08:06 gildegoma joined #salt
08:12 redondos joined #salt
08:41 redondos joined #salt
08:58 redondos joined #salt
09:17 xl1 left #salt
09:19 xl1 joined #salt
09:43 redondos joined #salt
09:52 bhosmer joined #salt
09:56 sfello joined #salt
09:59 redondos joined #salt
10:03 bhosmer joined #salt
10:15 sfello joined #salt
10:18 nbari joined #salt
10:19 nbari hi all, how can I make something like 'S@192.168.1.31 or S@192.168.1.32 or S@192.168.1.33': -match: compund inside a init.sls
10:20 nbari I would like to do a submatch on the init.sls
10:20 nbari any ideas ?
10:20 mech422 nbari: jinja ?
10:21 redondos joined #salt
10:21 nbari mmmm
10:21 mech422 nbari: not sure what the 'S' prefix is ... I only know grains an pillars
10:22 nbari am trying withsomethini like test: 'S@192.168.1.31 or S@192.168.1.32 or S@192.168.1.33': -match: compound   cmd.run: -name: uname -a
10:22 mech422 where does the condition come from ?
10:23 nbari http://docs.saltstack.com/topics/targeting/compound.html and from here http://developer.rackspace.com/blog/marconi-and-salt-part-2.html
10:23 nbari I found examples using - match: compound
10:23 mech422 would something like {% if grain['ip'] == '192.168.1.31' or grain['ip'] == .... %} work ?
10:23 nbari that can work in the init.sls ?
10:23 mech422 or do you not know the condition ahead of time ?
10:24 nbari the jinja {% %} conditions look grate but how to applythem on a state file ?
10:24 Katafalkas joined #salt
10:25 mech422 something like: http://pastebin.com/57c0069B
10:25 mech422 ( I set os via : {% set os = grains['os'] %} )
10:25 nbari I see
10:33 nbari I would like to make this to work: http://pastebin.com/GPVYJqcK
10:33 nbari using the 'S@192.168.1.31' -match compund
10:34 nbari and let jinja only for the files that i send to the minion
10:34 juvenn joined #salt
10:42 mech422 I still don't know what @S is ?
10:42 mech422 err..S@
10:42 mech422 G@ is grain, E@ is id - whats S@ ?
10:44 nbari Subnet/IP address
10:44 nbari http://docs.saltstack.com/topics/targeting/compound.html
10:50 redondos joined #salt
10:50 mech422 ok - so grains['ipv4'] will give you a list of all ipv4 addresses
10:50 mech422 use that and jinja and build your condition
10:51 mech422 you can't use glob style notation inside anything except 'top level' sls as far as i know
10:52 nbari ok let me see if i can create a block
10:54 mech422 hmm - your yaml looks a lil funny too ?? shouldn't 'cmd.run' be lined up with 'S@...' - since its not an attribute of 'S@' but the start of a new element ?
10:55 mezgani joined #salt
10:55 nbari if it depends must be idented or not ?
10:56 mech422 all yaml is whitespace sensitive
10:56 nbari i put it idented to the right thinking that was going to be consider as a dependecy
10:56 nbari so if no match no command will run
10:56 lemao joined #salt
10:57 mech422 http://yaml-online-parser.appspot.com/?yaml=my+test%3A%0A++%27S%40192.168.1.31%27%3A%0A++++-+match%3A+compound%0A++++cmd.run%3A%0A++++++-+name%3A+uname&type=json
10:57 mech422 uggh - ugly url :-P
10:58 nbari nice site, many thanks :D
10:58 mech422 np - I suck at yaml so I use it a lot :-P
10:59 nbari :)
11:04 nbari if i pust on top.sls someting like: S@192.168.1.31,192.168.1.32': etc. is there a short way fof send hihstete to all the minions ?
11:04 mech422 salt '*' state.highstate
11:04 nbari or just by runing salt '*' state.highstate will parse /match and run
11:04 mech422 yep
11:04 nbari :) thanks
11:10 nbari if I want to run a specific salt file, if I am right I have to do something like salt 'minion_name' state.sls my_sls ?
11:10 mech422 yes
11:11 nbari in cases where you need to setup (only once) what is the best aproach ?
11:11 nbari currently I am creating setup_nginx, setup_vim etc
11:11 nbari but is there a way to have a status ffor not overdploying ?
11:11 mech422 beats me - I only been doing this 2 nights :-P
11:12 nbari jajajaja me too
11:15 nbari well thanks for the help, see you arround
11:15 nbari bye
11:20 mnemonikk joined #salt
11:21 ronc joined #salt
11:32 redondos joined #salt
11:33 juvenn left #salt
11:35 isomorphic joined #salt
11:50 aat joined #salt
11:51 redondos joined #salt
11:52 xl1 joined #salt
12:06 aat joined #salt
12:24 p3rror joined #salt
12:30 ggoZ joined #salt
12:45 redondos joined #salt
13:01 redondos joined #salt
13:13 ronc joined #salt
13:20 bhosmer joined #salt
13:21 xl1 left #salt
13:24 redondos joined #salt
13:25 gildegoma joined #salt
13:29 TheCodeAssassin joined #salt
13:35 aat joined #salt
13:40 sibsibsib joined #salt
13:51 diegows joined #salt
13:51 redondos joined #salt
14:16 aat joined #salt
14:17 TheCodeAssassin joined #salt
14:18 redondos joined #salt
14:29 mohae joined #salt
14:35 logix812 joined #salt
14:36 redondos joined #salt
14:36 jslatts joined #salt
14:42 tuxIO joined #salt
14:54 redondos joined #salt
14:56 cro joined #salt
15:07 drdran joined #salt
15:20 avienu joined #salt
15:21 redondos joined #salt
15:30 sfello joined #salt
15:38 redondos joined #salt
15:43 mwillhite joined #salt
15:53 anteaya joined #salt
15:55 redondos joined #salt
16:01 jacksontj joined #salt
16:04 jacksontj_ joined #salt
16:05 lemao joined #salt
16:07 mmilano joined #salt
16:08 matanya joined #salt
16:17 mwillhite joined #salt
16:21 redondos joined #salt
16:36 tuxIO joined #salt
16:37 redondos joined #salt
16:38 MrTango joined #salt
16:54 mwillhite joined #salt
16:56 redondos joined #salt
17:05 ggoZ joined #salt
17:09 cedwards should i be able to use something like this '- after: ListenAddress {{ salt['network.ip_addrs']('eth0')[0] }}' in a file.sed?
17:10 cedwards I'm getting an error about 'missing parameter after'
17:10 g4rlic left #salt
17:22 redondos joined #salt
17:22 svx joined #salt
17:24 logix812 joined #salt
17:26 copelco what methods of matching can be used to access mine data? i'd like to filter down by two grains: environment = staging and roles = db
17:28 matanya joined #salt
17:37 svx_ joined #salt
17:39 redondos joined #salt
17:42 jdenning joined #salt
17:50 mmilano joined #salt
17:55 redondos joined #salt
18:02 mmilano_ joined #salt
18:12 redondos joined #salt
18:18 berto- joined #salt
18:21 avienu joined #salt
18:24 copelco is it possible to do a compound query for mine data?
18:30 redondos joined #salt
18:32 troyready joined #salt
18:32 felixhummel joined #salt
18:45 yogi__ joined #salt
18:46 sfello joined #salt
18:48 redondos joined #salt
18:57 robertkeizer joined #salt
19:03 mmilano left #salt
19:07 mmilano joined #salt
19:10 jetblack joined #salt
19:14 mgw copelco: what are you trying to do?
19:15 copelco i'd like to filter down by two grains: environment = staging and roles = db
19:15 redondos joined #salt
19:15 mgw for targeting purposes?
19:15 copelco yes
19:16 mgw the mine data is on the minion as grains, right?
19:16 copelco correct
19:17 mgw salt -C 'G@environmen:staging and G@roles:db'
19:17 mgw does that work?
19:18 Teknix joined #salt
19:20 copelco yes, i can query it from the cli
19:23 copelco but i can't get that same query to work for mine.get
19:26 redondos joined #salt
19:27 redondos joined #salt
19:27 vmdsch joined #salt
19:28 bhosmer joined #salt
19:34 MrTango joined #salt
19:40 oz_akan_ joined #salt
19:42 ronc joined #salt
19:46 Ryan_Lane joined #salt
19:59 troyready joined #salt
20:00 copelco is there a state to just run chown on a file?
20:02 ipmb joined #salt
20:02 oz_akan_ joined #salt
20:16 Ryan_Lane joined #salt
20:26 TheCodeAssassin joined #salt
20:35 cedwards I'm trying to use a file.sed in a state, but it's failing after the first run with "pattern not found"
20:35 cedwards s/file.sed/file.uncomment/
20:38 cedwards i think i figured it out. i was being too specific in my pattern match.
20:40 bhosmer joined #salt
20:46 Ryan_Lane joined #salt
20:53 redondos joined #salt
20:57 intchanter joined #salt
21:02 cedwards is it just me or does this doc seem to abruptly end - http://docs.saltstack.com/topics/tutorials/cloud_controller.html
21:12 cjbarnes18 joined #salt
21:16 yogi__ Is it possible to pass an environment  option when performing "salt 'client*' state.sls test.t1 test=True"  . As I use file.managed with source option and the file is under test but the test failes as it looks under base
21:22 aat joined #salt
21:24 yogi__ solution :  "salt 'client*' state.sls t1  test test=True" where first test=is the environment
21:27 cjbarnes18 Hi all,  I want to make use of salt virt, but want to be able to use image templates, what is generally used to preconfigure vm images in a salty environment?  i.e. cloud-init, guestfish ???
21:32 aat joined #salt
21:55 carlos joined #salt
22:03 ipmb joined #salt
22:11 isomorphic joined #salt
22:33 terminalmage cedwards: did you see my email regarding that selinux traceback?
22:39 mech422 I find 'watch' behaving like 'require' to be counter-intuative....
22:40 mech422 so I hacked salts/states/file.py to provide 'cmd.wait' style semantics in via an optional 'only-if-changed' parameter
22:41 mech422 would anyone else be interested in the changes ?
22:52 Thiggy joined #salt
22:56 emocakes joined #salt
23:02 sibsibsib joined #salt
23:07 forrest joined #salt
23:08 aat joined #salt
23:11 UtahDave joined #salt
23:18 cedwards terminalmage: I did
23:21 isset__ joined #salt
23:21 terminalmage cool
23:21 isset__ Hi, is there any way to manage compiling from source using saltstack?
23:21 terminalmage yeah that pull req should at least keep that traceback from coming up
23:22 terminalmage cedwards: and fail out with an error that makes you investigate further
23:23 forrest isset__, as far as I know there is no built in compiler ability, however you could just use http://docs.saltstack.com/ref/states/all/salt.states.cmd.html to run the compile commands.
23:23 isset__ forrest, thanks!
23:24 forrest yea np
23:24 isset__ I have one question left: Should my salt master be a server or can I use my local computer as the master?
23:25 terminalmage cedwards: I should be ready this week to straighten out the freebsdpkg and pkgng modules
23:25 nfx9 joined #salt
23:25 forrest You'd probably want to use a server if you're going to be managing other servers with salt isset__, I only run a master locally for other VMs on my machine.
23:25 terminalmage cedwards: please feel free to send me the information re: that jail you were gonna hook me up with for pkgng testing
23:27 isset__ ok
23:36 nfx11 joined #salt
23:38 forrest Hey UtahDave, when you see whiteinge monday can you ask him if filter_by is broken? It doesn't work on 0.16.4 for any of his formulas, and the link the module that is required on the formulas page is broken, and the module it says is required doesn't exist on the develop branch.
23:38 forrest err, link to the module
23:40 Thiggy joined #salt
23:49 emocakes joined #salt
23:51 UtahDave joined #salt
23:57 forrest has anyone messed with halite, or salt-client at least?

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