Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-08-08

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

All times shown according to UTC.

Time Nick Message
00:00 schimmy1 joined #salt
00:06 gmeno joined #salt
00:07 pastacino joined #salt
00:09 WhyteWolf joined #salt
00:11 Ozack1 joined #salt
00:15 david_a joined #salt
00:16 clinta joined #salt
00:21 WhyteWolf joined #salt
00:23 hotsnow joined #salt
00:26 Jarus joined #salt
00:27 rojem joined #salt
00:28 Ozack2 joined #salt
00:29 nbarnett joined #salt
00:36 savvy-lizard joined #salt
00:42 ixokai joined #salt
00:44 delinquentme joined #salt
00:44 delinquentme salt-cloud -P -p openstack_8gb ${*:2} -m cloud.map
00:45 delinquentme im running this ... and hoping to NOT have to type  " y" for this prompt: Proceed? [N/y
00:45 delinquentme how do?
00:51 Outlander joined #salt
00:55 rallytime joined #salt
00:55 schmutz joined #salt
00:56 bhosmer joined #salt
00:58 DanGarthwaite joined #salt
00:58 Sauvin joined #salt
01:00 otter768 joined #salt
01:07 zz_Cidan joined #salt
01:07 skullone i thought there was some sort of salt proxy, where your local machine can issue commands through the master
01:07 mosen looks like theres some stuff on pipy
01:07 ramishra joined #salt
01:08 ramishra joined #salt
01:18 ramishra joined #salt
01:21 ixokai joined #salt
01:23 robawt why not just connect to the master?
01:26 chjohnst joined #salt
01:35 Ozack1 joined #salt
01:37 srage_ joined #salt
01:40 londo__ joined #salt
01:46 ilbot3 joined #salt
01:46 Topic for #salt is now Welcome to #salt | 2014.1.7 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/
01:59 Luke joined #salt
02:01 rojem joined #salt
02:06 Ozack2 joined #salt
02:22 toastedpenguin joined #salt
02:23 melinath joined #salt
02:24 melinath joined #salt
02:26 jalbretsen joined #salt
02:26 dvestal joined #salt
02:28 dvestal_ joined #salt
02:29 icebourg joined #salt
02:41 dvestal joined #salt
02:42 thayne joined #salt
02:45 bhosmer joined #salt
03:10 aqua^lsn joined #salt
03:13 kedo39 joined #salt
03:16 aw110f joined #salt
03:18 mapu joined #salt
03:21 octagonal joined #salt
03:24 jpaetzel joined #salt
03:24 ramishra joined #salt
03:25 logix812 joined #salt
03:25 dvestal joined #salt
03:29 jpaetzel joined #salt
03:32 goodwill herlo: yo, you around?
03:36 che-arne|2 joined #salt
03:40 swa joined #salt
03:53 ramishra joined #salt
03:57 mosen joined #salt
03:58 badon joined #salt
04:02 Ryan_Lane joined #salt
04:05 melinath joined #salt
04:06 bhosmer joined #salt
04:19 icebourg joined #salt
04:34 bhosmer joined #salt
04:50 Ryan_Lane joined #salt
04:53 ramteid joined #salt
04:56 badon joined #salt
04:56 TheThing joined #salt
05:04 schimmy joined #salt
05:09 schimmy joined #salt
05:14 schimmy1 joined #salt
05:17 schimmy joined #salt
05:17 jalbretsen joined #salt
05:25 ingwaem joined #salt
05:33 ingwaem greetings everyone!  On the new vsphere module for salt cloud http://docs.saltstack.com/en/latest/ref/clouds/all/salt.cloud.clouds.vsphere.html it states to use a vm_ object, or a data dict for the method salt.cloud.clouds.vsphere.create(vm_)….anyone know what that definition should look like or where I could go into the code to figure it out?
05:33 jeddi joined #salt
05:33 ingwaem note: I have not delved into the core code of salt, but have rather poked holes in other aspects without modifications :)
05:34 schimmy joined #salt
05:39 Shirdu joined #salt
05:39 icebourg joined #salt
05:54 joehillen joined #salt
06:00 j-saturne joined #salt
06:02 j-saturne1 joined #salt
06:14 j-saturne joined #salt
06:22 matthiaswahl joined #salt
06:22 bhosmer joined #salt
06:25 mway joined #salt
06:32 mway Is there a reason the reactor would only allow one cmd.state.sls per minion per event?
06:32 mway Even if using separate ids?
06:34 mechanicalduck_ joined #salt
06:39 ingwaem mway: if you’re limited to a single state file then you could combine your multiple requirements into that
06:40 ingwaem I’ll see if I can throw together a quick example on pastebin.com/
06:41 jhauser joined #salt
06:42 ramishra_ joined #salt
06:42 ramishra joined #salt
06:42 ingwaem mway: yea, I think you want to look into the watch statement you can put into an sls: http://pastebin.com/JspY8GPr
06:48 Miouge joined #salt
06:51 alanpearce joined #salt
06:53 ramishra joined #salt
06:57 taterbase joined #salt
06:59 cym3try joined #salt
07:00 cym3try joined #salt
07:09 xintron Was playing around with the iptables state yesterday. What are the benefits with that state compared to running an iptables-restore on a jinja-based iptables config?
07:10 xintron (because as far as I understand it the iptables module won't remove manually added routes)
07:13 sectionme joined #salt
07:23 ml_1 joined #salt
07:31 linjan joined #salt
07:33 packeteer has anybody installed on slackware? I get: ERROR: No dependencies installation function found. Exiting..
07:38 slav0nic joined #salt
07:43 bhosmer joined #salt
07:50 ThomasJ|d joined #salt
07:51 darkelda joined #salt
08:03 intellix joined #salt
08:07 thehaven joined #salt
08:07 linjan joined #salt
08:12 david_a joined #salt
08:19 Outlander joined #salt
08:24 jeblair joined #salt
08:28 bhosmer joined #salt
08:38 alanpear_ joined #salt
09:02 j-saturne joined #salt
09:05 alanpearce joined #salt
09:08 bhosmer_ joined #salt
09:08 Miouge joined #salt
09:08 madduck joined #salt
09:08 madduck joined #salt
09:20 ml_1 joined #salt
09:21 alanpearce joined #salt
09:23 xsteadfastx joined #salt
09:29 Lomithrani joined #salt
09:29 ggoZ joined #salt
09:29 Lomithrani Hi guys , is theyre a variable time somewhere in salt ?
09:30 Lomithrani (I'm trying to name a file in a state according the the time)
09:33 intellix joined #salt
09:35 srage joined #salt
09:44 alanpearce joined #salt
09:45 jslatts joined #salt
09:50 bhosmer joined #salt
09:52 srage joined #salt
09:57 giantlock joined #salt
10:08 MrTango joined #salt
10:15 ntropy not that i know of, you can use cmd.run i guess
10:21 jut joined #salt
10:22 che-arne joined #salt
10:22 syst3mw0rm_ joined #salt
10:23 slav0nic_ joined #salt
10:23 thayne joined #salt
10:23 redondos- joined #salt
10:24 Miouge joined #salt
10:24 jalaziz joined #salt
10:25 iMil joined #salt
10:25 iMil joined #salt
10:25 ramishra joined #salt
10:25 mechanicalduck joined #salt
10:25 JoeHazzers joined #salt
10:26 ujjain joined #salt
10:26 micko joined #salt
10:27 ramishra joined #salt
10:27 ajw0100 joined #salt
10:28 ramishra joined #salt
10:34 yomilk joined #salt
10:49 ramishra joined #salt
10:49 cym3try i am trying to use file.append module. I am already pushing a 'default' file to minion, then trying to append a new line from another state. however i am getting the conflicting ID error, as i am naturally referencing the same file from two different states. anyway how i can go around this?
10:53 cym3try i solved the issue buy using the name attribute and using different id's
10:54 intellix joined #salt
10:59 Miouge joined #salt
11:05 alanpearce joined #salt
11:06 alanpear_ joined #salt
11:06 Outlander joined #salt
11:10 linjan joined #salt
11:10 Hell_Fire joined #salt
11:11 Hell_Fire joined #salt
11:22 ntropy that is the correct way to do it
11:24 ntropy http://docs.saltstack.com/en/latest/topics/best_practices.html#modularity-within-states
11:24 logix812 joined #salt
11:26 viq If a minion eg changes IP address, saltutil.refresh_modules will cause the grain data to be refreshed, correct?
11:26 alanpearce joined #salt
11:30 Miouge joined #salt
11:32 mirko joined #salt
11:35 bhosmer joined #salt
11:41 diegows joined #salt
11:45 TyrfingMjolnir joined #salt
11:48 erjohnso joined #salt
11:48 Ainieco joined #salt
11:48 Ainieco hello
11:49 Ainieco what does cmd.run.statefull does?
11:51 tommee joined #salt
11:51 aquinas joined #salt
11:52 gmeno joined #salt
11:58 wpot joined #salt
11:58 viq !cmd.run.stateful
11:59 intellix joined #salt
11:59 viq !help
11:59 wm-bot4 I'm a documentation bot. To control me, please use #salt-bot to avoid channel spam. See this URL for my commands: http://meta.wikimedia.org/wiki/WM-Bot
12:02 viq Ainieco: where do you see it?
12:06 tommee salt-cloud deploys a machine, installs the minion, and accepts the key on the master. how do we automatically invoke a state.highstate just for this client after that? currently we need to run it manually once it is created
12:06 mklauber joined #salt
12:10 tommee nevermind … found "startup_states" :)
12:11 Ainieco viq: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.cmd.html
12:12 pastacino joined #salt
12:12 viq Ainieco: then there is a description of what it does
12:15 ramishra joined #salt
12:18 mechanicalduck joined #salt
12:18 Ainieco viq: oh, found it, sorry
12:20 tommee1 joined #salt
12:22 Ainieco how to specify local to minion file in source?
12:23 clinta joined #salt
12:23 tommee1 Ainieco: just enter the local path instead of salt://….
12:23 Ainieco tommee1: it causes "Unable to determine upstream hash of source file"
12:23 miqui joined #salt
12:24 Ainieco using file.managed
12:25 tommee1 hmmm i remember using it with pkg.installed :/
12:26 Lomithrani Guys , I'm dealing with some strange thing right there ^^. I execute a cmd.run   in a state ( python /etc/cassandra/packup.py ) precisely , inside this python I have a command that execute a shell command , anyway if I execute the state I get : stderr:  /bin/sh: line 1: nodetool: not found but if I directly connect myself to my minion and execute the exact same command it works.
12:27 occup4nt joined #salt
12:28 Lomithrani anyone would know what's the difference between cmd.run and directly  being in the shell ?
12:28 tommee1 Lomithrani: then it seems nodetool is not in the PATH of the running minion
12:28 bhosmer_ joined #salt
12:28 tommee1 what does line 1 in packup.py show ?
12:29 lietu now how would someone debug salt-call eating 86% of the memory on a VM with 1GB of RAM?
12:30 Lomithrani tommee1: #!/usr/bin/python  , and it should be in the path as I only type nodetool on this minion
12:31 tommee1 Lomithrani: then it is in your PATH of your session, but not in the minion session.
12:32 mapu joined #salt
12:33 tommee1 try this: type "which nodetool" and prepend the complete path given here to the  "nodetool" command given in line 1 or 2 of packup.py
12:33 tommee1 just to test
12:33 tommee1 if it works, the path is missing
12:33 Lomithrani /opt/local/share/cassandra/bin/nodetool
12:34 tommee1 now see line 1 or 2 of packup.py … where nodetool should be called
12:34 Lomithrani oh yeah
12:34 Lomithrani sure
12:34 Lomithrani yep it works , but I still don't get why it's not in the path
12:35 tommee1 because the PATH is set for each shell
12:35 tommee1 and your user environment is different from salt-minions
12:35 Lomithrani oh okay :)
12:35 tommee1 tbh i'm not sure how to add this path to the minions environment … but it needs to be done!
12:36 tommee1 or alternatively, check how nodetool is installed. maybe you can define where it should be installed. i'm a little bit confused a binary is being installed into the shared directory … looks strange to me
12:37 tommee1 i would expect it to land into /usr/local/bin, /usr/bin or something
12:39 tommee1 Lomithrahin: do a salt <hostname> cmd.run "echo $PATH"
12:40 tommee1 you'll notice it missing i think :)
12:40 Lomithrani right :)
12:42 sectionme joined #salt
12:43 bhosmer joined #salt
12:45 Comradephate_ joined #salt
12:45 bhosmer_ joined #salt
12:48 bhosmer joined #salt
12:49 Ainieco joined #salt
12:49 Ainieco is there a grain for figuring out minion's ip address?
12:49 workingcats joined #salt
12:50 viq Ainieco: yeah, conveniently named ipv4 and ipv6 ;)
12:50 lietu depends, do you mean public ip via something like "curl ifconfig.me" or interface IP address? .. for interface IP there's for example ip_interfaces
12:50 viq and/or ip_interfaces
12:50 Ainieco viq: great, thank you
12:52 tommee1 can someone point out to me why "provider: azure" is given twice here? http://docs.saltstack.com/en/latest/topics/cloud/azure.html#configuration
12:52 lietu tommee1: I would imagine someone accidentally put it there twice
12:52 tommee1 :)
12:52 tommee1 thanks
12:55 denstark joined #salt
12:55 mway joined #salt
12:56 cmhamill joined #salt
12:57 bhosmer joined #salt
13:00 TyrfingMjolnir joined #salt
13:00 pressureman joined #salt
13:01 mpanetta joined #salt
13:04 cpowell joined #salt
13:05 cmhamill Howdy! I've got a quick question whose answer I can't find in the docs: do sls files referenced in a top.sls file (whether for states or pillars) override each other in the order listed?
13:10 FeatherKing joined #salt
13:11 _mel_ joined #salt
13:12 TyrfingMjolnir_ joined #salt
13:18 racooper joined #salt
13:19 xzarth joined #salt
13:21 babilen cmhamill: You shouldn't rely on that at all. In fact you should either explicitly extend other states or not define conflicting states.
13:22 rojem joined #salt
13:24 ninkotech__ joined #salt
13:25 agend joined #salt
13:26 dude051 joined #salt
13:26 cmhamill How for pillars? Is it reasonable to override some variable for some target?  Say, DNS servers for things in a certain subnet?
13:28 akutra joined #salt
13:28 robinsmidsrod I think I've found a bug in the status.netdev execution module - it shows rx_errs and tx_errs non-null even though the value in /proc/net/dev is 0
13:31 babilen cmhamill: No, you should target the right data to the minions to begin with. You will be able to properly extend pillars in the next salt release (2014.7.0) however.
13:33 mattcen left #salt
13:34 cmhamill babilen: Is there any documentation or anything about this?  What exactly will happen as of now if I did so?
13:36 MrTango joined #salt
13:36 babilen cmhamill: Values will overwrite each other (not recursively) -- http://docs.saltstack.com/en/latest/topics/releases/2014.7.0.html + https://github.com/saltstack/salt/issues/3991
13:39 babilen Ah, ... https://github.com/saltstack/salt/issues/2466 too
13:39 helderco joined #salt
13:39 scoates_ joined #salt
13:41 quickdry21 joined #salt
13:42 danielbachhuber joined #salt
13:42 tommee joined #salt
13:46 toku left #salt
13:47 cmhamill babilen: ok, makes sense. From a quick test, it looks like adding a key to a hash will work, but overriding a key will not work. It also looks like
13:48 cmhamill it's different if the overriding file is included in the same or a different target spec also
13:48 cmhamill thanks
13:49 cmhamill Another question, while I'm on a roll: do minions cache all the pillar data that's targeted at them, or only the pillar data actually referenced in states?
13:50 jY cmhamill: i use salt hiera for overwriting as an external pillar
13:51 t0ku joined #salt
13:58 cmhamill jY: thanks, might look into that
13:58 jY https://github.com/gtmtechltd/salthiera
13:58 ajprog_laptop1 joined #salt
14:00 cym3try joined #salt
14:03 yomilk joined #salt
14:04 gmeno joined #salt
14:08 t0ku joined #salt
14:09 housl joined #salt
14:14 kaptk2 joined #salt
14:22 Supermathie joined #salt
14:23 peters-tx Anyone know how to run a command or script and have it return immediately; I've tried nohup'ing commands, etc, but Salt always sits and waits
14:24 Supermathie @peters-tx salt --async or client.cmd_async
14:24 g3cko joined #salt
14:24 Supermathie Morning everyone. I'm getting an error trying to run saltutil.running on a Windows minion:
14:25 Supermathie sudo salt 'win7-client1*' saltutil.running
14:25 Supermathie win7-client1.storagelab.netdirect.ca:
14:25 Supermathie The minion function caused an exception: Traceback (most recent call last):
14:25 Supermathie File "salt/minion.py", line 797, in _thread_return
14:25 Supermathie File "salt/modules/saltutil.py", line 456, in running
14:25 Supermathie File "salt/modules/saltutil.py", line 433, in _read_proc_file
14:25 Supermathie KeyError: 'pid'
14:25 Supermathie works on the other identical minions but I think there actually is a job running here.
14:26 peters-tx Supermathie, Wow, ok yah I think that's it.. " --async               Run the salt command but don't wait for a reply"  I'll test it
14:26 lietu Supermathie: um, in the future please paste things to a site like pastebin, bpaste or something
14:26 Supermathie lietu, sorry thought it was short enough
14:27 lietu well the exact "limit" depends on the channels, but it's usually a good habit to just pastebin everything longer than 1 line ;)
14:27 Supermathie Hey, wait a second… latest Windows minion version is 2014.1.10 on http://docs.saltstack.com/en/latest/topics/installation/windows.html but it says latest release is 2014.1.7… is 2014.1.10 the development (unstable) version?
14:28 SheetiS joined #salt
14:28 lietu Supermathie: the downloads for windows are 2014.1.10
14:29 Supermathie lietu, OK, good, that's what I'm running.
14:29 lietu generally speaking you would expect unstable/dev versions to be labeled clearly differently ;)
14:29 Supermathie lietu, I was going to browse the code but 2014.1.10 isn't tagged in the repo
14:30 lietu odd .. I can find the release notes from 2014-08-01
14:30 lietu would imagine they would have had the time to tag it by now ;)
14:31 viq Supermathie: what is this then? ;) https://github.com/saltstack/salt/tree/v2014.1.10
14:31 Supermathie Oh wait, git didn't pull that tags... here it is on github...
14:32 icebourg joined #salt
14:32 Supermathie urgh NVM, I thought fetch --all would fetch --tags as well. Guess not.
14:32 Supermathie Anyways, I'm getting an error...
14:33 babilen Supermathie: yes, those tags are "speshul" and will not be fatched automagically as they are on no branch
14:33 babilen You want to "git fetch --tags"
14:33 babilen https://github.com/saltstack/salt/issues/14699 fwiw
14:34 babilen Supermathie: Git would normally fetch those tags, but it did not because they are, essentially, not reachable.
14:36 Supermathie babilen, if there was a 'releases' branch on which those tags were located it would auto-fetch them?
14:36 babilen It would indeed, but that wouldn't be a sensible branch
14:37 Supermathie Anyways, it's choking on https://github.com/saltstack/salt/blob/v2014.1.10/salt/modules/saltutil.py#L433
14:37 babilen They should have been on the 2014.1 branch, but due to some speshul circumstances they were cut from internal branches that cherry-picked certain commits
14:39 ipmb joined #salt
14:40 Nazzy joined #salt
14:40 Nazzy joined #salt
14:40 dccc joined #salt
14:42 patarr hello all. I downloaded the users salt-formula and I'm getting this error when i try to high state "No matching sls found for 'systemconfigs/users' in env 'base'"
14:42 armonge joined #salt
14:42 patarr but that directory has the init.sls and all the related files.
14:46 scoates joined #salt
14:48 patarr Anyone have any ideas? The file exists! (systemconfigs/users/init.sls)
14:49 joehh joined #salt
14:49 Supermathie huh, as to my error, I have a job file in my minion's job proc directory with nothing but 107 NULs.
14:50 mpoole joined #salt
14:50 halfss joined #salt
14:50 t0ku joined #salt
14:51 jalbretsen joined #salt
14:53 Ozack joined #salt
14:54 Miouge joined #salt
14:55 ramishra joined #salt
14:55 scoates joined #salt
14:56 wendall911 joined #salt
14:57 patarr can I have a folder with an init.sls along with two other folders that have init.sls ?
14:59 kballou joined #salt
14:59 scbunn joined #salt
15:00 TheoSLC joined #salt
15:00 TheoSLC Good morning.
15:00 cym3try joined #salt
15:00 viq patarr:  systemconfig.users
15:02 srage_ joined #salt
15:02 TheoSLC Problem: 'salt-call mine.get '*' network.interfaces'  returns 0 results
15:03 Ozack joined #salt
15:09 patarr viq: where? in the top file? I have another state working where I have somefolder/statefolder
15:10 viq patarr: no, you don't. Separator for states in subdirs is . and not /
15:10 rallytime joined #salt
15:10 rojem joined #salt
15:11 Gareth morning morning
15:11 armonge joined #salt
15:11 viq patarr: and everywhere. In top.sls, in includes, etc
15:14 giannello joined #salt
15:15 patarr viq, but I do. I've always used /. Even when I wanted to execute a single state, I would do state.sls folder/statefolder
15:15 viq I'm surprised it works, because AFAIK it's not supposed to
15:16 patarr viq "No matching sls found for 'systemconfigs.users' in env 'base'"
15:16 patarr btw, users is a folder with init.sls inside, along with sudo.sls
15:16 patarr It's this formula: https://github.com/saltstack-formulas/users-formula
15:17 viq patarr: you're using master, right?
15:18 wendall911 joined #salt
15:18 giannello anyone here using the git state? it seems that git.latest does not fetch from the origin at every execution
15:19 UtahDave joined #salt
15:20 agermont joined #salt
15:20 patarr viq: of course.
15:23 totte joined #salt
15:23 ajw0100 joined #salt
15:25 Supermathie I'm trying to do the following: 1. from Python (localclient), schedule a number of jobs to run async; 2. get the full status of each job (which nodes are still running, which have finished, returns, etc) every so often 3. Print out the results once all have completed
15:25 Supermathie Having trouble with 2
15:26 perfectsine joined #salt
15:27 mway joined #salt
15:27 mway hey guys, is it possible to specify a saltenv when calling cmd.state.sls in the reactor?
15:28 mway tried passing env as a kwarg, as a key in the 'kwarg' arg to cmd.state.sls, no dice it seems
15:28 miqui how can i run /usr/bin/salt with non-root user so that the salt can write to /var/log/salt/master?
15:28 bmatt mway: saltenv='foo'
15:28 SheetiS can't pass kwargs in 2014.1 from the reactor
15:29 mway bmatt: within the reactor?
15:29 bmatt neeeeeevermind
15:29 mway SheetiS: is there a different way to pass the environment then?
15:30 SheetiS I've had to use cmd.cmd.run and target the master with "/usr/bin/salt <target> state.sls state <foo>"
15:30 SheetiS development branch looks to allow kwargs to be passed, but this was my workaround with current stable.
15:31 viq patarr: where on disk is your users/init.sls and what are your file_roots in master config?
15:31 mway SheetiS: rgr, appeciated!
15:32 SheetiS No problem.  I'm not sure that it's the right way, but it's the only way I've been able to make it work on 2014.1.7 that I have installed.
15:32 viq miqui: there's a setting in master config what user to run salt as, and I think that should be enough
15:33 patarr viq users/init.sls is at /srv/salt/systemconfigs/users/init.sls and my file_roots for base is /srv/salt
15:35 diecast joined #salt
15:35 sverrest joined #salt
15:36 stevednd I don't think I'm missing it, but are there states and modules for modifying xml documents?
15:37 jemejones joined #salt
15:37 jemejones left #salt
15:40 taterbase joined #salt
15:41 perfectsine joined #salt
15:45 jsm joined #salt
15:47 miqui thanks viq... will take a look...
15:49 wendall911 joined #salt
15:49 Ozack joined #salt
15:56 ipmb joined #salt
15:57 darkelda joined #salt
15:57 darkelda joined #salt
15:58 Supermathie Is there any sort of API available from python that provides the equivalent of jobs.print_job?
15:59 gmeno joined #salt
16:01 smcquay joined #salt
16:01 thayne joined #salt
16:03 tligda joined #salt
16:04 srage joined #salt
16:07 wendall911 joined #salt
16:07 patarr viq so no ideas?
16:07 che-arne joined #salt
16:07 Supermathie Looking at the output here - what happened to this job? Did it just never get picked up and run? http://pastie.org/private/klpkciskskx0ij6doi6k5w
16:07 cmhamill What does the 'require_reboot' argument for network.system do, exactly?
16:09 viq patarr: not really, sorry
16:10 Kakwa joined #salt
16:11 Supermathie patarr, rather than applying the network settings immediately (service network restart) it requires you to reboot the system to apply them
16:12 Supermathie patarr, https://github.com/saltstack/salt/search?q=require_reboot&amp;ref=cmdform
16:18 cmhamill ok, I see. it doesn't go ahead and reboot it for you though. thanks
16:20 mway If I'm specifying saltenv with something like, 'salt-call state.sls my.state saltenv=foo', and my.state does a jinja import e.g. '{% from otherstate/settings.jinja import settings %}' (where otherstate is included in gitfs), is it expected for my.state to fail for not being able to find otherstate/settings.jinja? Guessing highstate doesn't have this issue because of all of the pre-state stuff it
16:20 mway does?
16:23 SheetiS since this is a salt-call this is from a minion, correct?
16:23 mway yeah.
16:23 oeuftete How do I pass keyword args (like 'runas') to something like {% set foo = salt['cmd.run']('somecommand') %} ?
16:24 luckenbach joined #salt
16:24 t0ku left #salt
16:24 giannello (name='somecommand', runas='user')
16:24 SheetiS mway: without knowing more details, as long as the minion were properly synchronized, I'd expect it to be able to complete.
16:25 srage joined #salt
16:26 mway this is still part of the reactor deal from before; basically just executing a particular sls with the current environment, versus it just defaulting to 'base' since it's being called explicitly
16:26 luckenbach Can any one tell me why when looking at the events on a master I see two copies of many messages? (using salt.utils.event to do so)
16:26 scoates joined #salt
16:28 SheetiS luckenbach: I've noticed that, but one will have the original jid tag and the other will have the return tag like this:
16:28 Ryan_Lane joined #salt
16:29 SheetiS Tag: 20140808134412805924 vs Tag: salt/job/20140808134832842583/ret/<minion_id>
16:29 SheetiS I use the second tag to send an alert email if an automated event fails via the reactor and that second tag
16:30 SheetiS err rundundant department of redundancy department.
16:30 oeuftete giannello: thanks, but that's not working
16:30 luckenbach have you also noticed that the tag filter doesnt appear to work?
16:31 luckenbach I also admit that I am a scrubish python guy (perl'aholic recovering) but I went and attempted all the filters and nothing seemed to return on any of them
16:32 schimmy joined #salt
16:33 perfectsine joined #salt
16:33 SheetiS How are you implementing?  I just have a line in my reactor.conf that says"- 'salt/job/*/ret/*':" that points to my post_execution sls.
16:34 SheetiS matches on the tags for me without issue (inside of salt)
16:34 luckenbach ahh I am not collecting it via the reactor; that could be a issue
16:34 luckenbach Well, the issue I am facing
16:34 luckenbach I am just using the salt.utils.event
16:34 schimmy1 joined #salt
16:34 luckenbach and connecting tot he masterevent /var/run/salt/master
16:35 SheetiS ahh
16:35 oeuftete {% set foo = salt['cmd.run']('somecommand', runas='someuser') %} does seem to work
16:35 SheetiS so an external python script
16:35 luckenbach Yea, i am basiclly attempting to make a ghetto "master returner" for 1 given job that I need to collect data out of for audit reasons
16:36 luckenbach also VERY new to salt so just working through what is proper and what is doable
16:36 SheetiS I've been handling all my events with the salt reactor sofar
16:36 SheetiS This is what my reactor.conf in master.d looks like:
16:36 luckenbach im reading about salt reactor more indepth now
16:36 SheetiS http://www.bpaste.net/show/2hTApFBYqt4nFocPePTm/
16:36 ipmb_ joined #salt
16:39 SheetiS What I do in post-execution.sls is a little dirty, but I basically check for different 'fun' which should be the fuction called (say state.sls) and what 'fun_args' (arguments) passed to it.  This might help gives some ideas: http://www.bpaste.net/show/PRqcXjsRoklahB6lW4Md/
16:40 luckenbach starting to make a clear picture
16:40 luckenbach thanks for the help :)
16:41 luckenbach After looking at your two examples and reviewing the doc a little more seems like a reactor is the "proper" way to go in this case
16:44 halfss joined #salt
16:44 patarr viq I have an init.sls in systemconfigs folder too though. It includes the users folder which also has an init.sls inside of it.
16:45 borgstrom joined #salt
16:45 patarr Would anyone have any ideas to help me troubleshoot here? I have a folder /srv/salt/systemconfigs/users that contains the users salt-formula. Has a map.jinja, init.sls, and sudo.sls
16:45 patarr but trying to execute the state systemconfigs.users gives me "No matching sls found for 'systemconfigs.users' in env 'base'"
16:46 MrTango joined #salt
16:46 patarr I've been struggling with this for a while.
16:46 rogst joined #salt
16:46 halfss joined #salt
16:47 viq patarr: I think you may need to change in init.sls the import line , from 'from "users/map.jinja"' to 'from "systemconfigs/users/map.jinja"'
16:47 patarr viq I changed that :)
16:48 viq patarr: and does it work if you move the users dir to /srv/salt ?
16:48 patarr same with sudo.sls
16:48 patarr viq let me give that a try.
16:48 viq and of course change the import lines to what they were
16:48 viq And that salt somehost state.sls users
16:49 viq or users.sudo
16:49 patarr viq well now it works.. heh
16:49 patarr but i don't want to throw all of my states into the root state folder..
16:50 forrest joined #salt
16:50 troyready joined #salt
16:51 patarr This is quite strange. Especially since I have another folder that contains a state and that one works.
16:52 viq patarr: did you change the import file in sudo.sls as well?
16:52 diegows joined #salt
16:52 patarr yes
16:52 viq I found salt throwing such errors when it fact it couldn't find the states the state was including/depending on
16:53 smcquay joined #salt
16:53 patarr from "systemconfigs/users/map.jinja"
16:54 viq try running with debug, see where it craps out
16:54 patarr Tried.
16:54 viq and?
16:54 patarr Literally gives nothing. It just has the usual loading this as this, loading some modules, and craps out.
16:58 bezeee joined #salt
16:58 che-arne joined #salt
16:59 forrest Did you already pastebin/gist the updated states that you're using? Or is this on a highstate run?
17:00 ramishra joined #salt
17:02 gmeno joined #salt
17:06 rsimpkins left #salt
17:08 bezeee joined #salt
17:13 cpowell joined #salt
17:15 cpowell joined #salt
17:17 perfectsine joined #salt
17:24 perfectsine joined #salt
17:27 patarr forrest: high state, or state.sls, or salt-call. Doesn't matter.
17:27 patarr The state is the users-formula.
17:27 patarr But it's all for naught, I'm abandoning the formula. Salt uses "useradd" utility and it won't work in my situation.
17:27 patarr It won't add the account because it exists in LDAP, but I want to add a local regardless for fallback.
17:27 patarr And salt won't allow me to do this with user states/modules
17:28 forrest patarr, ahh yea that's a problem
17:28 forrest ldap gooooooo
17:28 cruatta joined #salt
17:29 aw110f joined #salt
17:31 jalaziz joined #salt
17:32 mechanicalduck joined #salt
17:34 rojem joined #salt
17:36 ml_1 joined #salt
17:38 transtipper joined #salt
17:39 transtipper I've got a few minions that are giving me grief...same output when launching from salt-minion from the terminal: http://pastebin.com/NGJddwJT
17:41 ericof joined #salt
17:41 UtahDave do you have something in your config file that has a date in it?   I've never seen that error before.
17:43 Gareth something schedule related in the minion config perhaps?
17:46 transtipper well, I think I just found a bug.
17:46 transtipper My computers ID was set to 4005-16-20.
17:46 transtipper for some reason, it must think that that is a date.
17:46 transtipper wild
17:46 melinath joined #salt
17:46 transtipper I commented out the ID and let it roll on the the hostfile.
17:46 transtipper works fine.
17:47 transtipper I have some minions that they are detecting localhost.localdomain. So I explicitly name them with id in my conf.
17:47 transtipper that sucks bad. if that's the case...
17:47 patarr joined #salt
17:47 patarr joined #salt
17:48 transtipper I've got some that are xxx-xx-xx instead of 4 digits in the first set that I don't think are causing problems.
17:48 forrest transtipper, salt checks for names by getting the fqdn via python
17:48 forrest any chance it's labeled that way before you assign a hostname?
17:49 transtipper yea, that works fine unless it get fqdn from dhcp...then it doesn't get to my hostname file and it gets the localblahblah name
17:49 transtipper what do you mean labeled before?
17:50 forrest when you provision a system, is the salt minion coming up before you drop the hostname onto the system? Salt's first check for the hostname is socket.getfqdn()
17:50 forrest so if that returns localhost
17:50 forrest then that could be a problem
17:51 perfectsine_ joined #salt
17:51 transtipper would setting it to come up last in the runlevel help?
17:53 ckao joined #salt
17:56 perfectsine joined #salt
17:57 perfectsine joined #salt
17:58 forrest transtipper, It might depending on how your provisioning process works, it's worth a shot at the very least
17:59 transtipper yea, I'll give it a go. I've got a healthy pool of minions out there that do this.
18:00 armonge joined #salt
18:02 SheetiS joined #salt
18:04 forrest cool
18:05 * goodwill bellybumps UtahDave
18:05 UtahDave hey, goodwill!
18:05 Ryan_Lane joined #salt
18:05 forrest Ryan_Lane, it's friday
18:06 Ryan_Lane it is indeed friday
18:09 ramishra joined #salt
18:11 laubosslink joined #salt
18:12 * UtahDave raises his hand
18:12 forrest laubosslink, they're around, what's your question?
18:13 forrest I did not, have you seen that one UtahDave ?
18:14 UtahDave no, I haven't.
18:14 UtahDave laubosslink: what version are you on?
18:15 troyready joined #salt
18:16 UtahDave huh, that's interesting.  We recently added the "listen" and "listen_in" requisites. There must be a conflict
18:16 UtahDave laubosslink: would you mind opening up an issue on github with all that info?  We'll get that fixed.
18:17 perfectsine joined #salt
18:19 UtahDave thanks, laubosslink
18:23 transtipper forrest, totally still biffing with hostnames that look like dates.
18:23 forrest transtipper, that sucks :\
18:23 rojem joined #salt
18:23 transtipper yea it does.
18:23 forrest if you open a python shell, what does it see if you import socket
18:23 forrest then do print(socket.getfqdn())
18:24 transtipper gimme a sec
18:25 transtipper localhost.localdomain
18:26 transtipper typing hostname gives me: 4017-16-20
18:26 transtipper if I put this in my minion conf as id: 4017-16-20
18:27 transtipper It barks about the date.
18:27 transtipper If I comment that out, it works fine...but it comes back to my master as localhost.localdomain
18:27 forrest yea
18:27 transtipper which is no good.
18:27 transtipper So that's why i do the id.
18:27 forrest transtipper, https://docs.python.org/2/library/socket.html#socket.getfqdn
18:27 bhosmer_ joined #salt
18:27 forrest I agree that the ID thing not accepting that value is a problem, and you should create an issue for that
18:27 transtipper i'll take a look at that in a minute...wifey is calling me...:D
18:28 forrest but maybe if you can figure out why the socket.fqdn() isn't returning the correct value, you can work around it.
18:29 SheetiS if the system hostname doesn't exist in dns, you should at least have an entry in /etc/hosts
18:29 perfectsine joined #salt
18:29 forrest SheetiS, right
18:29 mapu joined #salt
18:31 transtipper It is: 127.0.0.1       4017-16-20      localhost.localdomain   localhost
18:31 transtipper and the same is in the hostname file
18:32 transtipper err, the right hostname is in the hostname file:)
18:32 transtipper which is  4017-16-20
18:33 Supermathie forrest, transtipper: socket.getfqdn should return the first entry from the line that the 'hostname' is on in /etc/hosts (if present)… yeah.
18:33 druonysus joined #salt
18:33 Supermathie Try adding the line: 127.0.1.1 4017-16-20
18:34 jaimed joined #salt
18:34 Supermathie getfqdn logic is weird
18:34 forrest Supermathie, Right, I figured he knows where hostname data is pulled from :P
18:34 SheetiS First the hostname returned by gethostbyaddr() is checked, then
18:34 SheetiS possibly existing aliases. In case no FQDN is available, hostname
18:34 SheetiS from gethostname() is returned.
18:34 forrest yep
18:34 SheetiS does hostname -f work?
18:34 ajprog_laptop1 joined #salt
18:35 SheetiS I've had cases where hostname -f won't work unless it has it's own line in /etc/hosts like what Supermathie said.  (And if hostname -f breaks, socket.getfqdn probably will, too)
18:36 transtipper sorry sheetis, I hacked on the hosts file and removed the localhost.localdomain part.
18:36 transtipper I bounced the node and with that got, the print(socket.getfqdn()) output matches the correct hostname
18:36 transtipper which is 4017-16-20
18:37 SheetiS Wel that sounds like a good start then :D
18:37 transtipper Why would salt pick the localhost.localdomain? Is it because it assumes anything with a . in it is the true fqdn?
18:38 mechanicalduck joined #salt
18:38 bhosmer joined #salt
18:38 forrest transtipper, ok, then can you clear /etc/salt/pki/minion directory out, as well as deleting it from the master, then restart the minion and see if it tries to connect with the proper hostname
18:38 SheetiS my guess is that salt wouldn't be the one to blame.  I'm guessing that "hostname -f" run from the command line would have done the same thing.
18:38 transtipper forrest, yea...gimme a minute
18:38 SheetiS Don't forget to remove the /etc/salt/minion_id as well
18:38 forrest SheetiS, oh yea good to mention, transtipper don't forget that one as well
18:38 transtipper SheetiS, i have others doing this:) I'll try them out once I get done poking this node
18:39 forrest also remove that line from the minion conf that is erroring (and create an issue for that too if you can)
18:39 transtipper I'll remove that
18:39 forrest cool
18:39 saurabhs joined #salt
18:39 transtipper forrest, i'll kick that around a little more before I create an issue.
18:39 forrest transtipper, ok
18:40 transtipper I suppose if you had a node, trying naming it one like I said was a problem and see if it barks at you
18:40 forrest I don't have a node I can rename
18:40 forrest The way we do provisioning it's all setup and joined to salt automatically.
18:40 bhosmer joined #salt
18:46 transtipper Alright, so it registered with the correct name this time. Which is what I was expecting.
18:46 transtipper Now, I'm doing to kill it on the node, drop the key from the server, put the hostname as the id in the minion conf and see what it does.
18:47 halfss joined #salt
18:49 transtipper manfred, it really doesn't like my hostname in that configuration file: http://pastebin.com/GtbywC77
18:49 sroegner a happy Friday everybody
18:50 transtipper it hoses up reading the whole thing...doesn't even read my master line which is above the id field
18:50 UtahDave It seems that salt shouldn't try to coerce the hostname into a datetime object
18:51 SheetiS it might be a yaml thing
18:51 SheetiS yyyy-mm-dd it looks like
18:51 sroegner I seem to be running into  a problem already described in https://github.com/saltstack/salt/issues/6691
18:51 SheetiS based on the format
18:51 transtipper My config file: http://pastebin.com/SyK6nrKL
18:51 transtipper pretty vanilla is what it is:D
18:51 SheetiS try this for the id
18:51 SheetiS id: '4017-16-20'
18:51 SheetiS force it a string
18:51 sroegner executing a script that sends processes into the background makes salt-minion hang
18:52 sroegner cmd.run
18:52 sroegner has anyone seen this and managed to do something about it?
18:52 UtahDave sroegner: have you tried my workaround from that comment thread?
18:52 forrest sroegner, I think people were just using workarounds
18:52 forrest sroegner, you could try using 'at'
18:52 sroegner i looked at it and - well - see it as a last resort
18:53 transtipper harkx, That did it.
18:54 sroegner UtahDave: would i use sudo in the cmdstring to run as another user?
18:54 forrest transtipper, are you replying to people who are PM'ing you?
18:54 transtipper whoops, that was supposed to say HA
18:54 forrest oh ok
18:54 sroegner forrest: at what?
18:54 UtahDave sroegner: no, if you look in the cmd.run docs, you'll see that there is a "user" option you can pass in
18:54 swa_work joined #salt
18:54 transtipper nocturn, that was xchat autocorrecting my...thanks for nothing xchat
18:54 transtipper ahhhhh
18:54 transtipper it keeps doing it.
18:55 forrest sroegner, http://docs.saltstack.com/en/latest/ref/states/all/salt.states.at.html#module-salt.states.at
18:55 bhosmer joined #salt
18:55 forrest transtipper, I'm also using xchat, does't do that unless I tab. You might need to check settings.
18:55 sroegner UtahDave: not sure then how cmd.run calls the module?
18:55 forrest sroegner, you can do run as and everything there, but it will spawn it off, might be worth a try
18:55 transtipper I'm blaming it on my keyboard.
18:56 SheetiS transtipper: so the single quotes were the fix?
18:56 sroegner forrest: i'll take a look at that too, thx
18:56 forrest sroegner, np
18:56 transtipper Should I still create a bug report? I would assume I should. Why it parses that and get's a date is no good.
18:56 forrest transtipper, I think you should.
18:56 transtipper SheetiS, yea, that did it up right
18:56 forrest but I don't know if Salt can resolve it if it's a yaml problem
18:57 SheetiS I think it is matching in yaml.  Take a look at this: http://yaml.org/type/timestamp.html
18:57 perfectsine joined #salt
18:57 transtipper Dunno. I think as a cautionary effort, I'll wrap everything in single quotes.
18:57 SheetiS there are other places where the documentation cautions about yaml parsing and quoting things.
18:57 Supermathie yaml.load("id: 4017-16-20") → ValueError: month must be in 1..12
18:58 aberdine joined #salt
18:58 Supermathie yaml.load("id: '4017-16-20'") → {'id': '4017-16-20'}
18:58 SheetiS So definitely yaml
18:58 forrest if anything, we should add a note about it in the documentation
18:58 georgemarshall joined #salt
18:58 forrest so that people don't run into this
18:58 SheetiS Anyhow everyone take it easy.  I need to run for now.
18:58 delinquentme joined #salt
18:58 forrest later
18:58 transtipper if it looks like a date, and smells like a date, it's really a hostname
18:58 Supermathie yaml.load("id: 4017-11-20") → {'id': datetime.date(4017, 11, 20)} (for completeness)
18:59 transtipper :)
18:59 delinquentme soooo I want to run a script after all servers have been sucessfully 'spun up' post a $ salt-cloud call  .... is there anything like this wrapped up with salt? when I was instantiating the servers linearly it was perfect as it was blocking the entire time pre-server boot up
19:01 alanpearce joined #salt
19:02 druonysuse joined #salt
19:02 cmhamill left #salt
19:02 alanpear_ joined #salt
19:02 Ozack2 joined #salt
19:04 altoid joined #salt
19:05 xenoxaos joined #salt
19:08 altoid left #salt
19:10 perfectsine joined #salt
19:16 peters-tx joined #salt
19:16 ksalman i wrote a custom grains to get osmajorrelease but I am still get the result of the builtin osmajorrelease, anybody know why? https://gist.github.com/ksalman/12de430b92c49fd712cf
19:18 transtipper submitted the id issue, https://github.com/saltstack/salt/issues/14860
19:18 transtipper Thanks again everyone.
19:19 Luke joined #salt
19:21 mattmtl custom modules could only be written at the same level of hierarchy? it is possible to create subdirectories inside the custom module? after some investigation, it seems only that __init__.py is seen inside a subdir
19:23 bhosmer_ joined #salt
19:26 perfectsine joined #salt
19:26 UtahDave mattmtl: I don't know for sure. I haven't tried that. It wouldn't surprise me that we're not checking for subdirectories
19:34 buhman joined #salt
19:35 mfournier joined #salt
19:38 perfectsine joined #salt
19:39 Ozack joined #salt
19:40 mattmtl UtahDave: thanks. I will open a ticket
19:41 alanpearce joined #salt
19:43 unknown007 joined #salt
19:46 miqui joined #salt
19:47 rojem joined #salt
19:49 m1crofarmer joined #salt
19:49 ericof joined #salt
19:52 srage joined #salt
19:53 tuck1821 joined #salt
19:57 mpanetta Hey, I've got a quick question...  I have written a simple module that lets me upload public ssh keys to github, now I want to create a state module that can call it.  Where do I put the state module?
19:57 mpanetta I know that the module goes in _modules...  Is there an equiv location for states?
20:00 rojem joined #salt
20:00 SheetiS joined #salt
20:01 forrest _states :P
20:01 bezeee joined #salt
20:01 mpanetta forrest: Literally?  Or are you kidding? :P
20:02 forrest mpanetta, http://docs.saltstack.com/en/latest/ref/states/writing.html#using-custom-state-modules
20:02 forrest aka, I'm not joking
20:03 mpanetta sweet :)
20:03 mpanetta That is too easy :P
20:04 srage_ joined #salt
20:04 druonysuse joined #salt
20:05 druonysuse joined #salt
20:05 mpanetta forrest: You guys need to stop making things so logical :P
20:06 forrest mpanetta, haha, direct all praise at UtahDave and he'll pass it on.
20:06 mpanetta hehe
20:07 bud_ joined #salt
20:07 bud_ Hello everyone.
20:07 forrest hi
20:07 bud_ I want to use a reactor to highstate minion when they start.
20:08 bud_ How cand I see the output of the salt highstate run from within a reactor.
20:08 bud_ With ?
20:08 perfectsine joined #salt
20:09 bud_ If I configure the smtp returner bits on a minion how can I tell the highstate run to return using smtp_returner in the reactor?
20:09 bud_ How are others dealing with reactors and output?
20:12 Luke joined #salt
20:13 CeBe joined #salt
20:18 jalaziz joined #salt
20:18 bhosmer joined #salt
20:21 UtahDave bud_: you'll want to use the event.fire_master execution module to send whatever data you want to the reactor.
20:22 UtahDave because event.fire_master is an execution module, you'll have to use the module.run state in conjunction with that.  I believe there's an example of that in the docs.
20:28 xcbt joined #salt
20:28 tk75 joined #salt
20:29 dmick left #salt
20:30 tk75 I need to replace a string in a file I am managing with salt as it is pushed out ... what's the best way to do this? Can I do this with jinja?
20:31 bud_ UtahDave: I can't seem to understand how would that help me achieve salt 'minion' state.sls --return smtp in the reactor...
20:32 perfectsine joined #salt
20:33 forrest tk75, could you explain some more regarding what it is you need to do? Can you not just make it a managed file?
20:33 tk75 there is a string which needs to be replaced with the fqdn of the minion
20:33 delinquentme joined #salt
20:34 forrest tk75, ok, so if you target a system on the command line with salt <system> grains.get fqdn
20:35 forrest you can see it's fqdn, in a managed file you could just do var = {{ salt['grains.get']('fqdn') }}
20:36 tk75 forrest, thanks I knew it would be something simple like that
20:36 forrest tk75, yea np
20:36 forrest managed files are awesome for stuff like that
20:36 forrest just make sure you set the - template: jinja value in there, there are some examples over in the docs
20:38 UtahDave bud_: oh, sorry. I completely misunderstood you.   You just need to pass that as an argument in your reactor.  It's pretty dense. Let me pull up the docs
20:39 UtahDave bud_: I think you would add   - arg:\n  - --return smtp
20:40 druonysuse joined #salt
20:40 lude joined #salt
20:47 Gareth Does the release after 2014.7 have a code name yet?
20:48 halfss joined #salt
20:48 forrest 2015.7
20:48 forrest :P
20:48 * bmatt guesses Lithium
20:48 forrest Gareth, Hydrogen would be the next one
20:48 forrest They're just going through the periodic table
20:48 bmatt isn't 2014.7 Helium?
20:48 Gareth forrest: I thought Hydrogen was the last one.
20:49 bmatt H, He, Li, Be...
20:49 forrest Oh you're right duh
20:49 bmatt =]
20:49 forrest Lithium it is then
20:49 * Gareth fires forrest
20:49 * forrest bows down to bmatt's knowledge of the periodic table
20:49 forrest I forgot this was helium since it's been stripped from all the docs
20:56 FeatherKing can i have salt confirm the targeted minions before i run the command?
20:56 Gareth file.directory with the recurse option.  Can anyone think of a use case where you would want the owner or group of any sub directories to be different than the owner and group of the files?
20:57 forrest Gareth, can I think of it? Yes, poorly written apps
20:57 forrest but that opens up a WORLD of headache to maintain
20:58 DaveQB joined #salt
20:58 forrest Gareth, just 777 everything, clearly that's the solution
20:58 Gareth forrest: someone had filed an issue wanting to be able to have the recurse option only manage directories or files, not both.  Turned out to be an easy fix.  Starting thinking about the scenario that I just described, wondering if that would be useful.
20:58 Gareth forrest: haha.
20:58 Gareth forrest: sadly I've seen that done.
20:58 forrest as have I
20:59 forrest that's what makes it the optimal solution, duh
20:59 forrest Gareth, if it's quick to add, why not add it?
20:59 forrest Gareth, but I don't feel like it is
20:59 UtahDave FeatherKing: I usually test my targeting by using test.ping for the function, and then use the actually function I want when I'm satisfied with the match
20:59 forrest you'd have to be providing perms for each directory at that point? Or somehow 'tag' a directory as one that should have different perms?
20:59 forrest very problematic
21:00 bud_ Thanks UtahDave, I have configured smtp.conf on a minion in /etc/salt/minion.d/smtp.conf and added - arg:\n  - --return smtp in the reactor. I don't receive any email. The highstate runs, I am watching the event stream with eventlisten.py.
21:00 FeatherKing UtahDave: i feel like there could be a better way because i have like 700 minions and if i do a big group sometimes i dont get all the test.pings back and i have to go look them up
21:01 viq joined #salt
21:01 rojem joined #salt
21:01 SpeeR I'm trying to push a syslog-ng.conf to my minions, 1 out of the 4 says the state is correct, however it isn't. no errors in the minion log
21:01 FeatherKing UtahDave: i was thinking you know like when you run batch mode, it prints out "executing against x,y,z" it would be cool to print that and confirm if you wanted to
21:02 UtahDave if you add a   -v to the command it will tell you which minions didn't respond
21:03 UtahDave bud_: I probably don't have the syntax just right on that.
21:04 SpeeR ugh, nevermind... the role in the config had a - in front of it
21:04 viq joined #salt
21:04 Gareth forrest: The use case that the issue referenced was a quick addition.  I haven't attempted the other one I mentioned.  Just wondering if it's useful before I attempt it :)
21:05 forrest Gareth, fair enough. I've seen it happen enough to where I'd say it could be useful, even though at that point we're supporting poor configuration
21:05 bud_ Thanks UtahDave, I will keep on trying, I will succeed at some point :).
21:06 Luke joined #salt
21:07 bud_ I would like to let everyone know I have upgraded today from 0.17.4 to 2014.1.10 on Debian 7.5. Everything is working well so far and I see an increase in speed :).
21:08 forrest bud_, awesome!
21:08 bud_ I have about 50 minions and after I have updated the master I just salt '*' pkg.install salt-minion.
21:09 tuck1821 joined #salt
21:10 Luke joined #salt
21:12 druonysuse joined #salt
21:12 druonysuse joined #salt
21:15 Luke joined #salt
21:16 perfectsine joined #salt
21:19 FeatherKing UtahDave: I made https://github.com/saltstack/salt/issues/14866 just as a suggestion for showing the targeted minions. I really love salt but it scares me that I am one asterisk away from rebooting them all :)
21:20 smcquay joined #salt
21:27 m1crofarmer joined #salt
21:30 UtahDave bud_: :)  nice to hear.  Thanks for the report!
21:38 perfectsine joined #salt
21:39 jnials joined #salt
21:40 scoates_ joined #salt
21:40 halfss joined #salt
21:40 raul joined #salt
21:41 smcquay joined #salt
21:44 savvy-lizard joined #salt
21:45 blacked joined #salt
21:47 blacked Hi all! I trying to debug state file. What the best way to do this? It's seems like there is no possible to print variables from state.
21:48 jnials joined #salt
21:49 TheoSLC can I not use salt['mine.get'] in pillars?
21:51 jnials_laptop joined #salt
21:53 halfss joined #salt
21:56 napper joined #salt
22:01 scbunn_ joined #salt
22:06 kballou joined #salt
22:07 _r00k hey guys. i notice sometimes when i issue a command (in this case, salt '*' pkg.install iftop) it just sits there for a second and then returns a new prompt without giving individual minion feedback like a test.ping would. it seems, however, that the command worked, as now my minions have iftop.
22:07 _r00k i realize most of this stuff runs in the background and you never really need to see it work, but when I manually run something I would expect output.
22:08 forrest _r00k, your timeout is too low
22:08 forrest I answered this yesterday for someone as well..
22:08 forrest use -t 60
22:08 forrest sometimes when you have a ton of package repos to rebuild it takes a long time
22:08 _r00k forrest, thanks for the quick response, I'll try that out.
22:08 forrest _r00k, cool
22:12 ggoZ joined #salt
22:12 _r00k forrest, worked like a charm, thanks. updated the master config as well.
22:12 forrest _r00k, cool
22:12 Guest83711 hi! is anyone using salt with lxc? any advice and tips, some commands like lxc.list lxc.info work across lxc hosts, but things like lxc.create, seed or bootstrap is giving me all sorts of errors
22:13 forrest Guest83711, which release of salt are you on?
22:13 Guest83711 Helium
22:13 forrest 2014.7 then?
22:13 forrest we're running an older release, but lxcs are working correctly for us.
22:14 Guest83711 yes
22:14 forrest kiorky, are you around?
22:14 Guest83711 which release?
22:14 forrest Guest83711, 2014.1 :\
22:14 forrest which has it's own problems
22:14 forrest but we also have some custom stuff for LXCs, I was going to ask kiorky if they fixed most of the LXC bugs that were reintroduced.
22:15 ksalman left #salt
22:15 Guest83711 ok, I tried that first, but on that even basic lxc commands like lxc.list, lxc.info were not available
22:15 ksalman joined #salt
22:15 forrest Guest83711, yea, as I said we've done some custom work, that's why I'm not sure about functionality in the latest
22:15 forrest Guest83711, are you using the lxc cloud provider?
22:16 Guest83711 Yes I tried the cloud provider but its giving me a keyerror on create
22:16 forrest awesome
22:17 forrest Yea I don't know what to say then other than to file an issue if one doesn't already exist for the issue :\
22:17 forrest I haven't played with LXC at all on the new release.
22:17 tk75 joined #salt
22:18 Guest83711 Yes, I just put up a issue, hoping to make this work as LXC is fantastic and with salt will be an awesome option
22:18 Guest83711 are you also using docker
22:19 forrest Guest83711, yea LXC is awesome
22:20 perfectsine joined #salt
22:22 allanparsons joined #salt
22:22 forrest Guest83711, no we aren't
22:22 tk75 joined #salt
22:22 ingwaem joined #salt
22:23 forrest LXCs get the job done, and docker still has some problems
22:23 austincb joined #salt
22:23 Guest83711 /nick raulbe
22:23 ingwaem Greetings folks…if anyone has used the vshpere module before, do you know what format the vm_ dictionary data should be in and it’s structure?
22:26 pastacino joined #salt
22:26 Guest83711 Docker is really focused on decoupling and statelessness and that makes it somewhat complex,,  so I guess for if thats a priority, I was more fascinated by just having self contained lightweight VMs that are portable
22:27 forrest Guest83711, you already get that with LXC
22:27 forrest and you avoid all the bugs docker has
22:27 whytewolf joined #salt
22:28 whytewolf joined #salt
22:28 Guest83711 yes, and add btrfs to the fix and you can decouple and get all the space and memory saving too, at the time I was evaluating between the 2 I barely understood, but I went with lxc for simplicity
22:29 forrest yea, lxcs are awesome
22:29 Guest83711 only problem is lxc is mainly developed by Serge and Stephane from Ubuntu and support for others distros is weak, eveything works well and first on Ubuntu, like unprivileged containers now
22:30 forrest yea
22:32 jnials joined #salt
22:32 Ryan_Lane joined #salt
22:32 bhosmer joined #salt
22:39 aparsons joined #salt
22:39 jnials joined #salt
22:45 perfectsine joined #salt
22:48 melinath joined #salt
22:48 scbunn joined #salt
22:50 tuck1821 re: file.directory/recurse, I've run across a couple cases where I'd like subdirectories to be different
22:51 Luke joined #salt
22:51 tuck1821 as an example, zsh complains if one the dirs in /usr/local is g+w, but I want everything else there to be
22:51 mklauber joined #salt
22:51 taterbase joined #salt
22:51 tuck1821 it would be nice if I could do g+w, but exclude that one.
22:52 tuck1821 No idea what the yaml structure would look like, though. It feels messy.
22:53 forrest Gareth, ^
22:54 Gareth tuck1821: that shouldb't be too bad.  Make an option, exclude, then make that a list of directories to exclude.
22:54 Gareth or file.
22:54 Gareth files rather.
22:54 tuck1821 or patterns?
22:54 tuck1821 I could see that.
22:55 Gareth hm. yeah. patterns shouldn't be too hard either.
22:55 tuck1821 It can be a fine line between useful and overly complex.  :)
22:58 tk75 joined #salt
22:59 Hell_Fire joined #salt
23:03 scbunn joined #salt
23:05 Ryan_Lane joined #salt
23:05 SheetiS joined #salt
23:18 schmutz joined #salt
23:20 jnials joined #salt
23:24 imanc joined #salt
23:30 perfectsine joined #salt
23:33 jnials_laptop joined #salt
23:34 Ryan_Lane joined #salt
23:38 jnials joined #salt
23:41 colinjohnson joined #salt
23:44 bhosmer joined #salt
23:48 bezeee joined #salt
23:52 sroegner joined #salt
23:59 occupant joined #salt

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