Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-02-21

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

All times shown according to UTC.

Time Nick Message
00:05 JasonSwindle joined #salt
00:05 krow joined #salt
00:07 yomilk joined #salt
00:08 schimmy so I want to be able to call a transform on a pillar item
00:08 schimmy let's say I want to uppercase, even though that is built in
00:08 schimmy so in my salt file I want to be able to do:
00:09 schimmy {{ salt['uppercase_helper.upper'](val) }}
00:09 schimmy where maybe I've set val using pillar.get - that's not important
00:09 schimmy the question:
00:09 schimmy how can I do this using salt-ssh?
00:10 schimmy including in _modules does not work
00:12 helderco joined #salt
00:13 joehoyle joined #salt
00:13 krow joined #salt
00:16 schimmy ah, this is why:
00:16 schimmy https://groups.google.com/forum/#!topic/salt-users/9tlo9wNcBdw
00:18 longdays joined #salt
00:19 krow joined #salt
00:20 meteorfo_ joined #salt
00:22 dmwuw joined #salt
00:22 Furao joined #salt
00:24 krow joined #salt
00:28 joehoyle joined #salt
00:30 krow joined #salt
00:30 ajw0100 joined #salt
00:32 zzzirk joined #salt
00:36 krow joined #salt
00:38 krow1 joined #salt
00:40 bhosmer joined #salt
00:43 krow joined #salt
00:44 mua joined #salt
00:45 faef joined #salt
00:46 mua_ joined #salt
00:46 nineteen1ightd joined #salt
00:47 N-Mi joined #salt
00:47 N-Mi joined #salt
00:48 astol joined #salt
00:48 longdays_ joined #salt
00:48 MaZ- joined #salt
00:48 dave_den1 joined #salt
00:49 krow joined #salt
00:49 Xiao__ joined #salt
00:49 andyshin` joined #salt
00:49 Daviey_ joined #salt
00:49 nahamu joined #salt
00:49 dimeshake_ joined #salt
00:49 bstr__ joined #salt
00:49 scarcry_ joined #salt
00:50 dcolish_ joined #salt
00:50 ahale joined #salt
00:50 puppet joined #salt
00:50 ange_ joined #salt
00:50 musinsky_ joined #salt
00:50 taion809 joined #salt
00:51 svx_ joined #salt
00:51 bejer_ joined #salt
00:51 Bosch[]_ joined #salt
00:54 fuser_ joined #salt
00:56 krow joined #salt
00:57 seblu joined #salt
00:57 EWDurbin joined #salt
00:57 schristensen joined #salt
00:57 cofeineSunshine joined #salt
00:57 philipsd6 joined #salt
00:57 SaveTheRbtz joined #salt
00:57 \ask joined #salt
00:57 jpaetzel joined #salt
00:57 giantlock joined #salt
00:57 elfixit1 joined #salt
00:57 tamentis joined #salt
00:57 eculver joined #salt
00:58 l0x3py joined #salt
00:58 davet joined #salt
00:58 alienresidents joined #salt
00:59 kossy joined #salt
01:00 hunter joined #salt
01:00 krow1 joined #salt
01:00 pcarrier joined #salt
01:02 Troic_ joined #salt
01:02 Troic_ joined #salt
01:02 seblu joined #salt
01:02 Guest78129 joined #salt
01:02 schristensen joined #salt
01:02 cofeineSunshine joined #salt
01:02 philipsd6 joined #salt
01:02 SaveTheRbtz joined #salt
01:02 \ask joined #salt
01:02 jpaetzel joined #salt
01:02 giantlock joined #salt
01:02 elfixit1 joined #salt
01:02 tamentis joined #salt
01:02 eculver joined #salt
01:02 l0x3py joined #salt
01:02 davet joined #salt
01:02 alienresidents joined #salt
01:02 razor joined #salt
01:02 msil joined #salt
01:02 Schmidt joined #salt
01:03 cheus_ joined #salt
01:03 fishpen0 joined #salt
01:06 krow joined #salt
01:07 AlcariTheMad joined #salt
01:07 kossy joined #salt
01:09 N-Mi joined #salt
01:09 N-Mi joined #salt
01:12 krow joined #salt
01:15 sroegner joined #salt
01:18 jdenning joined #salt
01:20 christopherl joined #salt
01:21 oz_akan_ joined #salt
01:24 Furao joined #salt
01:30 bemehow joined #salt
01:31 dcolish joined #salt
01:35 rhand joined #salt
01:37 krow joined #salt
01:38 bemehow joined #salt
01:40 mgw joined #salt
01:41 pdayton joined #salt
01:41 terminalmage schimmy: jinja supports .upper()
01:42 terminalmage {{ __salt__['pillar.get']('foo:bar', 'baz').upper() }}
01:43 luminous joined #salt
01:47 schimmy joined #salt
01:51 schimmy1 joined #salt
01:52 schimmy1 this was just an example
01:52 schimmy1 terminalmage: I was actually needing to salt passwords
01:53 schimmy1 I was able to just call out to perl
01:53 schimmy1 but when I use salt-ssh it's just pretty damn broken
01:53 schimmy1 I get this error:
01:53 schimmy1 AttributeError: 'dict' object has no attribute 'kwargs'
01:53 schimmy1 the same sls file running sucessfully with salt-call —local on my target box
01:53 schimmy1 *using the same sls file
01:54 schimmy1 _ _ salt _ _ is an empty dict
01:54 schimmy1 File "/Users/colinschimmelfing/code/scratch/salt/salt/client/ssh/wrapper/state.py", line 72, in sls
01:54 schimmy1 **__salt__.kwargs)
01:54 schimmy1 (this is off the develop branch
01:54 schimmy1 but same thing happens off latest stable)
01:55 terminalmage ok, did you search the issue tracker?
01:55 terminalmage if it hasn't been reported, we definitely want to get it addressed
01:56 schimmy1 yes- it looks like no one else has run into that specific issue before
01:56 terminalmage ok. please file an issue and I'll talk to Tom about it this weekend at SCaLE
01:58 krow joined #salt
01:58 schimmy1 ok, thanks!
01:58 terminalmage no prob
01:58 schimmy1 I'm going to dig around some more to see if I can track down what's causing it
01:59 terminalmage by all means! most of salt-ssh is handled by salt/utils/thin.py
01:59 Teknix joined #salt
01:59 terminalmage that builds a tarball which is then copied and unpacked on the remote host
02:00 schimmy1 ah yes - by the way I am also going to file a bug on this: https://groups.google.com/forum/#!topic/salt-users/9tlo9wNcBdw
02:01 schimmy1 that also caused me some trouble because I tried to do this with an external module before I went with shelling out :)
02:02 vmdsch2 joined #salt
02:04 MTecknology joined #salt
02:06 justBob_ joined #salt
02:07 ipalreadytaken joined #salt
02:08 budrose joined #salt
02:15 krow joined #salt
02:16 rojem joined #salt
02:18 ipalreadytaken joined #salt
02:19 new_to_salt joined #salt
02:20 rgbkrk joined #salt
02:24 new_to_salt are there any python script formatting examples/tutorials? ... for example formatting the output of grains.item os_family osfullname os osrelease
02:28 bhosmer joined #salt
02:31 BenCoinanke joined #salt
02:36 PolarBearRobot joined #salt
02:38 oz_akan_ joined #salt
02:38 yomilk joined #salt
02:38 BenCoinanke joined #salt
02:40 Gordonz joined #salt
02:41 Gordonz joined #salt
02:41 jdenning joined #salt
02:46 ch0pstick joined #salt
02:46 ch0pstick joined #salt
02:47 ch0pstick joined #salt
02:50 xl joined #salt
02:50 ch0psti26 joined #salt
02:55 budrose joined #salt
02:57 bt joined #salt
02:59 juicer2 joined #salt
03:01 alunduil joined #salt
03:15 Furao joined #salt
03:15 sroegner joined #salt
03:20 meteorfox joined #salt
03:22 rostam joined #salt
03:29 schimmy joined #salt
03:37 ipalreadytaken joined #salt
03:42 zzzirk joined #salt
03:42 mgw1 joined #salt
03:45 joehoyle joined #salt
03:54 higgs001 joined #salt
03:57 kintel joined #salt
03:59 ampex joined #salt
04:01 kula joined #salt
04:02 jalbretsen joined #salt
04:06 astol joined #salt
04:08 mgw1 joined #salt
04:17 bhosmer joined #salt
04:20 bhosmer_ joined #salt
04:26 kintel joined #salt
04:41 ajw0100 joined #salt
04:43 xmltok joined #salt
04:43 Furao joined #salt
04:44 forrest joined #salt
04:48 Gifflen joined #salt
04:49 justBob_ joined #salt
04:52 bemehow joined #salt
04:52 ravibhure joined #salt
04:52 bretep Does anyone know how I can return just the rendered sls? Can I run a salt-call saltutil something to get it?
04:53 bemehow_ joined #salt
04:53 forrest dave_den1, you around?
04:54 forrest bretep, there is a way to kind of do it, but I can't remember
04:54 forrest thus why I was trying to bug dave
04:55 forrest I know he has corrected me on this before
04:56 Furao joined #salt
04:59 bretep I know you can do a -l all on a highstate and see what it rendered, but just to just return the rendered yaml would be excellent
04:59 forrest yea, you could always add the test option
04:59 forrest plus -l
05:05 rgbkrk joined #salt
05:09 Gordonz joined #salt
05:12 danielbachhuber joined #salt
05:14 budrose joined #salt
05:16 sroegner joined #salt
05:16 mgw1 joined #salt
05:17 Furao joined #salt
05:21 astol joined #salt
05:25 ravibhure1 joined #salt
05:28 rojem joined #salt
05:32 ravibhure1 left #salt
05:34 rojem joined #salt
05:34 Furao joined #salt
05:35 forrest Pretty cool visualization of the Salt project, you might even see yourself in here: http://www.youtube.com/watch?v=Znmk8LO0fcE
05:41 Hipikat joined #salt
05:45 hardwire hmm.. ok.
05:46 hardwire I'm trying to figure out if salt can help bring up remote machines that need to have xy and z done before loading other services.
05:46 hardwire I think the reactor model maaaay be what I want.  But that seems like it just helps the state get achieved
05:46 forrest hardwire, can you not use requisites: http://docs.saltstack.com/ref/states/requisites.html ?
05:46 hardwire and I'm not sure if that's actually what I want.. but I'd somehow need to have a non-persistant state.
05:47 hardwire forrest: so each time the machine boots it needs to go through some tasks and report on them before it is 'up'
05:47 forrest oh I see
05:47 forrest yea process on boot is an issue...
05:47 hardwire I'm not familiar enough to know the best practice for that.
05:47 forrest hardwire, which OS?
05:47 hardwire basically.  I need to mount an encrypted volume (via a remote key) and then once it's mounted spin up some services to hit the state.
05:47 hardwire debian
05:48 forrest hardwire, why not just use init scripts?
05:49 forrest they're pretty easy to order, /etc/rc3.d/S40asdf would symlink over to /etc/init.d/asdf, then you could have /etc/rc3.d/S40zxcv which would symlink to /etc/init.d/zxcv
05:49 hardwire because I'm trying to get the current state via salt master as well
05:49 forrest err sorry, S50 on the second one
05:49 forrest so run the highstate to drop the init scripts on?
05:50 hardwire and I'm trying my darndest to make it simpler than if I would just go crazy kung fu with some init scripts
05:50 forrest :P
05:50 forrest init scripts are simple!
05:50 forrest well, compared to trying to wrangle salt
05:50 forrest the issue you have there is that salt can't persist through a reboot
05:50 hardwire I'm trying to evaluate that.
05:50 forrest so you'd somehow have to not initialize those things, and then somehow initialize them
05:50 hardwire I've been doing remote machine automation for a while
05:50 forrest gotcha
05:50 hardwire I'm just now getting into using tools like this
05:51 hardwire the goal is to produce a product that other people won't completely scratch their heads about.
05:51 forrest heh
05:51 hardwire very minimal footprint stuff
05:51 forrest yea understandable
05:51 forrest the reactor might work for that, but honestly I've never tried it
05:51 hardwire me either
05:51 hardwire I got salt to set up some minions and a master and then got distracted my firing off master events
05:52 hardwire that was fun.  I got some good stuff back as a test.
05:52 forrest hah
05:52 darless So who is in charge of keeping ubuntu packages up to date for saltstack? Cause there are no precompiled packages available for ubuntu 14.04 - trusty
05:52 hardwire then I decided I needed to test multi master in that situation
05:52 hardwire I haven't done that yet
05:52 forrest darless, joehh would be your man
05:52 darless forrest: cool thanks
05:53 forrest darless, yup, he lives in Australia as a heads up
05:53 hardwire well.. heads down
05:53 hardwire am I right
05:53 hardwire cause he's under the world.
05:53 forrest well, I was more saying there was a time shift...
05:53 darless its 4:53 PM there right now
05:53 hardwire I'm pretty sure right now is now for him too :)
05:54 darless he
05:54 darless heh*
05:54 forrest well yea, but sometimes people try to hit him up during the day in the US
05:54 forrest and I have to explain it's 2 AM there
05:55 forrest I've gotta head to bed, hardwire let me know if you find a good way to do that with Salt.
05:55 hardwire well I think I'm gonna just start walking through some docs
05:55 hardwire my big thing right now is bootstraping via debian preseed.txt
05:55 hardwire and then possibly pushing some dpkg configuration information through salt before packages are initialized.
05:56 hardwire thanks for the hand forrest
05:56 forrest yup, wish I could give you more!
05:56 hardwire I wonder if there's some fools in Anchorage, AK that are saltworthy.
05:56 darless joehh: There are no saltstack packages available for ubuntu 14.04 - trusty tahr. What is the proposed time that they will be available?
05:56 krow joined #salt
05:59 hardwire darless: if you're stretched for time I can help if you want to get it going on your own
06:00 darless hardwire: no I'm good. I used saltstack bootstrap which installed saltstack fine.
06:00 darless hardwire: saltstack bootstrap tries to find the packages first then goes a different route, which works. Just trying to give a heads up
06:01 meteorfox joined #salt
06:02 faldridge joined #salt
06:10 lpn is it possible to run salt.fileserver.gitfs.purge_cache from command line ?
06:13 danielbachhuber joined #salt
06:15 jacksontj_ joined #salt
06:17 krow joined #salt
06:17 dave_den bretep, forest: http://docs.saltstack.com/ref/modules/all/salt.modules.cp.html#salt.modules.cp.get_file
06:18 anuvrat joined #salt
06:19 dave_den sorry. bretep this is what you want: http://docs.saltstack.com/ref/modules/all/salt.modules.cp.html#salt.modules.cp.get_template
06:22 krow joined #salt
06:22 saurabhs joined #salt
06:24 dave_den lpn: on the master you can run: salt-run fileserver.update
06:27 lpn dave_den: thank you. But there is no way to run the specific gitfs function?
06:27 ipalreadytaken joined #salt
06:27 dave_den not that i know offhand
06:28 krow joined #salt
06:29 lpn ok, thanks for the tip :)
06:31 schimmy joined #salt
06:33 krow joined #salt
06:39 krow joined #salt
06:44 danielbachhuber joined #salt
06:47 zzzirk joined #salt
06:56 kermit joined #salt
06:59 Gifflen joined #salt
07:11 mikn joined #salt
07:15 krow joined #salt
07:17 mikkn joined #salt
07:17 sroegner joined #salt
07:29 seblu joined #salt
07:29 unicoletti joined #salt
07:29 alnu joined #salt
07:31 n8n joined #salt
07:32 ben___ joined #salt
07:33 ben___ [root@localhost /]# salt  '101.226.20.3' cmd.run 'bash /root/t.sh 'dfdf$#''
07:33 ben___ the output is  dfdf0
07:33 linjan joined #salt
07:33 ben___ what I want is dfdf$#
07:33 krow joined #salt
07:33 ben___ not change the parameter
07:34 scuwolf joined #salt
07:34 ben___ how to deal with special chars in cmd.run?
07:41 ml_1 joined #salt
07:42 unicoletti ben___: have you tried escaping $ with \$ ?
07:45 ben___ cmd.run "bash -x  /root/t.sh dfdf$\#"
07:45 ben___ tried this one ok
07:46 ben___ but if I use this method ,I have to check parameters every time
07:46 ben___ any other good ideas ?
07:47 astol joined #salt
07:50 cjbarnes18 joined #salt
07:53 bhosmer joined #salt
08:01 jacksontj_ joined #salt
08:03 jacksontj__ joined #salt
08:07 cym3try joined #salt
08:08 Kenzor joined #salt
08:08 krow joined #salt
08:09 harobed joined #salt
08:10 harobed joined #salt
08:13 balboah joined #salt
08:16 lessismore joined #salt
08:17 slav0nic joined #salt
08:18 mike25ro joined #salt
08:22 kyuusenichi joined #salt
08:33 giantlock_ joined #salt
08:40 yomilk joined #salt
08:48 anuvrat joined #salt
08:49 saurabhs joined #salt
08:50 miguitas joined #salt
08:52 saurabhs left #salt
08:53 MrTango joined #salt
09:01 x5257 joined #salt
09:08 kadel joined #salt
09:17 fnbar joined #salt
09:17 fnbar hi saltanists ;)
09:18 sroegner joined #salt
09:18 fnbar Anyone using salt with reprepro? Are there any guides or examples out there? :-)
09:19 cast joined #salt
09:22 thayne joined #salt
09:28 nkuttler fnbar: i have a setup i used a short while on squeeze, not really up to date and no package signing
09:30 fnbar nkuttler: How exactly does it work? The usual reprepro setup but deliver the files over salt?
09:30 nkuttler fnbar: oh it's not fully automated either. build manually, push to reprepro host, add to repository
09:31 nkuttler i think i did just scp them.. like i said, didn't use for long
09:31 fnbar nkuttler: Ah okay, thanks.
09:32 fnbar nkuttler: Lets see how far I'll go, deliver the packages over salt would be better instead of setting up another fileserver. Repository and Saltmaster would be on the same host.. :)
09:33 Damoun joined #salt
09:34 Furao joined #salt
09:35 specific_user joined #salt
09:38 millz0r joined #salt
09:41 bhosmer joined #salt
09:44 saltiebeef joined #salt
09:45 Iwirada joined #salt
09:46 r4vi anyone using salt masterless to provision a master than using that to provision minions?
09:50 saltiebeef thought about it but seemed a bit overkill
09:51 saltiebeef it's so easy to set it up, especially if you have all your /etc/ and /srv/salt and /srv/pillar in git
09:51 joehh joined #salt
09:51 saltiebeef would you (after the setup) hook the minion up to the master on the same box?
09:56 NV joined #salt
09:56 che-arne joined #salt
09:59 r4vi saltiebeef: yep
09:59 miguitas_ joined #salt
09:59 r4vi i kind of want to do it this way as I'm setting up a master per environment
09:59 r4vi rather than a single master
10:03 saltiebeef for redundancy of you want to keep things seperate?
10:03 jrdx joined #salt
10:04 saltiebeef yeah, I guess you could do it that way (bootstrap them with standalone minion)
10:04 saltiebeef Just didn't do it because of the minimal amount of setup :)
10:04 saltiebeef but go for it!
10:07 r4vi saltiebeef: not quite, the environments are isolated. so a single master can't talk to all the environments
10:08 saltiebeef ok, that explains it. Shouldn't be to hard to do, especially with salt bootstrapping
10:09 saltiebeef good luck!
10:17 jrdx If I'm looping through a pillar, writing out setting=value pairs to a config file for my config stored in "appcfg", how to I access reference that "value" properly... I've tried stuff along the lines of the following, but I just can't get it: pillar['appcfg']['{{ setting }}']   more: http://pastebin.com/PHGF6kRw
10:19 rdunlop joined #salt
10:28 mike25ro jrdx:  put also the pillar data please in the pastebin
10:28 mike25ro jrdx:  i am doing something similar at the moment so i might be able to help you
10:30 jrdx mike25ro: Just updated with some pillar example data... it's a pretty simple format: http://pastebin.com/AEiqzgcQ
10:31 liwen joined #salt
10:34 mike25ro jrdx:  i think this line : should be  "{{ setting }}={{ pillar.get('appcfg:'+setting ) }}"
10:34 mike25ro second setting is already inside {{}} ... so it should be evaluated
10:35 jrdx Ah, that makes sense... one sec while I try
10:35 mike25ro jrdx:  i am a newbie myself...
10:35 mike25ro yeah give it a try ... and tell me if it works :)
10:41 jrdx mike25ro: your comment about already being in {{}}} was the key. Your original suggestion didn't work (just resulted in a lot of setting=None), but it led me to the following, which works fine: - "{{ setting }}={{ pillar['appcfg'][setting] }}"
10:42 jrdx mike25ro: Thank's so much! I'm pretty new to Salt (only about a month or so in), so still trying to learn the ropes
10:42 mike25ro jrdx:  yeah ,.. i us the [] notation ... i supposed it should work with the GET thing
10:42 mike25ro jrdx:  i prefer myself the []
10:42 carlos joined #salt
10:43 mike25ro jrdx:  glad i could help :)
10:51 Hipikat left #salt
11:17 bbinet joined #salt
11:18 sroegner joined #salt
11:22 higgs001 joined #salt
11:25 Iwirada left #salt
11:26 liwen joined #salt
11:30 bhosmer joined #salt
11:45 bhosmer joined #salt
11:51 bhosmer_ joined #salt
11:53 joehh darless: Salt should be included in 14.04 already
11:53 joehh see http://packages.ubuntu.com/search?keywords=salt&searchon=names&suite=trusty&section=all
11:54 joehh I'm guessing that maybe bootstrap looks for them from the ppa directly... ?
11:55 joehh I'll put them in the ppa to make sure
11:56 kadel joined #salt
11:58 kadel joined #salt
11:59 fnbar Hmmm...how do I put something like apt-get install package1 package2 packageN into a state file, are there some best practices?
12:00 nocturn joined #salt
12:00 kiorky fnbar: it's one of the salt main usage
12:00 nocturn joined #salt
12:00 kiorky fnbar: use pkg.installed, but be sure to use "pkgs" and not "name" or "names"
12:01 kiorky like
12:01 kiorky foo:
12:01 kiorky pkg.installed:
12:01 kiorky - pkgs: ['vim', 'nano']
12:01 anuvrat joined #salt
12:01 fnbar kiorky: Thanks, thats the syntax I was searching for :-)
12:01 kiorky fnbar: you have 2 options, pkg.installed or pkg.latest.
12:01 kiorky fnbar: you ll prefer the long form
12:02 kiorky - pkgs:
12:02 kiorky - vim
12:02 kiorky - nano
12:02 kiorky fnbar: understood ? :)
12:02 fnbar kiorky: Yes, many thanks =)
12:04 kiorky fnbar: did you looked that page: http://salt.readthedocs.org/en/latest/ref/states/all/index.html
12:05 kiorky fnbar: and per se: http://salt.readthedocs.org/en/latest/ref/states/all/salt.states.pkg.html#module-salt.states.pkg
12:06 fnbar kiorky: "Multiple Package Installation Options"...RTFM to myself :D
12:06 fnbar kiorky: Are the salt-docs now hosted officially on readthedocs, or is it the same as docs.saltstack.com?
12:07 viq fnbar: same docs, different formatting (at least that's the idea)
12:07 fnbar viq: Thanks, I'll keep reading. :)
12:08 kiorky fnbar: in fact one day i use one, and one day another
12:08 kiorky fnbar: i think salt.readthedoc is built from master
12:08 kiorky fnbar: maybe the one on saltstack.com is built from stable, but not sure
12:08 kiorky fnbar: s/master/develop/
12:08 kiorky (develop is the salt's master branch)
12:09 kiorky fnbar: ask basepi or terminalmage to know
12:09 cym3try joined #salt
12:10 kiorky fnbar: for us, we prefer not to use stable but a personnal fork of salt which is using last develop (just a fork to make it a bit more stable)
12:11 fnbar kiorky: Thanks! I think the master should fit for my needs
12:11 kiorky fnbar: you may take inspiration for your state on github
12:11 kiorky fnbar: for example, 90% of our states are here : https://github.com/makinacorpus/makina-states/
12:11 kiorky fnbar: but search for salt states or salt formulaes
12:12 kiorky fnbar: i mean search on github ;)
12:13 terminalmage docs.saltstack.com is built from develop. RTD is also, but in addition contains docs builds against tagged releases.
12:14 fnbar kiorky: Many thanks, I'll check it out to get some inspiration =)
12:14 fnbar terminalmage: Thanks for the info!
12:14 terminalmage np
12:16 terminalmage About to board a plane to LA for SCaLE. Seeya later.
12:17 mike25ro hey guys... is there a way .. to manage kvm machines with SALT? ... like provisioning and stuff like that ?
12:19 cast mike25ro: seen salt-virt?
12:19 mike25ro cast: nope...
12:19 mike25ro http://salt.readthedocs.org/en/latest/topics/virt/   ?
12:20 cast aye
12:20 mike25ro thanks cast
12:20 viq terminalmage: have fun!
12:21 viq Hm, 2014.1 made it to arch, waiting for debian and centos ;)
12:24 lacrymology joined #salt
12:24 lacrymology is there a way for me to get the pillars top?
12:24 lacrymology specifically, I've got top.sls as - one
12:24 lacrymology gr
12:24 lacrymology - one; -two
12:25 lacrymology and I've got some overrides on two.sls
12:25 lacrymology but it doesn't seem to be loading
12:27 lacrymology hm, weird..
12:27 lacrymology let me rephrase that
12:28 linjan joined #salt
12:30 viq lacrymology: and pasting it somewhere may be better
12:31 lacrymology viq: yeah, that's what I meant by "rephrasing"
12:31 lacrymology so
12:31 lacrymology http://pastebin.com/3ranwJuR
12:31 lacrymology there, see, the value that is new in 'atest.sls' gets loaded, but the repeated key doesn't get overriden
12:31 lacrymology the results are the same if I turn the order around in top.sls
12:32 viq hm, i'd expect bar to be 2
12:32 lacrymology viq: I know.. me too
12:33 lacrymology so first I thought maybe cache?
12:33 lacrymology but then I guess the 'thistest' key wouldn't be there
12:40 jankowiak joined #salt
12:46 zzzirk joined #salt
12:47 bhosmer joined #salt
12:49 astol joined #salt
12:54 Furao joined #salt
12:57 blee joined #salt
13:03 Furao_ joined #salt
13:12 oz_akan_ joined #salt
13:13 oz_akan_ joined #salt
13:14 mpanetta joined #salt
13:19 sroegner joined #salt
13:20 mpanetta joined #salt
13:25 mua_ joined #salt
13:29 jslatts joined #salt
13:31 harobed_ joined #salt
13:31 logix812 joined #salt
13:32 harobed_ joined #salt
13:33 harobed_ joined #salt
13:34 harobed_ joined #salt
13:35 nebuchadnezzar joined #salt
13:35 harobed_ joined #salt
13:36 timoguin joined #salt
13:36 gnugnu5 joined #salt
13:45 jaimed joined #salt
13:46 giantlock_ joined #salt
13:48 brianhicks joined #salt
13:55 che-arne joined #salt
13:56 musinsky joined #salt
13:56 musinsky_ left #salt
13:58 DaveQB joined #salt
13:59 faldridge joined #salt
14:03 R_Shackleford joined #salt
14:08 bryano_ joined #salt
14:08 quickdry21 joined #salt
14:09 harobed joined #salt
14:09 kadel joined #salt
14:09 miguitas joined #salt
14:11 HeadAIX joined #salt
14:13 psyl0n_ joined #salt
14:16 juicer2 joined #salt
14:18 ravibhure joined #salt
14:22 oz_akan_ joined #salt
14:25 racooper joined #salt
14:26 Katafalkas joined #salt
14:30 GradysGhost joined #salt
14:31 faldridge joined #salt
14:33 ckao joined #salt
14:34 bhosmer joined #salt
14:34 jankowiak joined #salt
14:34 Gordonz joined #salt
14:36 Gordonz joined #salt
14:37 rlarkin joined #salt
14:40 harobed joined #salt
14:41 mua joined #salt
14:41 harobed joined #salt
14:42 harobed joined #salt
14:43 mua joined #salt
14:44 harobed joined #salt
14:45 psyl0n_ joined #salt
14:45 mattmtl joined #salt
14:47 SEJeff_work joined #salt
14:51 harobed joined #salt
14:52 harobed joined #salt
14:54 musinsky good morning, is there a way to include a nodegroup in another nodegroup?
14:59 harobed joined #salt
14:59 tyler-baker joined #salt
14:59 harobed joined #salt
15:00 harobed joined #salt
15:01 KyleG joined #salt
15:01 KyleG joined #salt
15:03 sroegner joined #salt
15:03 anuvrat joined #salt
15:03 rojem joined #salt
15:06 kintel joined #salt
15:08 bryano_ joined #salt
15:10 liwen joined #salt
15:10 JasonSwindle joined #salt
15:11 yongkang joined #salt
15:12 acabrera joined #salt
15:12 mike25ro left #salt
15:23 rostam joined #salt
15:23 valgrind joined #salt
15:25 pass_by_value joined #salt
15:27 budrose joined #salt
15:27 pdayton joined #salt
15:27 mua_ joined #salt
15:28 vejdmn joined #salt
15:28 Rafael-- joined #salt
15:29 jaimed joined #salt
15:30 Gifflen joined #salt
15:33 Rafael-- left #salt
15:34 Gifflen joined #salt
15:40 unicoletti left #salt
15:46 danielbachhuber joined #salt
15:47 higgs001 joined #salt
15:50 forrest joined #salt
15:52 dwiden joined #salt
15:54 dwiden can you specify command-line arguments to pip when using the pip.installed state?
15:56 pass_by_value dwiden: arguments that you can pass should be documented by http://docs.saltstack.com/ref/states/all/salt.states.pip.html#salt.states.pip.installed
15:57 dwiden pass_by_value: thanks, I literally saw that a minute after I posted the question
15:57 pass_by_value Np :)
16:00 yidclare joined #salt
16:01 tobiassj1sten joined #salt
16:02 lessismore left #salt
16:02 oz_akan_ joined #salt
16:03 tobiassj1sten I have a master/minion at salt.mydomain.net and a minion at www.otherdomain.com. They are both detected by Salt but the first is identified as mydomain.net, without the salt subdomain.
16:03 tobiassj1sten Any ideas why this is?
16:03 cachedout joined #salt
16:04 higgs001 joined #salt
16:08 cym3try have i hit a bug on this one? I wanted to add new packages to a state and amended the state file. the new packages failed to install/update. if i put them on a different state, they will install.
16:12 cym3try i found out what breaks it
16:12 cym3try if i do something like ->>>   php: 5.3*
16:12 cym3try wildcards drive the state mental
16:12 ccase joined #salt
16:15 LucasCozy joined #salt
16:16 mua joined #salt
16:20 frasergraham joined #salt
16:22 bhosmer joined #salt
16:22 rlarkin joined #salt
16:23 vejdmn joined #salt
16:24 kaptk2 joined #salt
16:25 jalbretsen joined #salt
16:27 Gifflen joined #salt
16:28 astol joined #salt
16:33 CaptTofu joined #salt
16:34 CaptTofu hi all!
16:34 CaptTofu I get an error, wondering if anyone has seen it:
16:34 CaptTofu File "/home/patg/python-dev/local/lib/python2.7/site-packages/salt/crypt.py", line 95, in gen_keys
16:34 CaptTofu gen = RSA.gen_key(keysize, 65537, callback=lambda x, y, z: None)
16:34 CaptTofu NameError: global name 'RSA' is not defined
16:36 Katafalkas joined #salt
16:36 jeremyBass joined #salt
16:36 meteorfox joined #salt
16:38 dwiden joined #salt
16:39 dwiden I'm trying to have my salt-minion install a python package using the pip.installed state.  But my minion throws an error: "State pip.installed found in sls pythondependencies is unavailable".  Does anyone know what that means / why it would happen?  I definitely have pip installed on the minion
16:40 dwiden another useful piece of information is that my salt-minion is a windows box
16:41 rgbkrk joined #salt
16:41 TheRealBill joined #salt
16:49 hunter joined #salt
16:50 jeremyfelt joined #salt
16:52 morty3 joined #salt
16:54 dave_den dwiden: that means salt cannot see the pip libs. https://github.com/saltstack/salt/blob/develop/salt/states/pip_state.py#L32
16:56 Gifflen_ joined #salt
16:56 zzzirk joined #salt
16:56 dave_den CaptTofu: do you have m2crypto lib installed?
16:56 CaptTofu dave_den: yeah - which was somewhat odd to install
16:57 CaptTofu this is unbutu, so I ended up using apt-get
16:57 dave_den CaptTofu: did you create the virtualenv with —system-site-packages?
16:57 Gifflen joined #salt
16:57 CaptTofu that's my problem: I was trying to use virtualenv, but couldn't run salt-cloud because it wants you to run it as root
16:58 CaptTofu I looked around for ways to get around that and none of them worked
16:58 CaptTofu so I ended up doing a system-level install
16:58 CaptTofu alt-cloud: error: salt-cloud needs to run as the same user as salt-master, 'root', but was unable to switch credentials. Please run salt-cloud as root or as 'root'
16:58 dave_den your path indicates salt is running in a virtualenv still
16:59 CaptTofu so, I can chose from "root" or root :)
16:59 CaptTofu well, that's in a terminal using virtualenv
16:59 CaptTofu I have a screen session and am using salt-cloud as root in other terminals
16:59 CaptTofu how can I get around the privilege issue?
17:00 dave_den i don't know, but for your rsa problem it's because the m2crypto libs are not installed in the virtualenv
17:01 CaptTofu do you run salt-cloud?
17:01 CaptTofu and what user do you run it as?
17:01 saurabhs joined #salt
17:02 CaptTofu and if I use virtualenv yet need to run as root, should I use virtualenv as root? I mean, what is best practice? I want to do some blogging about this and am not quite sure what is the "correct" setup
17:02 dave_den in development, as root
17:02 CaptTofu so... check out the code as a regular user, yet set up a virtualenv for root?
17:02 dave_den i run entirely in virtualenv
17:02 djaime joined #salt
17:03 dave_den that's up to you
17:03 CaptTofu I wish there was a way for salt-cloud in particular to run as a regular user. It really seems to me it has no need for root
17:03 CaptTofu I can see of course a minion running as root
17:03 dave_den yeah, i dunno. i have not tried to run as non-root
17:04 dave_den minion needs root for sure
17:04 CaptTofu ok, I'll give that all a try
17:04 CaptTofu my goal is this: some people are reporting issues with openstack, particularly HPCS 1.1 and salt-cloud
17:05 CaptTofu I thought at first the problem was libcloud, but the setup is just very picky for your connection (and an hp driver in libcloud would help a lot) but I have both libcloud working (connect, list images, launch, destroy) and salt-cloud (just image and size list at this point)
17:09 wendall911 joined #salt
17:10 KyleG joined #salt
17:10 KyleG joined #salt
17:11 adizam_ joined #salt
17:11 troyready joined #salt
17:19 yidclare joined #salt
17:22 bemehow joined #salt
17:24 troyready joined #salt
17:25 MedicalJaneParis joined #salt
17:25 forrest kiorky, are you around?
17:26 anuvrat joined #salt
17:26 Katafalkas joined #salt
17:27 Gifflen_ joined #salt
17:30 bhosmer joined #salt
17:30 Stephan joined #salt
17:32 Gifflen joined #salt
17:32 Stephan Hi guys, i have a question on gitfs_remotes maybe somebody could help me?
17:34 Stephan I have my state in git and configured the master to get them out of git
17:34 Stephan Could anybody tell me where the files are located on the system /var/cache/salt/master>
17:35 Stephan But for some reason on only see the top.sls in the gitfs directory
17:37 debaser joined #salt
17:38 ipmb joined #salt
17:39 elfixit joined #salt
17:40 ipalreadytaken joined #salt
17:40 joehillen joined #salt
17:44 btorch anyone seen this after trying to start up a minion ? "NameError: global name 'zmq' is not defined"
17:44 btorch it was running fine before I did a dist-upgrade
17:45 schimmy joined #salt
17:46 jaimed joined #salt
17:46 btorch found the problem
17:48 mgw joined #salt
17:48 dave_den basepi: jif. :P
17:49 kballou joined #salt
17:49 PolarBearRobot joined #salt
17:54 debaser can i somehow queue the execution of two command calls on a minion without the use of external job queue?
17:54 LGSilva joined #salt
17:54 dave_den debaser: queue=True
17:55 LGSilva Hello. I updated salt today from 0.17 to 2014.1 and the mysql_grants are failing.  Exception: Invalid grant requested: 'ALL PRIVILEGES'
17:55 LGSilva I checked the docs but nothing changed. any ideas?
17:57 debaser dave_den, queue=True applies only to states though right?
17:57 timoguin Stephan, it's in /var/cache/salt/master/gitfs/<HASH>/
17:57 timoguin it may not have all the working files by default, just the metadata
17:57 debaser not arbitrary command calls, e.g. salt '*' cmd.run 'apt-get update'
17:58 dave_den debaser: yeah, that's correct. sorry, there is not a way to queue commands like that
17:59 basepi dave_den: NEVER
17:59 cjbarnes18 joined #salt
17:59 dave_den haha
17:59 basepi dave_den: haha, the funny thing is that i've started saying it both ways
17:59 debaser state queueing might just do the trick, thanks
17:59 basepi even though i really think a hard g makes way more sense.
18:00 dave_den basepi: yeah, i spent about 5 minutes trying to remember if i have always said 'jif' or not
18:03 basepi But for the record, I don't care if the creator of gif says jif, he's wrong.  ;)  *graphics* interchange format.
18:03 faef joined #salt
18:03 viq jizz interchange format
18:04 nyx joined #salt
18:04 timoguin jif is a peanut butter
18:04 JasonSwindle joined #salt
18:04 basepi hehe, i love that this channel is about to explode back into this argument.  ;)
18:04 mua_ joined #salt
18:04 dave_den this is what fridays are for
18:05 basepi let's just agree that doge is the best meme and be done with it!  xD
18:05 faef anyone here know a lot about the design behind file roots pillar roots fileserver and file client?
18:05 Eugene My doge disagrees
18:05 basepi faef: you're better off just asking your question.  "a lot" is very subjective.  =)
18:06 faef basepi: I'm rewriting fileserver so that pillar can use it too, and it's been extremely painful
18:07 basepi faef: "So pillar can use it too"....I guess I don't follow.  Use case?
18:07 faef things like: why does fileserver run in every worker proc, thus forcing it to use a lock, why is there no local interface to fileserver
18:07 faef basepi: fileserver abstracted out, now there is a states file server and a pillar file server
18:07 budrose joined #salt
18:07 faef basepi: git fs is now a fileserver backend, and is subclassed for each file server
18:08 basepi well, technically pillar files should never be served.  pillar is compiled on the master and then sent as a data structure to minions.
18:08 faef basepi: it should use the same interface as fileserver_backend, because right now pillar envs can't be autogenerated
18:08 faef pillars are hardcoded to use pillar_roots in LocalClient
18:08 faef and git_pillar is a poor workaround
18:09 basepi ah, i see.  yes, that could be improved.  just be careful that you don't expose that interface to minions, that would be a security breach if minions could request pillar files like they can request files from the main fileserver.
18:09 faef also, I understand allowing global __opts__ is helpful for module writers, but why is it used heavily in the core code?
18:09 viq basepi: I find it rather useful to have salt master have no files on disk that I put there directly, just have everything (well, states and pillars) as git remotes
18:10 basepi viq: right, i understand.  but we serve the state files to the minions, we dont' serve the pillar files
18:10 bhosmer_ joined #salt
18:10 viq ah, yeah
18:10 faef basepi: master is also hardcoded to only serve state fileservers, minions can only do the  "_pillars" command
18:11 viq (also it would be useful if stuff like reactor files could live off of git as well)
18:11 basepi faef: unfortunately, i'm of limited usefulness in your quest -- i haven't spent that much time in that code.  terminalmage has recently done a pretty hefty audit of the fileserver backends, he might be useful on that end, but he's at Scale right now
18:11 faef basepi: I guess it's just frustrating that the core code is designed around globals and functions
18:12 Ryan_Lane joined #salt
18:12 basepi faef: well, having __opts__ globally available is a must so that you can access config.  but yes, there are some design decisions that are still there just because of legacy, could use rewrites.
18:13 Stephan Hi timoguin, thanks the update
18:13 adizam joined #salt
18:14 LGSilva Hey guys, I think I found a bug on /usr/lib/python2.7/site-packages/salt/modules/mysql.py - the __grants__ array is missing "ALL PRIVILEGES" causing Exception: Invalid grant requested: 'ALL PRIVILEGES'
18:14 LGSilva can anyone verify this?
18:15 faef basepi: it's not even a true global, it's super hacky... I had to do some crazy things to not have to rewrite loader from scratch.  Especially if you want to subclass in separate files
18:15 Guest17459 I'm creating new servers with salt-cloud -m and I'm hanging here: https://github.com/saltstack/salt/blob/develop/salt/utils/cloud.py#L938
18:15 Guest17459 not sure how to proceed in debugging this
18:15 faef basepi: is rewriting loader to handle objects and instances planned for the future?
18:16 basepi faef: now we're into "you should probably talk to Tom" territory.  and he's at Scale too!
18:17 faef basepi: I just wanted to use git remotes for all file roots and pillar roots for easy environment creation... I've gotten way in over my head
18:17 basepi faef: hehe, it's definitely a rabbit hole
18:17 faef oh, and is there a plan to fix the command line "salt" to be truly blocking?
18:18 faef I had to write a hacky script that used --async, blocked on a custom runner that check if the jid was active, and also didn't return ALL the info
18:18 faef because currently the cli salt decides to return whenever it wants
18:18 faef no output, exit code 0
18:18 basepi Hehe, exit codes are a different conversation entirely
18:18 basepi There are issues open for that
18:18 ajw0100 joined #salt
18:19 dave_den LGSilva: this is fixed in develop https://github.com/saltstack/salt/commit/9030e6a49db3bb9182d1442821c14773c021d892
18:19 basepi And no, no plans to make it blocking.  The communication layer is asynchronous by design.
18:19 [vaelen] joined #salt
18:19 faef basepi: but the command line tool should have a blocking option ...
18:19 _the3rdman_ joined #salt
18:19 basepi But the secondary timeout for minion check-in is now configurable, which will solve a lot of those problems.
18:20 basepi But if the communications layer is asynchronous, what does "blocking" look like?  What if the minion just never returns?
18:20 basepi If you want to make it blocking do a -t 30000000
18:20 basepi ;)
18:20 faef the job is async, but watching the job should be built into the salt command
18:20 faef -t doesn't work for me
18:21 faef does it internally look at the job cache?
18:22 basepi It waits for the events to come back from the minions with the job returns.
18:22 basepi Most of the early return problems were caused by too short secondary timeouts.  (The main timeout is the time until the master checks with the minions to see if they're still running the jobs.  The secondary timeout, previously hardcoded, was how long the master would wait for the return of the minions' `find_job` query)
18:23 basepi Now you can set "gather_job_timeout" in the master config to configure this secondary timeout.  I think a lot of problems will go away if people bump that to 5 (or even 10 to give tons of time for returns)
18:24 UtahDave joined #salt
18:25 basepi faef: Here's what I would recommend:  write up an e-mail with the problems you see with these core systems and your suggested solutions.  send it to me (colton@saltstack.com) and Tom (thatch@saltstack.com) and we can get a better conversation going.  I'll point Tom to the e-mail when he gets back from Scale (he's bad about keeping up with e-mail).
18:26 basepi faef: because you're right, there's a lot of hackiness to some of these systems that have been in salt from the beginning.  we'd love to fix some of those problems, but an IRC conversation isn't going to cut it.
18:28 faef basepi: yep, I was just hoping there was a real reason behind it... I deal enough with technical debt at work ;)
18:30 logix812 joined #salt
18:30 budrose joined #salt
18:30 LGSilva dave_den: thanks
18:30 basepi faef: and there may be a reason I don't know, which is why I want to loop Tom in.
18:33 bhosmer joined #salt
18:34 Katafalkas joined #salt
18:38 fllr joined #salt
18:45 faef basepi: alright, will do
18:47 Ahlee basepi: you there?
18:47 Ahlee I've got a system right now showing the behavior for #10566, the modules losing themselves
18:49 nextdoorwarren joined #salt
18:58 kiorky forrest: yep
18:58 Corey Hello from SCaLE.
18:59 kiorky forrest: never hesitate to drop your message in query
18:59 JasonSwindle Corey:  Lucky
18:59 Gifflen_ joined #salt
19:00 forrest kiorky, no worries, I was just gonna ask if you have time could you look at: https://github.com/saltstack/salt/issues/10644
19:01 forrest kiorky, just a request to update the docs you made with a versionadd string so people aren't confused as to why they can't use that awesome new functionality :P
19:01 forrest Corey, hey Corey
19:01 forrest woah, that was odd, damn you tab complete
19:01 kermit joined #salt
19:01 forrest Corey, how is it over there? Awesome?
19:02 forrest I still wish I had driven out :(
19:02 Ahlee restart resolved
19:02 kiorky forrest: as i use a personnal fork
19:02 kiorky forrest: i m not that easy with salt versionnning :p
19:02 meteorfox joined #salt
19:02 kiorky forrest: we, in prod, use a personnal maintained fork of salt
19:02 kiorky so we never deal with current salt version
19:02 forrest kiorky, hah, yea even a note would be good since the docs get built from develop, I can do it later
19:03 kiorky forrest: what do i need to add ?
19:03 meteorfox joined #salt
19:03 forrest kiorky, a note, or a versionadd line to the cron state docs you had merged in, because the docs will build from develop, and people will think they can use the identifier, when they really can't
19:03 forrest like I said, I'll do it later if you don't want to
19:04 kiorky forrest: ha i see
19:04 kiorky forrest: which version need i point to
19:04 Corey forrest: It's always awesome here.
19:04 forrest kiorky, I'm not sure, I was gonna ask you if you were aware of when that was planned to be merged, it isn't going into 2014.1 that's for sure
19:04 forrest Corey, heh
19:05 forrest Corey, I looked at some cheap places to stay on airbnb, but they were too sketchy for me
19:05 Corey forrest: Uh....
19:05 Corey Don't you *work* for a hotel chain? :-)
19:05 Corey Failing that I've got a cot in my room, or failing that a bathtub.
19:05 Corey (I'm staying at the Hilton)
19:05 kiorky forrest: oh for me i only pay attention that it lands in develop ^^
19:06 forrest kiorky, hah
19:06 kiorky forrest: we are merging regularly the evelop branch in our fork
19:06 forrest Corey, hah
19:06 forrest kiorky, gotcha
19:06 forrest kiorky, I'm mostly concerned about everyone else :P
19:06 kiorky forrest:  we are just using a fork for it to be a bit more stable
19:06 forrest yea understandable
19:06 kiorky forrest: but we feel that develop is more stable that release packages
19:06 kiorky forrest: :)
19:07 forrest haha
19:07 Corey Develop: It's Probably Fine(tm).
19:07 kiorky Corey: well, its a stable fork of develop
19:07 kiorky not directly salt/develop
19:10 Gifflen joined #salt
19:11 forrest Corey, did you go get one of these Puppet t-shirts?
19:11 Gifflen joined #salt
19:12 n8n joined #salt
19:12 Corey forrest: Which?
19:13 forrest they have one which has some present stuff on it. I think you should get a sharpie and rewrite it in salt
19:13 ml_1 joined #salt
19:13 forrest they tweeted about it if you follow them at all.
19:14 Corey forrest: Amazing.
19:14 Corey Let me see what I can do.
19:14 forrest Corey, yes, it would be great!
19:14 forrest hey you like that in puppet language? Well here it is in salt!
19:15 hdms joined #salt
19:17 UtahDave Corey: having a good time?
19:17 frasergraham joined #salt
19:19 forrest UtahDave, he's hopefully about to deface some puppet merch
19:19 frasergraham joined #salt
19:19 cro joined #salt
19:20 zain joined #salt
19:25 basepi Ahlee: back
19:25 terminalmage The SCaLE coffee mugs have a chef logo on them
19:25 basepi did you get it resolved or still having issues?
19:25 basepi terminalmage: that seems pretty untenable.  ;)
19:26 jergerber joined #salt
19:26 terminalmage basepi: ikr?
19:27 kiorky terminalmage: forrest 2014.2, so ?
19:28 forrest he resolved it basepi
19:28 basepi woot!
19:28 basepi thanks forrest
19:28 forrest if that was the restart issue :P
19:28 forrest terminalmage, what the hell! The shirts can be written on, but the mugs? That's more work...
19:29 forrest congrats on getting there in record time by the way terminalmage
19:29 forrest shocked you aren't still in an airport somewhere.
19:29 terminalmage LOL
19:30 kiorky forrest: https://github.com/saltstack/salt/pull/10648/files
19:30 forrest kiorky, sweet
19:31 terminalmage Corey: whiteinge and I are about to look into procuring some lunch
19:31 forrest he's on a mission right now terminalmage
19:31 forrest has to deface the puppet shirts by rewriting their code on the back to salt
19:31 terminalmage On dear
19:31 forrest there's no time for food
19:31 terminalmage Oh*
19:33 ahwitz joined #salt
19:34 UtahDave joined #salt
19:34 ahwitz Is there a way to run a SLS script with certain parameters? The exact situation is that I need to change a specific username in an install location.
19:36 sijis joined #salt
19:36 amckinley joined #salt
19:37 sijis is there a way to run salt command from somewhere other than the salt master? I know there is syndic but i'm not trying to separate intol contorl groups. the thought is.. if i have 'access', i can execute any salt from my computer onto the other minions.
19:41 DaveQB joined #salt
19:42 scooby2 joined #salt
19:42 cro sijis: Check out salt-api and pepper, both in the saltstack github repos.
19:42 cro Not fully baked, but can work.
19:45 krow joined #salt
19:46 ipalreadytaken joined #salt
19:47 cym3try joined #salt
19:47 meteorfox joined #salt
19:52 chrisjones joined #salt
19:54 ipalreadytaken joined #salt
19:55 hardwire I need a salt book
19:55 hardwire lol
19:55 hardwire the sphinx docs are nice.. but I need somebody to tell me why something is insane before I think it myself.
19:58 bhosmer joined #salt
19:58 kermit joined #salt
19:59 meteorfox joined #salt
19:59 pdayton joined #salt
20:01 UtahDave hardwire: :)  I'd love a Salt book, too!
20:02 krow joined #salt
20:03 frasergraham joined #salt
20:07 fllr joined #salt
20:08 MedicalJaneParis joined #salt
20:08 hardwire UtahDave: somebody just has to write it :)
20:08 _fllr_ joined #salt
20:09 jcockhren isn't forrest ?
20:09 timoguin he has a github up there!
20:09 timoguin https://github.com/gravyboat/salt-book
20:11 hardwire I'll check it out
20:13 fllr joined #salt
20:15 _fllr_ joined #salt
20:16 Gifflen joined #salt
20:17 forrest I haven't worked on the salt book in a while :\
20:17 forrest been slacking
20:19 JasonSwindle forrest:  boo
20:19 forrest *shrug*
20:22 krow joined #salt
20:23 Gifflen_ joined #salt
20:23 Gifflen_ joined #salt
20:25 fllr joined #salt
20:25 harobed joined #salt
20:26 harobed joined #salt
20:27 harobed joined #salt
20:27 forrest JasonSwindle, there are only so many hours in the day, and I have to prioritize what I work on :P
20:27 timoguin forrest, I'll send a PR for every comma I fix.
20:27 MedicalJaneParis left #salt
20:27 timoguin DUE DILIGENCE
20:27 MrTango joined #salt
20:28 forrest heh
20:28 JasonSwindle You do not want me writing……. it comes out like Cat Memes
20:28 forrest it usually comes down to 'should I work on these docs that people are using every day, or work on this book that no one will see till it is complete
20:28 forrest *'
20:28 forrest docs win about 90% of the time
20:32 Mr_N_ joined #salt
20:33 Mr_N_ Time for my now daily bothering of #salt
20:33 Mr_N_ Getting some strange jinja behavior, curious as to if another pair of eyes can tell me I'm doing something stupid.
20:33 Mr_N_ (pastebin incoming)
20:34 Mr_N_ http://pastebin.com/JP54L6H8
20:41 ipalreadytaken joined #salt
20:45 Ryan_Lane bleh, salt wasn't listed in this, but ansible was listed as trial? http://thoughtworks.fileburst.com/assets/technology-radar-jan-2014-en.pdf
20:45 pdayton joined #salt
20:46 yomilk joined #salt
20:46 dave_den Mr_N_:  http://jinja.pocoo.org/docs/templates/#expression-statement
20:47 Mr_N_ Thank you very much dave :)
20:47 Mr_N_ this is the second time you've made my life easier ><
20:48 Mr_N_ Ugh.  I really should have found that documentation myself.  I'm really surprised I didn't.
20:48 dave_den no prob
20:48 ipalreadytaken joined #salt
20:49 dfinn joined #salt
20:49 Mr_N_ That being said, that's like a C++ deep template error level of uninformative error messages ><
20:49 dfinn is there a way to run salt-call from a minion in test mode?
20:49 UtahDave Ryan_Lane: interesting
20:50 forrest Ryan_Lane, I'm not surprised, it's pretty shocking how many people still don't know about Salt
20:50 forrest and depending on where these numbers come from
20:51 forrest who knows
20:51 timoguin dfinn, salt-call foo.bar test=True
20:51 timoguin just like on the master
20:51 dfinn i'm running into an odd issue where I run a state.sls from my master on a minion in test=True mode and I get nothing back on the master however running the minion in debug mode I can see that the whole state runs.  anyone know why my master is not following up?
20:51 Ryan_Lane forrest: this is thoughtworks' advice to people
20:51 dfinn thanks timoguin
20:51 Ryan_Lane it's not based on numbers
20:52 dfinn here's the debug output from the master and then it just gives me my prompt back
20:52 forrest Ryan_Lane, oh
20:52 dfinn http://pastebin.com/00dZjypN
20:52 forrest Ryan_Lane, well what the hell then??
20:52 rgbkrk Is there a decent way to use salt to pull files off of a minion?
20:53 rgbkrk files off minion to the master
20:53 Ryan_Lane forrest: maybe they haven't used salt
20:53 timoguin dfinn, i'd try adding a --timeout=300 to that.
20:53 forrest Ryan_Lane, I guess.
20:54 dfinn ok
20:54 timoguin looks like it could be a long-running state, and the CLI is just exiting after the default timeout
20:54 pass_by_value rgbkrk: http://docs.saltstack.com/ref/modules/all/salt.modules.cp.html#salt.modules.cp.push might be helpful
20:54 dfinn it was timing out pretty quickly, maybe 5 seconds.  what is the default timeout?
20:54 timoguin something about that
20:54 rgbkrk oh nice, thanks pass_by_value
20:54 pass_by_value np
20:54 dfinn that does seem to be helping, at least it hasn't returned the prompt back yet and the state is still running
20:54 Ryan_Lane someone should probably reach out to them :)
20:54 forrest I might just tweet at them
20:55 forrest be like, WHY YOU NO
20:55 timoguin Hey, Thoughtworks, I have some thoughts for you.
20:55 forrest dear thoughtworks, please look at 21st century, sincerely, 21st century
20:55 Ryan_Lane heh
20:56 zain joined #salt
20:56 schimmy joined #salt
20:59 frasergr_ joined #salt
21:00 fllr joined #salt
21:04 gnugnu5 joined #salt
21:07 jslatts joined #salt
21:07 lude joined #salt
21:10 rgbkrk pass_by_value - thanks again. Wrapped the steps in a gist
21:10 rgbkrk https://gist.github.com/rgbkrk/9143556
21:11 hunter 2014-02-21 14:58:43,828 [salt.crypt                               ][WARNING ] SaltReqTimeoutError: Waited 60 seconds
21:11 hunter Any clues what that error _means_? I'm guessing  (given this hosts history) that its a networking issue.
21:11 forrest you're still seeing those hunter?
21:11 hunter Yes
21:11 forrest you're on zmq3 right?
21:11 pass_by_value rgbkrk: Np. Awesome :)
21:12 JasonSwindle joined #salt
21:12 hunter forrest: 3.2.4
21:12 forrest same across all minions?
21:12 hunter forrest: more specifically the builds of salt and all its deps (its many many deps) in EPEL
21:13 hunter forrest: no, just this one. This one minion is dual homed for its networking and thats led to a bunch of problems - I'm not surprised salt is having an issue.
21:13 forrest hunter, ahhh ok
21:13 forrest that makes more sense
21:13 hunter All my other minions are either checked in or waiting to have their keys approved.
21:14 hunter forrest: any chance zmq bound to the wrong address/adapter?
21:14 ajw0100 joined #salt
21:14 forrest hunter, I have no idea :(
21:14 hunter ugh
21:15 astol joined #salt
21:15 pdayton joined #salt
21:16 mgw1 joined #salt
21:18 dave_den hunter, you can check 'ip route get <your_master_ip>'
21:18 dave_den salt should use the same
21:18 pdayton joined #salt
21:19 zain joined #salt
21:19 CaptTofu howdy all
21:20 jaimed joined #salt
21:21 psyl0n joined #salt
21:22 hunter dave_den: hmmm
21:22 hunter dave_den: this multi-homed business is tricky shit
21:22 dave_den yes, it can be for sure
21:23 hunter The salt master is _not_ on the network connected to the "2nd" adapter.
21:23 hunter But through other means I think the packets from that network get to the "2nd" adapter. Based on the routing they then go back out the first one.
21:24 hunter Source based routing SHOULD be handling this.
21:24 hunter Let me try hardwiring that route.
21:26 LGSilva I'm having problems getting cron.file to restore a crontab from a txt file:  Unable to manage file: 'NoneType' object has no attribute 'startswith'
21:28 dave_den LGSilva: what's the entire traceback?
21:29 LGSilva let me run the highstate again on debug mode, brb
21:32 brma joined #salt
21:32 hunter OOOKKAAaaayay. And that concludes messing around with the routing on a friday afternoon.
21:32 hunter I can live without that one minion
21:33 delkins you should take down another, just to make sure it wasn't something else
21:36 hunter actually the I got it right - i just didn't wait long enough for ssh to come back and give me the results.
21:36 hunter forrest or dave_den: ping
21:37 dave_den yo
21:37 hunter actually I have no idea who to tell - so that error message CAN be from minions that are multi-homed and their routing isn't sufficient to correctly get to their programmed master.
21:38 hunter I don't know how to add to collective wisdom of saltstack, but i'm thinking for some people that would be a good thing to know.
21:38 ajw0100 joined #salt
21:39 hunter In my case it was fixed by adding (yet another) static route and almost immediately the error messages changed from that weirdly unhelpful message to the standard "my master has yet to accept my key - please stand by" message.
21:39 ipalreadytaken joined #salt
21:41 hunter on an unrelated note "salt-key \* test.ping" is unlikely to yield useful results.
21:43 dave_den hunter: yeah, i suppose there could be a 'could not connect to the master' message
21:43 hunter That would help for certain.
21:43 hunter test.ping in reverse I guess
21:44 dave_den well, "salt-key" is not what you wna to use to try test.ping ;)
21:44 LGSilva dave_den: this is all I got: http://pastebin.com/F1wybLjF
21:44 dave_den wna/want
21:44 nextdoorwarren joined #salt
21:44 dave_den LGSilva: looks like a bug in the cron module not catching the exception when there is no crontab
21:45 dave_den LGSilva: does it work if you manually create a crontab, then run your state?
21:45 LGSilva I will try that now
21:45 dave_den i haven't used the cron module myself
21:47 bhosmer joined #salt
21:47 dave_den LGSilva:  yep, there's no case to handle that in the code: https://github.com/saltstack/salt/blob/develop/salt/modules/cron.py#L194
21:50 jeblair joined #salt
21:50 ipmb how is grains.fqdn determined?
21:51 ipmb it doesn't match the output of `hostname -f` for me
21:51 hdms left #salt
21:52 LGSilva dave_den: I wrote something on the crontab but the state still fails... :/
21:52 dave_den LGSilva: is the traceback the same?
21:53 LGSilva yes, same
21:53 dave_den what did you put into the crontab?
21:53 LGSilva some comments
21:53 LGSilva it shows on crontab -l
21:54 dave_den can you do:  salt-call -l debug cron.raw_cron root
21:56 LGSilva dave_den: http://pastebin.com/jhuBLbNk
21:56 mua joined #salt
21:57 LGSilva oops, last line is wrong. I pasted other thing
21:57 dave_den and your traceback didn't change?
21:57 LGSilva [DEBUG   ] Loaded no_out as virtual quiet
21:57 LGSilva [DEBUG   ] Loaded json_out as virtual json
21:57 LGSilva [DEBUG   ] Loaded yaml_out as virtual yaml
21:57 LGSilva [DEBUG   ] Loaded pprint_out as virtual pprint
21:57 LGSilva local:
21:57 LGSilva # DO NOT EDIT THIS FILE - edit the master and reinstall.
21:57 LGSilva no changes, same thing
21:58 dave_den the traceback should be different, since raw_cron works and that's the only place where crontab -l -u is invoked
21:58 LGSilva running highstate again, just in case
21:58 mua_ joined #salt
21:59 JasonSwindle basepi:  https://github.com/lalitkapoor/github-changes This maybe handy for you. :)
22:01 mua joined #salt
22:01 kermit joined #salt
22:02 ch0pstick joined #salt
22:03 LGSilva dave_den: same error
22:05 dave_den huh. i dunno then
22:05 dave_den it's a bug, so i'd say open an issue on github
22:06 LGSilva the output now shows the current crontab but still erros out: http://pastebin.com/2rRU9An0
22:11 higgs001 joined #salt
22:12 krow joined #salt
22:16 Bilge joined #salt
22:16 mua_ joined #salt
22:16 Bilge left #salt
22:20 zain joined #salt
22:23 forrest joined #salt
22:33 ipalreadytaken joined #salt
22:34 hunter https://github.com/saltstack/salt/commit/6032b2a2db6381513e3db7622e65367cec85b9db
22:34 dranfu joined #salt
22:35 hunter What is a master_root? Is that related to the syndic operation or something else?
22:38 dave_den hunter: it's actually not used
22:38 hunter That partially explains the lack of docs - what was it supposed to be?
22:38 dave_den i think it was from a feature thomas started implementing but never finished
22:39 forrest dave_den, that makes me feel better, I was trying to find some details on it
22:40 faldridge joined #salt
22:41 dave_den hunter: not sure
22:41 n8n joined #salt
22:42 justinvf joined #salt
22:43 justinvf Anyone in here have experience setting up cassandra, or know of a repo? I found a repo a month ago that did cassandra and spark. Now I can't find it for the life of me.
22:44 flebel_ joined #salt
22:46 bemehow joined #salt
22:52 ipalreadytaken joined #salt
22:57 ipalreadytaken joined #salt
23:04 fllr joined #salt
23:04 schimmy @Mr_N - it should be "  - {{ role }}.grains"
23:05 schimmy you are trying to call a "grain_files" macro
23:05 schimmy you can't quite include arbitrary python in jinja files
23:06 schimmy so you can't append to a list like that
23:07 pdayton joined #salt
23:07 AdamSewell joined #salt
23:11 hunter Ok, I'm completely deployed in salt.
23:11 hunter Some of the machines are salt-ssh only, and a couple of those are borkenish, but still, completely deployed
23:12 dave_den just in time for the weekend
23:16 akoumjian joined #salt
23:22 alunduil joined #salt
23:25 FL1SK joined #salt
23:27 ipalreadytaken joined #salt
23:29 ipalread_ joined #salt
23:35 bhosmer joined #salt
23:42 scoates joined #salt
23:42 fllr joined #salt
23:44 UtahDave nice, hunter!
23:45 Ryan_Lane1 joined #salt
23:46 hunter dave_den: I pushed motd - nothing crazy(ish) here.
23:46 hunter UtahDave: thanks. it was a rediculous amount of work to get /etc/motd pushed out
23:46 tomas1 joined #salt
23:47 hunter I've been yak shaving all week. (fix the NFS mount that RPM is hanging on so that yum install salt will run so that ........)
23:51 tomas1 Hi everyone - does anyone use pkgrepo with keys? It does not work for me at all...
23:52 guest___ joined #salt
23:53 guest___ if i have servers in an AWS VPC and don't want to setup a new instance as a master, would it be best to run masterless?
23:55 mwmnj joined #salt
23:57 hunter tomas1: what platform?
23:57 tomas1 debian
23:57 hunter guest___: if you don't setup something to be the master, you need masterless.
23:57 hunter tomas1 sorry, can't speak for debian.
23:57 tomas1 hunter: :(
23:58 hunter tomas1: what I for rpm/yum repos is to push the key as a file (copied into salt repo) and have that verify - otherwise I have a chiken and egg problem.
23:58 hunter guest___: given how lightweight the master is I would recommend creating one - esp if you are new to salt.
23:59 tomas1 hunter: that makes sense...
23:59 tomas1 hunter: to be honest, I was quite careless about the keys (not checking fingerprints)

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