Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-10-03

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

All times shown according to UTC.

Time Nick Message
00:05 taylorgumgum1 joined #salt
00:06 pgollakota joined #salt
00:16 diegows joined #salt
00:20 pgollakota joined #salt
00:20 higgs001 joined #salt
00:23 micah_chatt joined #salt
00:26 Brew joined #salt
00:33 redondos joined #salt
00:38 mwillhite joined #salt
00:40 msuarez joined #salt
00:41 raghavp joined #salt
00:41 raghavp left #salt
00:43 msuarez joined #salt
00:44 msuarez joined #salt
00:47 mwillhite joined #salt
00:51 zach Quick question - when using file.recurse - can it see symlinks (eg follow on your system so you don't have duplicate files on your system due to space)
00:51 zach like I want to use salt to sync /var/www/vhosts between all nodes, but my master only has a limited amount of space
00:51 pgollakota left #salt
00:52 zach or would I have to configure another data path instead of /srv/salt/
00:54 zach found the answer myself, disregard :-)
00:59 lineman60 joined #salt
01:05 taylorgumgum joined #salt
01:17 mwillhite joined #salt
01:19 pgollakota joined #salt
01:21 Lue_4911 joined #salt
01:23 \ask joined #salt
01:27 oz_akan_ joined #salt
01:32 deepakmd_oc joined #salt
01:33 Thiggy joined #salt
01:34 dthom91 joined #salt
01:37 druonysus using the lvm state module wont break anything if I already have the volumes configured, will it?
01:37 druonysus I already have things set up with kickstart but I want to make sure it is enforced through salt
01:38 druonysus also, I think one or two machines were not kicked correctly so I want to make sure salt corrects those
01:40 jefimenko joined #salt
01:41 juicer2 joined #salt
01:42 mwillhite joined #salt
01:45 kenbolton joined #salt
01:45 redondos joined #salt
01:48 kenbolton_ joined #salt
01:52 mannyt joined #salt
01:55 mwillhite joined #salt
02:02 juicer2 joined #salt
02:13 mgw joined #salt
02:23 pass_by_value joined #salt
02:28 KyleG left #salt
02:28 backjlack joined #salt
02:31 dthom91 joined #salt
02:32 dthom911 joined #salt
02:35 shinylasers joined #salt
02:35 Niichan joined #salt
02:35 shinylasers joined #salt
02:36 dthom91 joined #salt
02:37 pgollakota joined #salt
02:37 pgollakota left #salt
02:38 dthom91 joined #salt
02:41 dthom911 joined #salt
02:49 jslatts joined #salt
02:54 lemao joined #salt
02:57 forrest joined #salt
02:58 forrest Is anyone in Atlanta the next few days for the devops day by chance?
02:59 jacksontj joined #salt
03:00 kenbolton joined #salt
03:01 jacksontj_ joined #salt
03:02 mannyt joined #salt
03:07 andrej I still haven't sorted out cmd.script functionality ... no matter what my script contains, nothing gets executed, but the minion and the master both say it's OK
03:07 andrej That is I get positive result codes.
03:11 forrest andrej, do you have a gist?
03:11 forrest or whatever your preferred pastebin is?
03:12 forrest and what user is the script getting run as on the minion?
03:13 dthom91 joined #salt
03:14 andrej I have a pastebin account
03:14 andrej And it should be root
03:15 andrej I found several people describing similar issues in earlier versions, and somone having trouble because of /tmp being mounted noexec
03:15 andrej but that's not what's happening here
03:15 forrest did you already run the command through with the debug option?
03:15 forrest pastebin is fine, I just want to see what it looks like if you want to share.
03:16 andrej Can do
03:16 andrej gimme a minute
03:16 forrest cool
03:17 andrej http://pastebin.com/739jEzPD
03:17 andrej and now the command and output on the minion (debug mode) respectively
03:18 forrest oh you're running this straight off the command line, not via a state?
03:19 andrej Yah
03:20 andrej Is that unsupported?
03:20 robawt joined #salt
03:21 andrej http://pastebin.com/MtJFHVSu
03:23 forrest that should work fine andrej
03:23 forrest make sure you're ssh'd into that playground box
03:24 forrest then from the master run: salt 'playpen-andrej*' cmd.run "ls -la > /tmp/output.txt"
03:25 forrest and let's see if that output.txt file even gets created
03:25 andrej It did
03:26 andrej has a listing of roots home
03:26 forrest ok so cmds are running just fine.
03:26 andrej Yah
03:26 andrej done some playing with those.
03:26 forrest so is /tmp/pffft getting created?
03:26 andrej nope
03:27 andrej Neither the touch nor the output redirection are happening
03:28 forrest can you see if /tmp/tmp7wMQZK was created?
03:28 andrej aside from the output.txt, and my ssh session there's nothing new in /tmp
03:28 andrej that is no current time stamps
03:29 piffio joined #salt
03:29 lineman60 joined #salt
03:29 forrest ok, can you do salt-run jobs.lookup_jid 20131003161919131589 ?
03:30 forrest from the master
03:30 andrej same output as I slapped in the pastebin
03:31 forrest but it says the job finished
03:31 andrej yah
03:31 andrej which is what I don't understand
03:31 forrest what release are you on?
03:31 andrej No idea WHAT it did, but it's not running my script
03:32 andrej this is 0.16.4, installed via slatstack ubuntu packages on 12.04
03:32 forrest yea obviously, I mean that tmp file should exist saying what is going on, I don't THINK it blows it away
03:32 forrest let me see if my ubuntu minion is still up, hang on
03:32 andrej I stood up a watch on /tmp using inotifywait
03:32 pass_by_value left #salt
03:32 andrej nothing got creates
03:32 andrej s/s$/d/
03:33 forrest let me hop on my masterless minion hang on
03:34 Niichan joined #salt
03:34 LGSilva joined #salt
03:36 UtahDave joined #salt
03:36 forrest hey Utahdave
03:36 UtahDave hey, forrest!
03:37 andrej Hi UtahDave
03:37 UtahDave hey, andrej!
03:37 * andrej be nice to the OP :)
03:38 forrest andrej, trying to remember my creds to spin up the minion here, the 'joys' of having my laptop lacking configuration :\
03:38 UtahDave :)
03:38 andrej Heh
03:38 vipul joined #salt
03:38 andrej forrest - my timing is crap; I'll have to run off in a few minutes, missus will be waiting outside :/
03:38 Lue_4911 joined #salt
03:39 andrej I was just wondering whether it would be worthwhile submitting what I see on github as an issue
03:39 forrest It's all good, I will still take a look, maybe there will be an answer when you come back
03:39 Drawsmcgraw joined #salt
03:39 forrest To me it seems like you're doing everything fine, I don't understand why it isn't creating the files/echoing in tmp
03:40 forrest Let me see if I can dup it over on this other machine
03:40 andrej So it might actually be a bug?
03:40 forrest I highly doubt it
03:40 forrest but there's always that chance *shrug*
03:40 forrest I just don't know WHY it doesn't work
03:40 andrej Heh
03:40 Drawsmcgraw Anybody get the S3 backend to work for the fileserver? I dropped the key and keyid into my config as well as the s3.buckets details. But a state that uses file.managed keeps coming back with 'source file ... not found'
03:40 andrej Me neither.
03:41 andrej thanks for your help, I'm off ... catch you later
03:41 forrest later, have a good one
03:45 mianos joined #salt
03:51 forrest andrej, hopefully you'll see this when you get back, so I created the file in question (modified your calls to /tm/whatever to /tmp/whatever), and called it using salt-call since this box is a masterless minion, and it created the files just fine. When/if you get back this evening (or tomorrow), let's look at your system config to see if something weird is going on there, I should have suggested we try to just run that shell script..
03:54 LGSilva joined #salt
03:56 pgollakota joined #salt
04:00 jpcw joined #salt
04:21 zach What is everyones preferred method for user management?
04:29 saltminer111 joined #salt
04:29 backjlack joined #salt
04:33 saltminer111 Hi, I've set up salt on OS X and would like to use it to install Chromium. So far I haven't found any formulae for this, and it seems like the correct approach would be to use the "source:" option in a .sls file. However, since I'm brand new to Salt I'm not sure this is correct. Could anyone point me toward documentation for installing Chromium or something similar?
04:40 alunduil joined #salt
04:42 packeteer installing chromium package or building from source?
04:44 robawt joined #salt
04:44 packeteer https://code.google.com/p/chromium/wiki/MacBuildInstructions
04:45 saltminer111 packeteer: I would be interested in either. This is primarily a learning experience.
04:46 packeteer hmm, not sure. i'd prob start with a linux vm and do some simple tasks first
04:48 saltminer111 packeteer: Yeah, I've gone through a tutorial for nginx on Ubuntu, and that seems straightforward.
04:48 saltminer111 Also, this is an OS X VM so I can break things without /too/ much worry.
04:49 packeteer hmm, well i guess you write a recipe to pull the latest build and install it?
04:50 saltminer111 packeteer: by recipe, do you mean like an SLS from this page -- https://salt.readthedocs.org/en/latest/topics/tutorials/starting_states.html -- but with commands and source adjusted for Chromium? Or do you mean something else?
04:54 saltminer111 packeteer: One more thing -- after doing a google search for filetype:sls chromium I noticed this result: https://github.com/rentalita/ubuntu-setup/blob/master/salt/chromium/init.sls
04:55 packeteer something like that.
04:56 packeteer the thing is to pull in the repository
04:56 packeteer also this: http://docs.saltstack.com/ref/modules/all/salt.modules.osxdesktop.html#module-salt.modules.osxdesktop
04:58 saltminer111 That last one is interesting. It could be fun to run say on a friend's Mac remotely :)
04:58 packeteer this module might work: http://docs.saltstack.com/ref/modules/all/salt.modules.brew.html#module-salt.modules.brew
05:02 saltminer111 packeteer: That's a good find, and could be useful for other packages. However, it looks like the only (?) way to install Chromium could be by building from source w/ xcode.
05:03 druonysus joined #salt
05:03 druonysus joined #salt
05:04 packeteer i'd use a pre-built package, as building has a HUGE dep list
05:06 zakm joined #salt
05:06 Katafalkas joined #salt
05:08 taylorgumgum joined #salt
05:09 saltminer111 packeteer: I noticed the gclient dep, as well as CLT and git, but that's all. What else am I missing?
05:12 saltminer111 I suppose one could also add CCache to the list: https://code.google.com/p/chromium/wiki/CCacheMac
05:18 oz_akan_ joined #salt
05:30 ml_1 joined #salt
05:44 idkfa joined #salt
05:47 TheCodeAssassin joined #salt
05:47 jbub joined #salt
05:57 KyleG joined #salt
05:57 KyleG joined #salt
06:08 packeteer https://code.google.com/p/chromium/wiki/LinuxBuildInstructionsPrerequisites
06:09 packeteer linux, but you get the idea
06:11 mahul joined #salt
06:14 __number5__ you can using homebrew cask to install prebuilt Chromium on Mac OS X https://github.com/phinze/homebrew-cask/blob/master/Casks/chromium.rb
06:15 gildegoma joined #salt
06:27 saltminer111 packeteer: Ah, OK.
06:28 saltminer111 __number5__: Thanks for the link.
06:29 never2far joined #salt
06:29 linuxnewbie joined #salt
06:29 linuxnewbie joined #salt
06:39 idkfa joined #salt
06:56 malinoff joined #salt
07:14 Ryan_Lane joined #salt
07:14 balboah joined #salt
07:18 pviktori joined #salt
07:22 arapaho joined #salt
07:25 Ixan salt support using {% set %} in state files, right?
07:29 abele joined #salt
07:30 matanya joined #salt
07:30 yota joined #salt
07:34 matanya joined #salt
07:37 arapaho joined #salt
07:40 matanya joined #salt
07:41 adepasquale joined #salt
07:47 matanya joined #salt
08:00 ronc joined #salt
08:04 shomodj joined #salt
08:14 middleman_ joined #salt
08:19 madduck_ joined #salt
08:19 madduck_ joined #salt
08:26 ninkotech joined #salt
08:27 aleszoulek joined #salt
08:28 mianos joined #salt
08:28 malinoff Ixan: {% set a='b' %}, yes
08:29 malinoff Salt fully supports Jinja
08:30 dthom91 joined #salt
08:34 scott_w joined #salt
08:34 zooz joined #salt
08:36 bhosmer joined #salt
08:46 scott_w basepi: yo, sorry i've not sent that pull request, work has been hectic
08:46 scott_w plus, i don't know how to separate out commits in pull requests, and i don't want to send the AWS stuff over yet, since it's not even close to ready ;-)
08:54 qba73 joined #salt
08:55 EvaSDK joined #salt
08:55 EvaSDK hi there
08:55 shine :)
08:59 Jason-AVST joined #salt
09:02 scott_w greetings
09:18 Damoun joined #salt
09:24 logix812 joined #salt
09:38 scott_w great, just as i figure out how to do the pull request for adding clean updates to Hg
09:38 scott_w github goes down :-/
09:40 gmoro joined #salt
09:47 N-Mi joined #salt
09:49 carmony joined #salt
09:53 ml_11 joined #salt
10:00 denstark joined #salt
10:00 carmony joined #salt
10:00 cce joined #salt
10:06 raghavp80 joined #salt
10:15 adepasquale joined #salt
10:17 packeteer it's back
10:22 zooz joined #salt
10:24 raghavp joined #salt
10:29 scott_w down again
10:29 scott_w someone is going wild
10:30 rmt I blame the networking team!
10:31 giantlock joined #salt
10:42 raghavp joined #salt
10:42 a_run joined #salt
10:45 a_run how do i check for apache on minions and then push a logrotate file via an SLS file ?
10:45 a_run is it possible to do it without writing sls for apache pkg itself ?
10:46 a_run i don't want to install apache if it's not already installed
10:47 shomodj2 joined #salt
10:47 malinoff a_run: You can check with jinja whether apache is installed already
10:48 a_run hm, ok
10:48 a_run I'll try that
10:48 bhosmer joined #salt
10:56 danielbachhuber joined #salt
10:58 malinoff a_run: Something like {% if salt['pkg.installed']('apache2') %}
11:03 a_run cool thanks
11:05 techdragon joined #salt
11:14 backjlack joined #salt
11:18 Boohbah joined #salt
11:20 jslatts joined #salt
11:36 LordOfLA joined #salt
11:42 MK_FG joined #salt
11:47 Katafalkas Hey, is there a way to write pip state that would install dependencies from some file like requirements.txt. I am looking for a state that would do similar to pip install -r requirements.txt --use-mirrors
11:48 az87c joined #salt
11:54 oc j #puppet
11:54 * oc blushes
11:55 jefftriplett joined #salt
12:02 arthurlutz joined #salt
12:05 aleszoulek Katafalkas: http://docs.saltstack.com/ref/states/all/salt.states.pip_state.html
12:06 LGSilva joined #salt
12:10 Katafalkas aleszoulek: yes i did read the page. There is a requirements= setting is not documented . from github https://github.com/saltstack/salt/blob/develop/salt/states/pip_state.py I see the requirements part is not finished. sort of ... so i was rather looking for more info on that, then just a link to the page which google led me to.
12:11 aleszoulek Katafalkas: You can provide any salt:// path there..
12:13 aleszoulek Katafalkas: The value from requirements is directly passed to pip modules.
12:13 aleszoulek modules.pip
12:13 aleszoulek And that one is documented bether http://docs.saltstack.com/ref/modules/all/salt.modules.pip.html
12:18 mwillhite joined #salt
12:21 piffio joined #salt
12:23 blee joined #salt
12:29 jslatts joined #salt
12:44 techdragon on the topic of pip and requirements. I'm wondering if theres any issues with the virtualenv module. It doesn't seem 100% reliable at installing packages listed in a requirements file.
12:44 techdragon Its particularly difficult to reduce down to a concise test case. :-/
12:44 techdragon So i was hoping to find I'm not alone lol
12:46 matanya joined #salt
12:46 techdragon I don't want to log some vauge bug report without a concise repeatable example.
12:48 Brew joined #salt
12:53 ipmb joined #salt
12:55 oz_akan_ joined #salt
12:56 basepi scott_w: no worries, totally understand. Take your time. =)
12:56 oz_akan_ joined #salt
12:56 CostelL joined #salt
12:57 CostelL hello
12:57 CostelL quick question regarding syndic
12:57 scott_w i've just looked at how github works and i've got to create a branch for just that change, because i made it after the AWS additions :-(
12:57 CostelL we have a setup lile this: master > syndic > minions
12:58 CostelL as I undertand it is not possible to run a sls from master without running the cp.master_cache on syndic
12:58 CostelL is this correct? or am i missing something?
13:00 scott_w basepi: i actually did most of the coding while i was at pycon UK, because i was CBA with some of the talks they had on :-/
13:01 basepi scott_w: if you want you can create a new branch off of develop and then use 'got cherry-pick' to pull the desired commit over.
13:01 scott_w ooh, i might do that
13:01 basepi git cherry-pick
13:01 basepi Stupid autocorrect. On my phone right now.
13:02 scott_w hahaha, ironically "git" is an english word too ;-)
13:02 timoguin joined #salt
13:03 rmt Are there any plans to have multiple ZMQ subscriptions (possibly with different encryption on channels)?  It appears that the default ('') is always used to limit broadcast commands, and any filtering is done client-side.
13:03 ninkotech joined #salt
13:03 basepi I know. But not as common as "got". =P
13:03 rmt s/to limit/for/
13:03 scott_w also, the nexus 4 has all the "swear words" in its dictionary but won't auto complete them :-(
13:04 juicer2 joined #salt
13:04 scott_w anyway, i'll try and figure that stuff out to get the clean functionality in now
13:04 scott_w btw did you see my comment on #6444?
13:05 wkf_ joined #salt
13:07 wkf_ joined #salt
13:07 Gifflen joined #salt
13:10 brianhicks joined #salt
13:11 copelco joined #salt
13:15 ze- is there a way to have "private" sls files ? (aka usable states for a minion, and not even readable by others)
13:16 rmt Hmm.. why is timeout not respected? "time salt -t 1 '*' grains.item virtual" returns 6 seconds later..
13:20 ze- 6s is a timeout, or correct results ?
13:20 rmt And "time salt -s -t 2 '*' grains.item virtual" takes 4 seconds, while "time salt -s -t 4 '*' grains.item virtual" takes 8.. ie. always double the timeout..
13:21 scott_w pull request submitted :-)
13:21 rgbkrk joined #salt
13:21 scott_w #7582
13:21 rmt (yes, and -t 10 takes 20 seconds)
13:22 ze- rmt: timeout *per* minion ?
13:22 ze- and you have like 2 minions that timeout ?
13:22 racooper joined #salt
13:23 joehh rmt: I haven't managed to track it down, but I have read that this is expected behaviour
13:23 joehh from memory, the timeout specifies the time the master takes to wait to check up on the minion
13:23 joehh then the time to wait again for a response
13:23 joehh which gives you the factor of 2
13:24 rmt joehh, what is to 'check up' on a minion?
13:25 rmt ze-, no, one minion that times out.
13:25 ze- with a test.ping, i get about 4s + timeout.
13:25 ze- time salt -t 20 '*' test.ping
13:25 ze- real    0m24.834s
13:25 ze- time salt -t 1 '*' test.ping
13:25 ze- real    0m5.876s
13:26 rmt ze-, add -s to it.. static vs. non is also a little confusing..
13:27 joehh this is a similar query https://groups.google.com/forum/?fromgroups=#!topic/salt-users/pjgF_vLH3-o
13:28 rmt So what happens exactly when I do salt '*' test.ping ? .. The command gets broadcast along with a jobid.. and then what?
13:31 imaginarysteve joined #salt
13:31 joehh rmt: that is a little beyond me, but most the expers should be around in a couple of hours or so
13:32 aleszoulek joined #salt
13:33 rmt These late-starting Unistaters make it hard for us in Europe to get timely answers. ;-)
13:35 joehh you should try living in aus! :) 1am before you see the real experts
13:35 faeroe joined #salt
13:36 isomorphic joined #salt
13:38 sgviking joined #salt
13:39 Drawsmcgraw rmt: Looks like test.ping is just a function that returns "true"
13:39 Drawsmcgraw https://github.com/saltstack/salt/blob/develop/salt/modules/test.py
13:39 Drawsmcgraw Unless you had meant the more general question of "how are jobs run/managed/handled?"
13:40 m_george|away joined #salt
13:41 Drawsmcgraw incidentally, the test module has a ton of methods for... er.... testing. I had no idea there was so much in there
13:42 LGSilva joined #salt
13:43 Thiggy joined #salt
13:43 elfixit joined #salt
13:45 rmt joehh, been there, done that. :)
13:46 rmt Drawsmcgraw, yes, exactly.. pub/sub commands, how it knows which minions matched and what responses to wait for, etc.
13:46 m_george left #salt
13:48 toastedpenguin joined #salt
13:49 kenbolton joined #salt
13:51 kiorky joined #salt
13:54 scofflaw joined #salt
13:56 Drawsmcgraw rmt: Good question. I'd be interested in the answer :)
13:57 jeffasinger I'm getting ready to add a pull request to add support for executing overstate to salty-vagrant, just one question first: Am I correct in assuming that it makes no sense to call state.over in a masterless configuration?
13:58 jcockhren jeffasinger: you might want to do a PR directly to vagrant's repo
13:59 Khollowa_ joined #salt
14:00 jeffasinger jcockhren: I thought the official salt-vagrant plugin was at https://github.com/saltstack/salty-vagrant
14:01 jcockhren jeffasinger: as of vagrant 1.3.0 salt is a native provisioner for vagrant
14:01 jeffasinger jcockhren: wow, didn't realize that
14:02 timoguin it's still not in the vagrant docs last time i checked
14:02 * timoguin checks again
14:02 kaptk2 joined #salt
14:03 jeffasinger I guess when you google saltstack vagrant, the first results all go to the old salty-vagrant plugin
14:03 timoguin it is indeed not listed as a provisioner: http://docs.vagrantup.com/v2/provisioning/index.html
14:03 mannyt joined #salt
14:04 jcockhren one of us should PR the vagrant docs
14:04 jcockhren go ahead jeffasinger
14:04 jcockhren or timoguin, you "smelt" (smelled) it you dealt it
14:05 * timoguin cracks his knuckles
14:05 jeffasinger Alright, I'll have to do one anyways for the overstate stuff
14:05 timoguin I just moved into a new house and am getting internet tomorrow. I'll put it on my list of things to do. :)
14:06 timoguin well, looks like I'll be the backup in case jeffasinger falls through. ;-)
14:06 opapo joined #salt
14:16 Drawsmcgraw Anybody have any luck getting the S3 backend to work for the fileserver?
14:16 techdragon joined #salt
14:17 patrek anyone know why installing a package (centos/yum) through salt does not create the associated user for services like mysql or apache?
14:20 timoguin patrek, does installing through yum normally create the users?
14:20 jcockhren Drawsmcgraw: yeah
14:20 patrek yes
14:20 timoguin because the pkg module just calls out to yum, i believe
14:20 jcockhren Drawsmcgraw: define service_url
14:20 timoguin so that's weird
14:21 patrek timoguin, on version 0.16.4
14:21 Drawsmcgraw jcockhren: Oh man, seriously?
14:21 Drawsmcgraw So 'service_url' is *not* optional ?
14:21 pdayton joined #salt
14:21 timoguin patrek, yea i dunno. sorry. :(
14:22 diegows joined #salt
14:22 jcockhren Drawsmcgraw: see https://github.com/saltstack/salt/issues/7448
14:22 shomodj3 joined #salt
14:22 patrek timoguin, is there a way to see exactly what command is run for installing while installing in a state?
14:22 jcockhren Drawsmcgraw: not sure when I'll get around to PR-ing that
14:22 lineman60 joined #salt
14:23 Drawsmcgraw jcockhren: Interesting... I'll fire up my instances and give that a try, then
14:23 jcockhren Drawsmcgraw: but if you can take some time to add to the comment about your experiences, that'll be helpful
14:23 Drawsmcgraw jcockhren: so you only define 1) the key id 2) the secret key 3) s3.buckets: and 4) service_url.  Correct ?
14:24 JaredR joined #salt
14:24 Drawsmcgraw Yeah I'll give it another go and chime in if I have something constructive to add
14:26 jcockhren Drawsmcgraw: About to add more to the comments
14:26 timoguin patrek, not that i know of, but i would think it's possible
14:26 patrek ok, thanks anyway
14:27 Drawsmcgraw joined #salt
14:28 kenbolton joined #salt
14:28 jcockhren Drawsmcgraw: I've added mu config structure
14:29 jcockhren Drawsmcgraw: there's a caveat, (I'll do a issue for this as well)
14:29 Drawsmcgraw jcockhren: Awesome. Thank you
14:29 Drawsmcgraw k
14:29 anteaya joined #salt
14:30 jcockhren Drawsmcgraw: both the listed buckets in the master config and in the AWS console must have names that are lowercase
14:30 Drawsmcgraw !
14:30 Drawsmcgraw not a problem for my setup, but -> wat ?
14:30 jcockhren yeah
14:30 jcockhren you might want to IRClog that one
14:30 jcockhren I think it was forrest and I who was discussing that
14:31 Drawsmcgraw interesting...
14:31 Drawsmcgraw Firing up my instance right now... I've got a state that just does a file.managed for my testing
14:32 jcockhren let's say I have bucket named: SeeMe
14:33 jcockhren and I list that as is, in my master config
14:34 jcockhren salt will attempt to access SeeMe.s3.amazonaws.com
14:35 jcockhren given HTTP(S), it'll be transformed into the case insensitive version, seeme.s3.amazonaws.com
14:35 Drawsmcgraw ah.......
14:35 Drawsmcgraw bummer
14:35 jcockhren however, AWS won't recongnize seeme
14:35 jcockhren only SeeMe
14:36 Drawsmcgraw lesson learned -> use simple naming schemes, to include not using capital letters
14:36 jcockhren yeah
14:36 jcockhren I think a decent doc note would be enough
14:37 Drawsmcgraw stupid question: I had an IP associated to an instance in AWS. I shut it down at the end of the night last night. And when I fire the instance back up, the IP has been disassociated. Is that... normal behavior?
14:37 Drawsmcgraw agreed re: the doc note
14:37 Drawsmcgraw I'm just looking forward to getting the S3 backend working. I'll gladly drop in a note or two if I can get it up and running
14:41 jcockhren Drawsmcgraw: my plan was/is to use s3 as my primary "big file" store for stuff that salt would need. For example, a state to install/setup logstash from it's flatjar
14:41 Drawsmcgraw jcockhren: So 1) define 'service_url' in the master config and 2) don't use uppercase bucket names. Is that about right ?
14:41 jcockhren yes
14:41 Drawsmcgraw jcockhren: That's exactly what I'm trying to do
14:41 Drawsmcgraw States live in github. Big files live in S3
14:41 jcockhren yep
14:41 Drawsmcgraw k. Making the changes now...
14:42 mwillhite joined #salt
14:46 lineman60 joined #salt
14:47 tyler-baker joined #salt
14:47 tyler-baker joined #salt
14:51 CansaSCity joined #salt
14:54 lemao joined #salt
14:55 Drawsmcgraw jcockhren: Success (sort of) !  I have a relatively large tarball I'm file.manage'ing and the master seemed to have lost track of the job
14:55 Drawsmcgraw Even though the minion log says it returned the job info. But I dialed it down to a more reasonable size and had success
14:55 patrek timoguin, and others: my problem was selinux that was stopping user creation...
14:55 jcockhren Drawsmcgraw: word
14:55 jcockhren \o/
14:56 Drawsmcgraw Thank god. I was staring down having to write a Python script using boto to pull/manage stuff out of S3 by hand
14:56 timoguin patrek, ahah!
14:57 Thiggy joined #salt
14:59 Drawsmcgraw jcockhren: I'm making a fork so I can drop a few lines into the docs for the S3 backend. I'll drop a note in the issue you pointed me to once I've made the pull request
15:00 jcockhren Drawsmcgraw: cool
15:01 timoguin patrek, probably need better logging output for that so people don't have to dig
15:02 timoguin I'm assuming you didn't get any errors about the users not being created?
15:02 geak joined #salt
15:02 patrek Exactly, just the service not starting
15:03 timoguin patrek, sounds like a bug should be filed.
15:04 dthom91 joined #salt
15:04 patrek tell me where
15:04 Drawsmcgraw jcockhren: oh hey. Did you drop a note re: the lowercased-ness of the buckets? It's already there in the current branch
15:05 cachedout_home joined #salt
15:06 timoguin patrek, https://github.com/saltstack/salt/issues
15:06 timoguin i searched "selinux" and got a number of results, so it may be a known issue. might be good to shoot an email to salt-users@googlegroups.com and ask
15:07 rmt So what happens exactly when I do salt '*' test.ping ? .. It connects to the master process as a client, I guess.. how?  Then the command gets broadcast to the main pub/sub 0mq channel along with a jobid.. and then what?  How does it know which minions matched and what responses to wait for?  How are the responses collected?
15:08 jbunting joined #salt
15:09 timoguin patrek, yea it's a known issue looks like: https://github.com/saltstack/salt/issues/6735
15:09 jcockhren Drawsmcgraw: oh. yeah grey did that. I forgot about that
15:10 xuru joined #salt
15:11 CheKoLyN joined #salt
15:11 Drawsmcgraw jcockhren: I mentioned the issue in my pull request. Let me know if you think I should drop another comment in there.
15:11 alunduil joined #salt
15:12 honestly (ww
15:12 honestly augh
15:16 Gifflen_ joined #salt
15:17 mua joined #salt
15:17 ninkotech joined #salt
15:19 jalbretsen joined #salt
15:19 Gifflen_ joined #salt
15:20 CaptTofu joined #salt
15:20 cwright occasionally salt doesn't display any output when I run state.highstate.  it's pretty concerning because I have no idea if it ran, and if it did then what changes were made
15:20 CaptTofu hello all!
15:20 Gifflen joined #salt
15:20 cwright i'm still on 0.16.4 until the ubuntu packages for 0.17 are up
15:20 cwright it seems to happen about 1 out of every 10 or 15 runs of state.highstate, with no noticeable pattern.
15:21 cwright sometimes if i run the exact command again then it works and displays output.
15:21 jalbretsen cwright:  I found tuning my the time out in /etc/salt/master solved that problem for me
15:21 cwright jalbretsen: interesting.  what did you set it to?
15:22 jalbretsen I'd have to look.... I made it bigger than the default in the end.  It was typically the slower boxes that had the issue
15:22 cwright jalbretsen: great, thanks for the quick pointer.  i'll give it a shot.
15:23 jalbretsen looks like I upped it to 30.  I recall trying 60, that was overkill
15:23 jalbretsen also, are you running any CentOS 5 boxes?
15:25 Drawsmcgraw cwright: I'm seeing similar behavior on my 16.4 setup. I'll try upping my timeout to 30 and seeing if that makes it any better
15:25 cwright jalbretsen: i'm entirely on ubuntu 12.04
15:25 jalbretsen k
15:26 cwright wow, 30.  i am going to inch my way up from the default of 5 and see where i stop having problems
15:26 cwright trying 10 first
15:28 Thiggy joined #salt
15:29 mr_chris Just found a nasty bug with the MySQL module. I will report it or attempt to fix it myself but I wanted to know if anyone else has encountered it.
15:30 mr_chris With http://docs.saltstack.com/ref/states/all/salt.states.mysql_grants.html  While grant_option defaults to False, if you specifically set it to that it gives the user WITH GRANT OPTION.
15:30 SunSparc joined #salt
15:30 mr_chris So if you try to enforce a user not have grant option you are actually giving it to them.
15:31 StDiluted joined #salt
15:35 cro joined #salt
15:40 Ph4nt0m joined #salt
15:43 CaptTofu anyone here interested in salt work as a job please feel free to private message me.
15:44 Lue_4911 joined #salt
15:44 jdenning joined #salt
15:48 echos joined #salt
15:48 timoguin CaptTofu, you can post the the mailing list too. salt job posts are welcome.
15:49 CaptTofu timoguin: thanks.
15:50 shinylasers joined #salt
15:51 shinylasers joined #salt
15:53 Thiggy So pillar.item doesn't respect the foo:bar dictionary syntax?
15:53 Thiggy That… would have been good to know an hour ago
15:54 cachedout joined #salt
15:55 pipps1 joined #salt
15:56 nliadm is there any documentation on pillar changes? I thought there had been changes made?
15:56 lineman60 joined #salt
15:58 lineman60__ joined #salt
16:00 fragamus joined #salt
16:01 pipps joined #salt
16:02 mgw Any sysadmins looking for full time work (with Salt, of course), please feel free to message me.
16:02 Thiggy wow it's jobapalooza today
16:02 UtahDave joined #salt
16:03 mgw Oh, I missed the previous post by CaptTofu. Not meaning to compete.
16:03 cwright jalbretsen: ok, i don't think the timeout setting is causing this.  i upped timeout to 30 and the salt command line is coming back in far less time than that, in some cases 5 seconds, still with empty output
16:03 Topic for #salt is now Welcome to #salt - SaltConf in January!! http://saltconf.com | 0.16.4 is the latest | Please be patient when asking questions as we are volunteers and may not have immediate answers - Channel logs are available at http://irclog.perlgeek.de/salt/
16:03 ze- looking for remote admin? or would need to be "on site"  ?
16:03 Thiggy As long as you both nerf gun fight to the death I think it'll be ok.
16:04 Ryan_Lane joined #salt
16:04 Thiggy also it makes me feel good that I'll probably be able to pick up another gig when this one winds down.
16:05 jbunting joined #salt
16:07 pipps2 joined #salt
16:07 CaptTofu mgw: heeheh :)
16:07 mgw ze-: was that question for me or CaptTofu?
16:07 pipps3 joined #salt
16:08 CaptTofu mgw: just realizing how Salt skills are a good thing to possess
16:08 jalbretsen cwright:  Hmmmm.  I assume you are up to date and all
16:08 mgw CaptTofu: yeah, it's a hot commodity
16:08 ze- mgw: either :)
16:08 cwright jalbretsen: up to date with salt packages?
16:09 jalbretsen ya
16:10 cwright i'm running the latest available ubuntu packages provided by saltstack
16:10 cwright so 0.16.4
16:12 jalbretsen cwright:  Is this a tread that you've seen all through the 0.16 series, or just a recent thing or....?
16:13 cwright i believe since i started using salt, 0.13.x
16:13 cwright but we are nearing production use of salt and its beginning to concern me more
16:14 gildegoma joined #salt
16:14 ze- any idea how to get private sls for some minion, without them being "public" ?
16:16 kula ze-: i use jinja in my pillar sls files with things like "{% if grain['id'] == 'something' %}" to limit which data gets rendered for a particular minion
16:16 mgw ze-: if you have sensitive data, put it in pillar
16:16 jalbretsen cwright:  Are any of these going through like a Cisco router or something to different subnets?
16:17 cwright they are all on the same network. i am not sure of the networking gear
16:17 ze- kula: ah... well, grain['id'] can be overwritten by a minion :)
16:18 ze- you should use opts['id'], it seems to work better.
16:18 ze- mgw: well, pillar is nice for *data*, not for sls stuffs, and templates.
16:19 ze- pillar are only key/value stuffs. not files, states, ...
16:19 kula opts['id'] works better if you want something secure. the most recent example i just stared out simply defined pillar data differently for different minions, so it didn't need to be secure.
16:20 jalbretsen cwright:  So it's random servers that have the issue not the same one or any correlation you can see?
16:20 ze- as mentionned, pillar are for "sensitive" data. :)
16:20 kula i do have this crazy idea to try to extend the fileserver protocol to allow bits of data to be sent along with the request, so you could send a "secret key" to a minion via pillar, it could send that along with the fileserver request, and a fileserver backend could make a decision like "if you have this secret key, you get the file"
16:20 cwright jalbretsen: that is correct.  i have not been able to notice any pattern of servers that it happens on
16:20 kula i have things like ssl keys, and kerberos keytabs, which just seem rather messy to try to shove into pillar.
16:20 micah_chatt joined #salt
16:21 jY any word on when the 0.17 ubuntu packages are getting built?
16:21 kula but i haven't found enough round tuits to really think about it
16:21 ze- kula: I quickly check the fileserver stuffs, but it seems it doesn't even have informations about the minion...
16:21 mgw kula: I like that idea, I wonder what Tom would say to it
16:21 jalbretsen cwright:  All servers running zeromq3?
16:22 ze- (is there a non-google mailing list ? google is too much of a pain to register to)
16:22 kula i like the idea too, because then the protocol at least would allow for additional bits of info to be sent back, which a particular fileserver backend could use or ignore
16:23 cwright jalbretsen: well, the python-zmq package is installed as version 13.0.0-2precise
16:23 kula really, what i want is on the minion side to have a file.managed with an entry '- key: {{ pillar['secret'] }}' that i could then figure out how to make a fileserver backend use to make an access control decision
16:24 jalbretsen Hmmm, I've gone through everything I can think of.  I'd post to the list and make the devs aware of it.  Give as much detail as possible.
16:24 cwright jalbretsen: thanks for your help
16:25 kula also, all you "if you're looking for work and use salt" people should send something to the list so i can remember to look later. i'd love to work on salt more.
16:26 Lue_4911 joined #salt
16:27 ze- kula: the main problem I see right now, is that the Fileserver takes nothing about who is asking for the file.
16:28 ze- so, it just can't do anything about it. noway to accept/refuse depending on which minion asks. :(
16:28 kula it would be nice if it got at least the minion identity.
16:29 ksalman i just started playing with salt-ssh. How would I group a bunch of hosts in the roster?
16:30 ze- yup. it would.
16:46 lineman60 joined #salt
16:47 Heartmender joined #salt
16:48 mannyt_ joined #salt
16:49 anuvrat joined #salt
16:55 boite joined #salt
16:57 ze- kula: after checking some more, it DOES have the minion id.
16:57 ze- in the load['id']
16:58 Heartmender joined #salt
16:58 ze- at least the fileserver.Fileserver does, when the function is called
17:00 jefimenko joined #salt
17:03 kula i've only just started looking at it
17:06 taylorgumgum joined #salt
17:08 nahamu is anyone doing esky deploys on Linux or SunOS?
17:20 pipps joined #salt
17:21 pipps1 joined #salt
17:22 micah_chatt joined #salt
17:25 jefftriplett left #salt
17:25 taylorgumgum1 joined #salt
17:28 bhosmer joined #salt
17:29 mwillhite joined #salt
17:35 geak joined #salt
17:38 travisfischer what's the best way to hook in some custom jinja function (which uses the jinja api) to make that available while salt is rendering templates?
17:42 jkh_ joined #salt
17:44 mwillhite joined #salt
17:45 ninkotech joined #salt
17:47 ronc joined #salt
17:49 jergerber joined #salt
17:49 dthom91 joined #salt
17:49 robertkeizer joined #salt
17:52 Thiggy joined #salt
17:54 qba73_ joined #salt
17:55 redondos joined #salt
17:57 jpeach joined #salt
17:59 micah_chatt joined #salt
18:00 jbunting joined #salt
18:00 jpeach does anyone have experience using the heira pillar backend?
18:01 lemao_ joined #salt
18:05 qba73_ joined #salt
18:05 Cidan joined #salt
18:06 ifnull_ joined #salt
18:10 ronc joined #salt
18:10 Cidan hi guys; on salt-cloud, is there a fix in place for this bug?  It pretty much makes salt-cloud + ec2 unusable if you use EBS :( https://github.com/saltstack/salt-cloud/issues/755
18:15 jbub_ joined #salt
18:16 matanya joined #salt
18:17 mwillhite joined #salt
18:22 micah_chatt joined #salt
18:23 LarsN UtahDave: you're back
18:24 LarsN is it cool if I send you a /msg or two?
18:33 Thiggy joined #salt
18:38 Ryan_Lane joined #salt
18:44 Katafalkas joined #salt
18:46 ronc joined #salt
18:46 mmilano joined #salt
18:47 nahamu can anyone help me with generating an esky build of salt?
18:48 nahamu I'm getting this error when I try to run the resulting salt binary:
18:48 rmt So what happens exactly when I do salt '*' test.ping ? .. It connects to the master process as a client, I guess.. how?  Then the command gets broadcast to the main pub/sub 0mq channel along with a jobid.. and then what?  How does it know which minions matched and what responses to wait for?  How are the responses collected?
18:48 nahamu OSError: [Errno 20] Not a directory: '/root/salt-0.17.0/salt-0.17.0.solaris-2_11-i86pc_32bit/library.zip/salt'
18:48 nahamu full traceback: http://paste.ec/?83404617d2849a1a#6r7NkoyNFPjS2+YjK4VVuvf1nwhndURzV3vOWgRbwwk=
18:49 quist joined #salt
18:50 juicer2 joined #salt
18:52 bhosmer joined #salt
18:53 dthom91 joined #salt
18:56 mwillhite joined #salt
18:57 Thiggy Anyone ever shared python code between a module and a runner? Is that reasonably possible?
18:59 TheCodeAssassin joined #salt
19:02 lineman60__ joined #salt
19:02 UtahDave LarsN: hey, I'm actually onsite with a customer. Would you mind sending me an email?  I'm about to log off irc
19:05 druonysus joined #salt
19:07 * andrej bitchx is being a bitch
19:07 andrej back in a sec
19:10 andrej joined #salt
19:10 mwillhite joined #salt
19:20 pipps3 joined #salt
19:20 pdayton joined #salt
19:23 pipps1 joined #salt
19:23 Ryan_Lane is there any way to define the same variable in two different pillars and have the values merge, rather than overwrite?
19:25 pipps4 joined #salt
19:25 pipps6 joined #salt
19:28 pipps1 joined #salt
19:28 dthom91 joined #salt
19:29 pipps3 joined #salt
19:30 pipps5 joined #salt
19:31 redondos joined #salt
19:34 matanya joined #salt
19:34 pipps1 joined #salt
19:34 Kholloway joined #salt
19:34 pentabular joined #salt
19:39 Ahlee_ rmt: the salt master matches minions it has currently connected with the specified glob (in that case, wild card, so all)
19:39 redondos joined #salt
19:40 Ahlee_ it then sends cmd.ping along 0mq channel to any minions matching your glob to execute test.ping.  THe results are then sent back across the return 0mq channel, and aggregated in the salt master, which in turn returns back to your salt client.  It has a kind of sliding scale on timeouts/how long to wait that inevitably causes new users issues as timeout and wait time are different and confusing
19:41 giantlock joined #salt
19:41 deedubs is 0.17 released? http://docs.saltstack.com/topics/releases/0.17.0.html
19:41 rmt deedubs, just announced
19:41 deedubs bwahah literally just ran the bash installs
19:41 rmt Ahlee_, first things first .. how does the salt CLI communicate with the salt master?
19:42 Ahlee_ rmt: Various ways. The salt "binary" instantiates a client through the salt python module (from salt import client)
19:42 LucasCozy joined #salt
19:44 Ahlee_ basically at the end of the day, that's what all the options are doing
19:44 Ahlee_ the API just puts cherrypy in front of it
19:44 bhosmer_ joined #salt
19:45 timoguin rmt, https://github.com/saltstack/salt/blob/develop/scripts/salt
19:45 timoguin like that!
19:45 matanya_ joined #salt
19:46 Ahlee_ some of my sytems are completely hands off - i have the minions scheduled to check in and run highstate every hour
19:46 Ahlee_ but, i can still target them from the API or from teh command line on the salt master
19:46 rmt salt-master is a daemon, and it's the one with the pub-sub channel .. so, does it communicate via unix sockets, for example?
19:46 rmt (the client to the master)
19:47 Ahlee_ I have yet to explore at that depth
19:47 rmt ok
19:47 Ahlee_ But, yes. I would imagine that's how it's implemented
19:47 dthom91 joined #salt
19:48 rmt Ok, and what's encrypted?  I guess the pubsub message can't be, since it's broadcast.
19:48 Ahlee_ The pub/sub is encrypted
19:48 Ahlee_ m2crypto is used, afaik
19:48 Ahlee_ so client -> master may or may not be - i'm not sure.
19:49 Ahlee_ But master -> minion and minion -> master messages are
19:49 rmt It must be encrypted with the secret key of the master, then, and the minions use the public key to decrypt?
19:49 Ahlee_ Likely.
19:50 rmt What happens if I want to send command to a single minion and I don't want other minions to be able to access that?   Machines get compromised, after all.
19:50 Ahlee_ Target directly
19:51 Ahlee_ salt 'thatminionyouwant.domain.tld' cmd.run 'halt -n'
19:51 rmt Will it then encrypt a message using the target minions key, or is it the same broadcast-encryption as before?
19:52 rmt halt -n isn't very secret .. let's say "someprogram --setpassword=plaintextpassword"
19:52 teebes joined #salt
19:53 Ahlee_ I don't know enough about the underlying encryption to comment, but if you're concerned about submitting data to a minion, pillars are recommended for that
19:53 LarsN I haven't verified, but a key echange takes place between the minion and the master.  I "suspect" that messages from the master to a minion are first encrypted with the master's private key, and then a second time with the minion's public key
19:53 TheCodeAssassin joined #salt
19:54 rmt LarsN, it would be good to have this documented somewhere.
19:55 Ahlee_ It likely is. There's just no devs or salt staff here currently
19:55 LarsN If I wasn't 5 minutes out from a meeting, I'd take a glance at the source code.
19:55 rmt ;-)
19:56 rmt I sent UtahDave an email covering much of this seconds before Ahlee answered, since he seems a friendly chap.  I'll let the channel know the outcome.
19:56 rmt But now, I need to head to bed.
19:57 rmt Thanks for the answers, Ahlee & Lars.
19:57 LarsN Sleep is for the weak.
19:57 LarsN ;)
19:57 LarsN take it easy rmt :)
19:57 LarsN glad to at least try to help.
19:58 rmt I'll keep digging. Once I understand the architecture a bit more, I should be fine digging in the sourcecode myself. :)
20:02 ifnull_ Anyone have any success using the pillar example included in https://github.com/saltstack-formulas/apache-formula
20:03 ifnull_ I'm getting "Undefined jinja variable;" while rendering the sls. The problem seems to be the map.jinja variables aren't available in the pillar
20:03 timoguin what salt version?
20:03 timoguin i know some of the formulas aren't compatible with pre-0.17
20:03 ifnull_ 0.17.
20:03 timoguin well then that ain't it. :-P
20:03 ifnull_ :)
20:03 ifnull_ thanks though
20:05 bhosmer joined #salt
20:07 ronc joined #salt
20:09 bhosmer_ joined #salt
20:11 terminalmage joined #salt
20:17 ifnull_ I'm guessing the pillar needs something like "from apache/map.jinja import apache with context" but I'm not sure how to reference that from a pillar that is local when the map.jinja is coming from gitfs
20:18 pipps2 joined #salt
20:19 nahamu no takers on the esky question?
20:21 micah_chatt joined #salt
20:27 nahamu FWIW I was able to recreate the problem on a 64 bit fedora 19 system too.
20:30 zooz joined #salt
20:30 taylorgumgum1 @nahamu i'm a salt n00b but the "library.zip" portion of the path it's looking for is probably not valid - you may have put a filename in a config value that strictly wants a path
20:30 taylorgumgum1 unless salt has some folder-like handling of archives that i'm not aware of
20:31 nahamu taylorgumgum1: right, that makes sense to me. I'm confused because I followed the directions on http://docs.saltstack.com/topics/tutorials/esky.html very carefully.
20:37 ronc joined #salt
20:39 gildegoma joined #salt
20:45 pdayton left #salt
20:46 andrej Right
20:47 andrej Yesterday forrest tried to help me find out why I can't execute arbitrary scripts on a minion that are served up on the master.
20:47 Damoun joined #salt
20:47 andrej I always get a success message, but the scvript never runs
20:47 andrej He suggested to use salt-call on the minion to see what it's doing
20:48 andrej what would the syntax for that be?
20:49 andrej On te master I ran this: salt 'playp*' cmd.script salt://scripts/test.sh
20:49 andrej http://pastebin.com/MtJFHVSu
20:49 andrej That's the masters & minions output in one paste
20:52 SpX joined #salt
20:55 ze- andrej: and your script is supposed to do something ?
20:56 wilywonka joined #salt
20:57 andrej It's meant to a touch a file in /tmp and b) echo two lines into another file in /tmp
21:02 juicer2 joined #salt
21:03 ze- on the minion, can you try: salt-call cp.get_file salt://script/test.sh /tmp/test.sh
21:03 andrej Just tried it again, and it appears that the minion touches on TWO scripts when I run the call
21:03 andrej http://pastebin.com/Tx485Rv7
21:04 andrej ze- that didn't do anything apart from outputting local:
21:04 ze- means it has trouble finding the /script/test.sh from salt :)
21:05 andrej But then why is the minion saying OK to the whole process?
21:05 andrej I find this confusing
21:06 ze- it is.
21:07 ze- salt-call cp.list_master | grep test.sh
21:07 ze- to check where to find it
21:07 andrej aha!
21:07 andrej Not at all
21:08 andrej cp.list_master doesn't mention scripts
21:08 andrej So I need to do something to /etc/salt/master to make it aware of my scripts?
21:08 ze- where are your scripts ? not in the salt directory ?
21:09 andrej Ugh - no; I'm an idiot.  They're on the same level as salt
21:09 ze- salt:/ is about your file_roots (or others :)
21:09 andrej That would explain it
21:10 ze- probably :)
21:10 andrej Heh
21:10 andrej definitely
21:10 andrej it's now working
21:11 andrej I mv'ed scripts into salt, and I get the desired output
21:11 andrej thank you so much
21:11 ze- yw :)
21:14 nomad joined #salt
21:16 nomad hello everyone - got a problem trying to execute a standard command line call via a runner
21:16 mwillhite joined #salt
21:16 nomad trying to just run the simple command df -h via a running and can not figure out how to make a cmd.run type function work in a runner
21:18 ze- what do you mean a runner ?
21:18 dthom91 joined #salt
21:19 nomad a runner script is a module that runs on the master, in this case a complex python script to do some advance confiruration on various minions all from the master
21:21 nomad the docs are a bit small http://docs.saltstack.com/ref/runners/index.html trying to see if anyone has tries this before
21:24 logix812 joined #salt
21:27 ze- nomad: you already manage to have a simpler runner ?
21:31 nomad yeah have create several proof of concenpt runners and I've been learning salt but just stuck on doing command execution via a runner such as you would via cmd.run 'df -h' via the salt command
21:31 pipps1 joined #salt
21:31 ze- how/where do you place your runner file ? :)
21:32 ze- trying, but failing at that step :P
21:33 shinylasers joined #salt
21:34 nomad just drop the python file in the runners directory and call it via salt-run command, so if you are calling the foo function from the test file it would be salt-run test.foo <minion name>
21:36 ze- which runners dir ? system wide, or create a runners in the salt root dir ?
21:37 amckinley joined #salt
21:38 nomad on your salt master it is the main program directory, on my ubuntu 13.04 server it is /usr/lib/python2.7/dist-packages/salt/runners/
21:39 cachedout Is anybody around how deals with the Sphinx build system for Salt docs and could answer a quick question for me?
21:44 cwright is there any way to have state.highstate fail if a sls file is referenced but does not exist?
21:45 a1j how you would use redis for job cache in multimaster mode?
21:45 logix812 joined #salt
21:46 logix812 This formula evals vars in the pillar? Is that right? https://github.com/saltstack-formulas/apache-formula/blob/master/pillar.example
21:48 logix812 I didn't think pillars had access to info imported in the state
22:00 logix812 joined #salt
22:09 ze- salt.loader.call(fun = 'cmdmod.run', args = [ 'df -h' ])
22:09 ze- too bad cmd.run doesn't work directly.
22:10 dthom91 joined #salt
22:13 cachedout Can somebody familiar with git_pillar clarify something for me? I think I understand the approach taken by external pillars when it comes to using ext_pillar() as a point of entry for minons to update their pillars. However, git_pillar seems to be the only external pillar that also declares other public functions, (i.e., envs() and ext_pillar). Are those just helper functions or are they interfaces designed by to consumed by the m
22:14 Drawsmcgraw joined #salt
22:14 cachedout Err, that should have read "i.e envs() and update()". Sorry.
22:14 ze- designed by to consumed by the mi[...] (anything after that was truncated)
22:14 ze- (not that I have ideas how to help, but in case someone reads it a little later :)
22:15 cachedout Doh. Lousy IRC client. I'l re-paste in smaller chunks.
22:15 cachedout Final sentence before cut-off was 'Are those just helper functions or are they interfaces designed by to consumed by the minions when they update?'
22:17 ze- (not the client. size of an irc line is limited, by design)
22:18 cachedout Good point.
22:20 bhosmer joined #salt
22:21 bhosmer_ joined #salt
22:22 amckinley looking for some help writing my own state module: can someone tell me how modules/states/sls files are searched for/looked up? i cant figure out where my paths are incorrectly set
22:23 amckinley it seems like i can get salt to either find my sls file, or my custom module, but never both at the same time
22:25 ze- not sure about state modules.
22:26 ze- sls are searched into the salt: filesystem (mostly under file_roots if you don't have other backends)
22:26 ze- modules can be found into _modules dir... not sure about state modules :)
22:27 cachedout I believe that custom states should be placed into a '_states' directory within one of your file_roots.
22:30 alunduil joined #salt
22:30 ze- http://docs.saltstack.com/ref/states/writing.html#using-custom-state-modules
22:30 ze- yup, that's about it
22:31 pdayton joined #salt
22:37 blee joined #salt
22:37 Kraln joined #salt
22:38 jslatts joined #salt
22:39 amckinley joined #salt
22:39 amckinley ze-: cachedout: thanks, let me try that
22:40 amckinley ze: what im trying to do is run salt-call locally, so i dont need to spin up a real master/minion
22:40 amckinley hm, file_roots is supposed to be defined in the master config, not the minion?
22:44 cachedout That's correct. 'file_roots' is declared in the master configuration and declares the location to search for your configuration management files. The suggested default is '/srv/salt'.
22:44 cachedout In the most recent develop branch, take a look at lines 250-258 in /salt/conf/master for an explanation and examples.
22:45 amckinley cachedout: then maybe i found a typo in the docs? https://salt.readthedocs.org/en/latest/topics/hacking.html#running-a-self-contained-development-version
22:45 amckinley "you should invoke salt-call with-c /path/to/your/virtualenv/etc/salt so that salt can find the minion config file."
22:46 * cachedout reads
22:46 diegows joined #salt
22:46 cachedout Are you running a self-contained installation for development?
22:46 amckinley cachedout: yes
22:47 cachedout Ah, I see. Sorry, I didn't realize that.
22:51 dthom91 joined #salt
22:53 cachedout So, I'm not an expert in this area but I believe that in a production environment those custom states are distributed to the minions from their defined location in <srv_root>/_states. In your situation, have you tried just dropped that custom state into your virtualenv's installation of salt? Would go in salt/states/<your_mod>.py I suspect.
22:54 cachedout I should also note for the record that I'm still learning, so take what I say with a grain of…you know. ;]
22:54 amckinley cachedout: np, im taking any suggestions i can get :)
22:54 cachedout K, we'll stumble through then. :]
22:55 mianos joined #salt
22:56 matanya joined #salt
23:02 diegows is there some documentation about how to get pillar variables from the master from a Python script?
23:08 amckinley cachedout: any idea how to get salt to print the list of installed state modules?
23:09 raghavp joined #salt
23:10 raghavp left #salt
23:10 cachedout Hmm, state.sls might be the ticket
23:11 tyler-baker joined #salt
23:11 tyler-baker joined #salt
23:13 jslatts joined #salt
23:15 pipps1 joined #salt
23:17 dthom91 joined #salt
23:20 bhosmer joined #salt
23:33 robbyt joined #salt
23:35 pipps1 joined #salt
23:36 bdf 5
23:38 bdf so when you use gitfs or s3fs, does the minion actually directly connect to git or s3, or does the master connect, cache, and serve to the minion over zmq?
23:42 logix812 joined #salt
23:43 cachedout I cannot speak for s3fs, but for gitfs it is the latter.
23:44 cachedout Per the documentation: "The master caches the files from the git server and serves them out, minions do not connect directly to the git server."
23:49 Drawsmcgraw bdf: The master caches the files for S3fs as well
23:49 Drawsmcgraw I think,  regardless of the backend, if the backend is anything but 'roots', it caches it in /var/cache/salt/master/
23:50 Drawsmcgraw I just got S3fs working this morning and confirmed that the master caches files in that location

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