Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-07-15

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

All times shown according to UTC.

Time Nick Message
00:02 RandalSchwartz can I do include from jinja?  Is there some sort of path for common templates?
00:11 RandalSchwartz is there a way to call salt.renderers.jinja.render from the command line?
00:11 RandalSchwartz or the equivalent?  Can I get what the jinja output will be while debugging?
00:12 avn_ Guys, I need help. What wrong with https://gist.github.com/avnik/c928500196e4a5df6c31 ? Why I have got "Comment: The directory 'salt://reprepro/keys' does not exist on the salt fileserver in saltenv 'base'" on each run, except first? (so when dir absent on target machine, all is ok -- but on second run I got failure)
00:18 conan_the_destro joined #salt
00:32 mateoconfeugo joined #salt
00:35 elfixit joined #salt
00:37 ccase joined #salt
00:40 ajolo__ joined #salt
00:40 ccase_ joined #salt
00:44 RandalSchwartz avn_ - did you figure it out?
00:44 RandalSchwartz I'm curious too
00:45 amontalb1n Hey guys
00:45 TyrfingMjolnir joined #salt
00:45 amontalb1n How is it going?
00:46 amontalb1n Anyone out there that knows how to run:  salt '*' cmd.retcode template=jinja in a SLS
00:47 vbabiy joined #salt
00:47 amontalb1n I'm trying to do this:
00:47 amontalb1n salt['cmd.retcode']('test -e {{ database_dir }}')
00:47 UtahDave avn_: what version of Salt?
00:47 amontalb1n But it's not parsing the variable
00:49 UtahDave amontalb1n: can you pastebin your sls?
00:49 Ger joined #salt
00:50 amontalb1n @UtahDave: https://gist.github.com/amontalban/0d5e8338b70b91296295
00:50 amontalb1n Thanks!
00:50 Ryan_Lane is there some function I can use in salt to see if a directory is empty?
00:50 snuffeluffegus joined #salt
00:52 matthiaswahl joined #salt
00:52 yomilk joined #salt
00:52 UtahDave amontalb1n: you don't need, or rather, can't have the {{  }}  around  database_dir   when you're inside of  {%   %}   in jinja
00:52 Gareth evening.
00:52 UtahDave hey, Gareth!
00:53 Gareth UtahDave: hey hey :)  hows it going?
00:53 UtahDave good!  Just polishing up some final things for a demo tomorrow.
00:54 Gareth very cool.
00:54 amontalb1n @UtahDave: Ok, but how can I set the template=jinja inside that cmd.retcode?
00:54 UtahDave Yeah.  I've already given the demo twice over the last week or so, so it's very low stress.  Unlike the day before the first attempt.  :)
00:55 amontalb1n I need to parse it in order to test if the dir exists
00:55 UtahDave you're already inside jinja at that point
00:55 UtahDave just remove  {{   and }}  from around  database_dir  and you should be good to go
00:56 amontalb1n @UtahDave: I'm getting this when I do not put the {{ }}
00:56 amontalb1n [INFO    ] Executing command 'test -e database_dir' in directory '/root'
00:57 UtahDave hm.  I'm going to have to summon the jinja lord himself.   whiteinge do you have an ideawhat's going on with amontalb1n's jinja here?   https://gist.github.com/amontalban/0d5e8338b70b91296295
00:58 Gareth UtahDave: is it another docker demo?
00:59 amontalb1n Thanks @UtahDave, this implementation is way out of my experience and expert help is very welcome!
01:00 UtahDave on, it's a custom runner I wrote for a customer. Basically an automated, distributed job execution thingy.  Spin up a bunch of aws spot instances and run a job, upload the results and destroy the vms.
01:00 whiteinge analogbyte: i left a comment on that gist. give that a shot
01:00 bhosmer joined #salt
01:00 Gareth UtahDave: ah thats cool.
01:01 UtahDave Yeah. It's actually way cooler than even that, but at this point I can give more detail.
01:01 UtahDave It's been a fun project
01:06 amontalb1n @whiteinge: Thanks!
01:09 oz_akan joined #salt
01:12 jhauser_ joined #salt
01:14 amontalb1n @whiteinge: It seems to be working ok but it doesn't show the retcode or output. I assume it's just a cosmetic thing, just wanted to let you know.
01:14 Ger joined #salt
01:14 amontalb1n Thanks a lot!
01:15 avn_ UtahDave: 2014.1.5+ds-5trusty1, which salt-bootstrap install for me
01:16 whiteinge amontalb1n: that if-statement shouldn't produce any output. is that what you mean?
01:16 UtahDave avn_: I have no idea why it would do that.  is there any other jinja in your sls file that might modify  "prefix"?
01:16 amontalb1n @whiteimage: No, actually the cmd output
01:17 UtahDave avn_: could you pastebin the output you get?
01:17 amontalb1n I pasted in the gist just in case https://gist.github.com/amontalban/0d5e8338b70b91296295
01:21 jalaziz joined #salt
01:26 avn_ UtahDave: prefix relate only to target, not source
01:27 avn_ UtahDave: put output to comment of gist
01:28 UtahDave avn_: what's your top.sls look like?
01:30 avn_ UtahDave: added to end of gist
01:31 otter768 joined #salt
01:33 UtahDave avn_: and   /srv/salt/reprepo/keys   exists on your salt master?
01:39 ajolo joined #salt
01:40 dude051 joined #salt
01:44 ajprog_laptop1 UtahDave: where can I find the files from your presentation in NYC?
01:44 UtahDave ajprog_laptop1: I have the haproxy/docker stuff up .  let me get the link
01:44 UtahDave ajprog_laptop1: https://github.com/UtahDave/dock_apache   and https://github.com/UtahDave/haproxy-docker
01:44 UtahDave ajprog_laptop1: those depend on some functions that are only in the develop branch of Salt right now, fyi
01:45 ajprog_laptop1 UtahDave:  have you uploaded the cloud maps for the rackspace vm? I am looking for how to do the private IP address
01:49 UtahDave ajprog_laptop1: the docker stuff was done on digitalocean, but would be very easy to switch over to rackspace. Here's the profile and cloud map I used:  https://gist.github.com/UtahDave/23caa5614119a2753436
01:49 UtahDave The openstack demo I did was on the rackspace cloud, it's based of this repo
01:50 UtahDave https://github.com/CSSCorp/openstack-automation/tree/icehouse-yaml
01:51 ajprog_laptop1 yes it was during your openstack demo
01:52 matthiaswahl joined #salt
01:54 ajprog_laptop1 could I look at that map file? I don't see it in github
01:55 mateoconfeugo joined #salt
01:57 luminous hello, is there a way to use file.managed state with content (or a similar arg) to iterate over a dictionary (key/value pairs) to define a configuration that is slightly more complicated than a straigh YAML file.. so as to skip the need to create a separate file template for that config?
01:57 luminous I haven't been able to figure this out.
01:59 krow joined #salt
02:00 ecdhe luminous, you could store some key/values in a pillar and use jinja to iterate through them.
02:00 luminous that's what I tried
02:00 luminous maybe I was not doing it correctly
02:00 luminous using what I had in the config file before was not working
02:00 ecdhe Well, there are a couple of places to do the iteration;
02:01 luminous I did it in the content block
02:01 luminous I guess I should retest this and see if I get the same error
02:01 ecdhe Okay, so in that case, it might make sense to do a source: templatedfile, and iterate over the keys/values in the file itself.
02:01 oz_akan joined #salt
02:01 avn_ UtahDave: sure, exists and readable
02:01 ecdhe Then tell file.managed that it's a jinja template.
02:01 UtahDave ajprog_laptop1: oh, the map for the openstack demo?
02:01 UtahDave just a sec
02:02 luminous ecdhe: that's what I have, and I want to skip that
02:03 UtahDave https://gist.github.com/UtahDave/c7e39e32799f0849aef1
02:03 UtahDave ajprog_laptop1: ^^
02:04 ecdhe luminous, why do you want to skip it?  Does it not work?
02:05 aw110f joined #salt
02:06 Ryan_Lane UtahDave: http://docs.saltstack.com/en/latest/ref/states/requisites.html
02:06 Ryan_Lane the /here/ link is broken....
02:07 luminous ecdhe: I have good reasons.. ultimately, it's the simpler/cleaner way to make a more reusable and generic formula. it's also one less source file to run over to
02:08 ajprog_laptop1 UtahDave: thanks, I don't see it there. Venus was the only one with a private IP but I don't see a difference between the other one. Thanks for your help.
02:12 luminous ecdhe: yea, using content treats the block as a literal, rather than jinja to render
02:12 luminous maybe there is a different way to specify the jinja in the .sls, in that content block
02:13 luminous interesting, unindenting it renders the jinja
02:13 luminous what is that nifty jinja trick for indenting a block?
02:14 luminous Ryan_Lane: pull request?
02:14 AdamSewell joined #salt
02:14 ecdhe luminous, what is your background?
02:15 Ryan_Lane I don't have one. I just noticed it's broken
02:15 Ryan_Lane I don't know how to fix that
02:15 luminous ecdhe: how do you mean?
02:15 Ryan_Lane there should really be docs for tests to see if something is going to cause a broken link ;)
02:16 luminous Ryan_Lane: sphinx even has an extension for that, I believe
02:16 avn_ UtahDave: any suggestions?
02:16 yomilk joined #salt
02:16 UtahDave avn_: I'm not sure what's going on there.  Would you mind opening an issue on github?
02:16 ecdhe luminous, you said "it's also one less source file to run over to" as part of your motivation for moving the jinja to the sls file.
02:17 ecdhe I wanted to know your software background so I could understand that;
02:18 ecdhe I've developed in C/C++ for a couple of decades, python/bash and others for 5 years -- I am usually trying to refactor my code into more files, not fewer.
02:18 jaimed joined #salt
02:18 avn_ UtahDave: If I can reproduce it in clean state on vagrant or docker
02:19 luminous ecdhe: I'm not usually so black and white as in "I want more" or "I want less" - I want what is sensible for the task at hand
02:19 ecdhe likewise.
02:19 luminous honestly, it isn't really easy for me to help you understand the motivations here.. the situation and context I am building within bends the limits of nearly everything, everywhere.
02:20 luminous I abuse salt and reclass and everything else to make this stuff work
02:20 ecdhe salt is flexible!
02:20 luminous {{ salt['pillar.get']('kibana:key:contents') | indent(8) }} <<< how would you use indent() macro like this, but with a multi-line iteration?
02:20 luminous I dig salt for that very reason :)
02:21 luminous I thought I saw somethign like this in the docs, but I am unable to remember where
02:22 luminous I think it was about SSH keys
02:22 luminous maybe not, bah
02:27 yomilk joined #salt
02:40 ajolo joined #salt
02:42 whytewolf joined #salt
02:42 tempspace joined #salt
02:42 Whissi joined #salt
02:42 LordOfLA|Broken joined #salt
02:42 repl1can1 joined #salt
02:42 InAnimaTe joined #salt
02:42 cwyse joined #salt
02:42 jaimed joined #salt
02:42 clone1018 joined #salt
02:42 miqui joined #salt
02:43 rogst joined #salt
02:43 quickdry21_ joined #salt
02:43 mechanicalduck joined #salt
02:44 moos3 joined #salt
02:47 kiorky joined #salt
02:47 rofl____ joined #salt
02:49 bhosmer joined #salt
02:49 ph8 joined #salt
02:52 yetAnotherZero joined #salt
02:53 matthiaswahl joined #salt
02:54 quickdry21__ joined #salt
03:01 Eugene I'm sure it's been asked before, but is there a mechanism/plan for authorized_keys management(states.ssh_auth) to "clean" keys other than those specified for a giver user?
03:01 Eugene (without doing a file.managed)
03:02 ajprog_laptop1 joined #salt
03:03 dimeshake i'm doing it with file.append, Eugene, and basically rebuilding authorized_keys on every highstate run
03:06 dimeshake remove it first and then re-append all the keys i want
03:07 Eugene Works, but I hate it on principle.
03:07 dimeshake ditto
03:16 mgw joined #salt
03:17 t0rrant joined #salt
03:18 Flusher joined #salt
03:20 fxdgear joined #salt
03:20 MTecknology joined #salt
03:20 Hipikat_ joined #salt
03:20 rogst_ joined #salt
03:20 ramishra joined #salt
03:20 quickdry21__ joined #salt
03:20 mechanicalduck joined #salt
03:20 miqui joined #salt
03:20 clone1018 joined #salt
03:20 cwyse joined #salt
03:20 ajolo joined #salt
03:20 aquinas joined #salt
03:20 jayne joined #salt
03:20 ndrei joined #salt
03:20 nmistry joined #salt
03:20 badon joined #salt
03:20 toastedpenguin joined #salt
03:20 FarrisG joined #salt
03:20 cbaesema joined #salt
03:20 nebuchadnezzar joined #salt
03:20 wendall911 joined #salt
03:20 catpig joined #salt
03:20 erjohnso joined #salt
03:20 Twiglet joined #salt
03:20 funzo joined #salt
03:20 acabrera joined #salt
03:20 Deevolution joined #salt
03:20 Guest77083 joined #salt
03:20 marnom joined #salt
03:20 XenophonF joined #salt
03:20 sirtaj joined #salt
03:20 Dattas joined #salt
03:20 mike25de joined #salt
03:20 aberdine joined #salt
03:20 ixokai joined #salt
03:20 m1crofarmer joined #salt
03:20 zirpu joined #salt
03:20 bigl0af joined #salt
03:20 RandalSchwartz joined #salt
03:20 v0rtex joined #salt
03:20 Damoun joined #salt
03:20 iggy joined #salt
03:20 arnoldB joined #salt
03:20 zemm joined #salt
03:20 thehaven joined #salt
03:20 Kalinakov joined #salt
03:20 basepi joined #salt
03:20 renoirb joined #salt
03:20 kaictl joined #salt
03:20 Nazca__ joined #salt
03:20 fivethreeo joined #salt
03:20 markour joined #salt
03:20 djaykay joined #salt
03:20 fxhp joined #salt
03:20 Voziv joined #salt
03:20 lahwran joined #salt
03:20 dstokes joined #salt
03:20 ronc_ joined #salt
03:20 cwright_ joined #salt
03:20 jacksontj joined #salt
03:20 seblu joined #salt
03:20 Ixan joined #salt
03:20 viq joined #salt
03:20 roo9 joined #salt
03:20 eliasp joined #salt
03:20 dober joined #salt
03:20 alainv joined #salt
03:20 archrs joined #salt
03:20 Ymage joined #salt
03:20 davromaniak joined #salt
03:20 mortis joined #salt
03:20 Hydrosine joined #salt
03:20 btorch joined #salt
03:20 brewmaster joined #salt
03:20 timoguin joined #salt
03:20 steveoliver joined #salt
03:20 nadley joined #salt
03:20 mirko joined #salt
03:20 stotch joined #salt
03:20 cedwards joined #salt
03:20 mihait joined #salt
03:20 Doqnach joined #salt
03:20 terinjokes joined #salt
03:20 octarine joined #salt
03:20 lyddonb_ joined #salt
03:20 whiteinge joined #salt
03:20 grep_away joined #salt
03:20 beebeeep joined #salt
03:20 abele joined #salt
03:20 GnuLxUsr joined #salt
03:20 scarcry joined #salt
03:20 EntropyWorks joined #salt
03:20 jcockhren joined #salt
03:20 Xiao joined #salt
03:20 Daviey joined #salt
03:20 rhand joined #salt
03:20 APLU joined #salt
03:20 kwmiebach_ joined #salt
03:20 modafinil_ joined #salt
03:20 wiqd joined #salt
03:20 gadams joined #salt
03:20 darrend joined #salt
03:20 individuwill joined #salt
03:20 intr1nsic joined #salt
03:20 robawt joined #salt
03:20 dancat joined #salt
03:20 pfallenop joined #salt
03:20 twiedenbein joined #salt
03:20 akitada joined #salt
03:20 bfwg joined #salt
03:20 drags joined #salt
03:20 tru_tru joined #salt
03:20 joehh joined #salt
03:20 gamingrobot joined #salt
03:20 vlcn joined #salt
03:20 freelock joined #salt
03:20 fejjerai joined #salt
03:20 lz-dylan joined #salt
03:20 svx joined #salt
03:20 dean joined #salt
03:20 Dinde joined #salt
03:20 TaiSHi joined #salt
03:20 lipiec joined #salt
03:20 Fa1lure joined #salt
03:20 zach joined #salt
03:20 hillna_ joined #salt
03:20 jesusaurus joined #salt
03:20 balltongu joined #salt
03:20 Jahkeup joined #salt
03:20 Gareth joined #salt
03:20 codekoala joined #salt
03:20 Eugene joined #salt
03:20 georgemarshall joined #salt
03:20 [vaelen] joined #salt
03:20 madduck joined #salt
03:20 maber_ joined #salt
03:20 CaptTofu_ joined #salt
03:20 berto- joined #salt
03:20 Karunamon joined #salt
03:20 Blacklite joined #salt
03:20 JoeHazzers joined #salt
03:20 xt joined #salt
03:20 arapaho joined #salt
03:20 cb joined #salt
03:20 chutzpah joined #salt
03:20 Nazzy joined #salt
03:20 Sway joined #salt
03:20 neilf__ joined #salt
03:20 sdebot joined #salt
03:20 goki joined #salt
03:20 ifur joined #salt
03:20 londo joined #salt
03:20 FL1SK joined #salt
03:20 pmcg joined #salt
03:20 juice joined #salt
03:20 nliadm joined #salt
03:20 zartoosh joined #salt
03:20 zsoftich1 joined #salt
03:20 munhitsu_ joined #salt
03:20 xenoxaos joined #salt
03:20 masterkorp joined #salt
03:20 bernieke joined #salt
03:20 ikanobori joined #salt
03:20 jmccree joined #salt
03:20 jasonrm joined #salt
03:20 codekobe_ joined #salt
03:20 bezaban joined #salt
03:20 mfournier joined #salt
03:20 jcristau joined #salt
03:20 eightyeight joined #salt
03:20 scalability-junk joined #salt
03:20 logandg joined #salt
03:20 djinni` joined #salt
03:20 meganerd joined #salt
03:20 CyanB joined #salt
03:20 rawzone joined #salt
03:20 jperras joined #salt
03:20 blackjid joined #salt
03:20 esogas joined #salt
03:20 nyov joined #salt
03:20 nhubbard joined #salt
03:20 dwfreed joined #salt
03:20 lazybear joined #salt
03:20 Sypher joined #salt
03:20 pwiebe_ joined #salt
03:20 kossy joined #salt
03:20 aarontc joined #salt
03:20 Heartsbane joined #salt
03:20 dzen joined #salt
03:20 ntropy joined #salt
03:20 seb` joined #salt
03:20 tedski joined #salt
03:20 ahammond joined #salt
03:20 johtso joined #salt
03:20 lionel joined #salt
03:20 andabata joined #salt
03:20 Zuru joined #salt
03:20 eculver joined #salt
03:20 andredieb joined #salt
03:20 philipsd6 joined #salt
03:20 cyrusdav- joined #salt
03:20 rigor789|away joined #salt
03:20 SaveTheRbtz joined #salt
03:20 AnswerGu1 joined #salt
03:20 iMil joined #salt
03:20 pviktori joined #salt
03:20 Shish joined #salt
03:20 veb joined #salt
03:20 bretep joined #salt
03:20 jY joined #salt
03:20 johngrasty joined #salt
03:20 SachaLigthert joined #salt
03:20 dcmorton joined #salt
03:20 pjs joined #salt
03:20 seventy3_away joined #salt
03:20 marcinkuzminski joined #salt
03:20 __number5__ joined #salt
03:20 bensons joined #salt
03:20 jamesog joined #salt
03:20 delkins_ joined #salt
03:20 lude joined #salt
03:20 trevorjay joined #salt
03:20 emostar joined #salt
03:20 jeblair joined #salt
03:20 Heggan joined #salt
03:20 ifmw joined #salt
03:20 bitmand joined #salt
03:20 carmony joined #salt
03:20 sifusam joined #salt
03:20 twinshadow joined #salt
03:20 sverrest joined #salt
03:20 bmatt joined #salt
03:20 jeffrubic joined #salt
03:20 EWDurbin joined #salt
03:20 smferris joined #salt
03:22 mosen joined #salt
03:22 rofl____ joined #salt
03:22 kiorky joined #salt
03:22 moos3 joined #salt
03:22 fxdgear joined #salt
03:23 jforest joined #salt
03:24 badon joined #salt
03:26 n8n joined #salt
03:26 Corey joined #salt
03:28 MTecknology joined #salt
03:28 yomilk joined #salt
03:29 blast_hardcheese joined #salt
03:34 ipalreadytaken joined #salt
03:36 catpigger joined #salt
03:37 krow joined #salt
03:39 ajolo__ joined #salt
03:49 arthabaska joined #salt
04:03 oz_akan joined #salt
04:09 krow joined #salt
04:13 mateoconfeugo joined #salt
04:13 kedo39 joined #salt
04:15 kedo39 joined #salt
04:19 kedo39 joined #salt
04:23 kedo39 joined #salt
04:24 Richard joined #salt
04:26 kedo39 joined #salt
04:27 Guest79179 I am being unsuccessful getting "salt '*' state.sls test2" to work.  Keep getting "No matching sls found for 'test2' in env 'base'.  Any help would be greatly appreciated
04:28 kedo39 joined #salt
04:30 frustrated_with_ joined #salt
04:30 frustrated_with_ I am being unsuccessful getting "salt '*' state.sls test2" to work.  Keep getting "No matching sls found for 'test2' in env 'base'.  Any help would be greatly appreciated
04:37 ramishra joined #salt
04:38 bhosmer joined #salt
04:38 borgstrom joined #salt
04:39 krow joined #salt
04:40 ajolo joined #salt
04:48 felskrone joined #salt
04:55 matthiaswahl joined #salt
05:01 n8n joined #salt
05:03 anuvrat joined #salt
05:04 kalessin joined #salt
05:06 oz_akan joined #salt
05:20 mateoconfeugo joined #salt
05:36 mgw joined #salt
05:37 davet joined #salt
05:39 garthk joined #salt
05:40 ajolo__ joined #salt
05:44 felskrone1 joined #salt
05:54 Hell_Fire_ joined #salt
05:55 matthiaswahl joined #salt
06:06 pdayton joined #salt
06:07 oz_akan joined #salt
06:07 yano joined #salt
06:16 matthiaswahl joined #salt
06:19 ajolo joined #salt
06:22 zartoosh joined #salt
06:26 bhosmer joined #salt
06:39 picker joined #salt
06:58 slav0nic joined #salt
07:07 oz_akan joined #salt
07:11 martoss joined #salt
07:14 alanpearce joined #salt
07:14 matthiaswahl joined #salt
07:16 ndrei joined #salt
07:19 ml_1 joined #salt
07:20 intellix joined #salt
07:22 chiui joined #salt
07:22 ajolo__ joined #salt
07:23 chiui_ joined #salt
07:23 Kenzor joined #salt
07:23 chiui joined #salt
07:27 martoss joined #salt
07:27 krow joined #salt
07:27 liup joined #salt
07:27 liup salt -v '192.168.110.133' cmd.run "/opt/app/mysql/scripts/mysql.sh start 8614 && echo 'start success' || echo 'start failed'"
07:28 linjan joined #salt
07:28 liup the mysql starts successful
07:28 liup but the event cannot get the final result,the state is always saltutil.find_job.
07:31 liup How to send image
07:31 martoss1 joined #salt
07:33 cDR_ joined #salt
07:35 giannello joined #salt
07:36 ndrei joined #salt
07:36 oz_akan joined #salt
07:47 sectionme joined #salt
07:49 darkelda joined #salt
07:56 oz_akan joined #salt
07:58 oz_akan joined #salt
08:04 ghartz joined #salt
08:05 sectionme joined #salt
08:07 test_ joined #salt
08:11 Linuturk joined #salt
08:11 sectionme joined #salt
08:15 rogst joined #salt
08:15 bhosmer joined #salt
08:23 ajolo joined #salt
08:28 fxhp joined #salt
08:39 E1NS left #salt
08:41 martoss joined #salt
08:43 martoss1 joined #salt
08:43 ramishra joined #salt
08:44 Damon joined #salt
08:48 DamonNL Morning
08:53 crashmag joined #salt
08:56 krow joined #salt
08:57 intellix joined #salt
08:57 yomilk joined #salt
08:59 oz_akan joined #salt
09:03 luette joined #salt
09:06 yf joined #salt
09:06 yf hi
09:07 yf I trying to use "salt '*' nova.flavor_list"
09:08 yf but, I got "'nova.flavor_list' is not available."
09:08 yf In minion, 'salt-call nova.flavor_list' was success.
09:09 Vivi-1 joined #salt
09:10 yf what should I check?
09:11 Vivi-1_ joined #salt
09:13 Vivi-1_ joined #salt
09:14 Vivi-1_ left #salt
09:16 Hydrosine Found a broken page in walkthrough: http://docs.saltstack.com/en/latest/topics/tutorials/walkthrough.html
09:16 Hydrosine almost down is a hyperlink named Requisites
09:17 Hydrosine which links to an empty page.. http://docs.saltstack.com/en/latest/ref/states/requisites.html
09:19 che-arne joined #salt
09:20 mateoconfeugo joined #salt
09:23 ajolo joined #salt
09:25 eliasp Hydrosine: had a look at this yesterday and it's weird… the dead link on the requisites page is syntactically correct in the RST source… looks like the doc renderer has troubles here
09:30 Hydrosine It seems to be that :ref:`here <global-state-arguments>` should be :ref:`here <global_state_arguments>`
09:30 Lloyd_ joined #salt
09:30 JPaul joined #salt
09:30 Hydrosine eliasp: Although i don know exatly how it works ;) anyway i found that documentation now
09:38 sectionme joined #salt
09:43 giantlock joined #salt
09:46 luminous joined #salt
09:47 martoss joined #salt
09:48 martoss1 joined #salt
09:52 cDR_ @damonnl hey
09:55 Outlander joined #salt
09:57 intellix joined #salt
09:59 oz_akan joined #salt
10:00 JPaul joined #salt
10:00 che-arne joined #salt
10:00 Corey joined #salt
10:00 clone1018 joined #salt
10:00 cwyse joined #salt
10:00 aquinas joined #salt
10:00 nmistry joined #salt
10:00 erjohnso joined #salt
10:00 Guest77083 joined #salt
10:00 zemm joined #salt
10:00 thehaven joined #salt
10:00 basepi joined #salt
10:00 djaykay joined #salt
10:00 cwright_ joined #salt
10:00 Ixan joined #salt
10:00 Hydrosine joined #salt
10:00 mortis joined #salt
10:00 davromaniak joined #salt
10:00 Ymage joined #salt
10:00 archrs joined #salt
10:00 alainv joined #salt
10:00 dober joined #salt
10:01 markour joined #salt
10:01 ramishra joined #salt
10:01 Hipikat_ joined #salt
10:01 quickdry21__ joined #salt
10:01 toastedpenguin joined #salt
10:01 FarrisG joined #salt
10:01 nebuchadnezzar joined #salt
10:01 Twiglet joined #salt
10:01 funzo joined #salt
10:01 marnom joined #salt
10:01 dstokes joined #salt
10:01 eliasp joined #salt
10:01 zach joined #salt
10:01 Fa1lure joined #salt
10:01 lipiec joined #salt
10:01 TaiSHi joined #salt
10:01 Dinde joined #salt
10:01 dean joined #salt
10:01 svx joined #salt
10:01 lz-dylan joined #salt
10:01 fejjerai joined #salt
10:01 freelock joined #salt
10:01 vlcn joined #salt
10:01 gamingrobot joined #salt
10:01 joehh joined #salt
10:01 tru_tru joined #salt
10:01 drags joined #salt
10:01 bfwg joined #salt
10:01 akitada joined #salt
10:01 twiedenbein joined #salt
10:01 pfallenop joined #salt
10:01 dancat joined #salt
10:01 robawt joined #salt
10:01 intr1nsic joined #salt
10:01 individuwill joined #salt
10:01 darrend joined #salt
10:01 gadams joined #salt
10:01 wiqd joined #salt
10:01 modafinil_ joined #salt
10:01 kwmiebach_ joined #salt
10:01 APLU joined #salt
10:01 rhand joined #salt
10:01 Daviey joined #salt
10:01 Xiao joined #salt
10:01 jcockhren joined #salt
10:01 EntropyWorks joined #salt
10:01 GnuLxUsr joined #salt
10:01 abele joined #salt
10:01 beebeeep joined #salt
10:01 grep_away joined #salt
10:01 whiteinge joined #salt
10:01 lyddonb_ joined #salt
10:01 octarine joined #salt
10:01 terinjokes joined #salt
10:01 Doqnach joined #salt
10:01 mihait joined #salt
10:01 cedwards joined #salt
10:01 stotch joined #salt
10:01 mirko joined #salt
10:01 nadley joined #salt
10:01 steveoliver joined #salt
10:01 timoguin joined #salt
10:01 brewmaster joined #salt
10:01 btorch joined #salt
10:01 sectionme joined #salt
10:02 darkelda joined #salt
10:02 darkelda joined #salt
10:03 markour joined #salt
10:03 kalessin joined #salt
10:03 wendall911 joined #salt
10:03 sirtaj joined #salt
10:03 Dattas joined #salt
10:03 aberdine joined #salt
10:03 zirpu joined #salt
10:03 bigl0af joined #salt
10:03 RandalSchwartz joined #salt
10:03 v0rtex joined #salt
10:03 Damoun joined #salt
10:03 iggy joined #salt
10:03 arnoldB joined #salt
10:03 Kalinakov joined #salt
10:03 kaictl joined #salt
10:03 fivethreeo joined #salt
10:03 kossy joined #salt
10:03 pwiebe_ joined #salt
10:03 Sypher joined #salt
10:03 lazybear joined #salt
10:03 dwfreed joined #salt
10:03 nhubbard joined #salt
10:03 nyov joined #salt
10:03 esogas joined #salt
10:03 blackjid joined #salt
10:03 jperras joined #salt
10:03 rawzone joined #salt
10:03 CyanB joined #salt
10:03 meganerd joined #salt
10:03 djinni` joined #salt
10:03 logandg joined #salt
10:03 scalability-junk joined #salt
10:03 eightyeight joined #salt
10:03 jcristau joined #salt
10:03 mfournier joined #salt
10:03 bezaban joined #salt
10:03 codekobe_ joined #salt
10:03 jasonrm joined #salt
10:03 jmccree joined #salt
10:03 ikanobori joined #salt
10:03 bernieke joined #salt
10:03 masterkorp joined #salt
10:03 xenoxaos joined #salt
10:03 munhitsu_ joined #salt
10:03 zsoftich1 joined #salt
10:03 nliadm joined #salt
10:03 juice joined #salt
10:03 pmcg joined #salt
10:03 FL1SK joined #salt
10:03 londo joined #salt
10:03 ifur joined #salt
10:03 goki joined #salt
10:03 sdebot joined #salt
10:03 neilf__ joined #salt
10:03 Sway joined #salt
10:03 Nazzy joined #salt
10:03 chutzpah joined #salt
10:03 cb joined #salt
10:03 arapaho joined #salt
10:03 xt joined #salt
10:03 JoeHazzers joined #salt
10:03 Blacklite joined #salt
10:03 Karunamon joined #salt
10:03 berto- joined #salt
10:03 CaptTofu_ joined #salt
10:03 maber_ joined #salt
10:03 madduck joined #salt
10:03 [vaelen] joined #salt
10:03 georgemarshall joined #salt
10:03 Eugene joined #salt
10:03 codekoala joined #salt
10:03 Gareth joined #salt
10:03 Jahkeup joined #salt
10:03 balltongu joined #salt
10:03 jesusaurus joined #salt
10:03 hillna_ joined #salt
10:03 jayne joined #salt
10:03 cbaesema joined #salt
10:03 Deevolution joined #salt
10:03 ixokai joined #salt
10:03 renoirb joined #salt
10:03 Voziv joined #salt
10:03 ronc_ joined #salt
10:03 seblu joined #salt
10:03 viq joined #salt
10:03 roo9 joined #salt
10:03 aarontc joined #salt
10:03 Heartsbane joined #salt
10:03 dzen joined #salt
10:03 ntropy joined #salt
10:03 tedski joined #salt
10:03 lionel joined #salt
10:03 andabata joined #salt
10:03 Zuru joined #salt
10:03 eculver joined #salt
10:03 andredieb joined #salt
10:03 philipsd6 joined #salt
10:03 cyrusdav- joined #salt
10:03 rigor789|away joined #salt
10:03 AnswerGu1 joined #salt
10:03 iMil joined #salt
10:03 pviktori joined #salt
10:03 Shish joined #salt
10:03 veb joined #salt
10:03 SachaLigthert joined #salt
10:03 dcmorton joined #salt
10:03 pjs joined #salt
10:03 seventy3_away joined #salt
10:03 marcinkuzminski joined #salt
10:03 __number5__ joined #salt
10:03 bensons joined #salt
10:03 jamesog joined #salt
10:03 delkins_ joined #salt
10:03 lude joined #salt
10:03 trevorjay joined #salt
10:03 emostar joined #salt
10:03 jeblair joined #salt
10:03 Heggan joined #salt
10:03 ifmw joined #salt
10:03 bitmand joined #salt
10:03 carmony joined #salt
10:03 sifusam joined #salt
10:03 twinshadow joined #salt
10:03 sverrest joined #salt
10:03 bmatt joined #salt
10:03 jeffrubic joined #salt
10:03 EWDurbin joined #salt
10:03 smferris joined #salt
10:04 kossy joined #salt
10:04 cyrusdavid joined #salt
10:04 kossy joined #salt
10:04 yomilk joined #salt
10:05 lahwran joined #salt
10:06 yomilk_ joined #salt
10:06 Corey joined #salt
10:08 fxdgear joined #salt
10:08 jforest joined #salt
10:08 MTecknology joined #salt
10:08 ghartz joined #salt
10:08 picker joined #salt
10:08 garthk joined #salt
10:08 anuvrat joined #salt
10:08 blast_hardcheese joined #salt
10:08 badon joined #salt
10:08 mechanicalduck joined #salt
10:08 miqui joined #salt
10:08 mike25de joined #salt
10:08 m1crofarmer joined #salt
10:08 Nazca__ joined #salt
10:08 jacksontj joined #salt
10:08 seb` joined #salt
10:08 ahammond joined #salt
10:08 SaveTheRbtz joined #salt
10:08 bretep joined #salt
10:08 jY joined #salt
10:08 johngrasty joined #salt
10:08 fxdgear joined #salt
10:10 nmistry joined #salt
10:14 blast_hardcheese joined #salt
10:16 alanpearce joined #salt
10:16 ggoZ joined #salt
10:23 ajolo__ joined #salt
10:23 CeBe joined #salt
10:41 martoss1 joined #salt
10:50 felskrone joined #salt
10:53 ramishra joined #salt
11:00 oz_akan joined #salt
11:20 XenophonF joined #salt
11:21 jrdx joined #salt
11:23 felskrone1 joined #salt
11:23 felskrone joined #salt
11:23 ajolo__ joined #salt
11:24 sectionme joined #salt
11:28 XenophonF so which is better: http://paste.debian.net/109827/ (grains match adding a watch service blah) or http://paste.debian.net/109828/ (using watch_in)
11:28 krow joined #salt
11:28 XenophonF I kind of don't like using watch_in from a different file
11:29 XenophonF seems like that could confuse someone
11:29 XenophonF on the flip side i'm worried about using too much jinja templating in my sls files
11:30 XenophonF but maybe for documentation purposes, it's better to explicitly show that on FreeBSD, the amd service needs nfsclient
11:32 bhosmer joined #salt
11:33 bhosmer_ joined #salt
11:41 diegows joined #salt
11:46 XenophonF I think there's a problem with the FreeBSD port of Salt.
11:47 XenophonF If I install from a package (whether one I built locally or one built by the FreeBSD Ports team), when I try to start Salt, I get the following error:
11:47 XenophonF pkg_resources.DistributionNotFound: salt==2014.1.7
11:50 XenophonF I'm going to check the ports svn to figure out what changed since 2014.1.4
11:51 XenophonF right now my guess is that something didn't get included in pkg-plist, and the porter didn't catch it because salt built and ran fine on their computer
11:51 ekristen joined #salt
11:51 vbabiy joined #salt
11:52 hobakill joined #salt
11:55 nicksloan joined #salt
11:56 nicksloan I'm getting a weird error: "The cloud driver, 'ec2', configured under the 'my-ec2' cloud provider alias was not loaded since 'ec2.get_configured_provider()' could not be found."
11:56 masterkorp hello
11:57 ndrei joined #salt
11:58 elfixit joined #salt
11:59 scott_w joined #salt
11:59 nicksloan nevermind, I fixed it
12:00 ml_1 joined #salt
12:00 18VAAC3Q9 joined #salt
12:03 scott_w looking at the rabbitmq_plugin state, there's an issue on ubuntu 12.04
12:03 masterkorp how could i on a service restart/startup/stop could show some output on the salt-minion that comes from a log file ?
12:03 bhosmer joined #salt
12:03 masterkorp i would like to customize that
12:04 xsteadfastx is there a nice way to upgrade the windows saltminion with the winrepo?
12:04 scott_w the installed rabbitmq puts it in /usr/lib/rabbitmq/lib/rabbitmq_server-2.7.1/sbin/rabbitmq-plugins
12:04 scott_w which isn't on the $PATH
12:05 scott_w is there an easy way to specify the path inside the state, or should the rabbitmq.py module have some code to try and figure out where the rabbitmq-plugins binary is "magically"?
12:05 scott_w obviously option b) would have some nasty code to handle just that case, but it'd hide all that ugliness from the user
12:06 scott_w also, i tried symlinking to it in /usr/local/bin but it seems to have some dodgy hardcoded paths in there that make it not work
12:06 bastion1704 joined #salt
12:07 XenophonF joined #salt
12:07 XenophonF I think the FreeBSD packages for Salt since 2014.1.5 are missing the corresponding egg-info files.
12:08 XenophonF Salt's egg-info is there on my master server (py27-salt-2014.1.4)
12:11 matthew-parlette joined #salt
12:19 bhosmer joined #salt
12:20 bhosmer_ joined #salt
12:21 mugsie joined #salt
12:23 ajolo__ joined #salt
12:33 babilen Are there common functions for generating return dictionaries for exection modules? I saw that file.py defines _error, but this is such a common thing that there might be something generic
12:35 oz_akan joined #salt
12:39 tkharju joined #salt
12:42 nicksloan nevermind, I'm still getting a "SignatureDoesNotMatch" error when I make a RunInstance call
12:42 nicksloan strangely, this did not happen for a DescribeInstances call immediately before
12:47 ndrei joined #salt
12:48 ramishra joined #salt
12:48 yekta joined #salt
12:56 mpanetta joined #salt
12:59 hobakill salt is so close to doing everything i want. the windows repo thing has really driven me up a wall. i can't figure out why it's not working. even submitted an issue ticket but i feel like i'm missing something so obvious. god i hate windows
13:01 hobakill if any one has time to help t-shoot i'd be much obliged. FWIW my issue URL is https://github.com/saltstack/salt/issues/14203
13:02 MTecknology joined #salt
13:03 MTecknology The topic in this channel is unacceptable.
13:03 MTecknology It's indicating 2014.1.7 has yet to be released...
13:03 eliasp MTecknology: why? because the version mentioned is outdated?
13:04 MTecknology yes
13:04 MTecknology :)
13:05 brandon__ joined #salt
13:06 eliasp hobakill: what does "salt win-minion win_pkg.get_repo_data" say?
13:06 MTecknology oh... we actually have a 2014.1.7 tag... and it's in the wild! :D
13:07 racooper joined #salt
13:08 hobakill hi eliasp
13:09 jslatts joined #salt
13:09 hobakill win_pkg.get_repo_data is not available
13:11 eliasp hobakill: hu? I feel like something's seriously screwed… also: Python 2.6.6 on your win-minion… the win builds have been shipped with 2.7.x as long as I can remember
13:12 hobakill yeah my versions-report is saying python 2.7.5 on my windows minions eliasp
13:14 eliasp hobakill: sorry… thought the version report in your issue would refer to you minion
13:16 racooper joined #salt
13:16 hobakill i should probably post that too.
13:16 hobakill (in the issue ticket)
13:17 dude051 joined #salt
13:18 hobakill eliasp, but this seems like such a basic thing and i can't figure out for the life of me what i'm doing wrong.
13:18 eliasp hobakill: did you try to uninstall salt on the minion, wipe C:\salt completely and re-install it again?
13:19 jslatts joined #salt
13:20 hobakill eliasp, we spin up new vms all the time and i've tried this on several other 'fresh' windows vms with the same results. interestingly there is no data at all in the c:\salt\var\cache\salt\minion\files\win\repos
13:21 hobakill moreover - older VMs aren't picking up the new file structure
13:21 eliasp hobakill: this is really weird… you should have at least repo\winrepo.p in your minion cache
13:21 eliasp (after a pkg.refresh_db)
13:21 hobakill eliasp, EXACTLY.
13:21 hobakill eliasp, but it doesn't ... none of them do. some have the right tree and some don't.
13:22 JasonSwindle joined #salt
13:23 ajolo joined #salt
13:24 eliasp hobakill: are you able to transfer a single file to a minion? see 'salt some-minion -d cp'
13:24 eliasp hobakill: if even this doesn't work, there might be something fundamentally wrong with your Master
13:25 eliasp hobakill: ports 4505 and 4506 are both accessible from the outside?
13:26 hobakill eliasp, cp = give me a few minutes to try that. ports = they SHOULD be but i'll double check.
13:27 hobakill eliasp, ports: http://pastebin.com/5RA8y1mk
13:28 matthiaswahl joined #salt
13:28 eliasp hobakill: looks good…
13:28 ccase joined #salt
13:31 mschiff I want to upload a file usinf cp.puhs from within a state file. Has anybody an example for this? I dont get it :-/
13:31 hobakill eliasp, sorry for the delay - still tyring to find the right command.
13:32 eliasp hobakill: 1st list files on the master using "cp.list_master", then use "cp.get_file" to transfer it to the Minion
13:33 eliasp hobakill: you can display the documentation of individual functions like cp.get_file using "salt your-minion -d cp.get_file"
13:34 hobakill gotcha. ok so here's a funky bit.... if i do the cp.list_master i ONLY see the files in the /base directory... not my /srv/salt/win directory. i only see /srv/salt/win when i specify env=win
13:35 scoates joined #salt
13:36 hobakill eliasp, http://paste.debian.net/109861/
13:37 salt_novice joined #salt
13:38 eliasp hobakill: ok, the reason is very likely: your file root is /srv/salt, so every subdirectory of /srv/salt is interpreted as the root of an environment…
13:39 salt_novice Hello.  Would anyone be willing to give me some pointers on using state.sls to distribute files to a minion on a remote network?
13:39 eliasp hobakill: could you provide your master configuration (e.g. salt your-minion pillar.get master)
13:40 hobakill eliasp, it should be in my ticket one sec....
13:40 hobakill http://pastebin.com/DgWiSp2E eliasp
13:42 hobakill here's the specific output you requested from the minion's view: http://paste.debian.net/109868/
13:42 Andy-ds1 joined #salt
13:42 mgw joined #salt
13:43 hobakill sorry eliasp  - http://paste.debian.net/109868/
13:44 Andy-ds1 Hi all. Anyone managed to deploy psad on minions? I have it working on 4 VM - one is both master/minion. Wondering what files should I manage with salt (except psad.con). Thanks
13:44 martoss1 joined #salt
13:44 superted666 joined #salt
13:47 eliasp hobakill: the problem is really your file_roots configuration… what you should do: add /srv/salt/win also at least to your "base" environment
13:48 eliasp hobakill: otherwise the win-repo will never be "visible" to the "base" environment at all
13:48 vejdmn joined #salt
13:48 jeremyBass joined #salt
13:49 ifmw joined #salt
13:49 hobakill eliasp, interesting. ................. i guess that means i have to re-think the way i'm setting this thing up for future use... because i was going to seperate environments this way a la the example in the master file. .......
13:50 superted666 Hey all, just wanted to bounce something of people who are more familiar with saltstack than i. I've noticed in our environment of around 450 minions, i'm seeing around 11 requests per second around authentication
13:50 superted666 For example:
13:51 jeblair joined #salt
13:51 superted666 2014-07-15 14:42:47,429 [salt.master                                 ][INFO    ] Authentication request from SERVERNAME 2014-07-15 14:42:47,430 [salt.master                                 ][INFO    ] AES payload received with command _master_opts 2014-07-15 14:42:47,436 [salt.master                                 ][INFO    ] AES payload received with command _file_list
13:51 superted666 Is that a normal volume? I'm concerned it seems a little high and wondered if it's a result of some misconfiguration
13:52 hobakill eliasp, i feel like this is going to mess up my top.sls file a lot. or am i wrong?
13:53 micko joined #salt
13:54 eliasp hobakill: well, if you want to have one win-repo per environment, just create another one in another directory and list it as needed in your environments in file_roots
13:54 eliasp hobakill: but this doesn't really have any influence on your top.sls
13:56 lynxman joined #salt
13:56 hobakill eliasp, so file_roots doesn't correspond to top.sls? i thought my top.sls was directly affected by how the file_roots structure was set up
13:56 mpanetta joined #salt
13:56 mechanicalduck joined #salt
13:58 mschiff salt tells me "State cp.push found in sls mystate.foo is unavailable" any idea anyone? must be something very easy I am missing I guess :-/
13:58 hobakill eliasp, for example: http://paste.debian.net/109882/ is my top.sls   i thought base: bdapp: win: all corresponded to the file_root structure in the master file
13:58 eliasp top.sls: "which minion is part of which environment",  file_roots: which directory is part of which environment
13:58 timoguin mschiff: i think cp.push is only in the develop branch
13:59 mschiff timoguin: I can call it drom the cli which is working perfectly....
14:00 mschiff like "salt '*' cp.push /root/salt-test
14:00 hobakill eliasp, exactly..... so shouldn't the windows stuff have it's own environment ergo, it needs it's own file_root and top.sls entry?
14:00 bmcorser joined #salt
14:01 timoguin mschiff: ah, i see. cp.push is an execution module, not a state module. you'd need to use module.run or module.wait to call it from a state
14:01 eliasp hobakill: well, depending on what you use environments for… for me environments are used for the development → production workflow (dev → test → staging → base)
14:01 eliasp hobakill: I use GitFS for all my states and only use the filesystem for windows binaries
14:02 mschiff timoguin: ok, then I was on the right way... but I did not make it work this way, do you have an example somewhere?
14:02 eliasp so I have my win-repo directory included in every environment
14:02 anuvrat joined #salt
14:02 timoguin mschiff: sure, look at the examples in the module state: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.module.html
14:03 timoguin mschiff: and here: http://stackoverflow.com/questions/20773400/salt-stack-using-execution-modules-in-sls
14:04 luminous is something like {%- set conf = salt['pillar.get']('foobar') %}    {%- set user = conf['user'] %}   valid? or does it need to be conf.get('user') ?
14:04 maboum joined #salt
14:05 MTecknology Upgraded to 2014.1.7 and I'm still not seeing event.fire_master end up on the master...
14:06 cnelsonsic joined #salt
14:08 MTecknology Fire the event on the minion, minion authenticates with the master, no event sent...   http://dpaste.com/04WQQE5
14:08 hobakill eliasp, you've made me rethink how i'm doing this whole thing....which i guess isn't bad.
14:10 hobakill eliasp, do you feel comfortable sharing your top.sls with me so i can get a better idea of how to structure things? i want to do a dev INT UAT PROD type of thing too
14:10 jaimed joined #salt
14:12 MTecknology Could anyone prove that it works? Just for my sanity, please.
14:16 rallytime joined #salt
14:16 Andy-ds1 hobakill: here is an example . It follows the same rules as eliasp specifid -> basically ... asign minion to environments -> http://paste.debian.net/109887/
14:18 bhosmer joined #salt
14:18 bhosmer joined #salt
14:18 MrTango joined #salt
14:19 jalbretsen joined #salt
14:20 hobakill after adding the win dir to the base root i still dont' get any package listings eliasp
14:20 Andy-ds1 hobakill: and the structure -> http://imgur.com/lhQS0GM
14:21 hobakill thanks Andy-ds1
14:23 ajolo joined #salt
14:25 mschiff timoguin: thx! My fault was propably to assume that name: would be name: in the module as well, but it has to be m_name: ...
14:25 lynxman joined #salt
14:25 Andy-ds1 hobakill: no problem
14:29 FeatherKing joined #salt
14:30 ipmb joined #salt
14:30 tobias_ joined #salt
14:30 tobias_ howdy
14:30 tobias_ need help, how can I get the external IP of my minion using salt-cloud
14:31 eliasp tobias_: I don't have any salt-cloud experience, but usually the Minion's IP should be available through grains (e.g. salt your-minion grains.get ipv4)
14:33 tobias_ unfortunately, that only gives me the internal IP. Since this is in AWS they also provide an external IP address to it...
14:34 mik3 you need to write some flow control for that
14:34 mik3 either pillar it or do it in the state so that the state you're working with knows to ignore the private network
14:35 aubsticle_ joined #salt
14:35 timoguin except aws minions don't actually have any knowledge of their public IP
14:35 bhosmer joined #salt
14:35 mik3 i only use an ec2 instance but i imagine the interface on your aws has some sort of interface label you could also use
14:35 mik3 ahhh ok
14:36 bhosmer joined #salt
14:36 timoguin there is an external ip grain in salt-contrib that calls out to ip services to get that info
14:36 mik3 yeah i forgot about that, my bad
14:36 timoguin there are probably some other possibilities with AWS' api
14:36 mik3 most likely
14:43 xerxas joined #salt
14:46 aquinas joined #salt
14:47 hobakill i think i need to pay for training. i'm more lost than ever. :( thanks for all the help eliasp et al.
14:47 thedodd joined #salt
14:48 davet1 joined #salt
14:49 XenophonF timoguin and mik3: see ec2-describe-addresses in the EC2 API
14:49 mateoconfeugo joined #salt
14:49 XenophonF that returns the public IP address associated with a given instance ID
14:49 ramishra joined #salt
14:51 hobakill it makes NO SENSE that this is happening anymore: http://imgur.com/VpTkVAe
14:51 kermit joined #salt
14:52 XenophonF there's also ec2-describe-network-interfaces
14:52 mgw joined #salt
14:52 XenophonF but i think that has to do with VPC
14:53 timoguin XenophonF: yea i had looked that up right after. :)
14:54 bhosmer joined #salt
14:56 timoguin looks like boto has a lot of options too: http://boto.readthedocs.org/en/latest/ref/ec2.html
14:57 bhosmer joined #salt
15:00 ndrei joined #salt
15:03 pdayton joined #salt
15:06 dude^2 joined #salt
15:07 dude^2 joined #salt
15:07 martoss joined #salt
15:08 martoss1 joined #salt
15:12 spiette joined #salt
15:14 Eureka_ joined #salt
15:15 Damoun joined #salt
15:16 Lloyd_ Is there a way to manage multiple users on a single postgresql database with the postgres module? Can't seem to find any mention of how to do such a thing in the module/state docs.
15:16 cDR_ joined #salt
15:17 Eureka_ Lloyd_: are you using the postgres_user.present module?
15:18 Lloyd_ yep
15:19 Eureka_ I suspect that "createuser" may be able to take a list of users?
15:20 Lloyd_ well creating the users is one thing, giving them say read only access to a specific database is another
15:20 vejdmn joined #salt
15:21 Lloyd_ basicly we have user1 that is the db owner... that's the easy part with salt. Then we have user2 and user3 that need read only access to the same database that user1 is the owner of
15:22 Eureka_ Lloyd_: Ah, i see. In that case I would probably have saltstack create 2 groups. Then using the inherit tag in the postgres module set the new users(2-3) to be part of the group that has only "read only".
15:23 meteorfox joined #salt
15:23 ajolo__ joined #salt
15:24 Lloyd_ ok but then how do i go about assigning said group to the specific database? Sry the docs are not very clear on this part of assigning users/groups to specific databases
15:25 XenophonF are there any other FreeBSD users running into issues with either the 2014.1.5 or 2014.1.7 packages?
15:26 XenophonF whether I build sysutils/py-salt myself or install the package from the FreeBSD package repository, I get the following error:
15:27 XenophonF pkg_resources.DistributionNotFound: salt==2014.1.7
15:27 XenophonF (or 2014.1.5 depending on the version)
15:28 XenophonF the egg-info files for Salt appear to be missing, which results in this error
15:32 doddstack joined #salt
15:32 anuvrat joined #salt
15:33 Eureka_ Lloyd_: it looks like at the moment there is no easy "grant" module for postgresql yet. https://github.com/saltstack/salt/issues/6558 By using postgres_database.present you should be able to set a owner and template to build the database and set the user/group. Not sure exactly how that will work though as I am not doing that in my use case.
15:33 FeatherKing what is the preferred method to load salt on many machines that dont have it yet? i was looking into saltify but i am getting errors: [WARNING ] The profile 'make_salty' is defining 'saltify' as the provider. Since there's no valid configuration for that provider, the profile will be removed from the available listing
15:34 hobakill eliasp, i've restructured basically everything and it's still not seeing the repo.... getting ready to give up
15:34 gothix joined #salt
15:34 gothix joined #salt
15:35 XenophonF I'm not sure if this is a problem with the FreeBSD package, since the only differences compared to the 2014.1.4 version are version bumps and a few files added to pkg-plist.
15:36 InAnimaTe joined #salt
15:36 cDR_ Guys, is it possible to have a top.sls with multi grain matches? Say (os:CentOS AND osrelease:6.5)
15:36 scoates joined #salt
15:37 elfixit joined #salt
15:37 cDR_ I nm, found it :)
15:37 Eureka_ cDR_: sure is!
15:38 Eureka_ hobakill: what is your error?
15:39 hobakill Eureka_, i get no error. i try to refresh the db and i get "True" on my windows minions.... but then i try to search for a file and i get nothing in return.
15:40 Eureka_ hobakill: thats odd. Have you tried running both the minion and master in -l debug?
15:41 hobakill i have. unless i'm not reading stuff right i'm not seeing anything useful in there but i'm will to give it another shot if you have time to help me make sense of it Eureka_
15:41 mechanicalduck_ joined #salt
15:42 Eureka_ hobakill: I can try. Ive not worked on windows hosts yet.
15:42 kballou joined #salt
15:43 krow joined #salt
15:44 hobakill Eureka_, http://paste.debian.net/109921/
15:45 Eureka_ hobakill: Are you using a multi-master by any chance?
15:45 hobakill Eureka_, no
15:46 Eureka_ hobakill: Are you specifically defining your master in your minion config or just relying on DNS?
15:47 hobakill mostly dns but i can do the former if you think it wouuld help.  they communicate fine with the master. they just don't seem to pull down any repo information
15:48 hobakill like i can ping them and get grain info til i'm blue in the face and that works fine. just the damn repo stuff is tripping me up.
15:49 hobakill also - a single init.sls that i created for a single win box works fine. (the others don't have any inits going to them)
15:49 Eureka_ hobakill: what is the salt command you are issuing?
15:50 hobakill Eureka_, salt -G "os:Windows" pkg.available_version Firefox
15:51 anuvrat joined #salt
15:52 hobakill Eureka_, /srv/salt/win/repo/salt-winrepo.git has a firefox.sls FWIW
15:52 Eureka_ hobakill: try a salt -G 'os:Windows' pkg.refresh_db -v
15:53 hobakill Eureka_, http://paste.debian.net/109923/
15:54 hobakill Eureka_, these are all Win2k12r2 boxes FYI
15:54 rushm0r3 joined #salt
15:55 Eureka_ hobakill: try this from the minion? salt-run winrepo.genrepo
15:56 hobakill Eureka_, you mean salt-call ? i dont' have a -run exe on the windows box
15:56 Eureka_ hobakill: Yeah, sorry!
15:57 hobakill Eureka_, errors aplenty
15:57 Eureka_ hobakill: got ya. what about a salt -G 'os:Windows' pkg.list_pkgs
15:58 gothix joined #salt
15:58 gothix joined #salt
15:58 gothix_ joined #salt
15:58 Eureka_ hobakill: also, sorry. The salt-run should be ran from the master. Not the minion.
15:58 arthabaska joined #salt
15:59 hobakill mmm.ok one sec
15:59 tligda joined #salt
15:59 hobakill Eureka_, this was from the minion if you're at all interested : http://paste.debian.net/109924/
16:00 darkelda joined #salt
16:00 che-arne joined #salt
16:01 vexati0n joined #salt
16:01 hobakill http://paste.debian.net/109925 Eureka_
16:04 gothix joined #salt
16:04 schimmy joined #salt
16:05 gothix joined #salt
16:05 gothix joined #salt
16:05 XenophonF joined #salt
16:05 gothix left #salt
16:05 Eureka_ hobakill: it looks like you dont have the MSI provider installed. Try this out and run the the command salt-run winrepo.genrepo again http://windowsitpro.com/scripting/rem-enabling-wmi-provider-windows-server-2003
16:06 hobakill ok i will....but all these boxes are 2012 r2
16:06 Eureka_ hobakill: right, but from what I read you only get that error if the MSI provider is not working =/
16:07 hobakill Eureka_, and even so - shouldn't i get a listing of available package versions?
16:07 schimmy1 joined #salt
16:08 hobakill Eureka_, that link you provided... is that supposed to go on the minion?
16:09 Eureka_ hobakill:  I would think so but who knows o.0 Also in this case that should be on the minion.
16:10 ramteid joined #salt
16:10 hobakill Eureka_, what the hell is this? :) how do i run it? i am very bad at windows.
16:10 rushm0r3 joined #salt
16:11 Eureka_ hobakill: Not sure if you need to run it afterall =/ Here is a description of the problem on server 2012r2 https://github.com/saltstack/salt/issues/11038
16:13 hobakill Eureka_, interestingly i have win_servermanager.installed init salt state working fine.
16:14 hobakill http://paste.debian.net/109927/ <<<<<<<<<<<------------------------ that works fine
16:14 hobakill Eureka_,  ----------^
16:14 ajw0100 joined #salt
16:14 scarcry joined #salt
16:14 Eureka_ hobakill: that is very odd.
16:14 mschiff may it be that file.recurse cannot download files from minionfs sources? (version 2014.1.5)
16:15 mschiff here it creates directories but but does not download any files contained in a directory
16:15 mschiff with cp.get_dir it is working fine...
16:15 mschiff (using same source:)
16:16 mpanetta_ joined #salt
16:16 KyleG joined #salt
16:16 KyleG joined #salt
16:17 Damoun joined #salt
16:18 hobakill mschiff, is that directed towards me?
16:19 mschiff hobakill: only if you have an idea about it. I was asking about a problem I am currently having here ...
16:19 mschiff ;)
16:20 hobakill haha sorry bud i'm totally lost in my thing. yours just sounded familiar mschiff
16:20 dzen :WIN "
16:20 dzen frak.
16:20 hobakill b/c on my windows minions i don't have any data in c:\ salt / var / cache / salt / minion / files / base / win / repo /
16:21 Eureka_ hobakill: what versions are your minions/master?
16:21 hobakill Eureka_, 2014.1.5
16:22 hobakill (using the EPEL repo Eureka_ )
16:23 pdayton1 joined #salt
16:24 jas- joined #salt
16:26 mschiff [X] Note: file.recurse does not work with minionfs sources (works with cp.get_dir though)
16:26 hobakill http://paste.debian.net/109930/ Eureka_ it can see the files as well just fine... (this is mirrored on the other minions as well) Eureka_
16:28 rushm0r3 hi! having some trouble with a basic mysql returner. can connect via mysql-client so know that is good. debug on client states that the return failed for job x too many values to unpack (some python error?). The master debug shows it received a return with the same jid. but the insert never occurs in the db. presumably because of the client failure.
16:28 rushm0r3 minion failure*
16:28 Eureka_ hobakill: that is too strange.
16:29 hobakill Eureka_, welcome to my last two days. :/
16:30 rushm0r3 joined #salt
16:31 rushm0r3 https://gist.github.com/colinreidbrown/cd65c64f792e6519c3dd
16:32 Eureka_ hobakill: did the salt-run winrepo.genrepo fail again?
16:34 hobakill well i never did the thing.....i still am not sure how to execute that script Eureka_
16:35 gothix joined #salt
16:35 gothix joined #salt
16:36 jas- joined #salt
16:37 alainv Is Salt generally considered mature enough to run over the open internet or are there some outstanding fixes before that's recommended?
16:37 hobakill Eureka_, regardless a winrepo.p file is generated. i could remove that entire git dir and it wouldn't see the one software package i've created.
16:38 joehillen joined #salt
16:40 hobakill Eureka_, check it out: http://paste.debian.net/109935/
16:40 gothix joined #salt
16:40 gothix joined #salt
16:40 Eureka_ hobakill: It might be that the minion dosnt know where to find the winrepo.p file?
16:41 Eureka_ try setting win_repo_cachefile on the minion
16:41 Eureka_ give it a source of salt://winrepo/winrepo.p (or wherever it is generated on the master)
16:42 hobakill Eureka_, it's set to the default currently which is salt://win/repo/winrepo.p which matches my enviro....
16:42 Eureka_ hobakill: bah
16:42 hobakill (though it's commented out ATM )
16:43 Eureka_ hobakill: is it getting to the minion? can you find it on the minion?
16:43 jh0486 joined #salt
16:43 hobakill Eureka_, i think that's the crux of this whole thing.... the minion has the file structure it would seem but never pulls a file
16:44 Eureka_ hobakill: it could be a cluge but can you use a file.managed to push it to the minion?
16:45 forrest joined #salt
16:45 hobakill Eureka_, http://imgur.com/xp3dVpN
16:46 gothix joined #salt
16:46 gothix joined #salt
16:46 rushm0r3 joined #salt
16:48 hobakill Eureka_, can you verify that this file structure is kosher? http://paste.debian.net/109936/
16:51 Eureka_ hobakill: that looks correct to me. It should start with the top two. if it cant find the file it should get to the last one.
16:51 troyready joined #salt
16:53 gothix can anyone tell me why acl.getfacl works and acl.addfacl returns "Function acl.addfacl is not available"
16:54 rushm0r3 joined #salt
16:55 hobakill Eureka_, just spun up a 2k8r2 box...gonna see if that makes  a difference. :/
16:55 Eureka_ hobakill: ok =/ good luck. im still reading other stuff for it
16:57 ipalreadytaken joined #salt
16:58 chrisjones joined #salt
16:58 rushm0r3 joined #salt
17:00 dude051 joined #salt
17:01 APLU joined #salt
17:02 hobakill Eureka_, can't blame 2012r2.... cuz i can't get it to work on 2k8r2 either
17:03 matthew-parlette joined #salt
17:03 Ryan_Lane joined #salt
17:03 hobakill Eureka_, oncec again directory structure in var/ looks perfect on the minion but simply no file(s)
17:04 martoss joined #salt
17:04 martoss1 joined #salt
17:05 Ryan_Lane anyone know how I can make these code errors go away for dunders in my editor?
17:05 Ryan_Lane without disabling the check for undefined values...
17:05 q1x joined #salt
17:06 q1x hi guys, anyone here using iptables states?
17:07 ajolo joined #salt
17:07 hobakill q1x, i have a very basic setup for iptables
17:09 eliasp Ryan_Lane: what are you talking about?
17:09 eliasp Ryan_Lane: what kind of errors in which editor?
17:09 gothix File linux_acl.py is installed
17:10 q1x hobakill: how are you handling default policies? When I try to set the default policy for INPUT to DROP, it somehow interferes with my minion communications
17:10 Ryan_Lane eliasp: __salt__, for instance isn't a defined variable, so it reports as an error
17:10 thedodd joined #salt
17:10 eliasp Ryan_Lane: in vim?
17:10 Ryan_Lane I don't remember which check this is. pyflakes maybe? I'm using python-mode in vim
17:10 eliasp ok
17:11 q1x the machine keeps responding, even to new salt runs (like salt '*' test.ping) but it never returns to send the output for the state that was run.
17:11 eliasp Ryan_Lane: does the message look like this: "14 col 47 error| [undefined-variable] Undefined variable '__salt__'"
17:11 q1x When I remove my default policy statements from the sls, it runs fine and returns the output
17:12 Ryan_Lane eliasp: yep
17:12 jh0486 Hi guys - I am somewhat new to salt. I was wondering what is best practice for salt in regards to multi-platform testing (similar to test kitchen). I found salt-kitchen but I don't like the idea of using ruby code in a salt project. I am currently just using the salt provisioner in vagrant with a local master but I would like to automate the spin up of multiple platforms for testing. Anyone out there currently doing something like this
17:12 matthew-parlette joined #salt
17:12 q1x the weird thing is that it did set the policy
17:12 Ryan_Lane jh0486: saltstack itself uses test-kitchen
17:12 Ryan_Lane the python frameworks for this kind of stuff aren't as good, in general
17:12 timoguin Ryan_Lane: they do?
17:12 Ryan_Lane timoguin: do they not?
17:13 timoguin I would love to see a write-up on that.
17:13 eliasp Ryan_Lane: using the syntastic plugin? if so, try this in your ~/.vimrc:
17:13 eliasp let g:syntastic_python_pylint_post_args='--disable=undefined-variable'
17:13 timoguin I don't know. Hadn't heard that before
17:13 Ryan_Lane eliasp: heh. I don't want to disable undefined variables. that catches valid errors
17:14 gothix can anyone tell me why acl.getfacl works and acl.addfacl returns "Function acl.addfacl is not available" when the linux_acl module is installed?
17:14 timoguin I've been tossing around the idea of creating some kind of mock values for the dunder dictionaries
17:14 Ryan_Lane timoguin: hm. maybe it isn't using that
17:14 timoguin so custom modules can be developed without having to run the full salt stack
17:14 Ryan_Lane jh0486: http://docs.saltstack.com/en/latest/topics/development/tests/integration.html
17:14 hobakill q1x, i'm afraid i use a simple file.managed to write the iptalbes the way i want them and then have a watch on that file to restart iptables if needbe
17:15 q1x hobakill: ah, ok. I was using the new iptables states :-)
17:15 q1x s/was/am/
17:15 hobakill Eureka_, any thoughts? i'm totally stuck and i think eliasp is probably sick of my question in the room :)
17:15 eliasp hobakill: no, I'm not… just didn't have much more time to investigate and then lost track ;)
17:16 davet joined #salt
17:16 hobakill eliasp, haha! yeah - well i've made some changes since we last spoke but sadly not much has changed.
17:16 hobakill q1x, this is what i do: http://paste.debian.net/109946/
17:18 hobakill q1x, probably not super sexy but it gets the job done.
17:18 q1x hobakill: that works, but I like the idea of using the ip tables state modules. :-) but I think I'm running into a bug
17:18 rushm0r3 joined #salt
17:19 hobakill q1x, when i tried using the states module new lines were appended to my iptables file each time the minion did a highstate so i'd have like 50 :8080 rules. :)
17:19 q1x hobakill: that doesn't seem to be happening in my case :-) guess that that is fixed....?
17:20 hobakill maybe. i'm like level 1 salt pro. if the scale is 1-999
17:20 gothix Because its not acl.addfacll its acl.modacl thats why
17:21 gothix lol
17:21 conan_the_destro joined #salt
17:21 eliasp gothix: you can always check which methods a module offers by running something like "salt a-minion -d acl"
17:22 eliasp gothix: this would list you all available methods + their documentation of the 'acl' module
17:22 Eureka_ hobakill: Not sure. At the moment ive not found anything useful and I dont have a 2012/2008 server to test with at the moment.
17:23 gothix eliasp, Thanks Im new to the whole python thing as well as salt. I guess its such a rapidly developed project too stuff gets out of sync. Thanks for the tip!
17:24 Eureka_ hobakill: can you attempt to transfer a file directly to the host just to see if it works? something like salt -G 'os:Windows' cp.get_file salt://SOMEFILE C:\somedir\filename
17:24 Ryan_Lane eliasp: export PYFLAKES_BUILTINS="__salt__,__opts__,__grains__,__pillars__"
17:24 analogbyte joined #salt
17:24 eliasp Ryan_Lane: awesome, thanks…
17:24 Ryan_Lane if you put that into your bashrc and source it, the errors go away
17:25 Ryan_Lane hm. let me make a gist with all the dunders
17:25 Ryan_Lane export PYFLAKES_BUILTINS="__salt__,__opts__,__grains__,__pillars__,__context__"
17:25 Ryan_Lane there we go
17:26 anuvrat joined #salt
17:26 hobakill Eureka_, sure one secl
17:26 Damoun joined #salt
17:29 aw110f joined #salt
17:30 hobakill Eureka_, http://paste.debian.net/109947/
17:30 bhosmer joined #salt
17:31 Eureka_ hobakill: darn. so it can copy stuff over. Its just not copying the windows repo stuff
17:31 hobakill Eureka_, odly tho i can't find the file anywhere.
17:31 hobakill oddly
17:31 vejdmn joined #salt
17:32 donnyk joined #salt
17:33 aubsticle_ joined #salt
17:33 donnyk Hi, I've defined a scheduled job in a pillar to run at 5 pm.  How can I force running it manually right now?  How do you normally check the output of the jobs?
17:33 Eureka_ hobakill: oh thats odd. Can you run the minion in debug and run it again?
17:34 gothix joined #salt
17:37 rushm0r3 joined #salt
17:37 q1x yup, there is definitly something buggy going on with the policy mechanism in the modules
17:37 hobakill is salt-minion -l debug supposed to bomb out at the end? i get zmq.error.ZMQerror: Protocol not supported
17:37 hobakill Eureka_, and then i'm presented with a C:\
17:38 hobakill Eureka_, and the master can no longer see the minion
17:38 MTecknology If anyone is running a 2014.1.7 minion and master, could you do me a favor and run   salt-call event.fire_master '{"data":"my event data"}' 'sometag'   while running eventlisten.py on the master? I'm not seeing events come through and suspect it's me but want to be sure.
17:39 Eureka_ hobakill: oh thats no good. I doubt that should happen. The minion should continue to run in debug. Maybe your minion is crashing?
17:39 Eureka_ MTecknology:  are you using a multi-master setup? I found a bug with events and reactors.
17:40 hobakill trying a reinstall
17:41 MTecknology Eureka_: I have four syndic servers and one master of masters. In this case, I'm trying to have this minion connect directly to the master
17:42 FeatherKing donnyk: you could try  salt-run jobs.list_jobs and look for the job
17:42 Eureka_ Ah. how do you have the connection to the master defined in the minion? The bug I found depends on that format
17:43 donnyk and is there a way I can run the job that's not scheduled to run until later?
17:43 FeatherKing if your job is just a state then run salt \* state.sls yourstate
17:45 donnyk where should I put the "schedule:" http://docs.saltstack.com/en/latest/topics/jobs/schedule.html option?  I stuck it in the pillar...should it be in the state file instead?
17:45 rushm0r3 joined #salt
17:45 Eureka_ MTecknology: Ah. how do you have the connection to the master defined in the minion? The bug I found depends on that format
17:47 FeatherKing been a while since i used schedule but it does go in pillar i believe, but all it does is call a state to run
17:47 FeatherKing so whatever your args is in the schedule you would probably run like salt 'host' state.sls args
17:47 FeatherKing just from the command line
17:47 donnyk i see, i will try
17:47 FeatherKing whatever the function is in your schedule
17:47 FeatherKing like salt 'host' function args
17:48 FeatherKing is all it is
17:48 FeatherKing from the cli
17:48 FeatherKing so if your schedule works, then the cli should be really similar
17:49 FeatherKing anyone use sudo password in a map file?
17:49 FeatherKing mine seems to die using salt-cloud and sudo in a map
17:49 hobakill Eureka_, it says it copied it over to the minion but i still don't see any file.
17:50 elfixit joined #salt
17:50 KyleG1 joined #salt
17:54 Eureka_ hobakill: thats very strange. Maybe its not getting the path right somehow
17:55 hobakill ok this is weird......it's.................i dunno............not doing a real copy. check this out.
17:56 gothix left #salt
17:56 hobakill Eureka_, ignore the first line: http://paste.debian.net/109955/
17:56 arthabaska joined #salt
17:57 vejdmn joined #salt
17:57 Eureka_ hobakill: its acting like it already passed it to the client and its in the cache? Try modifying the test file and run it again.
17:57 gothix joined #salt
17:59 hobakill eliasp, was suggesting that my paths were wrong in my /etc/salt/master file. i wonder if i'm still doing something incorrectly
18:00 cbaesema joined #salt
18:00 MTecknology Eureka_: uhm... You're exactly right!
18:00 MTecknology You have a bug number for me by chance?
18:00 MTecknology I have it in the multi-master format but have issues when using multiple masters (syndics)
18:01 Eureka_ MTecknology:  https://github.com/saltstack/salt/issues/13879
18:02 Eureka_ MTecknology: the multi-master format seems to break things for me and causes events to never "fully" fire for reacotrs.
18:02 Eureka_ MTecknology: its an odd bug to say the least.
18:02 hobakill Eureka_, eliasp we might be cooking with fire now.... one sec.
18:03 MTecknology Eureka_: basically the exact same thing here.
18:04 jslatts joined #salt
18:04 Eureka_ MTecknology: I thought so... The only workaround I have found is to define a single master in the single master format. Its an accepted bug in milestone o.0
18:04 hobakill Eureka_, eliasp http://imgur.com/yoGXE0i
18:05 druonysus joined #salt
18:05 MTecknology Eureka_: I don't think multi-master is really ready for use yet (personally)
18:06 Eureka_ MTecknology: I tend to agree, however I was surprised that even defining a single master in the multi-master format triggered the issue.
18:06 MTecknology yup
18:06 eliasp hobakill: 'salt your-minion cp.list_master | grep winrepo.p'
18:07 smcquay joined #salt
18:07 hobakill eliasp,     - repo/winrepo.p
18:07 mpanetta_ joined #salt
18:08 eliasp hobakill: there is your problem: your debub output states it's looking for win/repo/winrepo.p
18:08 eliasp hobakill: so it's still your file_roots vs. environments issue
18:08 eliasp hobakill: you need to fix your file_roots
18:08 hobakill eliasp, i thought i had....
18:09 hobakill eliasp, i have everything under base:
18:09 hobakill - /srv/salt/base - /srv/salt/win - /srv/salt/whatever....
18:09 yomilk joined #salt
18:10 JasonSwindle joined #salt
18:11 hobakill eliasp, http://paste.debian.net/109960/
18:11 KyleG joined #salt
18:11 KyleG joined #salt
18:14 JoeHazzers joined #salt
18:17 jhauser joined #salt
18:17 helderco joined #salt
18:18 jslatts joined #salt
18:18 Eureka_ hobakill: do you have a /srv/salt/repo folder?
18:18 hobakill Eureka_, i have /srv/salt/win/repo folder
18:19 kivihtin joined #salt
18:20 Ryan_Lane is there any way we can do actual redirects on docs.saltstack.org rather than pages with "This has been moved to here"?
18:25 hobakill Eureka_, i am thoroughly confused by how top.sls and file_roots interact
18:26 ckao joined #salt
18:26 Eureka_ hobakill: Hopfully I can help with that. Basically the file_roots define where the system looks for files/states for your different environments. For example. the BASE environment is probably applied to all systems in your set (stuff like default firewall rules and whatnot). Then if you have something like a Production or QA environment you put everything in those folders and define the file_root in the master config file. This allow
18:27 Eureka_ hobakill: your state files for specific setup reside.
18:27 Eureka_ So in your particular case, because you are defining the base and giving it several locations, it will look for your state/files in the first location, if they are not found it will look in the next location...etc...
18:28 hobakill Eureka_, thank you. but i make a new file_root for windows and i do a cp.list_master the minion doesn't seen anything other than base:
18:28 kermit joined #salt
18:29 mgw is there some sort of magic going on here: https://github.com/saltstack/salt/blob/v2014.1.7/salt/utils/event.py#L186-191
18:29 mgw or is the tag param just ignored?
18:30 Eureka_ hobakill: if you want a "windows only" environment you would need to set that in your master config. Where is your file_root definition setup?
18:30 hobakill Eureka_, /etc/salt/master
18:31 Eureka_ ok, and you have restarted your salt-master since setting that?
18:31 hobakill yes. currently it looks like this:
18:31 hobakill file_roots:
18:31 hobakill base:
18:31 hobakill - /srv/salt/base
18:31 hobakill - /srv/salt/bdapp
18:31 hobakill win:
18:31 hobakill - /srv/salt/win
18:32 hobakill but with this configuration, cp.list_master doesn't see the files APART from what's under base:
18:32 Eureka_ hobakill: ok, and what does your top file look like? (this should be in /srv/salt/base)
18:33 hobakill Eureka_, http://paste.debian.net/109964/
18:33 hobakill Eureka_, but that top file was when i had /srv/salt/base, bdapp, win all in the same base: file_root
18:34 hobakill Eureka_, with this new config i'd but that SALTWINTEST2 nonsense under a win: header
18:34 Eureka_ hobakill: so you have defined the environment win: in your master but your top file has no idea that it exists. You need a listing for it (basically the same way you list base: but with win: instead
18:34 Jahkeup joined #salt
18:35 luminous is something like {%- set conf = salt['pillar.get']('foobar') %}    {%- set user = conf['user'] %}   valid? or does it need to be conf.get('user') ?
18:36 hobakill Eureka_, yep. i had that exact setup in the past and i was told that i was doing it wrong.
18:37 hobakill Eureka_, so now i have this: http://paste.debian.net/109966/
18:37 luminous part of me is still bitter salt did not exist when I had to deal with windows hosts. but not having to use windows now more than makes up for it
18:39 Eureka_ hobakill: that looks right. Make sure to restart your master as well.
18:39 picker joined #salt
18:42 maboum When using salt-cloud over AWS, is there a way to specify the private ip address for each new instance in the map file?
18:42 hobakill Eureka_, still nothing.
18:44 lz-dylan Similar to maboum's question: does Salt know how to do anything with elastic IPs outside of VPC? There's a reference to EIPs in http://salt.readthedocs.org/en/latest/topics/cloud/aws.html?highlight=elastic#launching-instances-into-a-vpc...
18:44 hobakill the minion STILL cannot see any files in /srv/salt/win
18:44 hobakill Eureka_, for some reason the minino is still trying to fetch from the 'base' env
18:45 ml_1 joined #salt
18:46 Eureka_ hobakill: is that when running a highstate or are you trying to run a single state file?
18:48 giannello joined #salt
18:48 RandalSchwartz Hmm.  I'm missing the idiom for what I want... I want to essentially have a hash (or list?) of "features" accumulated by various grain includes, which then defines a series of includes in my states/top.sls
18:49 RandalSchwartz I already have each host including a grain based on its fqdn, and from there, I'm including various roles.
18:49 RandalSchwartz but I need those roles now to define features too
18:50 anuvrat joined #salt
18:50 aquinas joined #salt
18:50 RandalSchwartz does pillar.get('features').keys do somewhat of what I want, if I look on that?
18:51 RandalSchwartz and then maybe I can set "features: master: 1" or something?
18:53 RandalSchwartz is my question too confusing? :)
18:54 hobakill Eureka_, something is wacky. do i need to set my base in my minion config file as well?
18:54 Eureka_ hobakill: You should not need to. I have not had to do that with mine.
18:54 JasonSwindle joined #salt
18:58 XenophonF hey RandalSchwartz are you running Salt 2014.1.5 or 2014.1.7 installed from ports on any of your FreeBSD systems?
18:59 hopthrisC joined #salt
19:01 hopthrisC is there a way to have multiple state declarations of the same type within one id declaration?
19:01 hopthrisC i mean, no, obviously not, but what should i do instead?
19:01 hobakill Eureka_, i might quit my job just to avoid windows + salt
19:02 RandalSchwartz it looks like hashes in pillar data don't accumulate.
19:02 * RandalSchwartz sighs
19:02 Eureka_ hobakill: hah.. may be bad but it cant be *that* bad.
19:02 eliasp hopthrisC: yes, you can have for example multiple packages within a single ID: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html#salt.states.pkg.installed
19:02 dude^2 joined #salt
19:03 RandalSchwartz currently salt 2014.1.4
19:03 RandalSchwartz but as soon as I finish these salt rules, I can upgrade. :)
19:03 eliasp hopthrisC: see the "pkgs" param
19:04 hopthrisC eliasp: i'm not entirely sure about the terminology, but i think i want multiple functions of the same module
19:04 hopthrisC like file.comment and file.replace
19:04 RandalSchwartz I've got 2014.1.7 package ready to be installed
19:04 XenophonF I'm not sure if I've run into a problem with the port, the ports infrastructure, or Python/setuptools, but the egg info isn't getting installed by the py27-salt-2014.1.5 or py27-salt-2014.1.7 packages
19:04 eliasp RandalSchwartz: you can control merging of pillars using merge=True/False … to use this in states, you'll have to use salt[pillar.get] instead of the pillar dictionary then
19:05 eliasp RandalSchwartz: see: http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.pillar.html#salt.modules.pillar.get
19:05 XenophonF same goes for the current version of the sysutils/py-salt port
19:05 eliasp if you're using gitfs, stay away from 2014.1.7 and wait for .8
19:05 RandalSchwartz salt '*' pillar.item states shows only one
19:05 eliasp see also: https://github.com/saltstack/salt/issues/14240
19:05 q1x joined #salt
19:06 cro eliasp: Note that gitfs and git pillars are two separate things.
19:06 eliasp cro: eh, yep… you're right ;)
19:06 RandalSchwartz and this fails: salt '*' pillar.get merge=True states
19:06 RandalSchwartz as does this: salt '*' pillar.get merge=True states
19:07 RandalSchwartz oops... also tried it with states before merge
19:07 RandalSchwartz where I've tried to set "states: maayan: true" and in another file "states: admin: true"
19:07 eliasp RandalSchwartz: hmm, you're right… that's weird
19:08 RandalSchwartz is there some other way to accumulate so I can get one dictionary in a state file that I can ripple through to generate my next level includes?
19:08 schmutz joined #salt
19:08 RandalSchwartz right now I have {% if pillar.get('is_admin_site') %} \n - admin \n [% endif %}
19:09 RandalSchwartz but that's getting pretty repetitive
19:09 RandalSchwartz I guess I could hardwire the list of things to check in the top.sls
19:10 eliasp RandalSchwartz: can't give you much advise regarding this as I'm still struggling a bit with my pillars setup, but some days ago I read an blog-article regarding pillars + roles… let's see if I can find it
19:10 RandalSchwartz [% for inc in ['admin', 'brochure']; if pilar.get('is_ ' + inc + '_site' } %} - - {{ inc }} ...
19:10 RandalSchwartz something like that
19:10 eliasp RandalSchwartz: I think it was this one… maybe it provides something helpful: http://dev.mlsdigital.net/posts/SaltStackBeyondJinjaStates/
19:12 RandalSchwartz looking
19:13 RandalSchwartz Ugh.  I was sorta happy with that article until he says: "It certainly is refreshing to have the full power of Python available! "
19:13 RandalSchwartz no - it's not, not if you don't know python
19:14 patarr joined #salt
19:14 eliasp hehe
19:14 patarr hello all. Does salt support something like gitfs/git pillar but for svn?
19:14 gothix joined #salt
19:14 gothix joined #salt
19:14 eliasp patarr: I think there's now a hgfs, but I don't know of SVN
19:14 patarr aww :( thanks eliasp
19:15 eliasp patarr: there actually is 'svnfs', but it looks like it's only in 'develop' so far
19:15 eliasp patarr: current fileserver backends: http://bpaste.net/show/466037/
19:16 RandalSchwartz oh - I think I may have it
19:16 eliasp patarr: where "current" == "develop"
19:16 patarr i cant recall specifics, but there are loads of features im waiting for in develop :)
19:16 RandalSchwartz is there a way to get all keys from the pillar, and then try to replace s/^include_// and if that succeeds, use the modified key as part of a jinja include?
19:17 eliasp patarr: oh, looks like this is actually in 2014.1.x: https://github.com/saltstack/salt/tree/v2014.1.7/salt/fileserver
19:17 patarr btw, would you perhaps know if it's possible to define a top file of your environment and then use libvirt states to bring it up?
19:17 RandalSchwartz then I can just say "include_brochure: true" in the pillar
19:17 patarr If I rerun a libvirt state that defines a machine, it won't create another if it already exists i assume?
19:17 eliasp patarr: that's how states should work… if that's not the case, there's a bug
19:17 patarr fantastic.
19:18 aubsticle_ joined #salt
19:20 patarr I'm looking through states/all and I just noticed rabbitmq cluster support when I implemented my own...
19:21 * patarr facepalms
19:21 eliasp :)
19:21 eliasp patarr: take it as "training" ;)
19:21 forrest patarr, what do you feel would have made that easier to find for you?
19:21 patarr I'm liking salt more and more.
19:21 patarr forrest: I don't think it could be easier than that. I just wasn't expecting salt to be so comprehensive in the states it supports.
19:22 patarr It's totally my fault for not CTRL+F "rabbit"
19:22 patarr eliasp: it seems as though there isn't a state for libvirt? Just a very barebones one that manages keys of sorts.
19:23 patarr CTRL+F "jboss" darn :P
19:24 hobakill Eureka_, i've figured it out... more or less. now i just need to figure it out to match my environment
19:24 gamedna joined #salt
19:26 RandalSchwartz so any thoughts on "get all keys of pillar, sort out the ones that say "include_foo", and then include foo ?
19:26 RandalSchwartz My jinja skills are still pretty weak
19:28 chiui joined #salt
19:28 q1x hobakill: solved my problem with a cmd.run and unless
19:29 hobakill q1x, i've employed that a few times myself. nice work.
19:29 q1x there seems to be some bugs in the iptables policy code
19:29 hobakill eliasp, i get what i'm supposed to do now.... tho i still can't get my minion to see a file structure in /srv/salt/win
19:30 hobakill eliasp, do i need to make any changes in the minion conf file?
19:31 hobakill eliasp, if i have /srv/salt/win in my base: file_root and change the minion conf file to read salt://repo/winrepo.p for the win_repo_cachefile it works as expected... however, that's not how i want my envirotnment set up. i'd like a win: env
19:31 q1x hobakill: just commented out the proper way and patched it the dirty way :-P
19:32 q1x I'll retry it in a couple of months :-)
19:32 eliasp hobakill: no need to set anything on the minion
19:33 eliasp hobakill: if you want a 'win' environment, do this: … typing …
19:33 victorpoluceno joined #salt
19:33 Eureka_ hobakill: awesome! Glad to hear it!
19:34 RandalSchwartz How do I do string concatenation in jinja?
19:35 matthew-parlette RandalSchwartz: I believe that is with ~
19:35 matthew-parlette so 'string1' ~ 'string 2' makes 'string1string2'
19:35 matthew-parlette I've used that inside {{ }} in state files, so I think that is what you are looking for
19:36 Eureka_ RandalSchwartz: reference: http://jinja.pocoo.org/docs/templates/  search for "Other Operators"
19:36 XenophonF RandalSchwartz: + is the string concat operator in Python
19:39 eliasp RandalSchwartz: for your role-stuff, you might also want to try a really nifty hack: e.g. YAML supports so called anchors… https://gist.github.com/bowsersenior/979804#file-stooges-yml
19:39 eliasp so you could have something like &{{ pillar['role'] }} in your SLS
19:40 eliasp wait… not &{{ ... }} but *{{ ... }}
19:40 eliasp & defines the anchor
19:40 eliasp * references it
19:41 johngrasty Anybody using/familiar with the nginx.ng formula?
19:41 RandalSchwartz {% for inc in ['admin', 'brochure'] %}
19:41 RandalSchwartz {% if pillar.get('include_ ' ~ inc) %}
19:41 RandalSchwartz I don't like hardwireing the inc list, but I don't know how to get all keys that match "include_" otherwise.
19:43 RandalSchwartz well - I want a given "role" table to be built up by differently included pillar files
19:43 RandalSchwartz so that won't quite help yet
19:44 lz-dylan when using salt-cloud, do delete_all_vols_on_destroy and rename_on_destroy belong in profiles or providers?
19:48 sectionme joined #salt
19:50 jrdx joined #salt
19:56 q1x hmm, if I want to use a salt formula from the salt github repo, do I need to 'mount' that repo in my salt env somewhere?
19:56 RandalSchwartz is pillar an ordinary hash?  Can I say "for k, v in pillar" in jinja?
19:57 lz-dylan q1x: you can just grab the files and dump them in your /srv/salt, but the cleaner way is to fork the repo and include your forked copy location in your file_roots
19:58 lz-dylan q1x: http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
19:58 q1x lz-dylan: thanks, I have forked the formula I need, put the git repo in /etc/salt/master as gitfs
19:59 octarine joined #salt
19:59 aquinas_ joined #salt
19:59 q1x but I'm getting "No matching sls found for 'docker-host' in env 'prod'" when i try an include of the formula in docker-host/init.sls
20:00 q1x So I think I'm missing some glue
20:00 dude051 joined #salt
20:01 q1x If I comment out the include, the state runs without problems (i created a file.exists to test in the init.sls)
20:01 Jerkberg joined #salt
20:01 lz-dylan q1x: have you restarted your salt-master? you need to do that to re-read /etc/salt/master
20:01 q1x yup, did that
20:02 RandalSchwartz what's wrong with this: set shortk = k.replace('include_', '')
20:02 q1x lz-dylan: should I put gitfs before roots in fileserver_backend?
20:03 lz-dylan q1x: yes to that, but it shouldn't matter. ... trying to remember how this goes...
20:03 RandalSchwartz can I not create a variable out of another variable? :)
20:03 bensons RandalSchwartz: via jinja?
20:03 RandalSchwartz yes
20:03 q1x lz-dylan: doesn't that delay looking up stuff that is local?
20:03 RandalSchwartz it says "ValueError: too many values to unpack"
20:04 RandalSchwartz yet those look a lot like the examples
20:04 harkx joined #salt
20:04 johngrasty Anybody using/familiar with the nginx.ng formula?
20:04 lz-dylan q1x: so you set fileserver_backend to include gitfs, add your repo to gitfs_remotes... (just checked, my own master [which uses gitfs] has roots first and it works). can you paste/gist your gitfs_remotes section?
20:04 harkx joined #salt
20:04 RandalSchwartz oh... the error is here: {% for k, v in pillar %}
20:04 q1x lz-dylan: getting the same error :-(
20:04 bensons RandalSchwartz: use |replace instead of .replace (as far as i can remember)
20:05 lz-dylan johngrasty: I think that depends on SaltStack Helium, which isn't released yet
20:05 RandalSchwartz I can't use |, I don't want to interpolate it... just capture it.
20:05 johngrasty lz-dylan: What version is/will Helium be? I get very confused keeping version names and numbers straight. :-D
20:05 RandalSchwartz how do I get all the keys in the pillar (he says again)
20:06 lz-dylan johngrasty: ditto! :) closest thing I've heard is "it's the Next Release" but it'd help if someone else here could verify.
20:06 q1x lz-dylan:
20:06 q1x gitfs_remotes:
20:06 q1x - git://github.com/q1x/docker-formula.git
20:07 RandalSchwartz ahh - pillar.keys() :)
20:07 RandalSchwartz well - now I have my solution
20:07 JasonSwindle joined #salt
20:08 johngrasty lz-dylan: Gotcha. Thanks. I'm really wanting to try it out, but develop is broken on SmartOS.
20:08 q1x lz-dylan: I have 'git' in fileserver_backends...should that be 'gitfs' ?
20:08 Jerkberg left #salt
20:08 lz-dylan q1x: 'git' is correct
20:08 RandalSchwartz this is what I finally ended up doing: http://pastebin.com/yZDBpPnN
20:09 lz-dylan q1x: I'm not seeing the problem :/ you're doing an 'include: \n  - docker'?
20:09 RandalSchwartz and now my pillar can define "include_foo: true"
20:09 q1x yup
20:09 RandalSchwartz and cause my top.sls to include foo
20:09 RandalSchwartz yeay
20:09 ndrei joined #salt
20:09 lz-dylan q1x: see if you can just do 'salt '(target)' -l debug state.sls docker' (where (target) might be *)
20:10 irctc993 joined #salt
20:11 TheRealBill joined #salt
20:11 johngrasty lz-dylan: Just so I understand the naming convention...the next release will be 2014.2?
20:12 q1x lz-dylan: ok, that worked
20:12 lz-dylan johngrasty: I freely admit to not understanding the naming convention.
20:12 quickdry21__ joined #salt
20:12 q1x lz-dylan: hmm...seems to be env related
20:12 johngrasty lz-dylan: Fair enough.
20:12 q1x that command didn't take the env into account
20:13 JasonSwindle joined #salt
20:13 lz-dylan q1x: cool! that's progress :) you may need to play with env and your top file.
20:14 q1x hmm, what is best practice? reference the base account in the includes or try to 'mount' the formula in the specific env?
20:14 q1x s/account/env
20:14 RandalSchwartz next ugh.  cron.file is reporting having updated the file even though it replaced it with itself. :(
20:14 RandalSchwartz and it has a weird diff
20:14 RandalSchwartz maybe it doesn't like last line beginnig with "@daily"
20:15 lz-dylan q1x: I'm not really sure, as I've barely touched environments. Worth having a gander at http://docs.saltstack.com/en/latest/topics/best_practices.html
20:16 RandalSchwartz nope - it's always showing the last line changed. :(
20:16 RandalSchwartz even if that's just a comment
20:16 RandalSchwartz ugh
20:16 q1x lz-dylan: thanks so far! I'll figure it out now :-) that debug command was really handy!
20:16 Doqnach joined #salt
20:17 lz-dylan q1x: Glad to hear, best of luck!
20:17 RandalSchwartz Ahh... I see what it's doing.  It doesn't have the final newline on what gets installed.  So it generates it again, and notes the newline is different
20:17 rushm0r3 joined #salt
20:17 RandalSchwartz I guess I just live with spurious update notices until that's fixed.
20:19 martoss joined #salt
20:22 tempspace joined #salt
20:23 magentawb joined #salt
20:23 jslatts joined #salt
20:27 q1x lz-dylan: using ' - base: docker' instead of ' - docker' in the include seems to have fixed it for now. I might run into problems later if I want to use different code bases of the formula in my envs later, but 'll solve that when I run into the problem. :-)
20:27 q1x thanks again!
20:28 XenophonF left #salt
20:31 q1x left #salt
20:31 doddstack joined #salt
20:31 johngrasty lz-dylan: At least you can now see the release notes (at least partial notes) at http://docs.saltstack.com/en/latest/topics/releases/2014.7.0.html
20:34 FeatherKing i think python is mangling my password, it is very similar to q4BKSNi>(<2q, is there some way i should be escaping it? specifically i am using salt-cloud and saltify, i am logging in using ssh but it fails elevating with sudo
20:34 Eureka_ joined #salt
20:35 lz-dylan johngrasty: getting my hopes up :) going from 2014.1.x to 2014.7.x is an interesting jump. I continue not to understand.
20:35 eliasp FeatherKing: could you try exluding each non-ASCII character after another until it works to find out which one is causing the problem?
20:35 johngrasty lz-dylan: Lol. It's part of the game!
20:36 FeatherKing eliasp: changing my password on the machine you mean?
20:36 FeatherKing and trying with a diff password
20:36 djaime joined #salt
20:36 eliasp FeatherKing: yes… just temporarily changing it until you've figured out which of the characters causes this…
20:37 FeatherKing ok
20:38 FeatherKing also note, this works ssh -t -t -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none lspeed@XX.XX.XX.XX "echo 'q4BKSNi>(<2q' | sudo -S /tmp/.saltcloud/deploy.sh -c /tmp/.saltcloud -K"
20:38 FeatherKing but salt switches the quotes, single quotes around the outside, and double quotes around the password
20:38 FeatherKing regardless salt logs in ok via ssh, i can see that in debug
20:39 FeatherKing same pw
20:44 Damoun joined #salt
20:44 jslatts joined #salt
20:46 zooz joined #salt
20:47 anuvrat joined #salt
20:48 MTecknology Can anyone see any reason this wouldn't work? http://dpaste.com/2EV2TGX  I'm getting   Failed to render "/srv/reactor/minion-request.sls"
20:49 sectionme joined #salt
20:50 rjc joined #salt
20:52 KyleG joined #salt
20:52 KyleG joined #salt
20:56 ajolo__ joined #salt
20:56 aw110f joined #salt
20:59 n8n joined #salt
21:03 FeatherKing eliasp: it doesnt seem to work with sudo at all, i removed all the special chars and it still fails. set sudo: False and it works up until it actually needs sudo
21:03 tligda joined #salt
21:03 eliasp FeatherKing: sorry, no idea right now…
21:03 victorpoluceno joined #salt
21:05 DanGarthwaite joined #salt
21:06 DanGarthwaite Performance issues with "salt-call mine.get" from a minion.  Five simultaneous calls and the server starts to melt and four CPUs max out.
21:06 DanGarthwaite Sorry, the minion starts to melt.  The master does OK.
21:06 DanGarthwaite Is there a way to cache connections or something?
21:06 kedo39 joined #salt
21:07 oeuftete joined #salt
21:07 ashb joined #salt
21:07 ahale joined #salt
21:07 Hazelesque joined #salt
21:07 ksalman joined #salt
21:07 amontalban joined #salt
21:07 rcsheets joined #salt
21:07 copelco joined #salt
21:07 gldnspud joined #salt
21:07 toddnni joined #salt
21:07 kevinbrolly joined #salt
21:07 jab416171 joined #salt
21:08 xsteadfastx joined #salt
21:08 toddejohnson joined #salt
21:10 vbabiy joined #salt
21:12 cofeineSunshine joined #salt
21:12 cofeineSunshine joined #salt
21:12 helderco joined #salt
21:12 ajolo__ joined #salt
21:14 active8 joined #salt
21:15 MTecknology Eureka_: this is fun... I'm looking closer and it seems like two events happen on the master when I run event.fire_master. They're identical, but there should be only one.
21:16 Eureka_ MTecknology: thats strange. Im not sure I was seeing that.
21:16 MTecknology same timestamp for the event too
21:16 avn_ Hi guys. I use salt-formula to manage both master and minions. But after highstate I see _second_ process of minion in memory. How I can fix/avoid it?
21:16 MTecknology actually... it looks like the auth event happens twice too...
21:16 tligda joined #salt
21:17 eliasp avn_: that's nothing unusual… the minion needs to fork a worker to which the actual job is delegated to so the main minion process stays responsive
21:17 MTecknology nope
21:17 MTecknology grr
21:19 eliasp avn_: http://docs.saltstack.com/en/latest/ref/configuration/minion.html#thread-settings
21:20 Eureka_ MTecknology: do you have 2x minions running on the same host somehow? Try killing it and restarting it and verifying only one is running?
21:20 FeatherKing so if sudo doesnt work with the saltify cloud provider, what are my other options to deploy salt to existing vm's?
21:21 Eureka_ MTecknology: Also, i think ive read about that happening if you have a problem with the key on the salt minion (remove the minion from the master, delete its key, then restart it and re-auth it to the master).
21:25 lz-dylan If I want to include modules from salt-contrib, where would salt-master look for them?
21:25 jbirdman joined #salt
21:26 manfred /srv/salt/_modules
21:26 manfred lz-dylan: http://docs.saltstack.com/en/latest/ref/file_server/dynamic-modules.html
21:26 lz-dylan manfred: ooh, that's really convenient--it'd end up in the same git repo as my states. thanks!
21:28 RandalSchwartz to update salt-master salt-minion
21:28 RandalSchwartz master first, then minion
21:28 RandalSchwartz or other way around
21:28 eliasp master first, minions should never be newer than the master
21:28 RandalSchwartz thanks
21:29 MTecknology Eureka_: heh... neat.... if salt-minion isn't running, a single auth event will happen on the master and then nothing else. If the minion is running, then it all works fine except that everything is duplicated.
21:29 avn_ eliasp: so after that I get two "same" minions try to make same work, (and states which involve some compilation and deployment behavoirs unpredictable)
21:29 kermit joined #salt
21:29 MTecknology but that's not the cause etiher.
21:29 MTecknology either*
21:29 eliasp avn_: uh, that should actually not happen… the second spawned minion should be just a child of the primary
21:29 MTecknology Eureka_: I think I've decided to say screw it to syndication servers.
21:30 Eureka_ MTecknology: yeah. Dont think they are ready yet..;
21:30 MTecknology I'll just have them all come back to one... it's just too much effing headache.
21:30 bhosmer joined #salt
21:30 MTecknology :(
21:30 MTecknology Eureka_: THANKYOU!!!!!!!!
21:30 MTecknology Could be really awesome someday. Today is not that day.
21:30 Eureka_ MTecknology: Hah yeah. Sorry im not more help!  ;)
21:31 MTecknology You were a massive help.
21:32 xerxas joined #salt
21:32 RandalSchwartz can pillar items have "-" in the keys?
21:33 a1j https://github.com/saltstack/salt/issues/14255
21:33 MTecknology Eureka_: I would have kept fighting it and fighting it. You saved me from ~20hr of head banging (or more).
21:35 Eureka_ MTecknology: Just happy I happened to be here ;) That annoying bug with multimaster took me a day to track down o.0
21:35 martoss joined #salt
21:37 kamal_ Is it possible to loop over all minions in a jinja template?
21:38 kamal_ I'm trying to configure iptables on one of the minions and I'd like to have it update automatically whenever I add a new minion
21:38 eliasp kamal_: http://stackoverflow.com/questions/17158665/how-to-get-a-list-of-all-salt-minions-in-a-template
21:39 kamal_ Thanks
21:39 jhauser joined #salt
21:41 RandalSchwartz Uh oh.  upgraded to 2014.1.7 and now salt_master won't come up :(
21:42 lz-dylan so once I've put a few items in /srv/salt/_grains and run salt-call saltutil.sync_all, should those new grains plugins show up in the output?
21:42 yomilk joined #salt
21:42 avn_ eliasp: they both have "1" as parent process
21:42 eliasp RandalSchwartz: any useful output when trying to start it with -l debug?
21:43 RandalSchwartz trying an upgrade in case it didn't upgrade python correctly
21:43 lz-dylan right now I get: https://gist.github.com/arubis/bf7738dcc5d6259e438a
21:44 lz-dylan oop, hold that thought
21:45 lz-dylan I'd wget-ed (wgot?) scripts into the wrong location. Now it works a treat!
21:46 RandalSchwartz yeah - with -l, got this http://pastebin.com/w8iTXjat
21:48 eliasp RandalSchwartz: how did you install the update? using 'pip' or 'pkgng'?
21:48 RandalSchwartz pkgng
21:48 RandalSchwartz I see a file in site-packages called "salt"
21:48 RandalSchwartz but no corresponding "egg info"
21:48 RandalSchwartz I suspect it needs that
21:48 eliasp looks like a build issue to me
21:49 RandalSchwartz it built fine
21:49 mgw joined #salt
21:50 eliasp sure, I just meant that the build changed in a way causing the egg not to be layed correctly…
21:50 sectionme joined #salt
21:50 RandalSchwartz is there something I can type to get me running again?
21:50 eliasp downgrade to 2014.6 or .5?
21:51 RandalSchwartz The build system always builds the latest though... whatever ports wants
21:51 eliasp no way to tell ports the version you want?
21:51 RandalSchwartz maybe... let me look in the ports config
21:56 JasonSwindle joined #salt
21:56 bhosmer joined #salt
21:57 ml_1 joined #salt
21:57 avn_ eliasp: nice, minion from ppa launched twice -- once using initscript from init.d, and second one using upstart
21:57 peters-tx joined #salt
21:57 eliasp aah… the awesomness of sysv/upstart… f**ing hellhole! ;)
22:00 tligda joined #salt
22:01 avn_ eliasp: and I believe all issues I asked yesterday goes from second copies of minion (and possible master too ;))
22:01 eliasp hehe
22:01 eliasp good you figured that out
22:01 avn_ eliasp: would be nice, if both minion and master complain about second copies run with same configs/ports
22:02 eliasp avn_: maybe try to locate the issue (postscript in pkg running the init-script additional to upstart job?) so others won't run into the same issue…
22:02 eliasp yep, would need some kind of locking
22:04 avn_ may be event not true locking, but clear message in logs about second copy
22:07 erchn joined #salt
22:08 erchn sup y'all, anyone know if 2014.1.5 (minion) and 2014.1.7 (server) is a valid setup?
22:08 erchn aka, does that work?
22:09 forrest erchn, it might, but no promises.
22:09 forrest I haven't tried it yet
22:09 eliasp erchn: theoretically yes… usually it's the best to have the same version on both, but within the same minor-version it usually works
22:10 maboum_ joined #salt
22:10 erchn ok, that's what I thought, hmm....will keep investigating
22:11 oz_akan joined #salt
22:11 logix812 joined #salt
22:12 bdf joined #salt
22:12 gzcwnk Hi I am trying to downlaod a file via file.managed and I am getting " Unable to determine upstream hash of source file salt://salt/sedndmail.mc ?
22:13 gzcwnk sendmail.mc, even
22:13 tkharju1 joined #salt
22:13 Eureka_ gzcwnk: you need to use source_hash with an md5 sum of the hash for it to verify and download the file.
22:13 Eureka_ gzcwnk: if you are on linux you can use md5sum filename to get the md5 hash. Then put this in your state. source_hash: md5=HASHHERE
22:14 gzcwnk oh great and how do I do that?
22:14 meteorfox joined #salt
22:14 gzcwnk k, ta
22:19 gzcwnk now I have another error, unkown URL type, can I use a cifs mount point?
22:20 dstokes anyone know if there's configuration to enable streaming minion output to the master, rather than buffering until the minion is finished?
22:20 dstokes similar to sal-call's output?
22:21 n8n joined #salt
22:21 Eureka_ gzcwnk: Can you paste what your state file looks like?
22:23 gzcwnk sure, http://pastebin.com/kjACpr94  tanks btw
22:23 gzcwnk thanks
22:23 gzcwnk hehe
22:23 gzcwnk i have a rad only cifs mount
22:23 gzcwnk read
22:23 Eureka_ gzcwnk: Ah, you dont need the source to define the url. Change it to this: source: salt://salt/sendmail.mc
22:24 gzcwnk just salt fails
22:24 lz-dylan anyone familiar with the ec2_tags grain?
22:24 druonysuse joined #salt
22:24 druonysuse joined #salt
22:24 Eureka_ gzcwnk: Have you defined your file_roots ?
22:25 gzcwnk uh, no idea what a file root is
22:25 gzcwnk so no I guess
22:26 lz-dylan I've dropped ec2_tags.py into my /srv/salt/_grains (alongside ec2_info.py, which seems to work just fine), and synced it to a minion launched using salt-cloud with an IAM role that allows reading all EC2 resources
22:26 Luke joined #salt
22:26 lz-dylan but salt '*' grains.ls doesn't show ec2_tags.py's output
22:26 Eureka_ gzcwnk: Ah, ok. On the salt master in the configuration file you need to define the roots. This allows the salt master to know where to get stuff from. This should give a good idea of how to define it. Let me know if you still are having issues. http://docs.saltstack.com/en/latest/ref/configuration/master.html
22:32 kaiserpathos joined #salt
22:33 gzcwnk Eurika nope, I broke the master
22:33 Eureka_ Can you post your master config, top file, and sls?
22:33 gzcwnk So how do I tell teh inbuilt cifs server to get files from /salt ?
22:34 gzcwnk teh master fiel is un-edited except I only have 3 worker threads
22:35 Eureka_ gzcwnk: It will have to be mounted on the master. From there it can be listed under the roots and salt can pull files from it.
22:35 gzcwnk http://pastebin.com/f7LB0kaH
22:36 gzcwnk um, I odnt understand what you mean by mounted
22:36 gzcwnk I have some files under /salt I just want to copy to a minion
22:37 RandalSchwartz found a downrev package... trying to restart salt_master now
22:37 RandalSchwartz YEAY... it's alive
22:37 RandalSchwartz OK - no autoupgrading salt version :)
22:37 eliasp RandalSchwartz: congrats… might wanna file an issue for this…
22:38 RandalSchwartz with who?  FBSD?
22:38 quickdry21__ joined #salt
22:39 Eureka_ gzcwnk: Ok. In your master confi file add the following. http://pastebin.com/sk2eTm7W
22:39 gzcwnk I did that and the master wouldnt restart
22:39 Eureka_ gzcwnk: then. Modify your state file to look like this. http://pastebin.com/Py9tg6rB
22:40 Eureka_ gzcwnk: then restart the master.
22:40 eliasp RandalSchwartz: are the ports information for the saltmaster build provided by Saltstack or FBSD?
22:40 tkharju2 joined #salt
22:40 gzcwnk wierd now it restarts, I must have had a space or something
22:43 Eureka_ gzcwnk: =) Try running your state.
22:43 gzcwnk yeah its failing, http://pastebin.com/hPK0VWrH
22:44 eliasp gnaah… I ran into old non-environment and/or fileserver-backend aware stuff all over the place ;(
22:44 eliasp could somebody lend me 5 full-time devs to fix that? ;)
22:44 Eureka_ gzcwnk: what dose your file structure look like?? is everything under /salt ?
22:45 gzcwnk salt itself is under /srv/salt  the downlaods are /salt
22:45 gzcwnk so I should move my files?
22:46 Eureka_ gzcwnk: oh. Well that makes sense then. you can update the file_roots to look more like this. http://pastebin.com/MPQDtVmP
22:46 Eureka_ gzcwnk: it should attempt to look under /srv/salt first. If it cannot find it, it will look under /salt
22:48 gzcwnk ah, right
22:48 gzcwnk thats neater
22:48 Eureka_ gzcwnk: make sure to restart your master after making the change.
22:49 gzcwnk yeah I forgot...doh
22:49 gzcwnk :)
22:49 RandalSchwartz I suspect provided by someone in the FBSD community
22:50 gzcwnk cool, thanbsk eureka
22:50 gzcwnk :D
22:50 sectionme joined #salt
22:51 eliasp RandalSchwartz: is there a central repository from where FBSD pulls the ports?
22:51 Eureka_ gzcwnk: No problem. Hope its working now!
22:52 mgw joined #salt
22:53 pjs RandalSchwartz Hey fello ARP buddy.. glad to see I'm not the only one using salt on fbsd
22:55 eliasp ok, success… got my shit running ;)
22:55 eliasp got to run now by myself to catch the last bus… see you tomorrow ;)
23:00 mosen joined #salt
23:04 patarr im playing with the lvm state and i dont see anything about mountpoints..
23:05 patarr how do I have a state define a new logical volume that is /opt for example?
23:06 badon joined #salt
23:12 whytewolf http://docs.saltstack.com/en/latest/ref/states/all/salt.states.mount.html
23:13 patarr thanks whytewolf
23:13 patarr whytewolf: do you by any chance know if it this state will do things like automatically resize the root LV to make space for another I define?
23:13 tkharju3 joined #salt
23:14 elfixit joined #salt
23:14 whytewolf I do not know, never used it personally. also not sure how to handle building the filesystem on the lvm device.
23:14 patarr The part that confuses me is that if it does NOT do that, then I would probably have to configure the entire LVM system from the salt state like in the example. But is that possible given a machine that is originally installed with / on a regular partition? I can't change the entire system to be LVM after the fact can I?
23:14 lz-dylan Can you set grains in cloud.profile (instead of cloud.providers)?
23:15 whytewolf looks like it only handles creating, not resizing. just looking at the docs
23:16 CF933428 joined #salt
23:17 forrest you could use http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.parted.html via the module state
23:21 TheThing|24-7 joined #salt
23:32 rushmore joined #salt
23:37 notpeter_ joined #salt
23:40 diegows joined #salt
23:43 _2_Lima134 joined #salt
23:45 hobakill joined #salt
23:51 sectionme joined #salt
23:51 badon joined #salt
23:55 pjs can anyone help me with Vagrant + salt setup?
23:56 pjs nvm.. I found examples in salty-vagrant
23:58 ml_1 joined #salt
23:59 dude051 joined #salt

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