Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-05-30

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

All times shown according to UTC.

Time Nick Message
00:00 UtahDave cool!
00:00 unknown007 joined #salt
00:03 bhosmer joined #salt
00:13 aw110f joined #salt
00:14 smcquay joined #salt
00:16 ipalreadytaken joined #salt
00:17 mgw joined #salt
00:18 TyrfingMjolnir joined #salt
00:33 ipalreadytaken joined #salt
00:44 jrdx joined #salt
00:46 bhosmer joined #salt
01:00 brucelee_ joined #salt
01:05 segen left #salt
01:10 ashw7n joined #salt
01:17 catpiggest joined #salt
01:18 chrisjones joined #salt
01:20 chrisjones joined #salt
01:21 chrisjones joined #salt
01:22 chrisjones joined #salt
01:23 chrisjon_ joined #salt
01:24 chrisjones joined #salt
01:26 chrisjon_ joined #salt
01:27 chrisjon_ joined #salt
01:27 combusean joined #salt
01:28 chrisjon_ joined #salt
01:29 chrisjones joined #salt
01:30 chrisjones joined #salt
01:31 chrisjones joined #salt
01:32 chrisjones joined #salt
01:33 chrisjones joined #salt
01:34 chrisjones joined #salt
01:35 chrisjones joined #salt
01:37 chrisjon_ joined #salt
01:38 chrisjo__ joined #salt
01:38 Networkn3rd joined #salt
01:39 chrisjo__ joined #salt
01:41 chrisjones joined #salt
01:42 chrisjones joined #salt
01:44 chrisjones joined #salt
01:44 chrisjon_ joined #salt
01:44 homelinen joined #salt
01:45 chrisjones joined #salt
01:45 bhosmer joined #salt
01:46 chrisjones joined #salt
01:47 chrisjones joined #salt
01:48 chrisjones joined #salt
01:49 chrisjones joined #salt
01:50 chrisjones joined #salt
01:51 chrisjones joined #salt
01:52 troyready joined #salt
01:52 chrisjones joined #salt
01:53 chrisjones joined #salt
01:54 chrisjon_ joined #salt
01:55 chrisjones joined #salt
01:56 chrisjones joined #salt
01:57 chrisjones joined #salt
01:58 chrisjones joined #salt
01:59 chrisjones joined #salt
02:00 chrisjones joined #salt
02:01 chrisjones joined #salt
02:02 chrisjones joined #salt
02:03 ckao joined #salt
02:03 chrisjones joined #salt
02:04 chrisjones joined #salt
02:05 chrisjon_ joined #salt
02:06 dude051 joined #salt
02:06 chrisjones joined #salt
02:07 chrisjon_ joined #salt
02:08 chrisjones joined #salt
02:09 chrisjon_ joined #salt
02:09 mgw joined #salt
02:10 chrisjones joined #salt
02:11 chrisjones joined #salt
02:12 mosen joined #salt
02:13 chrisjones joined #salt
02:13 chrisjon_ joined #salt
02:14 chrisjon_ joined #salt
02:16 chrisjo__ joined #salt
02:17 chrisj___ joined #salt
02:17 chrisj___ joined #salt
02:18 chrisjones joined #salt
02:19 chrisjones joined #salt
02:21 chrisjones joined #salt
02:21 chrisjones joined #salt
02:22 chrisjones joined #salt
02:24 chrisjones joined #salt
02:25 chrisjones joined #salt
02:25 unknown007 joined #salt
02:26 chrisjones joined #salt
02:26 jalaziz joined #salt
02:27 chrisjones joined #salt
02:28 chrisjones joined #salt
02:29 chrisjones joined #salt
02:30 chrisjones joined #salt
02:31 chrisjones joined #salt
02:32 chrisjones joined #salt
02:34 chrisjones joined #salt
02:36 chrisjones joined #salt
02:36 chrisjones joined #salt
02:38 chrisjon_ joined #salt
02:39 chrisjon_ joined #salt
02:40 chrisjo__ joined #salt
02:41 chrisjon_ joined #salt
02:41 mgw joined #salt
02:42 chrisjones joined #salt
02:43 chrisjones joined #salt
02:44 chrisjones joined #salt
02:45 dude051 joined #salt
02:45 chrisjones joined #salt
02:46 chrisjones joined #salt
02:47 chrisjones joined #salt
02:48 chrisjones joined #salt
02:49 chrisjones joined #salt
02:50 chrisjon_ joined #salt
02:51 chrisjones joined #salt
02:52 chrisjones joined #salt
02:53 chrisjones joined #salt
02:54 chrisjones joined #salt
02:55 micah_chatt joined #salt
02:55 chrisjones joined #salt
02:56 schimmy joined #salt
02:56 chrisjones joined #salt
02:57 travisfischer joined #salt
02:57 chrisjones joined #salt
02:58 n8n joined #salt
02:58 chrisjones joined #salt
02:59 schimmy1 joined #salt
03:00 chrisjones joined #salt
03:00 micah_chatt joined #salt
03:02 chrisjon_ joined #salt
03:03 chrisjones joined #salt
03:04 chrisjones joined #salt
03:05 chrisjones joined #salt
03:06 chrisjones joined #salt
03:07 chrisjones joined #salt
03:08 chrisjones joined #salt
03:09 chrisjones joined #salt
03:10 stanchan joined #salt
03:10 chrisjones joined #salt
03:11 chrisjones joined #salt
03:12 chrisjon_ joined #salt
03:13 chrisjon_ joined #salt
03:14 catpigger joined #salt
03:14 chrisjo__ joined #salt
03:15 chrisjo__ joined #salt
03:16 chrisj___ joined #salt
03:16 MTecknology so much broken connection
03:16 MTecknology wow
03:17 chrisjones joined #salt
03:18 chrisjones joined #salt
03:19 chrisjon_ joined #salt
03:19 jalbretsen joined #salt
03:20 chrisjon_ joined #salt
03:21 chrisjon_ joined #salt
03:22 chrisjon_ joined #salt
03:23 chrisjones joined #salt
03:24 chrisjones joined #salt
03:25 chrisjones joined #salt
03:26 chrisjones joined #salt
03:27 chrisjones joined #salt
03:28 ipalreadytaken joined #salt
03:28 mway joined #salt
03:28 chrisjones joined #salt
03:29 mway any ideas how to effectively match on a grain instead of an id for wheel.key.accept on salt/auth pend event?
03:29 chrisjones joined #salt
03:30 mway e.g., if I wanted to use a shared secret to avoid seeding keys so I could at least have some reasonable expectation that it's an authorized minion?
03:30 chrisjones joined #salt
03:31 chrisjones joined #salt
03:32 mway I guess I could just defer to a state module to actually do the checking, I didn't try accepting keys there yet. :)
03:32 chrisjones joined #salt
03:33 chrisjon_ joined #salt
03:33 bhosmer joined #salt
03:35 chrisjon_ joined #salt
03:35 mway nah, that wouldn't work since it'd be minion context if I ran a state.
03:36 chrisjon_ joined #salt
03:37 chrisjon_ joined #salt
03:38 chrisjones joined #salt
03:40 chrisjones joined #salt
03:41 chrisjones joined #salt
03:42 chrisjones joined #salt
03:43 chrisjones joined #salt
03:44 ashw7n joined #salt
03:44 chrisjones joined #salt
03:45 chrisjones joined #salt
03:46 chrisjones joined #salt
03:47 chrisjones joined #salt
03:48 chrisjon_ joined #salt
03:49 chrisjones joined #salt
03:50 chrisjones joined #salt
03:51 chrisjones joined #salt
03:52 chrisjones joined #salt
03:53 chrisjones joined #salt
03:54 chrisjones joined #salt
03:55 chrisjon_ joined #salt
03:56 malinoff joined #salt
03:56 chrisjones joined #salt
03:57 chrisjones joined #salt
03:58 chrisjones joined #salt
04:00 chrisjon_ joined #salt
04:00 chrisjones joined #salt
04:02 chrisjones joined #salt
04:03 chrisjones joined #salt
04:04 chrisjones joined #salt
04:04 micah_chatt joined #salt
04:04 chrisjones joined #salt
04:06 chrisjones joined #salt
04:07 krow joined #salt
04:07 chrisjones joined #salt
04:07 anuvrat joined #salt
04:08 chrisjones joined #salt
04:09 chrisjones joined #salt
04:10 chrisjones joined #salt
04:11 chrisjones joined #salt
04:12 chrisjones joined #salt
04:13 chrisjones joined #salt
04:14 chrisjones joined #salt
04:15 chrisjones joined #salt
04:15 segen joined #salt
04:16 chrisjones joined #salt
04:17 chrisjones joined #salt
04:18 chrisjones joined #salt
04:19 chrisjones joined #salt
04:20 chrisjones joined #salt
04:21 chrisjones joined #salt
04:22 chrisjones joined #salt
04:23 chrisjones joined #salt
04:24 chrisjones joined #salt
04:25 chrisjones joined #salt
04:26 chrisjones joined #salt
04:27 chrisjones joined #salt
04:28 chrisjones joined #salt
04:29 chrisjones joined #salt
04:30 joehillen joined #salt
04:31 chrisjon_ joined #salt
04:32 chrisjon_ joined #salt
04:33 chrisjon_ joined #salt
04:34 chrisjones joined #salt
04:35 chrisjones joined #salt
04:36 chrisjones joined #salt
04:37 chrisjones joined #salt
04:38 chrisjones joined #salt
04:40 chrisjones joined #salt
04:41 chrisjones joined #salt
04:41 sgviking joined #salt
04:42 chrisjones joined #salt
04:43 chrisjones joined #salt
04:44 chrisjones joined #salt
04:47 chrisjones joined #salt
04:48 bn_ joined #salt
04:48 chrisjones joined #salt
04:49 chrisjones joined #salt
04:50 chrisjones joined #salt
04:52 FL1SK joined #salt
04:52 chrisjones joined #salt
04:53 chrisjon_ joined #salt
04:54 chrisjon_ joined #salt
04:55 chrisjon_ joined #salt
04:56 chrisjon_ joined #salt
04:57 chrisjones joined #salt
04:58 taterbase joined #salt
04:58 chrisjones joined #salt
04:59 chrisjones joined #salt
05:00 chrisjones joined #salt
05:01 mosen joined #salt
05:01 chrisjones joined #salt
05:02 Mystica joined #salt
05:03 chrisjon_ joined #salt
05:03 Mystica left #salt
05:04 chrisjo__ joined #salt
05:04 chrisjo__ joined #salt
05:06 chrisjo__ joined #salt
05:07 chrisjones joined #salt
05:08 chrisjones joined #salt
05:09 chrisjones joined #salt
05:10 chrisjones joined #salt
05:11 chrisjones joined #salt
05:12 chrisjones joined #salt
05:13 chrisjones joined #salt
05:14 chrisjones joined #salt
05:19 chrisjon_ joined #salt
05:20 chrisjones joined #salt
05:21 chrisjones joined #salt
05:22 bhosmer joined #salt
05:22 chrisjones joined #salt
05:23 chrisjones joined #salt
05:24 chrisjon_ joined #salt
05:25 mateoconfeugo joined #salt
05:25 chrisjones joined #salt
05:26 chrisjon_ joined #salt
05:27 chrisjon_ joined #salt
05:28 chrisjon_ joined #salt
05:29 ggoZ joined #salt
05:29 chrisjon_ joined #salt
05:30 chrisjones joined #salt
05:31 chrisjones joined #salt
05:32 cruatta joined #salt
05:32 bhosmer joined #salt
05:32 chrisjones joined #salt
05:33 chrisjones joined #salt
05:34 Furao joined #salt
05:34 chrisjones joined #salt
05:35 chrisjones joined #salt
05:37 chrisjones joined #salt
05:38 chrisjon_ joined #salt
05:39 chrisjones joined #salt
05:40 chrisjones joined #salt
05:42 chrisjones joined #salt
05:43 ipalreadytaken joined #salt
05:50 jbub joined #salt
05:53 brucelee_ joined #salt
06:00 picker joined #salt
06:00 butcher1 joined #salt
06:00 millz0r joined #salt
06:01 zain_ joined #salt
06:02 TyrfingMjolnir joined #salt
06:05 sinh joined #salt
06:05 TyrfingMjolnir joined #salt
06:11 happytux_ joined #salt
06:14 TyrfingMjolnir joined #salt
06:18 ramteid joined #salt
06:19 cruatta joined #salt
06:33 q4brk joined #salt
06:35 cruatta_ joined #salt
06:39 cruatta joined #salt
06:50 vvoody joined #salt
07:02 ipalreadytaken joined #salt
07:03 brucelee_ joined #salt
07:10 bhosmer joined #salt
07:17 emning mfournier: looking good, I put it the module in /srv/salt/_modules and ran saltutil.sync_all
07:18 emning mfournier: then tested puppet.summary, status, disable and enable, all seemed to work as expected
07:19 ndrei joined #salt
07:22 linjan_ joined #salt
07:23 chiui joined #salt
07:25 martoss joined #salt
07:28 ashw7n joined #salt
07:30 ashw7n_ joined #salt
07:35 timc3 joined #salt
07:42 flymacpara joined #salt
07:42 flymacpara Any one played around with salt and docker on CoreOS?
07:50 flymacpara How can you target docker on CoreOS with salt?
07:56 zsoftich joined #salt
07:59 trevorj joined #salt
07:59 drogoh joined #salt
07:59 DenkBrettl joined #salt
08:00 mpoole joined #salt
08:01 krow joined #salt
08:01 vipul joined #salt
08:01 schristensen joined #salt
08:02 jeffrubic joined #salt
08:02 jab416171 joined #salt
08:03 InAnimaTe joined #salt
08:04 robawt joined #salt
08:04 ipalreadytaken joined #salt
08:15 flymacpara Anyone using CoreOS (docker) in conjunction with salt?
08:23 gildegoma joined #salt
08:30 scott joined #salt
08:31 ashw7n joined #salt
08:34 Guest21694 hi, I'd like some help with salt states please. We have a python client using saltclient.cmd (LocalClient from master) that we use to call a state.sls. I cannot find a way to pass parameters to the state at the other end that are just temporary for that call. I know I could set a grain first, currently we are supplementing with pillar={values} on the call but this doesn't feel right as its particular to the minion and only for the d
08:34 Guest21694 Could I please have any ideas on a best practice approach please?
08:39 felskrone joined #salt
08:41 ruslan_ joined #salt
08:42 orbit_darren joined #salt
08:46 N-Mi joined #salt
08:48 ndrei joined #salt
08:55 brucelee joined #salt
08:58 bhosmer joined #salt
09:06 giantlock joined #salt
09:19 krow1 joined #salt
09:21 CeBe joined #salt
09:22 ndrei joined #salt
09:23 saru11 joined #salt
09:31 ashw7n joined #salt
09:32 selenite29 joined #salt
09:37 BigBear joined #salt
09:56 felskrone1 joined #salt
09:57 rglen joined #salt
09:58 austin987 joined #salt
10:03 mateoconfeugo joined #salt
10:03 felskrone2 joined #salt
10:10 sm1ly joined #salt
10:10 sm1ly re2all. what I doing wrong ?
10:10 kryss joined #salt
10:10 sm1ly salt 'web1.*' cmd.run "echo 'osd200.abboom.world:/abboom    /usr/share/nginx/html    glusterfs    _netdev,direct-io-mode=disable,noatime    0    0' >> /etc/fstab'"
10:10 sm1ly web1.abboom.world:
10:10 sm1ly /bin/sh: -c: line 0: unexpected EOF while looking for matching `''
10:10 sm1ly /bin/sh: -c: line 1: syntax error: unexpected end of file
10:11 sm1ly oooh. I know.
10:12 kryss Hello guys, I have a problem with http://docs.saltstack.com/en/latest/topics/targeting/grains.html#matching-grains-in-the-top-file the first example (withouth jijna) works great, but second one (with jinja) does not, the host is simply not matched as a specified in grains, any ideas?
10:13 kryss My code is just the same as in examples above
10:14 micko joined #salt
10:15 malinoff kryss, I'm not sure, but you should probably remove indentation
10:15 malinoff e.g. http://pastie.org/9238934
10:15 kryss i've just found a solution
10:16 kryss i've changed {{ self }} to {{ node_type }}
10:16 duddle joined #salt
10:16 kryss http://pastebin.com/Wdx3689e
10:16 kryss and now it work properly
10:19 duddle hi! I have a question regarding structuring your states. if I want to deploy, for example, graylog2, I need mongodb, elasticsearch and some config. should I create srv/salt/graylog2/mongodb/init.sls etc. and then in the top.sls assign them via "graylog2.mongodb" etc.? or is there a cleaner way to keep it more modular?
10:19 kryss buy thanks malinoff for advice :)
10:19 kryss duddle just as you say, you should concern what is a better way to organize your states
10:28 TyrfingMjolnir joined #salt
10:32 ashw7n joined #salt
10:33 bhosmer joined #salt
10:36 bhosmer_ joined #salt
10:41 martoss1 joined #salt
10:42 superted joined #salt
10:49 taion809 joined #salt
10:52 juice joined #salt
10:59 thehaven joined #salt
11:27 ekristen joined #salt
11:29 bhosmer joined #salt
11:31 SEJeff_work joined #salt
11:33 ashw7n joined #salt
11:40 segen1 joined #salt
11:42 segen1 left #salt
11:43 ndrei joined #salt
12:00 BigBear joined #salt
12:05 diegows joined #salt
12:06 jrdx joined #salt
12:10 jslatts joined #salt
12:11 mfournier emning: hey, great, thanks for the feedback !
12:11 mfournier emning: out of curiosity, what puppet version do your clients have ?
12:12 emning mfournier: these are all test servers, so they're all on 3.6.1 right now
12:13 mfournier ok, from what I remember from the 2.x times, I think these new methods won't work on such old puppet versions. Not that much of a problem I guess.
12:18 unknown007 joined #salt
12:22 jslatts joined #salt
12:34 ashw7n joined #salt
12:35 jaimed joined #salt
12:46 BigBear joined #salt
12:52 XenophonF joined #salt
12:52 XenophonF left #salt
12:53 toastedpenguin joined #salt
12:53 XenophonF joined #salt
13:06 stritz joined #salt
13:07 cpowell joined #salt
13:08 XenophonF does anyone have a good example of pushing web server configs via pillar?
13:08 XenophonF i'm thinking virtual host configs and ssl certificates/private keys
13:08 to_json joined #salt
13:10 ashb salt calls apt-get update far too often :(
13:10 butcher1 joined #salt
13:12 elfixit joined #salt
13:12 bhosmer joined #salt
13:19 racooper joined #salt
13:20 Rhomber joined #salt
13:24 dude051 joined #salt
13:24 krow joined #salt
13:29 taandrews joined #salt
13:30 taandrews Are pillars supported in OverState?
13:33 felskrone joined #salt
13:34 ashw7n joined #salt
13:35 mapu joined #salt
13:44 cuba1862 joined #salt
13:45 ashw7n joined #salt
13:49 ashw7n_ joined #salt
13:50 timoguin XenophonF: have you look at the example in the apache formula?
13:50 timoguin https://github.com/saltstack-formulas/apache-formula/blob/master/pillar.example
13:51 logix812 joined #salt
13:56 taandrews I should probably add that  I am new to Salt
13:56 jergerber joined #salt
13:57 GradysGhost joined #salt
13:58 XenophonF timoguin: No, I'd forgotten about the separate saltstack-formulas repos.  I only looked in saltstack/salt-states.
13:58 mateoconfeugo joined #salt
13:58 XenophonF thanks for the pointer!
13:59 saru11 hi bros
13:59 saru11 hmm, reading gitfs docu again nd again but can't find the answer
14:00 saru11 I have gitfs backend configured, let's say for master branch/base environment I have multiple remote repositories defined
14:01 saru11 how top.sls files are in this case handled? it's pretty clear when I have multiple environments then they are merged over all the environments
14:01 viq ashb: are you by any chance defining 'refresh=true' or using pkg.latest ?
14:01 saru11 the same holds for git repositories, the top.sls file is merged over all branches
14:02 AdamSewell joined #salt
14:02 saru11 let's say I have service1 and service repository
14:03 saru11 service2
14:04 saru11 I have a state file state1 in repo service1
14:04 saru11 I can run salt MINION state.show_sls state1 succesfully
14:05 saru11 but if I have a top.sls file in the repo service1
14:07 felskrone1 joined #salt
14:09 Theo-SLC joined #salt
14:10 saru11 and salt MINION state.show_top doesn't show anything
14:10 saru11 so gitfs backend works -> I can get the state
14:10 saru11 but not top.sls
14:10 fusionx86 joined #salt
14:12 Sacro Should runners manage.present not return syndics?
14:13 saru11 if I put it to the filesystem it works :-/
14:14 kermit joined #salt
14:15 Networkn3rd joined #salt
14:23 taandrews Now that there are a few more people in here....  Are pillars supported in OverState?
14:23 picker Hi Folks, http://pastie.org/9239668
14:24 picker Salt is unable to execute this state and errors out "check main poller timeout 1".
14:25 picker Any idea what might be breaking
14:26 picker the bat file simply has some pull commands with git
14:27 wendall911 joined #salt
14:40 alunduil joined #salt
14:42 kedo39 joined #salt
14:42 sm1ly joined #salt
14:42 micah_chatt joined #salt
14:47 pdayton joined #salt
14:48 mgw joined #salt
14:49 mgw joined #salt
14:49 timoguin taandrews: I assume pillar data is available to the SLS files, but probably not the overstate.sls
14:51 XenophonF left #salt
14:51 micah_chatt joined #salt
14:52 otter768 joined #salt
14:52 thedodd joined #salt
14:53 ajprog_laptop joined #salt
14:53 taandrews I was trying to use pillar values in the actual overstate file. And yes it is also in the SLS files.
14:54 timoguin not working for the overstate file?
14:54 timoguin i assumed it wouldn't work because that file gets evaluated and executed on the master, which doesn't have pillar values
14:55 taandrews No its not working in the overstate file.  I just get " stage execution results"
14:56 taandrews with no actual errors
15:02 manlin joined #salt
15:03 manlin hi, I have a directory which i need to empty. Could someone help me with an sls for that please?
15:07 Furao joined #salt
15:10 viq manlin: empty, or remove the whole dir?
15:10 travisfischer joined #salt
15:11 manlin viq: removing is not a problem. just emptying recursively (without deleting and recreating the directory)
15:12 gsintay left #salt
15:14 Networkn3rd joined #salt
15:14 jeremyBass joined #salt
15:15 bn_ left #salt
15:16 bn_ joined #salt
15:16 timoguin manlin: you could use cmd.run with rm -rf on the directory
15:16 viq manlin: file.recurse with clean=True on an empty dir on master ?
15:16 viq or file.directory clean=True
15:16 timoguin the file execution module has methods to delete a file or delete a directory, but i don't see an option to delete directory contents
15:16 timoguin or what viq said
15:18 ajw0100 joined #salt
15:19 danielbachhuber joined #salt
15:20 rgbkrk joined #salt
15:21 manlin viq: will give it a try
15:24 Furao left #salt
15:25 manlin viq: file.directory clean True actually worked. Thanks viq !
15:25 toddejohnson joined #salt
15:27 viq manlin: just be careful, as it will do that every time you run it, may be not what you intended
15:28 toastedpenguin joined #salt
15:29 toastedpenguin1 joined #salt
15:30 esogas left #salt
15:34 hunter_ joined #salt
15:37 tligda joined #salt
15:40 manlin viq: that is what i wanted...
15:40 mapu joined #salt
15:41 viq ok, cool
15:41 jalbretsen joined #salt
15:41 oz_akan_ joined #salt
15:44 ipmb joined #salt
15:44 derelm joined #salt
15:44 whiteinge felskrone1: +1 to getting an "salt at scale" doc into the core Salt docs. your writeup on the ML was great.
15:46 ndrei joined #salt
15:47 redondos joined #salt
15:47 redondos joined #salt
15:47 oz_akan_ joined #salt
15:48 felskrone1 whiteinge: thx, will do  :-)
15:48 whiteinge lemme know if i can help
15:50 micah_chatt joined #salt
15:50 TyrfingMjolnir joined #salt
15:52 dangra joined #salt
15:52 manlin Hi guys, another question. Trying to use a single sls file for deploying httpd & apache2 on centos and ubuntu. Installation bit is okay but service part fails. Code is here http://pastebin.com/YcxZMFRJ
15:53 manlin Not familiar with jinja and other stuff. just started learning salt and enjoying it. Thanks for your helop
15:53 viq manlin: just as packages are named differently, so are services
15:54 manlin I get the error "The named service apache is not available"
15:54 manlin but i'm using the variable for service name as for pkg name
15:54 viq No, you're not
15:54 manlin advise me pls..
15:55 viq Same line with name as you have under pkg put under service
15:58 manlin viq: aaah... got it.. many thanks. Learnt a lot today
15:58 bhosmer joined #salt
16:03 jimklo joined #salt
16:03 jcsp joined #salt
16:04 UtahDave joined #salt
16:04 bemehow joined #salt
16:06 bhosmer joined #salt
16:07 robawt joined #salt
16:09 luminous any suggestions for simple/sane (and cross-platform?) methods for turning a command into a service salt can control?
16:09 hunter_ joined #salt
16:10 jcsp joined #salt
16:11 ipalreadytaken joined #salt
16:11 viq luminous: supervisord
16:12 KyleG joined #salt
16:12 KyleG joined #salt
16:12 sverrest joined #salt
16:14 linjan joined #salt
16:15 jimklo joined #salt
16:15 luminous viq: I was affraid someone would point me there.
16:16 luminous but maybe that is the best (cross-platform) option that salt also has support for
16:19 viq luminous: otherwise, erm, turn the command into a service.
16:19 viq By writing init scripts etc
16:19 ashw7n_ joined #salt
16:19 smcquay joined #salt
16:19 g4rlic left #salt
16:19 viq There are some other wrappers like daemontools and the like
16:22 luminous yea, maybe it is time I wrangle supervisord into my salt formula
16:22 luminous viq: thanks for sharing
16:22 ipmb_ joined #salt
16:23 thedodd joined #salt
16:24 forrest joined #salt
16:25 SoR joined #salt
16:27 notbmatt is there a canonical source for legacy salt packages (i.e. a place to get 2014.1.3)?
16:27 UtahDave notbmatt: for which OS?
16:27 notbmatt for Ubuntu, specifically
16:27 hunter_ joined #salt
16:27 dangra joined #salt
16:28 icarus joined #salt
16:29 mapu joined #salt
16:29 UtahDave Hm.  Yeah, the ppa's don't maintain old versions.  I'll have to ask our ubuntu packager, joehh
16:29 Corey notbmatt: THere isn't one. PPAs don't maintain them.
16:29 notbmatt that's what I suspected
16:30 UtahDave We do have plans to host repos that will have the older versions, but that project hasn't started yet.
16:31 tedski joehh: any idea when this can get resolved? https://github.com/saltstack/salt/issues/11080
16:31 notbmatt UtahDave: as I recently discovered, that's actually kind of a pain in the ass and none of the most common ubuntu repo tools support it
16:31 mapu_ joined #salt
16:32 Theo-SLC joined #salt
16:32 chrisjones joined #salt
16:33 notbmatt oh well, I guess you build from source so I'll retract that
16:34 jimklo hello salt-y friends... I've got a bit of a challenge... I need to upgrade zeromq via salt on RHEL5 via an RPM that gets delivered via a standalone RPM vs the EPEL repo.  Since Salt depends upon zeromq (as well as some python libs that are used by it) can anyone provide some tips on how to do this via Salt?  The odd thing is with rpm I can install both versions without problems, however I'm not able to do that with pkg.installed, yum want's to upg
16:34 jimklo rade the existing package instead of installing both versions. Any way around this beyond cmd.script?
16:35 Corey jimklo: Ugly. :-)
16:36 jimklo Corey: no kidding. :-(
16:37 mateoconfeugo joined #salt
16:39 hunter_ joined #salt
16:43 notbmatt you want both versions installed concurrently?
16:46 jimklo notbmatt: it really doesn't matter... I'm having the same problem as here: https://groups.google.com/forum/#!topic/salt-users/c9p49ZUczJo
16:47 ajolo_ joined #salt
16:47 vejdmn joined #salt
16:49 jimklo notbmatt: it's a chicken and egg issue... my needs are not so much dependent upon 0mq for salt as they are for the application we build - which has strict need for 3.2.4-1...
16:49 notbmatt oh, hm.
16:51 ndrei joined #salt
16:51 ashw7n joined #salt
16:52 vejdmn joined #salt
16:53 jimklo in my case - we just need salt to bootstrap the vm once... then it would be disabled... so the issues with the older version of 0mq for Salt's use is probably fine... installing both should be okay since they are major version deltas (2.x vs 3.x)... yum justs wants to be smart and upgrade...
16:53 dstokes is there a way to disable setting grains from the _grains directory?
16:54 dstokes trying to short circuit aws calls for local (vagrant) testing
16:55 joehillen joined #salt
16:55 dstokes something similar to --skip-grains, but w/o skipping grains in minion config
16:56 schimmy joined #salt
16:59 wt joined #salt
17:00 druonysuse joined #salt
17:00 combusean joined #salt
17:01 ashw7n_ joined #salt
17:01 masterkorp Guys can I set dependencies on another formulas ?
17:01 schimmy joined #salt
17:02 UtahDave dstokes: you can do that by using different environments.  Then don't put your grain files in the _grains directory in the environment that your vagrant vms are in
17:02 chadhs joined #salt
17:03 UtahDave masterkorp: do you mean like salt-formulas?  I don't think that has been implemented yet.
17:03 dstokes @UtahDave that would require copying my existing (base) states to a new env right?
17:03 schmutz joined #salt
17:04 UtahDave dstokes: not necessarily.   Let me put together a gist showing how you might make it work.
17:04 hunter_ joined #salt
17:04 dstokes @UtahDave: thx!
17:05 hunter_ left #salt
17:05 masterkorp UtahDave: i am testing a formula that depends on another formula how do I do it ?
17:05 Ryan_Lane joined #salt
17:06 masterkorp using kitchen-salt
17:06 forrest is saltstack supporting kitchen salt now?
17:06 forrest I didn't think that was the case
17:06 smcquay joined #salt
17:06 UtahDave masterkorp: what exactly do you mean by a formula?   Just a state file?  or one of the formulas at   github.com/saltstack-formulas?
17:07 UtahDave forrest: yeah, simonmcc built a salt plugin for kitchen.  It's pretty slick
17:07 forrest yea I remember that
17:07 forrest I meant in the sense that saltstack the org was support kitchen salt
17:07 forrest not salt itself, bad wording on my part
17:07 krow joined #salt
17:08 forrest UtahDave, you should use your abundant free time to write something that makes it so we don't have to suffer with chef :P
17:09 UtahDave Oh, well, we don't have anyone who is an expert on kitchen here, for sure. But if we can be helpful, we will.  :)
17:09 forrest Cool
17:09 UtahDave forrest: we've got some ideas on that, actually.   time....
17:09 djaime joined #salt
17:09 forrest what is this 'time' you speak of
17:09 forrest where can I purchase some
17:11 UtahDave he he
17:11 simonmcc forrest: you don't have to touch chef to use kitchen :)
17:11 UtahDave dstokes: Take a look at this:   https://gist.github.com/UtahDave/5e2f269668480c6b8c43
17:11 UtahDave dstokes: does that make sense?
17:12 dstokes @UtahDave: totally thx again!
17:12 notbmatt hm, how do I pass a list on the command line? mydict='{foo: "bar"}', but how to do a list?
17:13 UtahDave notbmatt: mylist='["item1", "item2"]'
17:13 notbmatt ah, pythonic
17:13 notbmatt doc says YAML (http://docs.saltstack.com/en/latest/ref/cli/#calling-the-function), but doesn't give list example
17:14 forrest simonmcc, oh really? I thought you had to have it installed and working, maybe I misread the readme when I checked it a while back
17:14 forrest that's great
17:14 Furao joined #salt
17:15 simonmcc forrest: chef-omnibus is installed in the guest to fulfil a ruby requirement, but you don't need it in your host anywhere
17:16 bhosmer joined #salt
17:16 simonmcc I'd be delighted to get feed back on bits of the kitchen-salt intro that aren't clear
17:16 forrest simonmcc, great, I'll have to check it out some more
17:16 tyler-baker joined #salt
17:16 forrest well, this was when you first announced it a while back
17:16 n8n joined #salt
17:17 simonmcc :)
17:17 anotherZero joined #salt
17:19 logix812 joined #salt
17:19 dwiden joined #salt
17:21 dwiden I'm trying to connect my windows minion to my linux master.  I accept the minion key on the master, but when I run the minion in debug mode, I get the following error: [CRITICAL] The Salt Master has rejected this minion's public key!
17:21 ashw7n joined #salt
17:22 smcquay joined #salt
17:22 Heartsbane So I have this idea now that I have most of my pillar data, if I rewrite a couple crons to to a salt-call locally does it pull the pillar data from the master?
17:22 Heartsbane so I don't keep say backup credentials locally
17:23 Theo-SLC How many 'salt-master -d' pid's should I have running?  Right now I see 3.
17:23 UtahDave dwiden: what versions of salt are you running on your master and minion?
17:24 jhulten joined #salt
17:24 Heartsbane or should I just write an Event
17:24 UtahDave Theo-SLC: Yeah, that's normal.   You should have the number of  worker_threads you've defined in your master config, plus a couple more
17:24 dwiden UtahDave: 2014.1.4 on the minion, 2014.1.0 on the master
17:25 Theo-SLC thanks
17:25 UtahDave dwiden: have you had another minion connect at some point with the same minion id?
17:25 Heartsbane dwiden: I would recommend that your master always be a higher version than your minions I find you get less errors
17:25 Heartsbane just my $0.02
17:25 UtahDave Heartsbane: yeah, it will pull the pillar data from the master.
17:26 Heartsbane UtahDave: Cool, I got myself another idea
17:26 dwiden I may have gotten things into a bad state, I'm testing spinning up windows VMs using Vagrant and then provisioning with Salt, and I always use the same minion-id for the windows VM.  After I do a test (remove the test VM), I remove the old minion key from the master
17:26 TyrfingMjolnir joined #salt
17:26 UtahDave Heartsbane: A highstate should fetch the latest pillar data automatically, otherwise you might have to run a saltutil.refresh_pillar if there's a chance the data has been updated
17:26 Heartsbane no more credentials locally
17:26 UtahDave nice, Heartsbane
17:27 UtahDave dwiden: how's that going?  How are you deploying the windows minion?
17:27 shaggy_surfer joined #salt
17:28 shaggy_surfer Using salt-cloud to automate ec2 and noticed that the VPC functionality is not well documented and doesn't seem to work for me, anyone use this and can give me some help on creating an image into a group in VPC?
17:29 jalaziz joined #salt
17:29 miqui joined #salt
17:29 dwiden UtahDave: I have a base windows VM and created a .box file that I could use with vagrant up.  When I run "vagrant up", I use the shell provisioner to execute something like "C:\temp\salt-minion-installer /master=salt /minion-name=id
17:30 dwiden UtahDave: Once that successfully runs, I'll try to ping the minion from the master.  Once that succeeds, I run a highstate to provision it
17:31 smcquay joined #salt
17:32 Theo-SLC What type of resources will you typically need for a salt master with a 1-2 dozen minions?  CPU/Memory/IO?
17:33 wt joined #salt
17:33 vejdmn joined #salt
17:33 jnials joined #salt
17:33 Ryan_Lane Theo-SLC: generally very little
17:34 Ryan_Lane 200MB or so from what I've seen
17:34 Ryan_Lane a single core should likely be able to handle it
17:34 micah_chatt joined #salt
17:34 Ryan_Lane IO will be negligent, if you're not doing very large file operations
17:35 Theo-SLC I was using a t1.micro on AWS.  I'm now sizing up because of slow response time.  I feel that I need more cpu.
17:35 UtahDave ah, very nice
17:35 Joseph joined #salt
17:35 Ryan_Lane micros are too small for mostly anything ;)
17:35 jnials joined #salt
17:35 micah_chatt_ joined #salt
17:36 UtahDave Theo-SLC: Yeah, like Ryan_Lane said, you don't need a whole lot of resources for a master controlling a couple dozen minions.
17:36 Theo-SLC just moved to a m3.medium
17:36 Ryan_Lane Theo-SLC: when I say 200MB, I mean it'll use around 200MB
17:38 stanchan joined #salt
17:38 [vaelen] joined #salt
17:40 aw110f joined #salt
17:43 combusean joined #salt
17:44 happytux joined #salt
17:45 micah_chatt joined #salt
17:46 kermit joined #salt
17:47 Theo-SLC Performance is much improved.  t1.micro is much too small
17:48 bVector is there a way to contribute typo correction to docs.saltstack.com?
17:48 shaggy_surfer is salt using libcloud underneath for salt-cloud?
17:48 shaggy_surfer or is it using boto?
17:48 UtahDave bVector: yep!   docs.saltstack.com is built from the   docs directory in the main salt github repo
17:49 UtahDave shaggy_surfer: it uses libcloud for some things. Other times it uses rest apis.
17:49 shaggy_surfer have you used salt-cloud to provision a vpc instance into a vpc group?
17:50 shaggy_surfer I can't get it to work…. I automated the process using ec2-classic, but I am trying to build a more securely constrained environment in vpc
17:50 UtahDave I haven't myself, but my understanding is that salt-cloud works fine with vpcs
17:51 anuvrat joined #salt
17:51 shaggy_surfer I see one example here:  http://docs.saltstack.com/en/latest/topics/cloud/aws.html#optional-settings
17:51 shaggy_surfer I need more examples and docs and can't find much…. I checked out the git code for salt and combed through and looks like it's limited.
17:52 UtahDave Ryan_Lane: do you have any examples for VPCs that shaggy_surfer can look at?
17:52 shaggy_surfer I created a profile and ran it and got this error output:  VPC security groups may not be used for a non-VPC launch
17:55 ZombieFeynman joined #salt
17:56 ashw7n_ joined #salt
17:57 Ryan_Lane UtahDave: alas, no. I'm not using VPC yet
17:57 Ryan_Lane we'll be there soonish
17:57 Ryan_Lane also, I haven't been writing salt-cloud stuff
17:58 Ryan_Lane just states modules/execution modules
17:58 ashw7n_ joined #salt
17:59 shaggy_surfer I guess I am confused… I know that salt-cloud was pushed into the main salt repo and included now… does that mean you use the module under salt?  Or do you keep using the salt-cloud command
17:59 Gareth morning morning
17:59 forrest shaggy_surfer, just keep using the salt-cloud command
17:59 forrest hey Gareth
17:59 Gareth hey forrest, hows it going?
17:59 shaggy_surfer I set things up under /etc/salt/cloud.profiles.d and /etc/salt/providers.d
17:59 ashw7n joined #salt
18:00 forrest Gareth, Pretty good, about to start working on some 'fun' with read the docs internal
18:00 forrest how about you?
18:00 UtahDave Ryan_Lane: ah, ok.  thanks
18:00 shaggy_surfer looks like the example in the docs is using network_interfaces for the SecruityGroupID, where can I find documentation on the params that are passed to the profile?
18:00 Gareth forrest: good good.  TGIF :)
18:00 Ryan_Lane shaggy_surfer: I wrote a new set of boto_* modules
18:00 forrest no doubt
18:00 Ryan_Lane they aren't integrated into salt-cloud yet
18:01 Ryan_Lane I actually use salt-states to manage my infra
18:01 ashw7n joined #salt
18:02 shaggy_surfer well the reason I was using salt-cloud is because it auto signs the key on the master and bootstraps the minion, which is nice for automation of turn up… then post, I run salt for config management and profiling the box, i.e. web server, app server etc
18:02 Ryan_Lane one sec
18:02 Ryan_Lane shaggy_surfer: https://github.com/saltstack-formulas/ec2-autoscale-reactor
18:03 wendall911 joined #salt
18:04 shaggy_surfer wow, haven't used reactor's yet.. don't even know what they are :P , more reading hehe
18:05 ZombieFeynman joined #salt
18:05 ashw7n joined #salt
18:06 will_ joined #salt
18:08 ashw7n joined #salt
18:08 ndrei joined #salt
18:10 jslatts joined #salt
18:13 ashw7n joined #salt
18:14 ajolo__ joined #salt
18:19 Eugene They turn nuclear fuel pellets into heat energy, which boils steam and turns a turbine, typically harnessed to an electrical generator or a ship's propeller shaft.
18:21 seme joined #salt
18:22 alunduil joined #salt
18:22 seme hi guys... is there a way in the install_flags to use a variable determined on the minion like the hostname?  I'm trying to use salt to update salt.. not sure if that is a good idea or not.
18:22 whiteinge or a steam-powered jetpack!
18:22 ZombieFeynman joined #salt
18:23 seme the flags I have so far are '/S /master=cam-salt.pa.caxton.com /minion=...'
18:24 whiteinge seme: you can use salt to update salt. this may be helpful: http://docs.saltstack.com/en/latest/faq.html#what-is-the-best-way-to-restart-a-salt-daemon-using-salt
18:25 davet joined #salt
18:25 ZombieFeynman joined #salt
18:26 whiteinge seme: i'm not sure offhand what all flags are available to the Windows installer. are you intersted in setting the minion ID based on the hostname variable?
18:27 seme yeah
18:27 seme well basically I want the minion variable to be the short name of the host
18:27 seme so if my hostname is somehost.somedom.com I just want somehost
18:28 whiteinge gotcha. i expect you can do that via the /minion= flag (but i don't know the windows syntax for that off the top of my head)
18:29 davet1 joined #salt
18:29 seme well the syntax for the installer is just to pass it /minion=somehost but I don't know how to configure that in the config file which expects the complete install_flags
18:29 seme can't hard code it...
18:30 kermit joined #salt
18:31 * whiteinge nods
18:31 kmshultz joined #salt
18:31 whiteinge another tack is to put a conf file down on the filesystem manually that salt will pick up when you start the salt-minion service for the first time
18:31 bhosmer joined #salt
18:32 whiteinge sec. let me see if i can find some better (more specific) help for you on the windows installer...
18:32 Kenzor joined #salt
18:34 savvy-lizard joined #salt
18:36 seme there appears to be an update_url config setting on the minion which I'm guessing will update the minion whenever a new version is found
18:36 seme I didn't notice that before
18:36 seme wondering if it works
18:36 seme :)
18:38 shaggy_surfer joined #salt
18:39 seme http://docs.saltstack.com/en/latest/topics/tutorials/esky.html
18:39 seme supposedly this will keep minions up to date
18:39 seme looking into that now
18:39 to_json1 joined #salt
18:42 ajolo_ joined #salt
18:45 jrdx joined #salt
18:46 schimmy left #salt
18:47 ashw7n joined #salt
18:48 anuvrat joined #salt
18:53 bhosmer joined #salt
18:54 manlin joined #salt
18:56 to_json joined #salt
18:57 n8n joined #salt
19:00 allanparsons joined #salt
19:01 allanparsons how do you escape single ticks in a cmd.run?
19:01 allanparsons ex: salt *fullscreenwp* cmd.run 'ps -ef | grep s3fs | awk '{print $2}' '
19:01 Voziv How can I check if a pillar key exists? I tried using {% if len(salt['pillar.get']('mysql:bind_address', '')) > 0 %} but it doesn't seem to work. https://gist.github.com/lrobert/d690026b95e8020ca629
19:02 bhosmer_ joined #salt
19:03 smcquay joined #salt
19:03 timoguin Voziv: {% if pillar.get('mysql:bind_address') %} should work
19:05 ashw7n joined #salt
19:06 picker joined #salt
19:08 whiteinge seme: you can put .conf files in C:\salt\conf\minion.d\  (create if it doesn't exist) that will get loaded up on minion start.
19:09 vejdmn joined #salt
19:09 whiteinge seme: so, for example, you could generate your short hostname and write that to "id.conf" in the format "id: myhostname"
19:12 ghartz_ joined #salt
19:13 druonysuse joined #salt
19:13 druonysuse joined #salt
19:15 stevednd is there any way to get a uniform value across all minions for a given salt run? I was specifically looking for a way to use a timestamp, but since all of the minions may run at a second or two difference, I don't end up with the same value
19:15 ZombieFe_ joined #salt
19:16 Voziv timoguin: Thanks, that worked
19:21 ZombieFeynman joined #salt
19:21 circ-user-MH3Ry joined #salt
19:23 seme thanks guys
19:27 Theo-SLC Yesterday I configured the salt scheduler to run two jobs every 30 minutes and 50 minutes.  Today my salt commands don't fully return or time out.  http://pastebin.com/iHyzvVvX
19:27 notbmatt stevednd: something like pillar data?
19:27 notbmatt stevednd: I think minions might know their job id
19:33 picker Please advise me on this. http://pastie.org/9239668  https://github.com/saltstack/salt/issues/10798
19:35 picker basepi: What this message in logs conveys? "Check main poller timeout"
19:36 picker Not sure where it is exactly getting broken
19:40 vejdmn joined #salt
19:42 basepi picker: no idea, but it's in TRACE so it's unlikely to be important.
19:42 elfixit joined #salt
19:44 picker basepi: Things work differently when I am testing deployment with -l debug and when running with services in windows
19:44 basepi picker: I don't follow.  You're saying you see different behavior in debug mode?
19:45 picker yes
19:45 basepi define "different"
19:46 zain joined #salt
19:46 picker with -l debug everything works well, but when  minion is started with services the states get stuck somwhere in middle
19:46 n8n joined #salt
19:47 picker And the stuck part is pulling code fro repo
19:47 Kenzor joined #salt
19:47 picker *from
19:47 ashw7n joined #salt
19:48 picker so maybe not getting  remote code in time state times out
19:50 Theo-SLC I need help interpreting this returner output. it's just one line.  http://pastebin.com/ePgDbrB3
19:51 forrest Theo-SLC, why not just look up that jid?
19:52 forrest Theo-SLC, salt-run jobs.lookup_jid 20140530193507491908
19:52 thedodd joined #salt
19:52 Theo-SLC No return.  the job was started from a minion schedule.
19:52 jnials joined #salt
19:52 Theo-SLC I had the returner point to the syslog
19:53 basepi picker: possible.  could you file an issue on github?  include the log, as well as the states which are hanging, and the salt version on master and minion.
19:53 martoss1 joined #salt
19:53 forrest seems like that would just be a normal highstate then
19:53 forrest I guess I'm confused, you created the scheduler, but you don't know what the scheduled job does?
19:53 shaggy_surfer joined #salt
19:54 Theo-SLC I do know.  it's not supposed to be running a highstate. it's supposed to be running a state.sls
19:54 forrest ok, so is the highstate calling the state.sls?
19:54 forrest I don't know exactly how the internals of the scheduler work
19:55 forrest looking at it again
19:55 forrest the function being run is state.sls
19:55 forrest so maybe it calls it?
19:55 forrest I don't know
19:56 picker basepi: sure will do it. thanks.
19:57 Theo-SLC Here is a better explanation  http://pastebin.com/xd9Z3ydY
20:05 to_json joined #salt
20:13 ashw7n joined #salt
20:13 allanparsons any idea how to escape single quotes in a cmd.run?
20:13 nebuchad` joined #salt
20:13 allanparsons for ex: cmd.run 'ps -ef | awk '{print $1}' ;
20:14 allanparsons for ex: cmd.run 'ps -ef | awk '{print $1}' '
20:14 allanparsons \' doesnt work
20:15 _Flusher joined #salt
20:15 sirtaj_ joined #salt
20:17 jerrcs_ joined #salt
20:18 anuvrat joined #salt
20:18 notbmatt allanparsons: cmd.run 'ps -ef | awk '"'"'{print $1}'"'"' '
20:19 notbmatt =D
20:19 allanparsons zomg
20:19 allanparsons redonk
20:19 notbmatt also I think 'ps -ef | awk '\''{print $1}'\'' ' might work
20:19 Corey Dear god.
20:20 notbmatt it's a bash thing
20:20 rmnuvg_ joined #salt
20:20 cwright_ joined #salt
20:20 pfalleno1 joined #salt
20:20 jeblair_ joined #salt
20:20 viq_ joined #salt
20:21 aarontc joined #salt
20:24 seme joined #salt
20:25 seme hey guys... in terms of creating a windows package to be distributed by salt I have been able to get setup.exe and msi installs to work but I am trying to take the ms office cd and create a package to install it with... I created a script that can do it but since the salt-minion doesn't have rights to our network filer I can't run the script from the UNC path... any thoughts?
20:26 cofeineSunshine joined #salt
20:27 seme I could always make the salt-minon run as a domain user but I would prefer not to
20:28 seme perhaps I can have salt copy everything as a zip with a batch file and run the batch file... how would I go about doing that?  is there a good example in teh salt-states repo?
20:29 hellome joined #salt
20:29 Theo-SLC What's the best way to clean up old keys on the master for minions that no longer exist?
20:33 notbmatt turn on auto-accept, delete all keys? (joking)
20:34 Theo-SLC I deleted all keys and am now slowly accepting them back
20:35 Theo-SLC I think there should be a feature to delete keys from minions that haven't connected in x minutes.
20:36 tedski file an issue on github
20:36 tedski i think that's a worthwhile feature, personally
20:36 Theo-SLC eh, work..
20:36 Theo-SLC :)
20:37 kmshultz +1 to that feature
20:37 schmutz joined #salt
20:38 tedski there is an autosign timeout already to expire autosigned keys
20:39 tedski but, the docs are unclear on how that works
20:39 notbmatt salt documentation unclear, got dick stuck in fan
20:41 Theo-SLC tedski: go give it a bump https://github.com/saltstack/salt/issues/13141
20:41 manfred salt-run wheel.key.delete
20:42 shaggy_surfer joined #salt
20:42 manfred use a scheduler to check for minions that are in salt-run manage.down, and then ahve the reactor delete those minion keys
20:42 tedski manfred: manage.down doesn't tell us how long they've been down
20:42 Networkn3rd joined #salt
20:50 kermit joined #salt
20:51 anuvrat joined #salt
20:52 ashw7n joined #salt
20:58 mateoconfeugo joined #salt
21:01 MatthewsFace joined #salt
21:02 schmutz joined #salt
21:06 redondos joined #salt
21:06 redondos joined #salt
21:10 jdog joined #salt
21:13 Ryan_Lane I'm trying to include a block literal in a state, from a pillar and it's giving me a yaml syntax error
21:13 cpowell joined #salt
21:13 Ryan_Lane what's the proper way of doing this?
21:14 cpowell joined #salt
21:18 n8n joined #salt
21:19 jhulten joined #salt
21:24 whiteinge like a multi-line string?
21:24 Debolaz3 joined #salt
21:24 whiteinge Ryan_Lane: ^^
21:25 Ryan_Lane whiteinge: yeah
21:25 Ryan_Lane so, I'm also using .format, which may be causing my problem
21:25 ZombieFe_ joined #salt
21:25 whiteinge if the multi-line string is coming from Pillar you have to do one of two things:
21:26 whiteinge 1) use the ``contents_pillar`` arg (if you are using file.managed)
21:26 whiteinge 2) manually indent the string yourself with jinja. e.g.,   {{ pillar.get('mystring') | indent(8) }}
21:26 Ryan_Lane ah
21:26 Ryan_Lane weird
21:26 whiteinge yeah
21:27 whiteinge weird side-effect of templating-within-templating
21:27 rgbkrk joined #salt
21:28 whiteinge that arg to indent() must be the correct number of spaces for wherever you're using the multi-line val
21:28 Ryan_Lane hm, there's got to be some way salt can solve this problem for me, eh? :)
21:28 bemehow joined #salt
21:28 tedski whiteinge: hate to bug ya, but is there any chance the 404 for latest docs will be fixed soon?
21:28 tedski whiteinge: re: http://salt.readthedocs.org/en/v2014.1.4/
21:29 whiteinge Ryan_Lane: that was the birth of the ``contents_pillar`` arg to file.managed  :)
21:29 Ryan_Lane ah. heh
21:29 whiteinge tedski: that fell off my radar. let me poke it...
21:29 tedski thanks :)
21:29 tedski it's blocking our upgrade to 2014.1.4 internally :)
21:30 Ryan_Lane that did indeed work
21:30 tedski for some reason, my team doesn't want to upgrade to a version with no docs :P
21:31 whiteinge haha
21:32 whiteinge tedski: looks like it's building. see if it fixes the 404 once it's done
21:33 stritz joined #salt
21:33 whiteinge tedski: quick caveat, we don't back-port documentation fixes so the 2014.1 docs may not be exactly what you're hoping for
21:34 whiteinge we will starting with the next release (see ticket https://github.com/saltstack/salt/issues/12754)
21:34 tedski right
21:35 tedski but at least they'll be mostly there once the 404 is fixed :)
21:35 * whiteinge nods :)
21:35 schmutz joined #salt
21:36 combusean joined #salt
21:38 possibilities joined #salt
21:39 humankeyboard hi all
21:40 humankeyboard does anyone use grains?
21:41 Gareth whiteinge: did you see my questions over on -devel re: returners?
21:41 racooper is this a survey, or do you have an issue you'd like to ask about?
21:42 * whiteinge looks
21:42 humankeyboard racooper: :)
21:42 KyleG1 joined #salt
21:43 humankeyboard nevremind I will ask it on Monday, seems like I have to run now
21:44 KyleG joined #salt
21:44 KyleG joined #salt
21:45 ZombieFeynman joined #salt
21:45 ipmb joined #salt
21:45 whiteinge tedski: still building...
21:48 Theo-SLC I've had to blow away the master and minion /var/cache/salt several times in the last few weeks to resolve several problems.  Is anybody else living with this problem?
21:53 Outlander joined #salt
21:54 notbmatt which problem(s)?
21:55 Theo-SLC minions stop responding to the master
21:55 krow joined #salt
21:56 Theo-SLC classically: [WARNING ] The minion failed to return the job information for job 20140530213359401541. This is often due to the master being shut down or overloaded. If the master is running consider incresing the worker_threads value.
21:56 notbmatt have you tried increasing the worker_threads value? :)
21:56 Ryan_Lane when I run sls.template from the develop branch it looks like it's using lexical ordering.... is there something special I need to do to make it ordered as listed in the state file?
21:57 Theo-SLC I have.  I'm up to 10 and I sized up my ec2 instance for the master.
21:57 notbmatt Ryan_Lane: the Correct Answer is to use requisites to make the relationship explicit
21:57 Theo-SLC blowing away cache and restarting all services is the only thing that fixes everything
21:57 Ryan_Lane notbmatt: no it's not :)
21:57 Ryan_Lane salt specifies it'll run in the order defined in the file
21:57 Ryan_Lane and that's what I want it to do
21:58 * notbmatt ¯_(ツ)_/¯
21:58 Ryan_Lane whiteinge, forrest, basepi: any ideas?
21:59 whiteinge Ryan_Lane: wonder if state.template was overlooked during the source-order changes
21:59 jrdx joined #salt
21:59 Ryan_Lane I definitely need that to work :)
22:00 whiteinge tedski: success! http://salt.readthedocs.org/en/v2014.1.4/
22:00 n8n joined #salt
22:00 tedski whiteinge: thanks!!
22:01 Theo-SLC are those community editable docs?
22:01 tedski yup
22:01 Ryan_Lane is there any way for me to call a single state that isn't listed in the top file other than using template?
22:01 racooper state.sls <statename>
22:01 tedski Theo-SLC: https://github.com/saltstack/salt/tree/develop/doc
22:02 Ryan_Lane hm. I had tried that, but it said it wasn't defined
22:03 whiteinge Ryan_Lane: state.sls doesn't req. a top file but it does need to be under /srv/salt.
22:03 Ryan_Lane No matching sls found for 'qa2' in env 'base'
22:03 Ryan_Lane whiteinge: when using salt-call is there any flag I can use to extend that path?
22:03 Ryan_Lane I tried -m, but that doesn't seem to work
22:03 tedski Ryan_Lane: saltenv?
22:03 tedski Ryan_Lane: not with salt-call
22:03 tedski but, with state.sls
22:04 Ryan_Lane right, but what saltenv should I use, since there's no env defined?
22:04 tedski oh
22:04 Ryan_Lane since I'm not going through a topfile
22:04 whiteinge Ryan_Lane: perhaps the --file-root flag will work for that
22:05 * Ryan_Lane highfives whiteinge
22:05 whiteinge woot
22:05 whiteinge Ryan_Lane: mind filing a bug for the state.template thing?
22:05 Ryan_Lane and that indeed does look like it executes in order properly
22:05 tedski Ryan_Lane: oh, right... yeah, i use gitfs, so envs are branches
22:05 tedski sorry
22:06 Ryan_Lane let me try with another state
22:06 tedski i actually have 0 experience with local file roots
22:06 tedski heh
22:06 Ryan_Lane whiteinge: I'd <3 you forever if it could be fixed before the next release
22:07 smcquay joined #salt
22:07 * whiteinge weighs Ryan_Lane's love against whiteinge's free time
22:07 Ryan_Lane https://github.com/saltstack/salt/issues/13146
22:07 whiteinge ty
22:09 ZombieFe_ joined #salt
22:13 ZombieFeynman joined #salt
22:21 tligda1 joined #salt
22:22 ZombieFe_ joined #salt
22:31 ZombieFeynman joined #salt
22:32 Joseph joined #salt
22:35 pssblts joined #salt
22:35 ZombieFeynman joined #salt
22:36 forrest Ryan_Lane, sorry I wasn't paying attention
22:37 forrest whiteinge, I thought you were getting rid of readthedocs
22:37 whiteinge forrest: it's a work in progress. DON"T JUDGE ME
22:38 forrest whiteinge, I'm not
22:38 forrest was just confused regarding your excitement
22:38 forrest Ryan_Lane, https://www.youtube.com/watch?v=aA-tOsM6F4Y is that gonna be you?
22:38 whiteinge forrest: you're right. that was one question mark too many.
22:39 whiteinge er. exclamation mark
22:39 forrest lol
22:41 viq Getting rid of readthedocs? Why?
22:42 Ryan_Lane forrest: :D yeah
22:42 jerrcs joined #salt
22:42 Ryan_Lane viq: there's docs.saltstack.org and salt.readthedocs.org
22:42 Ryan_Lane they have basically the same info and it confuses people
22:43 Ryan_Lane especially since I think they are occasionally different
22:43 Joseph restructured text question
22:43 Joseph anyone know why emacs won't allow me to indent for a block quote
22:44 viq And different formatting (sometimes I prefer RTD) and readthedocs actually do have a search as opposed to docs.saltstack.com
22:45 Ryan_Lane docs.saltstack.org has a google search box
22:45 Ryan_Lane that does a custom search against the site
22:46 viq I guess my combo of defensive extensions blocks it then :P
22:46 notbmatt man I hate RTD
22:46 notbmatt because there's no TOC
22:46 Ryan_Lane viq: :D
22:46 notbmatt oh, I guess I mean I hate the old RTD layout; the new one that mirrors docs.saltstack.org is preferred
22:48 whiteinge forrest: holy crap (re: that youtube vid)
22:52 anuvrat joined #salt
22:52 pentabular joined #salt
22:52 * pentabular has a little conniption over salted calamari http://ceph.com/community/ceph-calamari-goes-open-source/
22:53 pentabular :)
22:53 Ryan_Lane hah. awesome
22:54 jerrcs I have a bit of a question regarding Salt Syndics. When I install a syndic, it installs both the syndic and master, yet syndic appears to search for a minion configuration file. Is there any sort of example setup with configurations that explains it better?
22:54 jerrcs I did RTFM over at docs.saltstack.com but I feel the documentation is lacking.
22:58 jerrcs Right now, I can command minions under my syndic, but I get the results twice. I try to talk to a specific hostname, but it shows the result twice.
22:59 pentabular bbl8trppl!
22:59 pentabular left #salt
23:09 forrest whiteinge, yea it would be worth it to see Ryan_Lane sing like that
23:10 ashw7n joined #salt
23:13 ZombieFeynman joined #salt
23:14 Spark joined #salt
23:18 druonysuse joined #salt
23:22 Luke_ joined #salt
23:23 druonysuse it looks like salt reports it fails if there is more than one package of that kind installed.. even though it really does install it: http://susepaste.org/5869516
23:24 ndrei joined #salt
23:25 druonysuse I think salt is reporting that it is failing because the kernel package does not uninstall the old one when the new one is installed
23:27 jcsp joined #salt
23:27 agliodbs joined #salt
23:28 agliodbs newbie question: how do minions get their IDs?
23:31 druonysuse agliodbs: if I remember right, I believe it is from python's socket.getfqdn
23:31 druonysuse agliodbs: https://docs.python.org/2/library/socket.html
23:31 yetAnotherZero joined #salt
23:31 taion809 joined #salt
23:31 agliodbs druonysuse: thanks
23:33 druonysuse no problem :)
23:33 agliodbs druonysuse: is there a good equivalent to "contains" for matching minionIDs?  python's string methods include startswith and endswith, but find() returns an index an -1 if not found, which is a little annoying.  Is that the best I can do?
23:38 Joseph <druonysuse> : yes you are correct
23:39 Joseph <agliodbs> you'd probably be better off with a glob or PCRE
23:39 Joseph if you arej ust trying to match a minion id
23:39 agliodbs Joseph: example?  basically, I'm testing for a string in the middle of the fqdn
23:40 Joseph this is just in top.sls?
23:40 agliodbs yah
23:40 shaggy_surfer joined #salt
23:40 Joseph can you give me an example minion id
23:40 Joseph the full thing
23:41 agliodbs Joseph: actually, lemme give you the full problem, possibly I'm fixing this the hard way
23:41 agliodbs moment, composing a paste
23:41 druonysuse agliodbs: sorry I am not much of a python programmer so I might not be good to help on that question. Thanks Joseph for jumping in and helping :)
23:42 Joseph <druonysuse> : your welcome but for the most part you don't need to know anything about python in order to get saltstack to work
23:42 agliodbs Joseph: http://salt.privatepaste.com/ffc2bac807
23:43 Joseph python only really comes into the picture when you need a custom module
23:43 agliodbs Joseph: so basically if the server contains "01" I want all of the other URLs it needs to match "01"
23:43 agliodbs there's an "02" group of servers as well
23:44 Joseph why won't a glob work?
23:44 Joseph "*02*"
23:44 Joseph etc
23:44 jimklo how do you tell salt to refresh the envirnment... ie path changed
23:44 Joseph jimklo: depends on what you want to refresh
23:45 Joseph http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.saltutil.html
23:45 Joseph various functions to clear the cache
23:45 druonysuse Joseph: oh no... not at all... I have been working with salt for years and I still don't know much python. I love how simple salt it to set up and work with
23:45 jerrcs guys, I am having a problem.. I am using a syndic and I am getting duplicate results when I run salt commands.. see this: http://pastebin.com/aeDeB7df
23:46 Joseph druonysuse: i know!! after trying to set up puppet and losing 6 hours of my life versus 10 minute set up for saltstack whew
23:46 Joseph However druoynsuse, python is awesome. You should learn it to increase your awesomeness
23:46 Joseph jerrcs: sadly i know nothing about sync dic functioanlity
23:46 agliodbs Joseph: ideally, I'd like to be able to regex out a portion of the minion fqdn and apply it to other servers, like so: http://salt.privatepaste.com/e0b2334977
23:47 jerrcs it doesn't seem "all there"
23:47 Joseph aliodbs: something like pgb01(A|B)
23:47 Joseph along those tlines?
23:47 mgw joined #salt
23:48 Joseph jerrcs: yea i am not the person to ask but i do know that syndicate functionality is heavily used in large scale deployments because of the scale problems associated with TCP connections to the master
23:48 Joseph so i know people have gotten it to work
23:48 Joseph too bad those people aren't paying attention here
23:48 jimklo Joseph: i'm updating Java...  and updating the environment via profile.d... and need running salt to adopt the new environment set in profile.d
23:48 Joseph jimklo: are you referring to updating a grain?
23:49 druonysuse Joseph: Oh yes. I am working on learning more python. Most I have done as of yet is build a small 5 line script to autogenerate a grain. More is to come. I am reading a few Python books right now. It is just more advanced than bash, the language I know best
23:49 jerrcs Joseph: ah, ok. yeah, in a few months I am looking to deploy a rather large salt cluster involving >100 hosts and possibly 10-20 syndics, so I am testing now to make sure that it will expand like we hope it will.
23:49 agliodbs Joseph: right, if the server is named ([\w_-]*)pgb(\d+)(A|B) I'd like to extract \1 and \2 and apply them to the related server names, instead of doing a big if ... then.
23:50 jimklo Joseph: yeah, i think so... PATH gets modified...
23:50 ashw7n joined #salt
23:50 agliodbs Joseph: from the looks of things, I need to do a run() python script to make that work though
23:50 Joseph druonysuse: i know exactly where you are coming from. I am expert bash programmer. Python was my next language.
23:51 Joseph <agliodbs>: what do you mean extract? you just talking about a matching for minion targeting right?
23:51 Joseph are
23:52 agliodbs well, this is to populate a pillar, so that I can have variables to populate various .conf files, but yes
23:52 thayne joined #salt
23:52 Joseph hmmm
23:52 Joseph i think i need to take a step back i must b e missing
23:52 Joseph are you targeting minions for populating pillar data?
23:52 Ryan_Lane forrest: maybe if it gets in and we have karaoke at the next saltconf
23:53 Ryan_Lane then it'll be a good opportunity to see that sung
23:53 agliodbs Joseph: I don't think I understand your question
23:53 Joseph is this in top.sls for applying states or is this file for specifying pillar data for nodes?
23:54 agliodbs pillar data for nodes
23:54 Joseph okay ...was missing that
23:54 Joseph and what pillar data are you trying to generate?
23:54 agliodbs sorry!  <-- salt newbie
23:54 Joseph no worries
23:54 agliodbs Joseph: those four variables, which all happen to be uris of other servers
23:55 Joseph so this would be a pillar name-value pair db_a: db01A.corp.com
23:55 Joseph for example?
23:55 druonysuse Joseph: I have been enjoying learning python but it is *far* different than bash, so it is not going a swiftly as I would like... but I am having a good time learning just how powerful it is.
23:55 Joseph druonysuse: it will ruin you though. Python is the most readable programming language i have ever seen. I looove that whitespace matters.
23:56 agliodbs Joseph: correct.
23:56 anuvrat joined #salt
23:56 tyler-baker left #salt
23:56 * jimklo Props to Joseph! Python is an excellent programming language to learn..
23:56 agliodbs Joseph: basically if the minionid contains "pgb(01)" I'd like the "01" to get applied to the values
23:57 agliodbs Joseph: and if it has a string before the pgb, Id like to apply that as well.  I know how I'd do that in full-on python using the re module, but I'm not clear on how to do that without going outside jinja2.  I suspect that it's not possible without going outside.
23:57 Joseph so that via the pillar a minion can do a URI lookup for some other server out there?
23:58 TyrfingMjolnir joined #salt
23:58 Joseph agliodbs: jinja is evil if its used for anything else except simple iteration through existing grain or pillar data
23:58 jimklo btw Joseph, sync_grains I think was exactly what I needed..
23:58 agliodbs Joseph: these minions have config files which configure a service which connects which certain other servers.  So I need to populate the config files.
23:58 Joseph jimklo: yep sorry about that
23:58 Joseph you are right
23:58 jimklo thx!
23:59 Joseph agliodbs: thinking ....sorry give me a sec

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