Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-07-20

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

All times shown according to UTC.

Time Nick Message
00:02 aqua^c joined #salt
00:14 dalia joined #salt
00:15 dalia hii
00:20 primechuck joined #salt
00:36 napsterX joined #salt
00:56 quasiben joined #salt
00:57 scoates joined #salt
01:04 lpmulligan joined #salt
01:14 quasiben joined #salt
01:18 favadi joined #salt
01:42 lpmulligan joined #salt
01:45 silenth joined #salt
01:45 silenth wondering if anyone can help me track down a problem I am having deploying to ec2 using salt-cloud?
01:45 silenth I am running salt-cloud 2015.5.0 (on OSX)
01:47 ilbot3 joined #salt
01:47 Topic for #salt is now Welcome to #salt | 2015.5.2 is the latest | Please use https://gist.github.com for code, don't paste directly into the channel | 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:51 cowpunk21 joined #salt
01:51 amcorreia joined #salt
01:58 cliluw joined #salt
02:00 ajw0100 joined #salt
02:00 degrunepunkt joined #salt
02:02 ALLmightySPIFF joined #salt
02:06 favadi joined #salt
02:14 quasiben joined #salt
02:20 Dev0n joined #salt
02:20 lude joined #salt
02:28 bluenemo_ joined #salt
02:34 evle joined #salt
02:36 cowpunk21 joined #salt
02:39 breakingmatter joined #salt
02:41 murrdoc joined #salt
02:49 zz_cro joined #salt
02:52 TyrfingMjolnir joined #salt
02:59 quasiben joined #salt
03:06 tkharju joined #salt
03:08 ITChap joined #salt
03:09 scoates joined #salt
03:14 snaggleb joined #salt
03:14 snaggleb joined #salt
03:28 TyrfingMjolnir joined #salt
03:34 tkharju joined #salt
03:39 snaggleb_ joined #salt
03:47 aidin_ joined #salt
04:34 stoogenmeyer joined #salt
04:36 tmmt joined #salt
04:47 ramteid joined #salt
04:53 nzero joined #salt
05:01 akafred joined #salt
05:02 kutenai joined #salt
05:04 JonGretar joined #salt
05:05 gazarsgo joined #salt
05:05 LinuxHorn joined #salt
05:05 mikepea joined #salt
05:05 OliverMT joined #salt
05:06 mattl joined #salt
05:06 lkannan joined #salt
05:06 akitada joined #salt
05:12 jondonas joined #salt
05:14 mihait joined #salt
05:18 ramishra joined #salt
05:26 malinoff joined #salt
05:36 tcolvin joined #salt
05:39 mioli joined #salt
05:39 LyndsySimon joined #salt
05:40 Smoked_Duck joined #salt
05:40 frankS2 joined #salt
05:40 neilfse joined #salt
05:41 ramishra joined #salt
05:41 dopesong joined #salt
05:41 abele joined #salt
05:41 akoumjian joined #salt
05:41 CaptTofu_ joined #salt
05:41 mikepea joined #salt
05:42 akafred joined #salt
05:42 davedash joined #salt
05:43 danemacmillan joined #salt
05:43 napsterX joined #salt
05:44 wiqd joined #salt
05:44 jchadwick joined #salt
05:45 kutenai joined #salt
05:45 jondonas joined #salt
05:45 grepory joined #salt
05:46 EWDurbin joined #salt
05:46 catpiggest joined #salt
05:48 mattl joined #salt
05:52 goki joined #salt
05:53 gazarsgo joined #salt
05:53 supermike__ joined #salt
05:55 joeyparsons joined #salt
05:55 viq joined #salt
05:56 antonw joined #salt
05:56 shawnbutts joined #salt
06:00 soren joined #salt
06:01 aqua^c joined #salt
06:03 stoogenmeyer joined #salt
06:05 lala joined #salt
06:05 AndreasLutro joined #salt
06:07 rdas joined #salt
06:11 mbrgm__ joined #salt
06:12 Furao joined #salt
06:15 hblah joined #salt
06:16 hblah hi all, anyone able to clear up the difference between salt-ssh and proxy minions for me?  Looking at controlling juniper routers
06:18 sirex joined #salt
06:18 sirex joined #salt
06:29 subsignal joined #salt
06:29 AndreasLutro hblah: I don't know about proxy minions, but salt-ssh is just a wrapper that uploads `salt-call` to the server via SSH, then calls it remotely
06:30 julienlavergne joined #salt
06:31 hblah AndreasLutro: thank you for answering, I'm a total beginner with salt, and trying to get my head around it.  Does that mean that it just executes the whatever you have in the `salt-call` on the remote device?
06:31 stephanbuys joined #salt
06:33 AndreasLutro hblah: that is technically correct.. but what do you think is "in the `salt-call`"?
06:36 hblah AndreasLutro: caught me :-) still working that out.  I was hoping to get to the point of being able to verify the configuration matches a template.  Push out changes to routers once the template has changed etc.
06:36 slav0nic joined #salt
06:37 AndreasLutro hblah: that is something salt would probably be able to do. what is "the template"?
06:37 KermitTheFragger joined #salt
06:43 hblah AndreasLutro: junos configuration file.
06:43 AndreasLutro hblah: how many machines will you be managing?
06:44 hblah I could place various interface IPs as variables.  I came across a presentation that talked about using proxy minions, but it was a bit old.  I was wondering if proxy minions had been replaced by salt-ssh
06:44 hblah AndreasLutro: about 200 routers
06:45 AndreasLutro hblah: it's the first time I've heard about it. I use salt-ssh and it works fine, but it is quite slow compared to a master/minion setup
06:46 bougie joined #salt
06:46 AndreasLutro hblah: https://github.com/saltstack/salt/blob/develop/salt/proxy/junos.py if you use junos this is a good sign though :)
06:47 AndreasLutro I suspect you should really just try it out
06:48 hblah AndreasLutro: cro is the guy I saw do a presentation on proxy-minions
06:51 mbrgm__ joined #salt
06:55 thalleralexander joined #salt
06:59 kawa2014 joined #salt
07:06 bfoxwell joined #salt
07:11 lala left #salt
07:12 wpot joined #salt
07:15 favadi joined #salt
07:16 eseyman joined #salt
07:22 linjan_ joined #salt
07:25 dober joined #salt
07:27 joeto joined #salt
07:33 napsterX joined #salt
07:36 JonGretar joined #salt
07:37 dober joined #salt
07:37 dober joined #salt
07:38 m0nky joined #salt
07:38 akoumjian joined #salt
07:39 dober joined #salt
07:39 mikepea joined #salt
07:39 akafred joined #salt
07:41 davedash joined #salt
07:43 dober joined #salt
07:43 dober joined #salt
07:45 dober- joined #salt
07:45 gazarsgo joined #salt
07:45 mihait joined #salt
07:45 copelco joined #salt
07:47 joeyparsons joined #salt
07:47 aqua^c joined #salt
07:48 EWDurbin joined #salt
07:51 goki joined #salt
07:51 wiqd joined #salt
07:51 simonmcc joined #salt
07:51 OliverMT joined #salt
07:53 ramblinpeck joined #salt
07:54 LyndsySimon joined #salt
07:55 LinuxHorn joined #salt
07:56 Ztyx joined #salt
07:56 dober joined #salt
07:56 dober joined #salt
07:56 monkey66 joined #salt
07:56 grepory joined #salt
07:59 impi joined #salt
08:00 antonw joined #salt
08:00 mattl joined #salt
08:00 madssj joined #salt
08:03 lkannan joined #salt
08:04 neilfse joined #salt
08:04 Tritlo joined #salt
08:05 markm joined #salt
08:06 CaptTofu_ joined #salt
08:08 s_kunk joined #salt
08:09 collinanderson joined #salt
08:09 s_kunk_ joined #salt
08:09 zipkid joined #salt
08:09 frankS2 joined #salt
08:09 jchadwick joined #salt
08:10 imanc joined #salt
08:10 abele joined #salt
08:10 supermike__ joined #salt
08:10 SteamWells joined #salt
08:10 ashb joined #salt
08:11 s_kunk joined #salt
08:12 bougie how can I wait for an event in a state ?
08:13 akitada joined #salt
08:17 N-Mi joined #salt
08:18 epcim joined #salt
08:22 Ztyx joined #salt
08:23 impi joined #salt
08:29 ingslovak joined #salt
08:38 Xevian joined #salt
08:45 dopesong joined #salt
08:50 jhauser joined #salt
08:52 soren joined #salt
08:54 impi joined #salt
08:56 wnkz joined #salt
08:56 drlkf joined #salt
08:57 drlkf hello
08:57 arount joined #salt
08:58 ajw0100 joined #salt
09:07 linjan_ joined #salt
09:13 stoogenmeyer_ joined #salt
09:14 drlkf left #salt
09:15 PI-Lloyd joined #salt
09:19 mike25de hi guys ,,, can i use in the pillar top.sls some file_exists logic to include a file(pillar data) ONLY if it exists ?
09:19 mike25de i see that there is the module file_exists... but can i use that inside a pillar?
09:20 sgargan joined #salt
09:28 arount mike25de: not sure i'm good, but you should be able to add jinja lines to a pillar YAML file
09:28 arount so doing something like: {% if os.path.exists('/path/to/pillar'): %} should be do the job
09:29 arount mike25de: There is surely a way to do it with the fake salt protocole ('salt://'), but I don't like fake things so I don't use it a lot
09:31 aqua^c joined #salt
09:39 lothiraldan joined #salt
09:40 mike25de arount: thanks man
09:41 mike25de i didn't know about os.path
09:42 slav0nic_ joined #salt
09:49 dopesong joined #salt
09:49 aqua^c joined #salt
09:50 arount mike25de: os is a builtin Python package
09:59 aqua^c joined #salt
10:00 mike25de thanks arount
10:01 keimlink joined #salt
10:08 aqua^c joined #salt
10:08 flyboy joined #salt
10:13 flyboy82 hi all, anyone knows a way to force /etc/profile being parsed either by cmd.run or cmd.shell? I really need to be able to run things residing in /usr/local/bin on the minion but folder is not part of $PATH when I run cmd.run from master
10:16 EvaSDK you can pass PATH via env
10:17 EvaSDK http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.cmdmod.html#salt.modules.cmdmod.run -> env=None
10:17 EvaSDK or maybe telling the command to use a shell would be enough
10:17 flyboy82 tried it
10:18 flyboy82 python_shell=True did nothing
10:25 shnbdrtgsd joined #salt
10:25 shnbdrtgsd how do you guys synchronize between simultaneous deployments on several servers?
10:26 aqua^c joined #salt
10:26 shnbdrtgsd say, server A has to setup service 1 and server B has to setup service 2, but first server B must receive a piece of configuration from server A (through salt mine) because service 2 depends on service 1
10:27 shnbdrtgsd so far i was running state.highstate several times
10:27 shnbdrtgsd but i don't like this solution
10:27 shnbdrtgsd i could use zookeeper for that probably
10:27 AndreasLutro shnbdrtgsd: look into reactors
10:27 shnbdrtgsd AndreasLutro: thanks
10:32 ingslovak1 joined #salt
10:33 napsterX joined #salt
10:33 flyboy82 orchestration is also a safe bet
10:40 CeBe joined #salt
10:44 denys joined #salt
10:55 dopesong joined #salt
11:00 giantlock joined #salt
11:02 lothiraldan joined #salt
11:05 dopesong joined #salt
11:07 ingslovak joined #salt
11:08 mbrgm__ joined #salt
11:12 rburkholder joined #salt
11:29 aqua^c joined #salt
11:37 soren joined #salt
11:39 aqua^c joined #salt
11:51 giantlock joined #salt
11:51 quasiben joined #salt
11:54 kidneb joined #salt
12:00 dynamicudpate joined #salt
12:00 quasiben joined #salt
12:01 rideh joined #salt
12:11 linjan joined #salt
12:14 arount I think that I experimenting a bug (version 2015.5.2), not sure but when I try to use the method 'ping' of this module http://pastebin.com/qcQvBfKz I get following error http://pastebin.com/YDbpLTx5
12:14 arount as you can see in the second pastebin, I'm able to ping a minion from my master with 'salt "id" test.ping'
12:15 aqua^c joined #salt
12:15 arount but not with a module only using 'import salt.client' and 'salt.LocalClient()'
12:18 kawa2014 joined #salt
12:21 dopesong_ joined #salt
12:25 quasiben joined #salt
12:25 ben_NN joined #salt
12:25 AndreasLutro arount: why are you instantiating an entirely new client inside a module?
12:28 evle joined #salt
12:30 robothands joined #salt
12:30 julienlavergne left #salt
12:30 amcorreia joined #salt
12:32 Aidin joined #salt
12:33 ben_NN joined #salt
12:33 aqua^c joined #salt
12:34 sunkist joined #salt
12:34 zer0def joined #salt
12:36 robothands joined #salt
12:38 dergrunepunkt joined #salt
12:44 dendazen joined #salt
12:44 arount AndreasLutro: sorry for that, it's all my bad
12:44 arount one time again :(
12:45 arount That's why it's important to wait one day before submitting issues
12:46 CeBe1 joined #salt
12:47 teryx510 joined #salt
12:48 tmclaugh[work] joined #salt
12:50 furrowedbrow joined #salt
12:51 aqua^c joined #salt
12:54 jonlangemak joined #salt
12:54 yawniek joined #salt
12:58 dergrunepunkt hi, anyone with experience using salt-cloud with digital ocean?, I'm having a lot of problems to create 10 machines at once, any aideas?
13:00 aqua^c joined #salt
13:03 kawa2014 joined #salt
13:12 Aidin joined #salt
13:17 breakingmatter joined #salt
13:17 Aidin1 joined #salt
13:18 berserkir joined #salt
13:18 aqua^c joined #salt
13:20 numkem joined #salt
13:21 pcn If the issue is in the API, have you asked DO about it?
13:21 perfectsine joined #salt
13:21 primechuck joined #salt
13:26 murrdoc1 joined #salt
13:27 murrdoc1 left #salt
13:27 murrdoc1 joined #salt
13:27 bhosmer joined #salt
13:29 agend joined #salt
13:29 arount pcn: are you speaking to me ?
13:30 cpowell joined #salt
13:30 stoogenmeyer_ joined #salt
13:33 vexati0n_ left #salt
13:33 mbrgm__ joined #salt
13:36 aqua^c joined #salt
13:38 N-Mi joined #salt
13:38 quasiben joined #salt
13:41 pcn arount:
13:41 pcn arount: (sorry, lost connection for a moment) no, that was to dergrunepunkt
13:44 pcn Does anyone have documentation about what exactly salt' wheel modules are?
13:45 kaptk2 joined #salt
13:45 dergrunepunkt pcn: I raised an issue, but I wanted to know if someone had this problem before since I'm not doing anything crazy
13:46 pcn dergrunepunkt: right on, I just wanted to make sure you got them on it.
13:47 cowpunk21 joined #salt
13:47 cpowell joined #salt
13:48 murrdoc1 what problem
13:50 cpowell_ joined #salt
13:51 timoguin joined #salt
13:53 vexati0n joined #salt
13:54 vexati0n well. my saltstack farm is up to 82 servers. not huge, but not bad for a system nobody knows exists yet.
13:54 mpanetta joined #salt
13:54 aqua^c joined #salt
13:55 scoates joined #salt
13:55 murrdoc1 good job
13:55 murrdoc1 and scary job at the same time
13:55 murrdoc1 :D
13:56 jdesilet joined #salt
13:59 sroegner joined #salt
13:59 arount vexati0n: 'salt '*' test.ping | grep True | wc -l' returns 96, so I win ? \o/
13:59 derBroBro joined #salt
14:00 masterkorp Hello everyone
14:00 bfrog joined #salt
14:00 derBroBro hello
14:01 murrdoc1 eugh
14:01 derBroBro I have a question about grains :-(
14:01 murrdoc1 salt-key --out=json | jq .minions[]
14:01 murrdoc1 that gives u only the accepted minions arount , vexati0n
14:02 derBroBro I have created a custom grain and this looked like it workes as expected
14:02 derBroBro now i found out, that the script is executed multible times each "highstate"
14:02 derBroBro is this the normal behavior or a bug (worn grain)?
14:03 murrdoc1 it gets executed each time u instantiate it ?
14:03 arount murrdoc1: yep, it's too easy else :D
14:03 masterkorp I am looking into separating the production and developer networks, can you point me to any documentation on having the production and dev environments salt wise ?
14:04 murrdoc1 !saltstack environments
14:06 elfixit joined #salt
14:06 vexati0n arount: my other farm is about 1200 so technically i win. but that one isn't a secret :P
14:07 ben_NN joined #salt
14:08 arount vexati0n: Ho, I'm playing with the boss, sorry I don't knew it :p
14:09 robothands joined #salt
14:10 eliasp does anyone have a working example of using the 'base' param in grains.filter_by()? it seems to be ignored here and I can't figure out why…
14:11 murrdoc1 base param ?
14:11 murrdoc1 defautl ?
14:11 eliasp murrdoc1: no, base… available since 2015.5
14:11 eliasp murrdoc1: http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.grains.html#salt.modules.grains.filter_by
14:12 ekristen joined #salt
14:13 murrdoc1 sounds like it allows you to group grains together, like say u did os grain isntead of os_family, you could keep a map of os's to some key
14:13 aqua^c joined #salt
14:13 eliasp 'base' is similar to 'default'… the difference… it is merged instead of being used as fallback…
14:14 eliasp so 'base' will be used as default values which will be augmented by the results of the filter_by() operation…
14:14 eliasp 'default' will be used as fallback in case filter_by() ends with no results…
14:14 eliasp it is possible with quite a lot of hacks to emulate the 'base' behaviour, but I'd like to avoid that for the sake of better readable code
14:15 eliasp I'm already using those "hacks" in  few places and don't want to keep using them
14:15 murrdoc1 yeah .. you right
14:15 murrdoc1 so its a default merge dict
14:15 eliasp exactly
14:15 murrdoc1 so whatever we were using the defaults.yaml
14:15 murrdoc1 we can pass in as a param
14:15 murrdoc1 great
14:16 eliasp murrdoc1: doing that do, but that's still a bit different…
14:16 eliasp s/do/too/g
14:16 saltstackbot eliasp meant to say: murrtooc1: tooing that too, but that's still a bit different…
14:16 murrdoc1 hmm
14:16 favadi joined #salt
14:16 murrdoc1 looks the same to me
14:17 masterkorp murrdoc1: should i expect a bot to query me ?
14:17 murrdoc1 basically https://github.com/saltstack-formulas/sysctl-formula/blob/master/sysctl/map.jinja#L4-L34
14:17 eliasp when using a defaults.yml, you'd still have to merge its values somehow into your filtered grains…
14:17 murrdoc1 all those lines can now be done as one function call
14:18 murrdoc1 but instead of an update u get a merge
14:18 murrdoc1 masterkorp:  yeah !saltstack ?
14:18 murrdoc1 !saltstackbot help
14:18 masterkorp !saltstack environments
14:18 eliasp the problem here: the values I want to use as 'base' need to be determined by some Jinja logic beforehand…
14:18 * masterkorp waits
14:18 PI-Lloyd lol fail
14:18 murrdoc1 maybe its just iggy
14:18 mapu joined #salt
14:18 masterkorp nope, nothing
14:18 murrdoc1 with a second chat window
14:19 murrdoc1 who queries and manually pastes it in
14:19 murrdoc1 :D
14:19 eliasp murrdoc1: so they're not some static values I could easily dump in my defaults.yml
14:19 murrdoc1 eliasp:  true … but i dont see a use case for them , more than that , yet
14:19 eliasp murrdoc1: I'll give the approach used in your example a try… let's see how this works out
14:20 murrdoc1 works for me … like really well
14:20 eliasp … but I still believe the 'base' param is more or less non-functional here and having it working would make all those workarounds obsolete
14:20 murrdoc1 but i did one more small hax
14:20 murrdoc1 to allow for deep merging
14:20 murrdoc1 !saltstackbot module.default
14:20 murrdoc1 :|
14:20 clintberry joined #salt
14:21 dthom91 joined #salt
14:21 eliasp yeah, I need deep merging… AFAICS 'base' should do that
14:21 masterkorp Anywyas, i am accepting suggestions
14:21 murrdoc1 for /
14:21 murrdoc1 eliasp:  http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.defaults.html
14:21 murrdoc1 thats another thing they snuck in recently
14:22 murrdoc1 it auto reads in the defaults.yaml
14:22 murrdoc1 masterkorp:  suggestions for ?
14:23 eliasp murrdoc1: hmm, need to wrap my mind around that whether this changes the situation for me… thanks for the hint
14:23 napsterX joined #salt
14:24 viveksri15 joined #salt
14:25 viveksri15 hi guys. I am new to saltstack. can anyone let me know how well salt works on a WAN setup?
14:25 sunkist joined #salt
14:25 pcn viveksri15: it works fine as long as you have bandwidth for what you want to do
14:26 holyzhou joined #salt
14:26 viveksri15 i want to use it for configuration management, with very little data transfer actually
14:27 eliasp viveksri15: latency is not a problem… you just need bandwith for whatever data you want to transmit… as long as it's just about the jobs, very little bandwidth suffices
14:27 holyzhou hi , guys . who can tell me , how can i run a windows exe program in  salt state. i try use cmd.run ,but it hang there ,no result
14:27 viveksri15 great.. thanks!
14:28 eliasp holyzhou: well, if you're running an interactive application…
14:28 eliasp holyzhou: salt-minion service runs in system context… so you'll end up with a UAC dialog asking (in case a user is logged on) for permission to display the application
14:29 holyzhou nope , i test in xp
14:29 eliasp as long as no user is logged in/responds to the interactive dialog… it'll just hang
14:29 dendazen joined #salt
14:29 masterkorp I am looking into separating the production and developer networks, can you point me to any documentation on having the production and dev environments salt wise ?
14:29 eliasp holyzhou: uuuhm, XP… looks like you have a different problem
14:29 murrdoc1 masterkorp:  google saltstack environments
14:29 murrdoc1 thats one option
14:29 eliasp masterkorp: environments: http://docs.saltstack.com/en/latest/ref/states/top.html
14:29 holyzhou i can see progress in windows manager
14:29 masterkorp murrdoc1: doing that
14:30 masterkorp eliasp: looking at that
14:30 masterkorp i am looking into personal, tips and whatever, would like it too
14:30 murrdoc1 i did it in code, use a grain for environment and add/subtract states using that
14:30 murrdoc1 worksforme (tm)
14:31 aqua^c joined #salt
14:31 PI-Lloyd is there a way I can return a jid to an app when the job is triggered via reactor? for example, system 1 triggers event, master fires reactor and returns jid to server 1, server 1 looks up jid to check if job complete.... or am I looking at this the wrong way..
14:34 PI-Lloyd basicly, server1 is going to be firing off quite a few reactors events, often the same event, I want to be sure the previous reactor has finished before starting another to avoid multiple state runs/collisions
14:35 breaking_ joined #salt
14:35 quasiben1 joined #salt
14:36 Aikar joined #salt
14:36 goki_ joined #salt
14:36 mihait_ joined #salt
14:36 madssj_ joined #salt
14:36 Jimlad_ joined #salt
14:37 LinuxHorn_ joined #salt
14:37 antonw_ joined #salt
14:37 grepory_ joined #salt
14:37 bytemask_ joined #salt
14:38 kuromagi^ joined #salt
14:38 ekristen_ joined #salt
14:38 cowpunk21 joined #salt
14:38 murrdoc1 PI-Lloyd:  you can only run one state at a time
14:38 bastion1704 joined #salt
14:39 murrdoc1 all other runs will fail
14:39 bastion1704 hello, How can I delete a minion from the mine ?
14:39 joeyparsons_ joined #salt
14:39 bastion1704 client is down but info still in the mine
14:39 jcristau_ joined #salt
14:39 ventris_ joined #salt
14:39 Vye_ joined #salt
14:39 ahammond_ joined #salt
14:39 murkey_ joined #salt
14:39 muep_ joined #salt
14:39 msciciel joined #salt
14:39 silenth_ joined #salt
14:39 phix__ joined #salt
14:40 oeuftete_ joined #salt
14:40 douardda_ joined #salt
14:40 PI-Lloyd murrdoc1: exactly, so we want to get server1 to wait for previous events to finish. Hence asking about returning a reactor jid
14:40 davisj_ joined #salt
14:40 bonezed joined #salt
14:41 murrdoc1 u can run saltutil.is_running to see if there are any jobs running
14:41 analogby1 joined #salt
14:41 go joined #salt
14:41 joshin1 joined #salt
14:42 geekatcmu joined #salt
14:42 berto- joined #salt
14:42 saltstackbot joined #salt
14:42 esharpmajor joined #salt
14:42 kossy joined #salt
14:42 benvon joined #salt
14:42 pizzahead joined #salt
14:42 Laogeodritt joined #salt
14:42 gchao joined #salt
14:42 techdragon joined #salt
14:42 dustywusty joined #salt
14:42 [vaelen] joined #salt
14:42 xenoxaos joined #salt
14:42 PrincessZoey joined #salt
14:42 dthom91 joined #salt
14:42 tongpu joined #salt
14:42 Laogeodritt joined #salt
14:42 stoogenmeyer__ joined #salt
14:42 PrincessZoey joined #salt
14:42 gthank joined #salt
14:42 gthank joined #salt
14:42 kossy joined #salt
14:42 linjan joined #salt
14:42 hardwire joined #salt
14:42 Gareth joined #salt
14:42 _habnabit joined #salt
14:42 grep_away joined #salt
14:43 unusedPhD joined #salt
14:43 InAnimaTe joined #salt
14:43 go connection issues around the world?
14:43 renoirb joined #salt
14:43 TaiSHi joined #salt
14:43 cliluw joined #salt
14:43 ujjain joined #salt
14:43 ujjain joined #salt
14:43 carmony joined #salt
14:43 Deevolution joined #salt
14:43 eightyeight joined #salt
14:43 marcel joined #salt
14:43 murrdoc1 SPLITS
14:43 MK_FG joined #salt
14:43 cast_ joined #salt
14:43 lowfive joined #salt
14:44 djinni` joined #salt
14:44 holyzhou how can i stop a windows program in salt state ?
14:45 stephanbuys joined #salt
14:45 skarn joined #salt
14:45 dober joined #salt
14:45 dober joined #salt
14:45 kula joined #salt
14:45 murrd0c reb00t
14:45 murrd0c (no idea, but i got bad jokes)
14:46 pickledpig joined #salt
14:46 JoeHazzers joined #salt
14:47 ange joined #salt
14:49 impi joined #salt
14:49 Bryanstein joined #salt
14:49 aqua^c joined #salt
14:49 eliasp joined #salt
14:50 virusuy joined #salt
14:51 mbrgm__ joined #salt
14:51 zipkid joined #salt
14:52 hasues joined #salt
14:52 hasues left #salt
14:52 eliasp holyzhou: ps.kill_pid
14:53 eliasp holyzhou: or ps.pkill
14:53 jondonas joined #salt
14:54 drawsmcgraw joined #salt
14:54 adelcast left #salt
14:54 Gareth morning morning
14:54 jhauser joined #salt
14:55 _JZ_ joined #salt
14:55 JoeHazzers joined #salt
14:57 cast joined #salt
14:58 _JZ__ joined #salt
14:58 bfrog joined #salt
15:00 speriyasamy joined #salt
15:01 favadi joined #salt
15:02 adelcast joined #salt
15:03 lothiraldan joined #salt
15:04 fredvd joined #salt
15:06 Ztyx joined #salt
15:06 sdm24 joined #salt
15:06 dthom911 joined #salt
15:07 aqua^c joined #salt
15:08 JoeHazzers joined #salt
15:09 favadi joined #salt
15:12 Savemech joined #salt
15:15 nyx_ joined #salt
15:16 Tecnico1931 joined #salt
15:18 jonlangemak joined #salt
15:19 jalbretsen joined #salt
15:20 ben_NN joined #salt
15:20 robothands joined #salt
15:22 Ztyx joined #salt
15:22 edrocks joined #salt
15:22 ALLmightySPIFF joined #salt
15:24 jonlangemak joined #salt
15:25 aqua^c joined #salt
15:25 Ztyx1 joined #salt
15:26 mioli joined #salt
15:26 iggy it would be just "!help"
15:27 iggy and the salt commands are just !salt
15:27 zsoftich1 joined #salt
15:27 iggy and unfortunately, someone else has the name saltbot taken so I had to use the (mouthful) saltstackbot
15:27 bhosmer joined #salt
15:28 SheetiS joined #salt
15:28 murrd0c saltstackbot:  !help
15:29 iggy oh, and it may not respond to you since I'm the only admin
15:29 bhosmer_ joined #salt
15:30 iggy !help
15:30 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
15:30 saltstackbot iggy: Say .help <command> (for example .help c) to get help for a command, or .commands for a list of commands.
15:30 babilen Yeah, botwar!
15:31 iggy I change the command character from . to !
15:31 babilen We could call it pepperbot
15:31 murrd0c saltstackbot:  .help
15:31 iggy garlic
15:31 babilen saltstackbot: help
15:31 saltstackbot babilen: Hi, I'm a bot. Say ".commands" to me in private for a list of my commands, or see http://willie.dftba.net for more general details. My owner is iggy.
15:32 nzero joined #salt
15:32 babilen Why would one need the address character in commands/factoids?
15:32 iggy if I had a nickel for everytime someone said that...
15:32 icflournoy joined #salt
15:32 sgargan joined #salt
15:32 iggy I haven't done any factoids yet, just the docs stuff
15:33 babilen Well, it is not obvious to me and AFAIK only channels such as #ubuntu actually prefix their factoids with the address character
15:33 babilen (and as you can see, saltstackbot works quite nicely with "saltstackbot: help")
15:33 murrd0c saltstackbot: help
15:33 saltstackbot murrd0c: Hi, I'm a bot. Say ".commands" to me in private for a list of my commands, or see http://willie.dftba.net for more general details. My owner is iggy.
15:33 iggy saltstackbot: salt cmd.run
15:33 rm_jorge joined #salt
15:33 iggy saltstackbot: salt states.cmd.run
15:33 murrd0c saltstackbot: eat a cookie
15:34 murrd0c saltstackbot: have a cookie
15:34 iggy !salt states.cmd.run
15:34 saltstackbot http://docs.saltstack.com/en/latest/ref/states/all/salt.states.cmd.html#salt.states.cmd.run
15:34 babilen !botsnack
15:34 murrd0c !salt states.cmd.run
15:34 saltstackbot http://docs.saltstack.com/en/latest/ref/states/all/salt.states.cmd.html#salt.states.cmd.run
15:34 murrd0c !salt botsnack
15:34 murrd0c !salt ufail
15:34 iggy so yeah, it only seems to do the docs stuff with the command character
15:35 Brew joined #salt
15:35 iggy I'm open to suggestions
15:35 tobie_ joined #salt
15:35 tobie_ howdy
15:35 tobie_ I have a quick question regarding salt-cloud and maps file
15:35 iggy I would definitely like to do some factoids (i.e. gist? issues? etc...)
15:35 ben_NN joined #salt
15:36 murrd0c issues
15:36 murrd0c for sure
15:36 whytewolf PRs
15:36 murrd0c also the ability to add faqs
15:37 tobie_ when I make a request of say 500+ nodes that are defined in I run into limit requests
15:37 tobie_ but just answered my own question, for the record; defining pool_size under the /etc/salt/cloud does the trick
15:37 tobie_ thanks
15:37 eliasp tobie_: you could use the batch option or switch to RAET which is supposed to be able to handle bigger numbers of minions
15:37 eliasp ok
15:39 iggy he should file a bug about that salt driver, but the world may never know
15:40 sgargan joined #salt
15:40 neocid joined #salt
15:42 lothiraldan joined #salt
15:42 bhosmer joined #salt
15:42 drawsmcgraw eliasp: If tobie_ is using salt-cloud, the rate limits he/she mentioned are probably with the provider, e.g. Digital Ocean or some such.
15:43 drawsmcgraw I don't think (?) switching to RAET can help that
15:43 eliasp drawsmcgraw: he didn't make any statement where he sees any limits… could have been cloud, but also simply minion requests…
15:43 iggy yeah, the question wasn't at all clear until they said the solution they found
15:43 eliasp drawsmcgraw: but yeah, you're right…
15:44 drawsmcgraw fair enough
15:44 drawsmcgraw Also, neat with the bot, there, iggy!
15:44 aqua^c joined #salt
15:44 ben_NN joined #salt
15:46 jmreicha joined #salt
15:47 iggy yeah, feel free to let me know if anybody thinks
15:48 iggy yeah, feel free to let me know if anybody thinks of anything else it needs
15:48 Ahlee joined #salt
15:49 murrd0c "yeah, feel free to let me know if anybody thinks"
15:49 murrd0c ouch
15:49 sgargan joined #salt
15:53 aqua^c joined #salt
15:55 pcn Does anyone have some docs or some more info on what salt's wheels are about?
15:55 pcn I'm interested in having an API to admin stuff like accepting keys, which the wheels docs seems to provide, but I'm not sure how it's intended to be used
15:57 joeto joined #salt
15:57 clintber_ joined #salt
15:57 tracphil joined #salt
15:58 salts998 joined #salt
15:59 Brew joined #salt
15:59 salts998 Hello all, I'm experimenting with Salt Events. I'm able to get Presence::present, but on change Presence::change does not contain any of the disconnected minions in Lost[]
15:59 salts998 any advise?
16:00 XenophonF joined #salt
16:00 tracphil How are you handling server roles where you can't base the role on the hostname?
16:02 iggy tracphil: grains set by cloud provider metadata
16:02 aqua^c joined #salt
16:03 rideh joined #salt
16:03 XenophonF would someone with commit bits on saltstack-formulas/users-formula please take a look at https://github.com/saltstack-formulas/users-formula/pull/77?
16:03 saltstackbot [#77]title: Rework ssh_keys_pillar-related states | SSH key pairs deployed via the user's ssh_keys_pillar dict aren't...
16:03 iggy pcn: it is meant for just that, alter some sort of config on the system
16:04 iggy XenophonF: I looked at it, it looked bigger than it should have been for what the description said and there were changes that were obviously not involved
16:04 iggy (and then I forgot to comment on the issue apparently)
16:04 pcn iggy: do you know of an example out there of setting it up with guidelines to how it needs to be secured?
16:05 zmalone joined #salt
16:05 iggy pcn: aside from some of the examples of using the key wheel to authorize minions, not really
16:05 XenophonF iggy, the two templated states were changed to match the users_user_..._private_key and users_user_..._public_key states
16:06 XenophonF originally, they didn't handle the file ownership or permissions
16:06 pcn iggy is there a remote API call of some kind, or is it purely local and I need to expose the API for myself?
16:07 iggy salt-api can run wheel modules (as the example for key acceptance shows)
16:10 salts998 Is there any configuration needed on the Minion to start/stop enable events?
16:11 murrd0c nope
16:11 XenophonF i can back out the minor changes i made for clarity's or forward compatibility's sake, like pub -> public_key and iteritems -> items (iteritems doesn't exist in Python 3), or i can move those to separate commits
16:11 N-Mi joined #salt
16:11 aqua^c joined #salt
16:11 Fiber^ joined #salt
16:11 denys joined #salt
16:11 dthom91 joined #salt
16:12 salts998 what could be the reason for not getting "lost": []
16:12 salts998 the 'present' list updates fine
16:15 pcn Oh... let me look at that again
16:18 bhosmer joined #salt
16:19 xmj joined #salt
16:19 xmj morning
16:19 xmj what's the grain that gets me the OS (`uname`) a salt-minion is running on?
16:19 zsoftich1 joined #salt
16:20 breakingmatter joined #salt
16:20 aqua^c joined #salt
16:20 stoogenmeyer__ joined #salt
16:20 xmj 'os' ?
16:21 manfred the os grain is from the core.py grains
16:21 manfred https://github.com/saltstack/salt/tree/develop/salt/grains
16:21 berserkir xmj, are you looking for flavor?
16:22 xmj nop
16:22 cowpunk21 joined #salt
16:22 xmj manfred: thanks
16:22 xmj been a while.. :-)
16:23 pcn xmj I find myself using 'salt-call grains.items' a lot
16:23 manfred https://github.com/saltstack/salt/blob/develop/salt/grains/core.py#L1227
16:23 xmj pcn: eh, i've been stuck in ansible world the last few months
16:23 xmj will be there for another month or two (:
16:23 xmj anyway. thanks!
16:23 xmj left #salt
16:23 N-Mi joined #salt
16:23 N-Mi joined #salt
16:27 jaybocc2 joined #salt
16:28 iggy salt-call -g is useful too
16:28 agend joined #salt
16:32 murrd0c basepi:  is there a way to mod_aggregate apt-get update calls ?
16:32 murrd0c or iggy
16:32 aparsons joined #salt
16:32 murrd0c we are doing upto 4 apt-get update calls
16:32 murrd0c and its painful
16:33 basepi Why are you calling update explicitly? The apt module already is designed to only call it once per state run. If you add repos then you can explicitly call it, but otherwise you shouldn't need to
16:33 geekatcmu Oh, there's a grain for that?  I should use that for my stuff instead of "import platform;platform.uname()[1]"
16:33 murrd0c basepi:  pkg.repo managed is calling it on every repo that has a state
16:34 evidence joined #salt
16:34 murrd0c whether or not the repo is added or not
16:34 iggy I think that's what the require_in note in pkgrepo is about
16:35 iggy but yes, I see more apt-get update's than I'd expect
16:35 anotherZero joined #salt
16:35 murrd0c the require_in doesnt work well with mod_aggregate
16:35 iggy (and don't get me started on salt-bootstrap that calls apt-get update like 10 times... to install salt from git)
16:35 basepi iggy: well, it does have to install the deps, but yes, it calls it too many times. =)
16:36 basepi murrd0c: calling it whether it changed or not sounds like a bug.
16:36 basepi Honestly I haven't really used mod_aggregate yet
16:36 basepi So I'm not super familiar with how it works.
16:36 murrd0c pkg.get_repo seems to update each time
16:38 aqua^c joined #salt
16:43 KyleG joined #salt
16:43 KyleG joined #salt
16:44 amcorreia joined #salt
16:44 aparsons joined #salt
16:45 iggy spm should have a wheel module
16:45 iggy so saltpad can add/remove formulas
16:45 drawks left #salt
16:46 murrd0c that sounds bad
16:47 iggy you're no fun
16:47 murrd0c but we need it
16:47 murrd0c right meow!
16:48 virusuy left #salt
16:57 aqua^c joined #salt
16:57 simmel joined #salt
16:59 murrd0c !salt state.file
16:59 saltstackbot http://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html
17:00 dendazen joined #salt
17:01 dthom91 joined #salt
17:05 hal58th_ joined #salt
17:06 aqua^c joined #salt
17:07 dewdrop joined #salt
17:07 stanchan joined #salt
17:07 mordonez joined #salt
17:08 khaije|io joined #salt
17:08 murrd0c late
17:08 mordonez joined #salt
17:09 forrest joined #salt
17:13 kidneb joined #salt
17:14 bfrog joined #salt
17:15 aqua^c joined #salt
17:17 bhosmer_ joined #salt
17:18 ben_NN joined #salt
17:19 Edgan joined #salt
17:23 icflournoy joined #salt
17:24 bhosmer_ joined #salt
17:25 vaspiros joined #salt
17:31 DutchmanDavid joined #salt
17:31 riftman joined #salt
17:32 jonlangemak joined #salt
17:32 aqua^c joined #salt
17:34 theologian joined #salt
17:39 kidneb joined #salt
17:41 dthom91 joined #salt
17:42 tmclaugh[work] joined #salt
17:44 khaije|io is there a way to reference map.jinja using a state-relative URL?
17:44 ajw0100 joined #salt
17:45 khaije|io it looks like the 'salt://' utility is part of my answer but not sure if I'm understanding it correctly
17:46 iggy you can use {{ sls }} and a couple other jinja variables, but you'll notice none of the formulas do that... for good reason
17:47 davisj_ Greetings, I've read that by using the #!py renderer you can generate pillar data without doing a full blown ext_pillar. Does anyone here know if the functions in such a #!py pillar need to return yaml, json, a dictionary?
17:47 edrocks joined #salt
17:49 babilen davisj_: You implemnt run() and return a dictionary from there. That's all you need.
17:49 khaije|io iggy: what is that good reason?
17:50 davisj_ babilen: sweet, thanks!
17:50 spookah joined #salt
17:50 khaije|io it seems like it would allow for better and tidier refactoring
17:51 aqua^c joined #salt
17:54 clintberry joined #salt
17:54 jaybocc2 joined #salt
17:56 cowpunk21 joined #salt
17:58 quasiben joined #salt
17:59 clintber_ joined #salt
18:06 bfrog joined #salt
18:09 aqua^c joined #salt
18:09 ntropy what is the tool that generates salt docs from the comments in source?
18:09 primechu_ joined #salt
18:09 ntropy i mean the docs that appear on http://docs.saltstack.com/
18:12 zsoftich1 joined #salt
18:12 dthom91 joined #salt
18:13 nzero joined #salt
18:14 dthom91 joined #salt
18:15 icflournoy joined #salt
18:15 baweaver joined #salt
18:17 iggy ntropy: sphinx
18:17 iggy khaije|io: version differences, constant ugly parsing of paths, etc...
18:18 mbrgm__ joined #salt
18:19 bhosmer joined #salt
18:19 Akhter joined #salt
18:20 zsoftich1 how do you set http_proxy for salt file.managed?
18:21 ntropy iggy: thanks
18:22 zsoftich1 I am seeing this open issue: https://github.com/saltstack/salt/issues/8177
18:22 saltstackbot [#8177]title: Support http_proxy/https_proxy for sources | For example, a file.managed with source pointing to a file on a HTTP location will not work if you are behind a proxy....
18:24 iggy looks like they aren't supported, cmd.run the fetch and go from there
18:27 aqua^c joined #salt
18:29 X67r joined #salt
18:30 zsoftich1 gross
18:31 stomith joined #salt
18:31 iggy working > pretty
18:31 Akhter Hey guys, quick question, I'm trying to create a salt state that terminates an instance that has been up for longer than 7 minutes.  I've created the following, however the instance is not terminated and output doesn't suggest any changes were performed.
18:32 Akhter I wonder if someone can tell me what I'm doing wrong or if there is an easier way.
18:32 Akhter https://gist.github.com/AkhterAli/bfb43b403ea563fa8aca
18:33 iggy unless is just a command
18:33 napsterX joined #salt
18:34 iggy not a module.func+opts
18:34 Akhter iggy: I can't use the return code of the shell string then?
18:34 Akhter Oh, well then, I'll have to find another way, thanks.
18:34 iggy take out the cmd.run and it should work
18:35 Akhter k, one sec.
18:35 iggy s/work/be closer to what you want/
18:35 saltstackbot iggy meant to say: take out the cmd.run and it should be closer to what you want
18:38 babilen ugh, that is a horrible "feature"
18:39 babilen s/horrible/s\/recursive\//
18:39 saltstackbot babilen meant to say: ugh, that is a s/recursive/ "feature"
18:39 dthom91 joined #salt
18:42 babilen iggy: Could you turn that ^^^ off ?
18:43 iggy trying
18:44 Akhter iggy: Thanks.  That would probably work if I didn't run into this issue now.  https://gist.github.com/AkhterAli/ce62d02c11971bb80de0  I'll continue to diagnose and see why I'm getting a permissions issue.
18:45 iggy is it executable? (hint, no, you set mode 644)
18:45 aqua^c joined #salt
18:45 Akhter Yeah, I just noticed that and changed it
18:46 dopesong joined #salt
18:46 numkem joined #salt
18:48 rap424 joined #salt
18:49 murrdoc joined #salt
18:50 forrest iggy: Been on vacation for two weeks, what's with that bot
18:50 iggy wip
18:50 agend joined #salt
18:50 Bryson joined #salt
18:51 iggy thought it could be useful instead of me having to constantly parrot the same answers repeatedly
18:51 ALLmightySPIFF joined #salt
18:57 forrest heh
18:58 wendall911 joined #salt
18:58 kidneb joined #salt
19:02 cowpunk21 joined #salt
19:03 aqua^c joined #salt
19:07 bhosmer joined #salt
19:09 sethkush joined #salt
19:13 aqua^c joined #salt
19:13 cowpunk21 joined #salt
19:16 ajw0100 joined #salt
19:18 KyleG1 joined #salt
19:18 bhosmer joined #salt
19:22 ekristen so is consul pillar data not officially released yet?
19:22 Gareth in develop branch.
19:23 neocid joined #salt
19:27 iggy Ubuntu 15.10 will have py3 default
19:31 aqua^c joined #salt
19:31 baweaver joined #salt
19:34 dthom91 joined #salt
19:34 s_kunk joined #salt
19:36 napsterX joined #salt
19:37 babilen iggy: That simply means that they won't install py2 by default, but it would still be in the archive and "python" still gets you py2. It is overdue, but I don't really expect any major problems with that. Debian/Ubuntu aren't going to disregard PEP 394 like Arch did.
19:38 babilen (about time really)
19:38 iggy the pep just says "for the time being"
19:39 iggy (and it's from 2011... one could argue that "the time being" has passed)
19:40 iggy I didn't see anything about python continuing to represent py2, I wouldn't expect that (having not read pep 394 before)
19:40 babilen There is no good reason to change that recommendation. All it would achieves is breaking a bazillion old scripts.
19:40 iggy if there's no py2 installed, then they'll break anyway
19:41 iggy (as there won't be a "python" in the path)
19:41 babilen No, you would, naturally, have to install their dependencies.
19:41 iggy you give people more credit than they deserve
19:42 babilen Well, I am using Debian and know that they won't do something that braindead. :)
19:42 iggy *cough*systemd*cough*
19:42 * iggy runs
19:42 whytewolf lol
19:42 babilen And yes, I would expect people to be able to install the interpreter they want to use :D
19:42 babilen systemd was a very reasonable decision and I am quite happy about it to be honest
19:43 babilen (but lets not have *that* discussion again)
19:43 babilen But I will note that you would have preferred upstart ;)
19:43 ALLmightySPIFF joined #salt
19:44 iggy I always liked slackware's init system
19:44 whytewolf you mean the BSDinit?
19:45 ALLmight_ joined #salt
19:45 whytewolf I liked the thought of it. but hated managing it.
19:45 whytewolf [coarse I havn't touched slackware since slackware 7
19:47 sethkush Can anyone help me with a grains problem?
19:47 babilen Just the other day one of the junior admins was very surprised when he asked me how to set the umask for nginx on jessie and I told him that he can just create a config file in /etc/systemd/system.conf.d/ with exactly the entries he wants to override in the default unit file.
19:47 babilen sethkush: Not if you don't tell us what it is ;)
19:47 sethkush I add a role with "salt 'minion-0' grains.append roles test"
19:48 * babilen is out
19:48 sethkush but when I do "salt '*' grains.item roles" it's not there
19:49 aqua^c joined #salt
19:49 ALLmightySPIFF joined #salt
19:49 peters-tx joined #salt
19:49 whytewolf sethkush: is the roles grain already there just doens't have the new item? and is the grain already a list. if not. add convert=True
19:50 kidneb joined #salt
19:51 sethkush roles exists, I just tried with convert=True, and it still didn't work
19:52 sethkush it doesn't give an error or anything, the role just disappears when I use "salt '*' grains.item roles"
19:53 sethkush Is it anything to do with the fact that I configured it in /etc/salt/minion instead of /etc/salt/grains?
19:53 lexter joined #salt
19:54 whytewolf yes.
19:54 sethkush ok, thanks
19:55 whytewolf if it can be configured outside of the config file. it is typically best to do it outside of the config files
19:56 sethkush It works now, thank you for your time and advice.  I'll remember that.
19:56 An_Innocent_Per joined #salt
19:57 An_Innocent_Per left #salt
19:58 tracphil frustrated with Chef and I don't have Salt installed to test with at the moment, but looking to make roles work via pillar data. Will this work or am I way off base https://gist.github.com/tracphil/efd5aab53875789727a1
19:58 aqua^c joined #salt
19:58 N-Mi joined #salt
19:59 bhosmer joined #salt
19:59 tracphil I wish gists with multiple files would be in the order you paste them :\
19:59 babilen sethkush: You might want to keep roles in a (external?) pillar as there really is no good reason to store that data *on* the minion. How do you plan to manage that information anyway?
20:02 babilen tracphil: There is http://docs.saltstack.com/en/develop/ref/pillar/all/salt.pillar.file_tree.html#module-salt.pillar.file_tree which does this nicer, but I don't like that it conflates targeting and data. Your scheme will also become a nightmare if you have a lot of minions of which many share the same roles.
20:03 tracphil babilen: thanks for the link, I will check it out!
20:03 baweaver joined #salt
20:04 tracphil when I was evaluating salt before I was setting grains on the  minion with a minion role, but was told pillar was a better way of doing it.
20:04 babilen You could, for example, use http://docs.saltstack.com/en/develop/ref/pillar/all/salt.pillar.stack.html#module-salt.pillar.stack and maintain lists of minions → roles (or vice versa!) or just use a database as external pillar to begin with.
20:05 tracphil oh, that first link looks good
20:05 tracphil so far
20:05 babilen Well, you can naturally use grains for that *but*: 1. There isn't really a good reason to store that information in a distributed manner 2. You cannot trust grains from your minions so you cannot rely on them being correct (which is a problem if you want to target sensitive states/data by that)
20:06 tracphil Yeah, #2 is why I pulled the plug on that idea
20:07 nzero joined #salt
20:10 pixelfields joined #salt
20:11 cliluw Does sys.list_modules also list state modules?
20:12 bmac2 joined #salt
20:14 Deevolution Is there any way to associate all of the logs from a single command together?  I'm struggling with any common data that would span all of the lines that would encompass a given action (say application of a single state).  (I'm only speaking of minion logs, not trying to correlate the minion and master logs together).
20:16 twobitsprite joined #salt
20:16 bjweaver joined #salt
20:16 aqua^c joined #salt
20:17 twobitsprite I'm having a problem with the salt-api... when I call client.cmd_iter and set the expr_form kwarg to 'list', it doesn't match any minions, despite the fact that I've verified the minion ids with saltkeys.name_match
20:17 twobitsprite I'm running 2015.5.0
20:21 dthom91 joined #salt
20:21 soren joined #salt
20:22 stoogenmeyer__ joined #salt
20:22 zsoftich1 joined #salt
20:24 iggy exact command?
20:25 twobitsprite ret_iter = client.cmd_iter(tgt, saltcmd, args, expr_form=expr_form, timeout=300)
20:25 aqua^c joined #salt
20:26 twobitsprite tgt is a python list with minion_ids, saltcmd in this case is 'test.ping', args is [], expr_form is 'list'
20:26 twobitsprite the client object is just a salt.client.LocalClient object
20:27 kidneb joined #salt
20:29 ALLmightySPIFF joined #salt
20:29 iggy try tgt.join(',') ?
20:29 iggy not sure if it takes a list or a string
20:34 murrdoc twobitsprite:  read the existing code for the mange runner
20:34 murrdoc it does that already
20:35 twobitsprite murrdoc: does what already?
20:35 twobitsprite use a list?
20:35 murrdoc look at manage.up function
20:35 murrdoc it does a ping test for all minions
20:35 murrdoc using the local cmd client
20:36 dthom91 joined #salt
20:37 bssd joined #salt
20:37 napsterX joined #salt
20:40 tiadobatima1 joined #salt
20:44 aqua^c joined #salt
20:49 kidneb joined #salt
20:50 cowpunk21 joined #salt
20:56 giantlock joined #salt
20:59 sunkist1 joined #salt
21:00 nzero joined #salt
21:02 aqua^c joined #salt
21:02 baweaver joined #salt
21:03 spookah joined #salt
21:09 crazyfrench joined #salt
21:09 crazyfrench I'm trying to write a custom renderer and putting it in _renderers
21:09 crazyfrench it doesn't work. I'm trying to understand the code
21:10 crazyfrench where is /srv/salt/_renderers/ being listed and where are files imported?
21:10 crazyfrench the only relevant occurence of _renderers I found was in salt/client/ssh/state.py
21:11 aqua^c joined #salt
21:13 lothiraldan joined #salt
21:14 kidneb joined #salt
21:15 ThomasJ joined #salt
21:16 MaZ- joined #salt
21:17 sunkist joined #salt
21:18 edrocks joined #salt
21:19 iggy did you run sync_all?
21:19 crazyfrench iggy I did
21:20 aqua^c joined #salt
21:21 baweaver joined #salt
21:21 tiadobatima1 hi @iggy, guys... Is there a process to ask the saltstack Gods to review/merge pull requests?  Or just submit the PR, go to the Winchester, have a nice col pint, and wait for all merged code to blow over? :)
21:22 whytewolf tiadobatima1: enjoy your pint
21:23 whytewolf tiadobatima1: http://docs.saltstack.com/en/latest/topics/development/contributing.html
21:23 tiadobatima1 Cool. Thanks whytewolf. Will have a couple for you guys then
21:24 iggy tiadobatima1: for salt proper? or formulas?
21:24 twobitsprite iggy: looks like the problem is client.cmd doesn't like False in the list of minions :P ... forgot to filter out the minion ids that didn't resolve in saltkeys.name_match
21:24 tiadobatima1 in this particular case the docker formula
21:25 cpowell joined #salt
21:25 iggy tiadobatima1: then go ahead and send it, the formula guys are usually pretty quick
21:26 iggy unless you try to bundle a bunch of unrelated crap into one PR
21:27 tiadobatima1 Awesome! Just making sure there's no extra step.I sent it last Friday. Thanks!
21:29 cowpunk21 joined #salt
21:29 iggy url?
21:30 keimlink joined #salt
21:31 viq joined #salt
21:31 iggy ugh, why would someone have committed that formula in the first place if it required an outside formula
21:31 tiadobatima1 https://github.com/saltstack-formulas/docker-formula/pull/40
21:32 murrdoc i didnt merge (i hope)
21:32 murrdoc yay i didnt
21:32 tiadobatima1 I removed that requirement in a previous PR
21:34 * iggy points the finger at forrest
21:34 forrest what?
21:34 forrest which part are you guys complaining about on that PR?
21:34 iggy adding a dependency to a formula that isn't in saltstack-formulas
21:35 forrest where is that happening? I must have overlooked it
21:35 iggy https://github.com/saltstack-formulas/docker-formula/commit/b6b3a83f590aab76b719e773f197757388b4f292
21:35 * iggy now remembers why he didn't commit tiadobatima1's PR
21:35 geekatcmu forrest gets the cheese hat.
21:36 forrest iggy your link was to PR #1
21:36 forrest where in pull 40 is there a reference to an external repo?
21:36 iggy that's where it was removed
21:37 forrest I'm still confused
21:37 forrest 40 isn't even merged
21:37 napsterX joined #salt
21:38 forrest you're talking about? https://github.com/saltstack-formulas/docker-formula/commit/b6b3a83f590aab76b719e773f197757388b4f292#diff-88b99bb28683bd5b7e3a204826ead112R29
21:38 tiadobatima1 I think I removed that dependency on #39, but close enough
21:38 iggy correct, that's where I saw that at one point someone added the dependency on an outside formula
21:38 aqua^c joined #salt
21:38 iggy which reminds me, I need to go revert a bunch of salt-formula PRs
21:39 forrest Isn't that from the very first commit though?
21:39 forrest like the one they provided before the formula existed?
21:39 iggy I don't know, I didn't look that closely at the history
21:39 iggy just enough to find out who to blame ;)
21:39 * forrest shrugs
21:39 forrest Pretty sure that was the initial PR that created the repo
21:41 iggy no, that added 1 specific state file (from what I can tell)
21:41 iggy don't really care anymore
21:41 forrest lol okay
21:41 tiadobatima1 smart move iggy... blaming is by far the best part of this job! :)
21:41 iggy tiadobatima1: hopefully someone else merges your stuff, because that formula is on my ignore list
21:41 forrest excuse me good sir, I believe you are paid for a 'job
21:42 forrest tiadobatima1: I'll merge it, no one has complained about it, and it looks okay to me
21:42 tiadobatima1 rephrasing: blaming is by far the best part of slave labour! :)
21:42 forrest done
21:43 tiadobatima1 ...if you're allowed to do so :)
21:43 unholycrab joined #salt
21:43 forrest tiadobatima1: I'm waiting for the buzzfeed post on comparing open source contributions to slave labor
21:43 tiadobatima1 thx forrest :)
21:43 tiadobatima1 lol
21:43 forrest tiadobatima1: Yeah np, thanks for updating the pillar example.
21:44 jaybocc2 using py renderer for a reactor SLS file, can anyone confirm for me how to access the data object? is it just data or is it context['data']
21:44 jaybocc2 data would be passed to jinja through context but not sure in py renderer
21:48 tiadobatima1 Cheers forrest, iggy... As time permits I'm gonna slowly try to get that formula in better shape. Lots can be improved there
21:48 forrest tiadobatima1: Thanks! Contributeions are appreciated.
21:48 forrest *contributions
21:49 tiadobatima1 anyways... on the docker subject:  How active is this: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.dockerio.html?
21:50 forrest tiadobatima1: https://github.com/saltstack/salt/blob/849f792ca63a22bc4d3138ed7ae41209317d2217/salt/modules/dockerio.py
21:50 forrest and https://github.com/saltstack/salt/blob/5840c2e06bd6e149e04f786bf759603f573fb3c1/salt/states/dockerio.py
21:50 forrest so somewhat active looking at the history
21:54 tiadobatima1 I was looking at docker-py library which that module depends on... there are a few things that I'm not a big fan of
21:56 aqua^c joined #salt
22:05 aqua^c joined #salt
22:06 ajw0100 joined #salt
22:09 zsoftich1 joined #salt
22:09 jaybocc2 docker-ng is the new hotness in devel
22:09 iggy https://github.com/saltstack-formulas/salt-formula/pull/156
22:09 iggy murrdoc: ^
22:11 saltycharles joined #salt
22:11 murrdoc merged
22:12 iggy danke
22:13 murrdoc np
22:13 murrdoc its a big button
22:13 * murrdoc can push it
22:13 murrdoc push it real good
22:13 iggy I'm going to need to see more of that enthusiasm in the future
22:13 sk_0 joined #salt
22:13 edrocks joined #salt
22:14 murrdoc https://www.youtube.com/watch?v=vCadcBR95oU
22:14 tiadobatima1 @jaybocc2: cool!
22:15 tiadobatima1 are you a part of the docker-py gang?
22:20 amcorreia joined #salt
22:22 geekatcmu So, I'm trying to write/use a runner.
22:22 intel joined #salt
22:22 geekatcmu The docs online don't say anything about "can only have a single arguement" or "must parse a string" or anything like that.
22:22 geekatcmu Are there any real docs on it?
22:22 geekatcmu (assuming I want to use the runner via salt.publish.runner)
22:23 aqua^c joined #salt
22:24 baweaver joined #salt
22:26 jaybocc2 tiadobatima1: we are using salt 2015.5.2 (Lithium) which still depends on docker-py... so yes? i am not a contributor to much of anything besides my company
22:27 saltycharles geekatcmu: not quite documentation but a slew of examples - https://github.com/saltstack/salt/tree/develop/salt/runners
22:27 geekatcmu yeah, I've got the repo up
22:28 geekatcmu And all the ones I've read so var seem to take all kinds of arguments.
22:28 geekatcmu So, I'm guessing this must be a limitation of salt.publish.runner.
22:29 geekatcmu It's kind of irritating how hard it seems to be to "call this function on the master, give the value to the minion"
22:29 tiadobatima1 cool... thanks jaybocc2. I'm gonna try talking to them... there's at least one fairly important option to docker run that's not present in the library...
22:31 bfoxwell joined #salt
22:33 saltycharles geekatcmu: are you using salt-call or salt-run?
22:33 geekatcmu salt-call on the minion
22:33 cberndt joined #salt
22:34 saltycharles I just saw a mention of salt-run working without issue... granted it's not from the minion.
22:35 geekatcmu yeah, I can use salt-run just fine, but not from the minion
22:35 geekatcmu And I kind of need this on the minion
22:35 geekatcmu My every attempt to do this all on the master side has ended up with rendering errors about State objects not being iterable.
22:36 geekatcmu My assumption is that all the rendering actually happens on the minion.
22:36 saltycharles hm... no data?
22:36 geekatcmu WHich, yeah, isn't every going to work.
22:36 geekatcmu No, the function never gets called at all.
22:36 saltycharles ah
22:36 geekatcmu (on the master)
22:37 geekatcmu Basically, the master has access to a resource which is barred to all the clients
22:37 saltycharles can you reference it in pillar?
22:37 geekatcmu The clients need to be able to extract some data from that resource, and for a variety of reasons, it's not expressible as a grain.
22:37 saltycharles or am I missing the point entirely
22:37 murrdoc both
22:38 murrdoc no
22:38 napsterX joined #salt
22:39 geekatcmu So, in this particular case, the data we're looking for is "what hosts are configured as zookeeper servers for a particular zookeeper service"
22:39 geekatcmu The guys who manage access to the resource in question have chosen to make it available via runners only.
22:40 murrdoc runners are wrappers for salt.util and salt.local.cmd libraries
22:40 murrdoc not much else
22:40 Aidin joined #salt
22:40 geekatcmu And piping from the master to the minion
22:41 theologian joined #salt
22:41 aqua^c joined #salt
22:43 breakingmatter joined #salt
22:44 ayee Does anyone have saltstack code they recommend, to say easily deploy a 3 node etcd cluster that is HA?
22:44 ayee or an even better question, what is a good system for finding saltstack 'recipes' for clusters or arbitrary things I want to deploy?
22:45 geekatcmu you're looking for "formulas"
22:46 saltycharles https://github.com/saltstack-formulas
22:46 saltycharles geekatcmu: did they use a specific type of runner or write their own?
22:46 geekatcmu They wrote their own runner
22:47 geekatcmu But the only functionaliy exposed to *minions* takes a single argument, which is what salt.publish.runner will use
22:48 saltycharles gotcha
22:48 geekatcmu Is the salt CLI parser easy to access?
22:48 geekatcmu If not, I'll just pickle/marshall my args and ship them that way.
22:49 ayee saltycharles: There is no etcd formula.
22:49 geekatcmu I just kind of hate that because it means the endpoint won't be useful outside of SLS files, unless people are good with cut-and-paste marshalled data on the CLI.
22:55 KyleG joined #salt
22:55 KyleG joined #salt
22:59 aqua^c joined #salt
23:01 * honestly nuzzles
23:01 honestly oh ffs
23:01 honestly how did that even
23:01 cliluw I'm writing a custom state module. How come I can't import my custom execution module by doing something like "from salt.modules import my_custom_execution_module"?
23:01 honestly EWRONGCHAN
23:05 dthom91 joined #salt
23:06 whytewolf huh, never even noticed that ifttt is a new state that is coming in 2015.8
23:06 whytewolf would have thought it would be a returner though
23:08 whytewolf cliluw: https://docs.saltstack.com/en/latest/topics/development/dunder_dictionaries.html#salt
23:09 monkey66 joined #salt
23:09 aqua^c joined #salt
23:09 cliluw whytewolf: Oh, I know about the dictionary. I was just wondering why I couldn't do it the more straightforward way.
23:10 cliluw I see some of the built-in state modules are able to import the built-in execution modules using "from salt.modules import MODULE".
23:11 geekatcmu OK, I think I'm doing this bass-ackwards.
23:12 geekatcmu salt.publish.runner, if run from the client, will not actually cause the function to be run on the master and then the result returned to the minion, will it?
23:14 saltycharles geekatcmu: correct
23:16 monkey66 joined #salt
23:16 khaije|i` joined #salt
23:21 geekatcmu So, that makes no sense.
23:21 geekatcmu I can call salt-run on the master, and get back a response.
23:21 geekatcmu On the client ... how do I get the runner to run and return a result?
23:25 saltycharles have you tried salt-call with a --local switch?
23:26 geekatcmu "No access to master."
23:27 murrdoc runners live on masters
23:27 aqua^c joined #salt
23:27 geekatcmu yeah
23:28 geekatcmu I get that
23:28 geekatcmu So, from the minion, there is no way to query the master for data?
23:28 manfred there is
23:28 geekatcmu how?
23:28 manfred what are you querying?
23:28 murrdoc salt-call pillar.items
23:28 manfred ^^
23:28 manfred make a custom pillar
23:28 murrdoc salt-call grain.items
23:28 manfred or pull from config
23:28 geekatcmu so, pillars or get out
23:29 manfred or if you want information from other minions, use the salt mine, or the peering system
23:29 geekatcmu That's not really going to work so well either.
23:29 murrdoc have u looked at the runners ?
23:29 murrdoc like the code
23:29 geekatcmu the salt mine is broken for multi-master
23:29 manfred geekatcmu: what information are you looking for?
23:29 geekatcmu we're multi-master.
23:29 geekatcmu Otherwise the salt mine would be perfect.
23:29 manfred geekatcmu: http://docs.saltstack.com/en/latest/ref/peer.html
23:29 manfred use the peering system
23:29 geekatcmu yeah, that pages is up in front of me right now.
23:30 geekatcmu just a second, let me find/edit my write up on this.
23:31 manfred turns out you can even run runners on the master using peering
23:31 manfred https://github.com/saltstack/salt/blob/develop/salt/modules/publish.py#L249-258
23:31 manfred publish.runner
23:31 geekatcmu yeah, I keep trying that.
23:31 geekatcmu it doesn't seem to *do* anything.
23:32 geekatcmu In that, the master never actually runs the function.
23:32 geekatcmu I know, because I'm watching the logs.
23:32 manfred did you enable peering and restart your master?
23:32 geekatcmu yes
23:32 manfred i use the regular peer system, and it works
23:35 virusuy joined #salt
23:35 mosen joined #salt
23:36 baweaver joined #salt
23:36 aqua^c joined #salt
23:36 aparsons joined #salt
23:36 manfred [root@salt ~]# salt-call publish.runner manage.up
23:36 manfred [INFO    ] Publishing runner 'manage.up' to tcp://192.168.4.2:4506
23:36 manfred local:
23:36 manfred - salt.gtmanfred.com
23:38 aparsons_ joined #salt
23:39 napsterX joined #salt
23:41 geekatcmu https://gist.github.com/BrianGallew/96d8598738dcfb5a4347
23:42 geekatcmu yeah, sure.
23:42 geekatcmu Publishing runner "(lp1\nS'cs.cached_tag_search'\np2\na(lp3\nS'role-zookeeper.server'\np4\naS'zookeeper-env-dev-1'\np5\naa." to tcp://192.168.170.100:4506
23:43 geekatcmu but (extensive) logging says "cached_tag_search" does not execute when that is published.
23:43 murrdoc so you need that data in all minions ?
23:44 geekatcmu all the minions that have bot the role-zookeeper AND zookeeper-env-dev-1 tags on them.
23:44 geekatcmu (in our asset db)
23:44 geekatcmu The GIST I just posted has a reasonably verbose explanation
23:45 geekatcmu And the result of that should be a list of minions which have both the role-zookeeper.server and zookeeper-env-dev-1 tags.
23:46 geekatcmu THough I may be a retard.
23:46 geekatcmu because I was pickling too much
23:51 ageorgop joined #salt
23:51 whytewolf so, why not an ext_pillar? as this seems more up that line than even a mine
23:52 geekatcmu I may have to go that route.
23:53 murrdoc or
23:54 murrdoc make it a module function
23:54 murrdoc and then use mine to setup a pillar
23:54 geekatcmu Oh, nice.
23:54 primechuck joined #salt
23:54 aqua^c joined #salt
23:55 murrdoc or tell utahdave u want that sweet sdb
23:55 murrdoc so that u can get/put arbitrary data into a database on the master
23:55 aqua^c joined #salt
23:55 mosen is that a thing murrdoc?
23:56 murrdoc its a thing in code
23:56 geekatcmu Looking at more logging shows a traceback  in master.py:run_func ->master.py:minion_runner -> masterapi.py:minion_runner -> re.py:match :: TypeError: expected string or buffer
23:56 murrdoc mosen:  https://github.com/saltstack/salt/tree/develop/salt/sdb
23:56 geekatcmu And is SDB also broken with multi-master?
23:56 * geekatcmu bets it is
23:57 geekatcmu I have 25k servers spread across 6 continents.  A single master would be, put gently, silly.
23:58 murrdoc its any 'database'
23:58 murrdoc where do u work ?
23:58 geekatcmu yeah, I already have an asset DB with all the info in it
23:58 geekatcmu Limelight Networks
23:58 murrdoc i thought my setup was crazy
23:58 murrdoc 25k hardware ?
23:58 geekatcmu We're a CDN
23:58 geekatcmu yes
23:58 murrdoc so are we
23:58 iggy what's a CDN?
23:58 geekatcmu WHich one are you?
23:58 * iggy runs
23:58 murrdoc cant say
23:59 murrdoc cos uh we were bought by the man
23:59 murrdoc and he watches all the packages
23:59 murrdoc packets*
23:59 mosen geekatcmu: given that RL runs masterless, id be betting you would do the same
23:59 murrdoc where does limelight compare with akamai
23:59 iggy <
23:59 geekatcmu Essentially, we're #2
23:59 murrdoc shit here i thought we wuz #2

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