Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-06-27

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

All times shown according to UTC.

Time Nick Message
00:00 KyleG sigh yeah, it just happened again…the first highstate worked but now…nope. hrm
00:01 Hell_Fire_ joined #salt
00:04 ramishra joined #salt
00:04 joehh nickg: updated precise packages coming shortly
00:08 to_json joined #salt
00:10 forrest Gareth, are you going to be attending the doc sprint?
00:18 Gareth forrest: Going to try and attend virtually.
00:18 joehoyle joined #salt
00:18 forrest Gareth, cool
00:19 mgw joined #salt
00:22 joehh nickg: updated packages available from ppa - they have the patch applied
00:22 forrest joehh, which one?
00:23 schristensen joined #salt
00:23 borgstrom joined #salt
00:24 joehh not sure exactly what you mean, but new lucid and precise packages including 3 bug fix patches (openvz grains, iptables --help and master ext_nodes) now available from ppa:saltstack/salt (salt stable)
00:24 forrest gotcha
00:24 joehh currently being copied to the 2014.1 ppa
00:39 otter768 joined #salt
00:45 nickg joehh: i patched the master.py and it seems to be working. messing around with custom grains now :)
00:45 mateoconfeugo joined #salt
00:46 alanpearce joined #salt
00:47 Nazca joined #salt
00:48 allanparsons qq - do you think it'd be a good idea to make source_hash on a remote file.managed an optional paramter?
00:49 allanparsons i want to download source freshly from bootstrap.saltstack.com and execute it
00:49 allanparsons and i dont care if the file changes
00:53 JPaul joined #salt
00:56 ipalreadytaken joined #salt
00:58 Teknix joined #salt
01:05 ramishra joined #salt
01:17 mapu joined #salt
01:24 joehoyle joined #salt
01:32 ipalreadytaken joined #salt
01:35 jhauser_ joined #salt
01:37 happytux joined #salt
01:41 tligda joined #salt
01:42 sdebot joined #salt
01:46 TyrfingMjolnir joined #salt
01:49 analogbyte joined #salt
01:50 nickg joeehh so if I include ppa saltstack/salt would the salt-minion be able to update itself?
01:56 mateoconfeugo joined #salt
01:57 yetAnotherZero joined #salt
01:58 nickg it doesn't seem to work
02:02 jalbretsen joined #salt
02:04 nickg heh.. salt-minion updating themselves does not make themselves happy.
02:05 TyrfingMjolnir_ joined #salt
02:06 ramishra joined #salt
02:10 CeBe1 joined #salt
02:10 TyrfingMjolnir joined #salt
02:14 justlooks joined #salt
02:15 jcsp joined #salt
02:16 mateoconfeugo joined #salt
02:16 rallytime joined #salt
02:17 justlooks hi , i send install tomcat command though REST request (salt api ) ,but i do not know how to judge if the install process is ok or fail in client
02:18 seventy3 joined #salt
02:19 druonysus joined #salt
02:19 druonysus joined #salt
02:30 nickg whoever inveted 'at' probably had no idea how difficult they would make things 40 years down the road for people trying to search for items related to it
02:30 dude051 joined #salt
02:32 sander^work joined #salt
02:33 smcquay joined #salt
02:34 Shenril joined #salt
02:36 smcquay joined #salt
02:37 Teknix joined #salt
02:38 whiteinge justlooks: how did you do the install?
02:38 whiteinge justlooks: did you run it sync or async?
02:39 justlooks whiteinge: i run it in batch mode ,so client can get tie jid
02:39 nickg does anyone understand how Salt passes arguments down to the various states python files?
02:40 whiteinge nickg: yeah, what are you wondering about?
02:40 justlooks whiteinge: the sync and async mode no difference from my test , both return quickly
02:41 nickg whiteinge: does the internal code blindly pass all key/values or is there a head somewhere that defines which each function can accept?
02:41 whiteinge justlooks: the sync calls have an issue with the timeout not being respected if you're not sending JSON. the async will always return immediately and you need to poll the job URL for the results
02:42 whiteinge nickg: there's a function in salt's utils called format_call() that maps dictionary keys to function arguments
02:43 nickg whiteinge: ok i'll research.  for some reason states/at.py is not gettting the user or runas arguments properly passed to them
02:43 justlooks whiteinge: i increase the timeout to very big value ,still return quickly ,not wait the timeout value ,though my install process still not finish
02:44 whiteinge justlooks: what content-type are you sending?
02:46 TheThing joined #salt
02:46 whiteinge nickg: yeah, the runas/user conditionals in that function is a little hairy
02:46 justlooks whiteinge: https://gist.github.com/justlooks/709a312fdf0ed38935c8
02:47 nickg whiteinge: what's really strange is i'm trying to log.debug(user) immediately after def present(..) and it comes back as None even though I specify - user: bob
02:47 pdayton joined #salt
02:47 nickg whiteinge:  its as if it never even gets to the function
02:47 alanpearce joined #salt
02:49 whiteinge justlooks: yeah, adding the timeout kwarg there won't work. if you don't want to use JSON, you'll need to use the async call instead
02:49 ramishra joined #salt
02:49 whiteinge justlooks: the async call will return immediately, then you can look up the results later
02:50 TyrfingMjolnir joined #salt
02:51 whiteinge justlooks: sec, i'll pastebin a JSON example
02:53 justlooks whiteinge: but if i use async call ,i get job id , i can only check if my job is finished by checking if my job id in job list,if it is not in job list ,i can only know my job is finished ,i still can not judge if my job sucess,or fail
02:55 davet joined #salt
02:58 whiteinge justlooks: the job ID will be in the job list even if no minions have returned yet. however the actual minion returns will show up on the /jobs/<jid> URL when the minions are finished. so you'd have to fetch that URL every few seconds until it is non-empty
02:58 whiteinge justlooks: i left a comment on your gist of how to send JSON
02:58 nickg whiteinge: ok i figured it out, this entire code is useless
02:58 whiteinge (didn't test, so apologies if i mistyped something)
02:58 whiteinge nickg: :(
02:59 tkharju joined #salt
02:59 nickg whiteinge: the code requires runas in the end.  If you send runas, internally it sets user and erases runas.  If you send runas & user, it erases runas.  if you send user, it does nothing.  but in the end, still needs runas which will always end up as None
03:00 nickg guess ill try to fork and submit a patch
03:01 yomilk joined #salt
03:02 whiteinge nickg: weak sauce
03:02 whiteinge glad you figured it out though. a patch would be most welcome
03:06 druonysuse joined #salt
03:08 nickg whiteinge: pull request submitted
03:09 yomilk_ joined #salt
03:12 savvy-lizard joined #salt
03:13 jimklo joined #salt
03:13 joehoyle joined #salt
03:13 whiteinge nickg: merged. thank you
03:14 whiteinge nickg: if you don't want to wait for the next salt release you can put that .py file into /srv/salt/_modules and it will override the version that ships with salt
03:14 nickg whiteinge: neat.  i just figured out the sudo command to put into the at job :)
03:15 jimklo is there an easy way to determine what states failed?  my scrollback wasn't long enough
03:16 TyrfingMjolnir joined #salt
03:18 jcsp1 joined #salt
03:18 joehh nickg: it is the master you need to update
03:19 joehh though you patched that already
03:20 whiteinge jimklo: salt-run jobs.list_jobs; salt-run jobs.lookup_jid <jid> | less
03:20 joehh I think the minions should be able to update themselves - almost certain they can on debian with init.d scripts
03:20 joehh haven't checked for awhile with ubuntu and upstart
03:20 jimklo thanks
03:36 TaiSHi Hi everyone
03:36 TaiSHi Can someone help me debug a php-formula ?
03:36 TaiSHi The php-formula, actually
03:36 TaiSHi Getting this as a result
03:37 TaiSHi TypeError encountered executing state.highstate: 'NoneType' object is not iterable. See debug log for more info.  Possibly a missing arguments issue:  ArgSpec(args=['test', 'queue'], varargs=None, keywords='kwargs', defaults=(None, False))
03:37 TaiSHi It seems it happens when iterating pools
03:37 jcsp joined #salt
03:38 TaiSHi No idea what could be wrong
03:38 TaiSHi manfred: ping :P it's driving me nuts
03:38 pdayton joined #salt
03:40 ramishra joined #salt
03:43 justlooks whiteinge: thank you very much ,you sloved my big problem
03:44 whiteinge justlooks: woot :)
03:44 justlooks whiteinge:  if i set the timeout to 10min ,i need wait 10min before the command return ,or just when the install process finished?
03:45 whiteinge justlooks: tbh, i'm not sure. i suspect it will return as soon as the minion returns
03:52 justlooks whiteinge:  it seems raise cherrypy.TimeoutError  ,when the timeout reach ,and minion still not finish it's job
03:53 whiteinge ah, dang. it's hitting the HTTP timeout
03:53 whiteinge there's not a config setting to change that value yet :(
03:55 joehoyle joined #salt
03:55 whiteinge justlooks: sounds like we'll have to go the HTTP polling route. I can pastebin an example if you want
03:55 * TaiSHi is about to burn his girlfriend
03:56 whiteinge o_O
03:56 TaiSHi She's pissed I spent 250$ (local currency, give or take 25 dollars)
03:57 TaiSHi On coffee
03:57 whiteinge heh
03:57 TaiSHi I mean, I ran errands all fucking day for her, some stuff for a wedding and shit
03:57 whiteinge TaiSHi: pastebin/link the problem php formula? i'll take a look
03:57 TaiSHi And the only thing that matters is that I bought 3 boxes of nespresso
03:57 TaiSHi https://github.com/saltstack-formulas/php-formula
03:57 TaiSHi That one I'm running
03:58 TaiSHi Or trying to
03:58 TaiSHi I submitted an issue, thought it probably is something on my end
03:58 whiteinge are you running the init.sls? or which file?
03:58 * goodwill hugs Whissi
03:58 * goodwill hugs whiteinge
03:59 whiteinge hey Whissi needs hugs too
03:59 whiteinge (isn't that a quote from the first terminator movie?)
03:59 * whiteinge hugs goodwill right back
04:00 TaiSHi whiteinge: I'm running php.ng from there
04:01 TaiSHi http://pastebin.com/LWtgyZcN <- that's /srv/salt/top.sls reference
04:02 TaiSHi And the pillar I make reference to...
04:02 mateoconfeugo joined #salt
04:02 goodwill TaiSHi: dood?
04:03 TaiSHi ?
04:03 goodwill TaiSHi: why are we setting people on fire?
04:03 TaiSHi Oh, been arguing with my gf for 2 hours
04:03 goodwill TaiSHi: pour some water on her, she will melt
04:03 TaiSHi For something really stupid
04:03 goodwill fire does not work
04:03 TaiSHi She's at her home
04:04 whiteinge TaiSHi: pastebin your pillar?
04:04 TaiSHi If she were here I would have slapped her like a decent man should
04:04 whiteinge :(
04:04 TaiSHi the reference or the file itself whiteinge ?
04:04 whiteinge TaiSHi: the pillar values you are using for the formula
04:05 whiteinge TaiSHi: and please don't talk about slapping women in #salt.
04:05 goodwill blast_hardcheese: ping
04:05 TaiSHi Oh great, something is broken in git
04:05 TaiSHi whiteinge: I have never hit a woman, I was joking
04:05 whiteinge TaiSHi: let's keep this channel friendly and welcoming for all.
04:06 * goodwill agrees with whiteinge
04:06 whiteinge i know you were joking. still, let's keep it friendly, please
04:06 TaiSHi Her father was abusive, her grandfather as well
04:06 TaiSHi k
04:06 whiteinge ty :)
04:06 TaiSHi Ok, sec, git just
04:06 TaiSHi broke something
04:06 TaiSHi It isn't fetching a file I deleted
04:08 * goodwill hugs TaiSHi
04:08 * TaiSHi hugs goodwill
04:08 TaiSHi Sorry I brought my rage here
04:08 goodwill it happens
04:09 goodwill just trying to keep it mellow in here
04:09 johanek any advice on how to debug this more?
04:09 goodwill :)
04:09 johanek oops
04:09 TaiSHi Hmm, keep forgetting to refresh pillars
04:10 TaiSHi Hmm, whiteinge for some reason it works
04:10 TaiSHi Something was very, very broken
04:11 whiteinge well that's sort of good news then. :-)
04:11 TaiSHi I refreshed the pillar and it unaccepted my minion
04:11 TaiSHi It might be because it shared the IP with another minion
04:11 whiteinge i'm sure you would have appreciated that good news 20 minutes ago though :-P
04:11 TaiSHi It now explodes somewhere else
04:11 TaiSHi But at least it's a step forward
04:12 TaiSHi Oh trust me, I love banging my head on this kind of stuff
04:12 TaiSHi Seriously
04:12 whiteinge hehe :)
04:12 TaiSHi wtf?!
04:13 TaiSHi php-formula
04:13 TaiSHi installed APACHE!
04:13 TaiSHi the horror!
04:14 whiteinge justlooks: sorry, my dev env was broken. still working...
04:17 schimmy joined #salt
04:17 TaiSHi I should sleep
04:17 TaiSHi But i need to figure why it's installing libapache
04:18 xmj joined #salt
04:19 goodwill TaiSHi: if you are on a debian based system its cause they make that a dep I believe
04:19 TaiSHi ubuntu
04:19 TaiSHi But I'm using nginx
04:20 TaiSHi And grep gave no conclusive results
04:20 TaiSHi Woosh
04:21 TaiSHi Digital Ocean is taking ages to deploy
04:22 TaiSHi Oh well this vm will fail it seems
04:23 dvogt joined #salt
04:24 Eugene The metapackage "php5" does indeed use mod-php as a depdency. The formula should probably specify php-common instead
04:24 TaiSHi Oh, I think php5-fpm does not need php5
04:24 Eugene Though according to this it will also take php5-fpm as a valid dependency, but you'd need to specify that at install time
04:24 TaiSHi Right?
04:24 Eugene Other way around.
04:24 TaiSHi Hmm
04:25 TaiSHi Perhaps install fpm first
04:25 Eugene Yeah, that'd solve it
04:25 TaiSHi I could call it first in top
04:25 TaiSHi If only this VM would deploy
04:25 Eugene Or just don't install the metapackage ;-)
04:26 TaiSHi I have a vague memory of needing it for some reason
04:26 Eugene Nope. php-fpm by itself(really php5-fpm; the former is an alias) will bring in php5-common
04:26 TaiSHi Ok, DO NYC2 died
04:26 Eugene Which is the /other/ dependency of the previously named php5 meta
04:26 ndrei__ joined #salt
04:26 Eugene Surprise. This is why I'm a Linode customer
04:27 whiteinge justlooks: how do you feel about an example that uses jq to process the json? http://stedolan.github.io/jq/
04:27 TaiSHi Eugene: in this particular case, I have to stick with DO
04:28 Eugene I'm not actually trying to convert you, just make yo ufeel bad about the choice.
04:28 TaiSHi Not really mine
04:28 TaiSHi But they already put 60 dollars on the account so
04:31 TaiSHi anyone here using gluster ?
04:35 TaiSHi Lovely, DO staff is sleeping =)
04:38 allanparsons joined #salt
04:39 malinoff joined #salt
04:39 TaiSHi Well, nearly 2 am
04:39 TaiSHi I -should- be sleeping
04:40 allanpar_ joined #salt
04:41 darrend joined #salt
04:43 ajolo joined #salt
04:49 alanpearce joined #salt
04:49 ramteid joined #salt
04:53 whiteinge heh
04:53 whiteinge me too
04:53 TaiSHi woof
04:53 TaiSHi Something is wrong with my profiles
04:54 TaiSHi It should have sent a highstate
04:54 tkharju joined #salt
04:56 mateoconfeugo joined #salt
04:56 TaiSHi It was working, delayed but working
05:04 aquinas joined #salt
05:06 anuvrat joined #salt
05:08 TaiSHi well, issues went to gh for my personal record
05:08 TaiSHi bed time
05:08 TaiSHi night all
05:10 ramishra_ joined #salt
05:21 taterbase joined #salt
05:22 smcquay joined #salt
05:27 jcsp1 joined #salt
05:28 whiteinge 'night
05:29 ramishra joined #salt
05:36 thayne joined #salt
05:50 yomilk joined #salt
05:51 swa_work joined #salt
06:06 anuvrat joined #salt
06:17 ajolo_ joined #salt
06:19 yomilk joined #salt
06:29 APLU joined #salt
06:30 jcsp joined #salt
06:35 jdmf joined #salt
06:37 picker joined #salt
06:40 jalaziz joined #salt
06:42 Hell_Fire_ joined #salt
06:46 happytux_ joined #salt
06:51 dgk joined #salt
06:51 jeddi joined #salt
07:03 ramishra joined #salt
07:03 ndrei joined #salt
07:03 ndrei_ joined #salt
07:05 ndrei joined #salt
07:11 ml_1 joined #salt
07:12 alanpearce joined #salt
07:13 felskrone joined #salt
07:15 martoss joined #salt
07:15 ipalreadytaken joined #salt
07:16 ajolo__ joined #salt
07:27 chiui joined #salt
07:31 lynxman joined #salt
07:33 malinoff joined #salt
07:34 alanpearce joined #salt
07:34 ramishra_ joined #salt
07:43 HontoNoRoger joined #salt
08:01 martoss joined #salt
08:02 jdmf joined #salt
08:10 anuvrat joined #salt
08:16 ajolo joined #salt
08:22 Hook joined #salt
08:28 N-Mi joined #salt
08:28 N-Mi joined #salt
08:29 justlooks joined #salt
08:30 sxar joined #salt
08:33 Hell_Fire joined #salt
08:34 sxar joined #salt
08:37 justlooks hi,i have a problem , i have a salt pillar file ,what i think is  if the pillar file has a record " port=3306 " that's mean's i install some software ,and open it in 3306 ,but i need open many instance on different port , if i can write like " port=var_myport " ,and send var_myport: 3306 in json format though salt-api ,is it possible?
08:39 smcquay_ joined #salt
08:40 whiteinge justlooks: are you running state.sls or state.highstate? how are you using the pillar data?
08:40 smcquay_ joined #salt
08:40 jalaziz joined #salt
08:42 justlooks whiteinge: i let my sls read from pillar ,and write my template config file,when the install process done ,i send the new config file to minion
08:43 whiteinge cool. so you can supply custom pillar values as a kwarg to state.sls or state.highstate. the syntax looks like this:
08:44 whiteinge curl -sSi http://localhost:8000 -d client='local' -d tgt='*' -d fun='state.sls' -d arg='myslsfile' -d arg='pillar="{foo: Foo!}"'
08:44 justlooks whiteinge: awesome ,let me try it
08:45 whiteinge the string on the right-hand side of the = will get evaluated as YAML, just like on Salt's CLI
08:46 whiteinge if you're sending JSON instead the syntax is a little better
08:48 justlooks whiteinge: so if i have  " foo: Bar " in pillar file ,it will be overwrite as " foo: Foo" ?
08:48 whiteinge yes. the pillar kwarg takes precedence
08:49 whiteinge json example looks like this (if i didn't typo anything):
08:49 whiteinge echo '[{"client": "local", "tgt": "*", "fun": "state.sls", "kwarg": {"mods": "mysls", "pillar": {"foo": "Foo!"}}}]' | curl ...
08:50 justlooks whiteinge: many thanks
08:50 whiteinge np
08:52 blast_hardcheese joined #salt
08:56 brain5ide joined #salt
08:56 CeBe joined #salt
08:58 darkelda joined #salt
09:00 jalaziz joined #salt
09:05 yomilk joined #salt
09:07 whiteinge justlooks: btw, I left another comment on your gist
09:08 whiteinge watching the event bus is the most reliable way to watch for returns
09:08 whiteinge and no timeout issues
09:09 whiteinge there's a robust implementation here if you're interested: https://gist.github.com/whiteinge/a646d4d937960d3ef306
09:09 * whiteinge heads to bed
09:12 giantlock joined #salt
09:12 justlooks XD
09:12 justlooks whiteinge: ok
09:16 AviMarcus joined #salt
09:17 ajolo_ joined #salt
09:26 gmoro joined #salt
09:40 picker joined #salt
09:40 millz0r joined #salt
09:42 bhosmer joined #salt
09:44 ggoZ joined #salt
09:51 martoss joined #salt
09:55 alanpearce joined #salt
10:02 xsteadfastx joined #salt
10:08 NerdGlasses joined #salt
10:08 NerdGlasses hello
10:15 Domiunu joined #salt
10:17 ajolo__ joined #salt
10:17 Domiunu hey there, i am tryin to install 7zip via saltstack, i setup everything pretty nice, but when i run with install_flags: ' -ms' it would just start the setup, any suggestion witch installflags to use?, ' /q'' and '  /s' didnt work either
10:18 crashmag joined #salt
10:26 TheThing I'm assuming you're using the 64 bit 7zip, a.k.a. the .msi?
10:28 anotherZero joined #salt
10:29 Domiunu had to run salt-minion as admin, thanks for reading anyway :D
10:29 Domiunu left #salt
10:29 TheThing lol
10:45 bhosmer joined #salt
11:01 viq !peer
11:01 wm-bot4 http://docs.saltstack.com/en/latest/ref/peer.html
11:01 malinoff wow
11:01 viq Can I configure in that that a minion can execute commands only on minions that have a certain grain set?
11:01 laubosslink joined #salt
11:01 malinoff !pillar
11:01 wm-bot4 http://docs.saltstack.com/en/latest/topics/pillar/index.html#pillar
11:02 viq @info | malinoff
11:02 malinoff I like it!
11:02 malinoff viq, I guess, you can't.
11:03 viq laubosslink: have you tried -I 'data'  ?
11:04 malinoff laubosslink, I don't think such grain will be correctly rendered
11:04 viq how about -I data:'' ?
11:04 babilen A bot!
11:04 viq !info
11:04 babilen wm-bot4 is a rather weird name though
11:06 chuffpdx_ joined #salt
11:07 malinoff laubosslink, nvm, just tested
11:07 malinoff laubosslink, maybe, it's target parser logic
11:11 jrdx joined #salt
11:12 * viq doesn't know enough to comment really
11:14 chiui joined #salt
11:14 viq !peer
11:14 wm-bot4 http://docs.saltstack.com/en/latest/ref/peer.html
11:14 viq Am I reading this right? You give access to peer interface on _all_ minions when you enable that?
11:15 elfixit joined #salt
11:16 viq laubosslink: to everyone :P
11:17 viq Though about not being able to comment, yes
11:17 ajolo joined #salt
11:19 viq No, I'm trying to figure out how to go about my own stuff ;)
11:20 malinoff viq, that peer configuration states that specific minion can run specific commands on all minions
11:21 viq Yeah, apparently so.
11:21 viq Trying to figure out how to generate a config on backup servers telling them which servers they are to back up
11:22 viq So far I was thinking of starting by assigning grains to client machines telling them which server they are backed up by, and wanted to somehow go from there
11:26 ggoZ joined #salt
11:30 bhosmer joined #salt
11:35 ndrei joined #salt
11:38 Lomithrani joined #salt
11:41 viq Who was looking yesterday(?) for stuff to manage ldap?
11:43 viq Anyway, https://git.xiala.net/saltstack-formulas/389ds-formula/tree/master
11:44 ramishra joined #salt
11:44 malinoff viq, that side has untrusted certificate
11:44 malinoff site*
11:45 viq malinoff: it has CACert, not my fault if you don't trust them ;)
11:45 malinoff viq, my browser don't :)
11:45 viq Mine does, as I use cacert certs myself ;)
11:46 viq malinoff: if you're up for it, http://www.cacert.org/index.php?id=3
11:47 ramishra joined #salt
11:54 scott_walton joined #salt
11:55 bhosmer joined #salt
11:55 bhosmer joined #salt
11:56 sxar joined #salt
12:03 scristian joined #salt
12:03 scristian hi, for salt-cloud is possible for a profile to specify multiple ssh_key_file ?
12:04 scristian with openstack provider
12:09 martoss joined #salt
12:17 ajolo_ joined #salt
12:19 krow joined #salt
12:20 krow1 joined #salt
12:21 mgw joined #salt
12:21 Outlander joined #salt
12:21 pdayton joined #salt
12:23 alanpearce joined #salt
12:27 Outlander joined #salt
12:30 krow joined #salt
12:37 bhosmer_ joined #salt
12:42 mgw joined #salt
12:47 krow joined #salt
12:53 jslatts joined #salt
12:55 Outlander joined #salt
12:55 mapu joined #salt
13:00 martoss joined #salt
13:07 oz_akan_ joined #salt
13:08 derelm joined #salt
13:12 martoss joined #salt
13:12 alanpearce joined #salt
13:13 oz_akan_ joined #salt
13:17 Sp00n can someone have a look at this and tell me why it tries to run "portage" as a bash command? http://pastebin.com/pH2aCKRP
13:17 Sp00n can i not use ifs in that way?
13:17 ajolo__ joined #salt
13:18 tkharju joined #salt
13:18 viq Sp00n: looks like your ifs don't match
13:19 viq Sp00n: salt -G pbx_version:1 test.ping
13:19 mgw joined #salt
13:19 kaptk2 joined #salt
13:20 Nazzy joined #salt
13:20 viq Sp00n: also, since I see only one place where it differs, why not name: name: 'wget -r --no-parent --reject "index.html*" --no-host-directories --cut-dirs=2 http://x.x.x.x/packages/{{ grains['pbx_version'] }}/ && emaint binhost --fix'  ?
13:20 Sp00n the cwd is different for the last version as well
13:21 Sp00n you are right though its not matching
13:21 ndrei joined #salt
13:21 Sp00n however if I get that grain
13:21 Sp00n its correct
13:21 Sp00n salt '*' grains.item pbx_version
13:21 viq Looks good
13:21 viq food time
13:22 Sp00n wait what?
13:29 to_json joined #salt
13:33 mapu I have a case whereby, using salt-cloud to launch and AWS instance- I need to create a raid array and LVM from 4 ebs volumes. These need to then be attached as the /home directory. The issue is that I am not quite sure how to  ensure that the state is run before my user state and my environment (adding in custom dotfiles)  state. Does anybody have any suggestions? Or- is there just a better way to solve the problem?
13:34 kermit joined #salt
13:36 martoss joined #salt
13:37 mgw any thoughts on how to enforce state for iptables? iptables module has insert, update, and delete but that will not remove any rules added unknown to salt
13:37 timoguin mapu: you could make your user states require the states that setup /home
13:37 mgw I've previously just managed /etc/iptables/rules.*
13:39 mapu timoguin: that’s what I initially tried- perhaps I didn;t add it in all the correct places- is it possible to add a require statement at the beginnin (or end) of an SLS file such that everything in the SLS file requires the state that creates and mounts the /home directory?
13:41 xinkeT joined #salt
13:42 martoss joined #salt
13:45 patrek_ joined #salt
13:48 alanpearce joined #salt
13:49 aquinas joined #salt
13:49 TaiSHi Morning everyone
13:51 bhosmer joined #salt
13:53 Sp00n viq, thank you so much
13:54 Sp00n my custom grain was passing out a blank line which meant the grain never matched
13:54 timoguin mapu: no, require works on individual state ids. you could include the /home states in the user state and with auto-order they should run first
13:54 timoguin but require is going to give you the best guarantees
13:55 martoss joined #salt
13:55 timoguin you could also do a require_in on the states that create /home
13:56 timoguin hmm, looks like you can require and entire SLS
13:56 timoguin http://docs.saltstack.com/en/latest/ref/states/requisites.html#require-an-entire-sls-file
13:57 mapu cool- and yes- just looked at require_in- that may be my better option.
13:57 TaiSHi non-salt related, but does anyone know where is /etc/php5/fpm/conf.d called ?
13:57 TaiSHi I see no reference in php.ini nor php-fpm.conf
13:59 thayne joined #salt
14:00 turtle_ joined #salt
14:01 turtle_ Morning
14:01 turtle_ I need major help
14:01 turtle_ I accidentally deleted my was salt master
14:01 xmj TaiSHi: that *cough* depends on your OS flavor.
14:02 xmj i've seen distros call that dir /etc/php5-fpm.d, referenced in /etc/php5-fpm.conf.
14:02 turtle_ I rebuild it and had the minions send keys to the new master which accepted them all
14:02 turtle_ however,  I cannot communicate with my minions via salt
14:02 turtle_ such as salt '*' test.ping
14:02 turtle_ any ideas?
14:03 timoguin run the master in the foreground with -l debug and see if there are any obvious errors
14:03 TaiSHi xmj: debianlike
14:03 xmj I'm sure grep -R exists on debianlikes :p
14:04 TaiSHi I know -where- it is, but I have no idea how the daemon is aware of it
14:04 TaiSHi Oh trust me, I dropped the -R
14:04 TaiSHi :P
14:04 xmj "magic!"
14:04 quickdry21 joined #salt
14:04 turtle_ ok Thanks
14:05 TaiSHi xmj: sorcery I say!
14:05 TaiSHi witchcraft!
14:06 TaiSHi http://stackoverflow.com/questions/13383806/what-the-ini-files-in-etc-php5-conf-d-folder-are-for
14:06 TaiSHi Compile options!
14:07 TaiSHi Which are sort of sorcery tbh
14:11 mapu after modifying my top.sls file, do I need to restart my salt-master?
14:11 jaimed joined #salt
14:11 sxar joined #salt
14:11 TaiSHi No
14:12 TaiSHi If it's a pillar you should refresh it to minions
14:12 TaiSHi salt '*' saltutil.refresh_pillar
14:12 bhosmer joined #salt
14:12 mapu Ok- no- it’s not pillar. Thanks :)
14:13 vejdmn joined #salt
14:14 mapu hmm- using a require_in inside a state, and getting an error: “Cannot extend ID users in "base:ebs-volumes". It is not part of the high state”
14:15 TaiSHi Hmm, salt-cloud now provisions my servers
14:16 TaiSHi Now I need it to make it add them to my load balancer lol
14:17 timoguin which service?
14:17 ajolo joined #salt
14:18 TaiSHi nginx, I usually mange upstreams with a upstreams.conf file
14:19 TaiSHi So I'd basically need to edit an sls and state it to the balancer
14:20 vejdmn joined #salt
14:25 mateoconfeugo joined #salt
14:26 timoguin nginx is your load balancer?
14:26 timoguin ah, figured you were talking about one of the cloud service load balancers
14:27 CheKoLyN joined #salt
14:28 danielbachhuber joined #salt
14:29 TaiSHi :P
14:29 TaiSHi Does salt-cloud include an always answer yes ?
14:30 TaiSHi -y
14:31 pdayton joined #salt
14:32 slav0nic joined #salt
14:35 bhosmer joined #salt
14:37 vejdmn joined #salt
14:39 racooper joined #salt
14:41 mapu joined #salt
14:41 mgw joined #salt
14:44 martoss joined #salt
14:45 wendall911 joined #salt
14:50 seventy3 joined #salt
14:56 TaiSHi For some reason a pillar isn't detecting changes to a file
15:00 alanpearce joined #salt
15:01 Gareth morning
15:02 Karunamon Mornin'
15:02 TaiSHi Morning
15:03 TaiSHi Hmm, this cache
15:03 Karunamon Actually, speaking of salt-cloud. I see that the vsphere integration is part of the Helium release? If I wanted to play with it, is that the devel branch on github, or does it just not exist yet?
15:03 rallytime joined #salt
15:04 TaiSHi yeah Helium is devel
15:04 TaiSHi Im using some functions from there
15:04 TaiSHi Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://php/ng/files/php.ini' damn you
15:05 martoss joined #salt
15:05 bhosmer joined #salt
15:06 TaiSHi Damn, a file isn't being modified as it should
15:06 turtle_ I set a new master to manage existing minions. I did the key exchange, when I run the minion on debug I get this err
15:06 turtle_ The Salt Master server's public key did not authenticate!
15:07 turtle_ I deleted the keys on minion, and restarted to no avail..
15:08 yomilk joined #salt
15:10 TaiSHi Failed to authenticate, is this user permitted to execute commands?
15:10 TaiSHi wtf ?
15:12 timoguin turtle_: try clearing the cache on the minions too, maybe
15:12 timoguin /var/cache/salt
15:13 TaiSHi cache.clear_all
15:14 jalbretsen joined #salt
15:16 ramishra joined #salt
15:16 vu_ joined #salt
15:16 bhosmer joined #salt
15:19 thedodd joined #salt
15:20 jalbretsen joined #salt
15:23 tesf joined #salt
15:24 TaiSHi Well, seems this formula isn't replacing an existant pool file
15:26 thayne joined #salt
15:31 aquinas joined #salt
15:32 mgw What would be the best way to ensure a service is 'running' that requires running a command, not ps or service status, to determine status?
15:33 pdayton joined #salt
15:35 ajolo joined #salt
15:39 conan_the_destro joined #salt
15:42 irontux joined #salt
15:43 Karunamon Hi irontux
15:43 malinoff joined #salt
15:43 irontux Hi Karunamon
15:44 Heartsbane joined #salt
15:47 bemehow joined #salt
15:48 bemehow_ joined #salt
15:49 dvogt joined #salt
15:52 doddstack joined #salt
15:53 xt hi xt
15:53 pdayton joined #salt
15:53 Sp00n did you just...
15:54 Sp00n yea
15:54 * xt hi
15:55 patrek joined #salt
15:55 ckao left #salt
15:59 Lomithrani joined #salt
16:03 martoss joined #salt
16:04 TheThing joined #salt
16:05 kballou joined #salt
16:05 tyler-baker joined #salt
16:06 troyready joined #salt
16:07 ramteid joined #salt
16:08 tligda joined #salt
16:10 TaiSHi So, PHP borked somewhere
16:17 KyleG joined #salt
16:17 KyleG joined #salt
16:18 tligda1 joined #salt
16:21 turtle_ does anyone know what can cause a minion that was generated by salt-cloud to think that the master has not accepted its keys?
16:21 turtle_ from the master perspective the keys have been accepted
16:22 turtle_ but when running minion in debug it says 'Waiting for minion key to be accepted by the master.'
16:23 martoss joined #salt
16:23 timoguin turtle_: makes me wonder if the minions are trying to connect to the correct master
16:24 turtle_ wow
16:24 turtle_ that seems to be the case...
16:25 quickdry21 joined #salt
16:25 turtle_ where does salt-cloud cache this?
16:25 turtle_ it is giving the ip of my old master
16:26 turtle_ salt-cloud was ran from my 'new master'
16:26 timoguin turtle_: /etc/salt/cloud is where mine is configured
16:27 timoguin minion:\n    master: master_ip_or_fqdn
16:29 turtle_ awesome thanks
16:29 turtle_ alot
16:29 chiui joined #salt
16:39 bhosmer joined #salt
16:41 ajprog_laptop joined #salt
16:41 vejdmn joined #salt
16:42 quickdry21 joined #salt
16:43 whiteinge joined #salt
16:44 chamunks joined #salt
16:46 joehillen joined #salt
16:50 bmatt so I've got a small set of modules I'd like to contribute upstream
16:51 bmatt is the best way to file an issue or just submit an unexpected pull request
16:51 ajprog_laptop1 joined #salt
16:51 tedski unexpected pull reqs are fine, but you might consider submitting to contrib first for wider testing
16:51 tedski https://github.com/saltstack/salt-contrib
16:51 bmatt 'submitting to contrib'?
16:52 bmatt oh right on
16:52 timoguin and then thrash violently until the PR is merged
16:53 bhosmer_ joined #salt
16:53 __alex joined #salt
16:57 shaggy_surfer joined #salt
16:57 vejdmn joined #salt
17:04 schimmy joined #salt
17:04 forrest joined #salt
17:05 UtahDave joined #salt
17:07 taterbase joined #salt
17:08 Rebus joined #salt
17:12 shaggy_surfer joined #salt
17:12 schimmy1 joined #salt
17:12 matrix3000 joined #salt
17:15 allanparsons joined #salt
17:15 * TaiSHi is fighting against PHP
17:17 bmatt timoguin: I write code to scratch my own itches; whether it makes it upstream or not, I'm satisfied :)
17:17 ramishra joined #salt
17:17 aw110f joined #salt
17:18 mprymek joined #salt
17:19 ramteid joined #salt
17:20 jmccree TaiSHi, how is php fighting back? :)
17:20 Eugene "PHP is a hell of a drug."
17:20 TaiSHi It's winning
17:20 TaiSHi php-formula is actually
17:20 TaiSHi For some reason it's listing the includes BEFORE other stuff
17:20 TaiSHi hence raping my entire config
17:23 TaiSHi It makes no sense, I AM listing it -after- the other declarations
17:24 chrisjones joined #salt
17:27 forrest TaiSHi, what do you mean?
17:28 forrest if you use include it will anything in the include will run first
17:28 forrest *run
17:28 forrest man, can't type apparently
17:28 forrest friday gooooo
17:28 TaiSHi forrest: it's including fpm pools
17:28 TaiSHi BEFORE pid declaration
17:30 TaiSHi bla - include - pid
17:30 vejdmn joined #salt
17:30 TaiSHi Not sure WHY it's sorting it that way
17:31 forrest can you gist the state?
17:31 meteorfox joined #salt
17:31 Ryan_Lane1 joined #salt
17:32 TaiSHi full formula is at https://github.com/saltstack-formulas/php-formula
17:32 TaiSHi (using php.ng)
17:32 TaiSHi Can show you my pillar
17:32 TaiSHi ;)
17:33 ramishra joined #salt
17:34 obimod :O
17:37 TaiSHi I think I might have solved it
17:37 TaiSHi Still sucks tho
17:38 * TaiSHi checks
17:38 TaiSHi And I'm preparing mate
17:39 TaiSHi As I figured, it does input them sorted
17:39 forrest oh php.ng
17:39 forrest aka, templatize and make all the things unreadable
17:40 forrest I don't have time to go through all of those shennanigans
17:40 forrest sorry :\
17:42 obimod pwned!
17:42 TaiSHi I agree on the templatize thing
17:42 TaiSHi Seriously
17:42 TaiSHi include this from a file with includes that includes files with includes from files includes in those files
17:42 TaiSHi fileception
17:42 babilen TaiSHi: I use that formula, what's your problem with it (can't say I encountered any so far, but would like to be aware of issues)
17:43 TaiSHi If you don't use defaults in lookup
17:43 TaiSHi And want to list everything in your fpm: config
17:43 TaiSHi It'll add them sorted, that means that include statement will go before pid statement
17:43 TaiSHi hence
17:43 forrest TaiSHi, yea the idea is cool, and it's great depending on your needs. It just isn't sustainable to troubleshoot in  a short time realistically.
17:43 TaiSHi Unleashing anal hell
17:44 TaiSHi forrest: it needs to be, at least, well documented. Which certainly isn't.
17:44 forrest TaiSHi, yea it's something that I imagine is difficult to document, because how it works is pretty complex
17:44 forrest you'd need like a nincludes flowchart
17:45 forrest *an
17:45 turtle_ is this normal out from minion when fetching for running state.highstate?
17:45 turtle_ Fetching file from saltenv 'base', ** attempting ** 'salt://top.sls'
17:46 turtle_ I am keep getting 'No Top file or external nodes data matches found' when running state.highstate
17:46 forrest turtle_, is this when targeting a single system, or multiple systems
17:46 turtle_ wanted to know if I should expect my dir path here** attempting  ** 'salt://top.sls'
17:46 turtle_ single system
17:46 TaiSHi Is "outputted" a word ?
17:46 ecdhe joined #salt
17:48 non7top joined #salt
17:49 saturdayplace joined #salt
17:50 turtle_ any idea?
17:50 tyler-baker joined #salt
17:51 jaimed joined #salt
17:52 viq turtle_: 1) what is your file_roots set on master? 2) What does your top.sls say?
17:52 turtle_ http://pastebin.com/3ruRUzrU
17:53 turtle_ this is my file_roots in master
17:53 bhosmer joined #salt
17:53 viq And do you have a /salty_repo/states/d_cluster/top.sls file?
17:55 TaiSHi Oh, forrest, is there a 'recurse' in file.managed ?
17:55 TaiSHi Been looking for it and isn't
17:55 turtle_ and this is my top.sls
17:55 turtle_ http://pastebin.com/Eb40nEAW
17:56 viq TaiSHi: there is a file.recurse
17:56 jaimed joined #salt
17:56 turtle_ @viq; yea, and I have restarted the master several times..
17:56 turtle_ so I have the master and minion in debug
17:56 turtle_ and thats how I found that the minion was coming to read the top at ** attempting ** 'salt://top.sls'
17:57 viq turtle_: does 'salt d_node\* test.ping' work?
17:57 turtle_ yes
17:57 viq turtle_: salt:// is anchored in file_roots, so this seems fine
17:57 turtle_ exec interaction works
17:57 turtle_ ah
17:57 TaiSHi viq: then the example in php.ng is wrong
17:58 schimmy joined #salt
17:58 viq TaiSHi: where?
17:59 viq TaiSHi: also, pull requests are usually welcome ;)
18:00 TaiSHi Sec, let me finish my issue
18:00 TaiSHi https://github.com/saltstack-formulas/php-formula/blob/master/pillar.example
18:00 TaiSHi Line 77
18:01 TaiSHi I seriously don't understand how php.ng is coded
18:01 scott_w joined #salt
18:01 viq TaiSHi: uhm, that's _pillar_ data
18:01 viq Which is just that, data.
18:02 thedodd joined #salt
18:02 TaiSHi Yeah but it passes a non-existent (existant?) argument
18:02 turtle_ is there a way to find out where does the master thinks is the file_roots
18:02 turtle_ I know the file has it, but what does the master reads?
18:03 dvogt joined #salt
18:03 viq turtle_: should be close to beginning of master's debug output on startup, I would expect
18:03 shaggy_surfer any advice on installing packages which are not in a repo in salt?  I want to install Jetty 9 , but it's only available as source, not a package.
18:04 racooper build a package for it?
18:04 shaggy_surfer I could create a package for ubuntu 14.04 for Jetty 9 from source and host it on my own ppa i guess
18:04 TaiSHi viq: I submitted an issue https://github.com/saltstack-formulas/php-formula/issues/17
18:04 racooper shaggy_surfer,  from a CentOS perspective that's an excellent solution :)
18:05 TaiSHi Perhaps I'm doing something wrong, I mean, defaults exist but stuff is not appended, just replaced
18:05 jmccree shaggy_surfer, ppas are not that hard, it's just the instructions out there suck
18:05 shaggy_surfer oh… I could install a ppa on my saltmaster and call it locally?  What do you think?
18:06 jslatts joined #salt
18:08 racooper that's exactly what I do for a local CentOS repo, therepo is hosted on the same machine as my salt master and is published to my LAN.
18:09 shaggy_surfer perfect… any advice for creating debian packages for ubuntu, never done it
18:10 viq shaggy_surfer: if you want something simple, https://github.com/jordansissel/fpm/wiki
18:10 scott_w joined #salt
18:12 turtle_ does not seen to explicitly say it
18:12 turtle_ found this
18:12 turtle_ loading top in ['/var/cache/salt/master/extmods/tops', '/usr/lib/python2.7/dist-packages/salt/tops']
18:12 turtle_ Skipping /var/cache/salt/master/extmods/tops, it is not a directory
18:12 shaggy_surfer never heard of fpm… I will give it a try
18:13 forrest fpm is... interesting
18:13 shaggy_surfer oh, but it's a gem install
18:13 shaggy_surfer eek ruby
18:15 turtle_ what could I be doing wrong?... I set the file_roots in /etc/salt/master...place my top file in the dir I indicated and restarted the salt-master daemon
18:15 martoss joined #salt
18:15 turtle_ to no avail
18:16 scott_w joined #salt
18:16 TaiSHi I just found out that
18:16 TaiSHi If I set some php.ini stuff it'll append it correctly
18:17 TaiSHi But if I do the same with php-fpm.conf it'll just wipe out defaults and write the new stuff
18:18 kermit joined #salt
18:19 ckao joined #salt
18:20 Ryan_Lane joined #salt
18:22 Hollinski joined #salt
18:26 jergerber joined #salt
18:27 jcsp joined #salt
18:28 druonysus joined #salt
18:28 druonysus joined #salt
18:31 druonysuse joined #salt
18:32 turtle_ are there problems between master 0.17.5 and minion 2014.1.5?
18:33 KyleG turtle_: Always upgrade your master first
18:33 KyleG There's no guarantee of compatibility between new minions and old masters.
18:33 KyleG http://docs.saltstack.com/en/latest/faq.html#can-i-run-different-versions-of-salt-on-my-master-and-minion
18:34 mateocon_ joined #salt
18:34 maxleonca joined #salt
18:36 maxleonca Hello, I'm having a bit of an issue with the minion_ids when they 1st send the key request.  I'm using foreman to provision, is threre anywayt to enforce id conventios via salt?
18:37 ajolo_ joined #salt
18:38 druonysuse joined #salt
18:38 druonysuse joined #salt
18:41 ganitsu joined #salt
18:42 TaiSHi Well I give up
18:45 forrest joined #salt
18:46 TaiSHi forrest: I gave up, using default config since it seems appends do not work
18:47 bhosmer joined #salt
18:47 forrest TaiSHi, gotcha
18:50 brain5ide_ joined #salt
18:51 TaiSHi forrest: already submitted an issue, tho it actually works with no parameters lol
18:51 vejdmn joined #salt
18:51 forrest make sure to tag cheus
18:51 forrest since he wrote that
18:51 TaiSHi How do I tag?
18:51 TaiSHi Sorry, missed git 101 class
18:51 timoguin git tag tagname
18:51 forrest when you make the issue just do @cheus and the rest of his name should pop
18:51 forrest no no timoguin
18:52 timoguin lolol
18:52 forrest he's creating an issue
18:52 * timoguin doesn't scroll
18:52 timoguin or look up at all
18:52 forrest apparently your window is the size of a stamp :P
18:54 TaiSHi Ok, @cheus isn't returning anything
18:54 maxleonca Question, when you set the autosign.conf the domain that you are allowing is included into the minion_id?
18:55 ajprog_laptop1 UtahDave: hi
18:55 ajprog_laptop1 I talked to you at the meetup in NYC about rackspace private network ips
18:56 non7top is it possible to combine file.recursive clean with file.managed? docs say I add require but it doesn't seem to work
18:57 TaiSHi Found him
18:57 forrest TaiSHi, cool, I was going to say he should have recent commits
18:57 TaiSHi That's where I found him
18:58 bemehow joined #salt
18:58 nicksloan left #salt
18:58 ndrei joined #salt
19:02 ekristen joined #salt
19:02 jdmf joined #salt
19:02 TaiSHi Oh, having finished web server part
19:03 TaiSHi It is time.
19:03 * TaiSHi grabs his spandex
19:03 * TaiSHi Romanoff on duty.
19:03 TaiSHi Time to configure GlusterFS for production
19:05 TaiSHi I just recalled that I have to work lol
19:05 ksalman_ couldn't i use this to add dns suffix to a windows host? http://docs.saltstack.com/en/latest/ref/states/all/salt.states.win_dns_client.html. I get the error "State win_dns_client.primary_suffix found in sls test is unavailable"
19:08 TaiSHi ksalman_: Perhaps that was added in dev (hence the latest in the URL)
19:08 TaiSHi What version are you running?
19:08 ksalman_ oh
19:08 ksalman_ i am on 2014.1.1
19:09 ksalman_ it's there in 2014.1 https://github.com/saltstack/salt/blob/2014.1/salt/modules/win_dns_client.py
19:09 ksalman_ err.. no
19:09 ksalman_ you are right
19:12 bemehow joined #salt
19:12 ksalman_ hm i don't see it in the dev branch either
19:13 Whissi joined #salt
19:17 TaiSHi My knowledge goes taht far
19:17 TaiSHi that*
19:18 oz_akan_ joined #salt
19:18 oz_akan__ joined #salt
19:21 rawzone joined #salt
19:23 ixokai joined #salt
19:24 ksalman_ UtahDave: are you available?
19:25 borgstrom joined #salt
19:28 bemehow joined #salt
19:34 UtahDave ksalman_: Yeah, I'm here for a little bit.  What's up?
19:35 ksalman_ i asked previously but was asked to ask you.. Can i not use jinja in a winrepo sls file? https://gist.github.com/ksalman/29da2f77cafeeacb25e3
19:36 ksalman_ i get an error when using generating the repo
19:40 scoates joined #salt
19:40 UtahDave ksalman_: no, you can't use jinja in winrepo yet.
19:40 borgstrom joined #salt
19:40 ksalman_ okay, thanks for confirming
19:41 bemehow_ joined #salt
19:41 toddnni_ joined #salt
19:41 UtahDave ksalman_: I do want to support that, though. There's an open issue for it.   I just haven't gotten to it.
19:41 ksalman_ ahhh i didn't know that =)
19:42 ksalman_ thanks!
19:42 Sp00n_ joined #salt
19:42 londo__ joined #salt
19:42 nickg_ joined #salt
19:42 JoeHazzers_ joined #salt
19:42 imil_ joined #salt
19:42 cro_ joined #salt
19:43 zartoosh__ joined #salt
19:43 redondos- joined #salt
19:43 trevorjay joined #salt
19:43 Kelsar_ joined #salt
19:43 kedo39 joined #salt
19:43 Hazelesque joined #salt
19:43 Hazelesque joined #salt
19:43 bhosmer_ joined #salt
19:43 eliasp joined #salt
19:43 toastedpenguin joined #salt
19:43 MKFG joined #salt
19:43 Nazzy joined #salt
19:43 Nazzy joined #salt
19:43 funzo joined #salt
19:43 pfallenop joined #salt
19:43 Jarus joined #salt
19:43 octarine joined #salt
19:43 z3uS joined #salt
19:43 jbub joined #salt
19:44 bezaban joined #salt
19:44 vbabiy joined #salt
19:44 xsteadfastx joined #salt
19:44 zemm joined #salt
19:44 cb joined #salt
19:45 programmerq joined #salt
19:45 Valdo joined #salt
19:45 erjohnso joined #salt
19:47 borgstrom joined #salt
19:49 mapu joined #salt
19:50 bhosmer joined #salt
19:51 ldlework joined #salt
19:56 borgstrom joined #salt
20:00 saturdayplace left #salt
20:02 irontux joined #salt
20:11 vbabiy_ joined #salt
20:14 TyrfingMjolnir joined #salt
20:18 mapu joined #salt
20:20 nickg_ is there anyway to configure a grain for a minion on the master?
20:21 zartoosh__ joined #salt
20:21 octarine joined #salt
20:21 babilen nickg: Manage the minion config with salt
20:21 erjohnso joined #salt
20:21 nickg babilen: doesn't that require salt-minion to restart?
20:22 babilen nickg: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.grains.html + https://github.com/saltstack-formulas/salt-formula/
20:22 nickg restarting the minion is so painful - ok
20:23 babilen I am not entirely sure if the former requires minion restarts. But why are they so horribly?
20:23 timoguin grains are ideally supposed to be static, so restarting the minion is expected
20:24 nickg babilen: well you can't use salt to manage the restart.. it looks like you have to schedule an at job to do it
20:24 babilen nickg: I restart my minions all the time with "service.restart salt-minion"
20:25 babilen I mean not all the time, but whenever necessary (e.g. after syncing new custom grains) :)
20:25 nickg well i'm thinking new instances coming online.
20:25 timoguin new instances coming online should get new grains when the minion loads
20:26 timoguin if you're using salt-cloud you can set grains on instance creation
20:26 nickg the process as it stands is:  one liner install salt-minion, accept the key, run the salt code to import the ppa/upgrade salt-minion, restart.  i guess that include configuring the grains
20:27 jY joined #salt
20:27 oz_akan_ joined #salt
20:27 borgstrom joined #salt
20:28 jnials joined #salt
20:29 wackyMole joined #salt
20:29 wackyMole The Debian repos don't include PowerPC?
20:30 wackyMole Or am I doing it wrong?
20:31 jcockhren wow. people still have PowerPC?
20:31 jcockhren I haven't seen/heard that is a long time
20:31 jcockhren s/is/in/
20:32 wackyMole I know it sucks. But I wanted to play with salt without sticking it on prod machines first.
20:32 jcockhren I think it's pretty cool actually.
20:32 bemehow joined #salt
20:33 wackyMole Yeah, I have 5 in a pseudo cluster. 1 db,1 file, 2 web, 1 lb
20:33 jcockhren G4?
20:33 wackyMole And they are behemoths and they have been "replaced".
20:33 wackyMole Yep
20:33 wackyMole For some reason though, since we couldn't use them for rendering anymore, the web team took them and is using them for a "dev" env.
20:34 wackyMole Is there anything that would prevent me from running salt on powerpc. I mean Python does run there.
20:35 TyrfingMjolnir joined #salt
20:35 bemehow_ joined #salt
20:35 timoguin like a G6, like a G6...
20:35 wackyMole like a G4, like a G4...
20:36 wackyMole Doesn't quite have the same ring to it.
20:37 borgstrom joined #salt
20:44 scoates joined #salt
20:45 thedodd joined #salt
20:45 toddejohnson_ joined #salt
20:45 Hazelesque_ joined #salt
20:46 quickdry21 joined #salt
20:46 Kelsar_ joined #salt
20:47 vejdmn joined #salt
20:47 artifici1lexit joined #salt
20:48 scarcry_ joined #salt
20:48 luminous_ joined #salt
20:48 kermit joined #salt
20:50 turtle_ anyone know how to get a head count of all minions in a python script?
20:52 bud_ joined #salt
20:52 jcockhren turtle_: you could use the salt.LocalClient
20:52 icebourg_ joined #salt
20:52 bud_ left #salt
20:52 jcockhren use that to call the test.ping runner maybe
20:52 smcquay joined #salt
20:53 TyrfingMjolnir joined #salt
20:53 donny_k joined #salt
20:54 wackyMole Are you wanting to see the ones that are connected or ones that are responding?
20:54 turtle_ responding
20:55 donny_k hi, I'm trying to manage users with salt.  Is there a way to ensure that the user belongs to certain groups, but if the local admin has added user to other groups, don't remove them?  The groups module blows away any local changes.  I get why, but that's not what I want.
20:56 wackyMole @turtle_ salt '*' test.ping |  wc -l
20:56 wackyMole Would that not help.
20:57 wackyMole ?
20:57 Nazzy joined #salt
20:57 kedo39 joined #salt
20:57 Jarus joined #salt
20:57 cb joined #salt
20:57 racooper wackyMole,  your command would not give a count of connected hosts. it would be double the right number.
20:57 wackyMole Ah
20:58 danlsgiga joined #salt
20:59 TaiSHi Anyone used Gluster ?
20:59 racooper salt-key --out=pprint --list accepted | wc -l
20:59 racooper might work
20:59 viq salt-run manage.up ?
21:00 viq donny_k: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.user.html look at remove_groups
21:00 racooper yeah looks like salt-run manage.* would have some useful functions. nice call viq.
21:00 wackyMole @viq, does that return a count or just a list of the minions that are up.
21:01 racooper wackyMole,  run it and see :)
21:01 racooper salt, salt-run manage -d to see the other available functions for salt-run manage
21:01 viq wackyMole: list of minions
21:01 jcockhren turtle_: to do it in a python script tho: https://salt.readthedocs.org/en/latest/ref/clients/index.html?highlight=localclient#runnerclient
21:01 wackyMole @racooper, I can't because the debian repos don't have powerpc packages!
21:02 wackyMole I was trying to set it up today, but I guess it'll have to wait until I get home to my personal lab...
21:02 viq wackyMole: do they have zeromq stuff?
21:02 Jarus joined #salt
21:02 octarine joined #salt
21:02 Nazzy joined #salt
21:02 kedo39 joined #salt
21:02 cb joined #salt
21:02 wackyMole Yes
21:02 turtle_ ah
21:02 turtle_ thanks for the link
21:03 jcockhren np
21:03 viq wackyMole: then I think rest should be buildable
21:03 wackyMole libzmq package is missing though i believe
21:03 viq wackyMole: probably even from the bootstrap script
21:03 wackyMole sorry, libzmq3
21:03 jbub joined #salt
21:03 donny_k @viq thanks!
21:04 wackyMole I skipped locating the bootstrap because it's 5pm on a Friday.
21:05 maxskew_ joined #salt
21:05 viq wackyMole: no, it's 23 on friday :P
21:05 wackyMole libzmq3-* are missing in the powerpc repos but there are libzmq-* variants of all of them.
21:05 viq wackyMole: and it's at https://github.com/saltstack/salt-bootstrap
21:05 bhosmer joined #salt
21:06 wackyMole Actually it's 17:06
21:06 kwmiebach_ joined #salt
21:06 wackyMole 23 is UTC
21:06 micko1 joined #salt
21:06 viq No, 21 is UTC
21:06 wackyMole Now I'm confused!
21:07 xt TaiSHi: are you?
21:07 TaiSHi Am I?
21:08 eofs_ joined #salt
21:09 xt using gluster
21:09 Karunamon|2 joined #salt
21:11 meteorfox joined #salt
21:11 druonysuse joined #salt
21:12 druonysuse joined #salt
21:14 TaiSHi xt: want to
21:18 UtahDave joined #salt
21:18 UtahDave left #salt
21:19 ggoZ joined #salt
21:21 wackyMole Gah!
21:21 wackyMole I'm waiting until I get home.
21:22 Ryan_Lane1 joined #salt
21:22 wackyMole bootstrap can't do it either
21:23 to_json1 joined #salt
21:23 claytron joined #salt
21:24 brucewang joined #salt
21:24 savvy-lizard joined #salt
21:24 clone1018_ joined #salt
21:24 ronc_ joined #salt
21:24 dvogt_ joined #salt
21:25 chiui joined #salt
21:25 sirtaj_ joined #salt
21:26 wackyMole K, done with ppc, going home to my normal amd64s
21:26 dh__ joined #salt
21:26 ksalman joined #salt
21:26 AnswerGu1 joined #salt
21:26 wackyMole Have fun, will likely be back later
21:26 wackyMole left #salt
21:26 yidhra joined #salt
21:26 ixokai_ joined #salt
21:28 toastedpenguin1 joined #salt
21:28 borgstrom joined #salt
21:28 vejdmn joined #salt
21:30 SaveTheR0btz joined #salt
21:30 alainv_ joined #salt
21:30 AlexM850_ joined #salt
21:30 UtahDave joined #salt
21:30 grep_awez joined #salt
21:30 UtahDave left #salt
21:32 goodwill joined #salt
21:32 smkelly joined #salt
21:33 jchen joined #salt
21:35 dh__ joined #salt
21:36 borgstrom joined #salt
21:36 goodwill joined #salt
21:37 jalbretsen joined #salt
21:37 dh joined #salt
21:38 bensons ppc? wtf :)
21:38 scooby2 joined #salt
21:46 bemehow joined #salt
21:46 gothix joined #salt
21:47 gothix any idea when RHEL 7 packages will be released?
21:47 ksalman i was just wondering that too
21:50 marco_en_voyage joined #salt
21:52 racooper they're already being built in Koji.  they should be available in the epel7-candidate repos.
21:53 racooper https://fedoraproject.org/wiki/EPEL/epel7beta-faq
21:54 kermit joined #salt
21:55 racooper sorry, epel 7 beta, not candidate
21:57 herlo gothix: you can download them directly if you want from the koji repo
21:57 mgw has anyone heard of a highstate wiping out /var/cache/salt/minion/extmods/?
21:58 arnoldB felskrone: ping
21:58 gothix herlo, Thanks
21:59 herlo gothix: https://kojipkgs.fedoraproject.org/repos/epel7-build/latest/x86_64/
21:59 oz_akan_ joined #salt
21:59 * herlo recommends NOT doing that, though.
21:59 shaggy_surfer joined #salt
21:59 herlo epel7-testing should be out soon enough.
21:59 Hell_Fire_ joined #salt
22:02 borgstrom joined #salt
22:07 druonysus joined #salt
22:07 druonysus joined #salt
22:13 smcquay joined #salt
22:13 vejdmn joined #salt
22:15 vejdmn joined #salt
22:15 shaggy_surfer joined #salt
22:20 borgstrom joined #salt
22:26 martoss joined #salt
22:27 nickg can you use any modules function in mine?  specifically grains.items ?
22:28 jnials joined #salt
22:29 obimod joined #salt
22:30 thayne joined #salt
22:30 obimod has anyone else gotten this with nginx.ng?
22:30 obimod TypeError: get() got an unexpected keyword argument 'merge'
22:30 obimod https://github.com/saltstack-formulas/nginx-formula/issues/38
22:35 jnials joined #salt
22:43 shaggy_surfer creating a .deb package is not as simple as I was hoping… is there a way in salt to have a package installed from sources and watch for a file so it doesn't get re-installed each time the salt state.highstate is run?
22:44 gothix joined #salt
22:45 forrest shaggy_surfer, yea, cmd.run
22:45 forrest building debs sucks, because the deb build process is bullshit
22:45 forrest worse than RPMs
22:45 forrest which I didn't think was possible
22:45 shaggy_surfer yeah, it's horrid
22:46 shaggy_surfer so if I use cmd.run… won't that run the same commands each time I run a highstate… basically re-install over and over again?
22:46 ecdhe shaggy_surfer, have you tried fpm?
22:46 shaggy_surfer not yet.  It requires gem install
22:46 ecdhe shaggy_surfer, cmd.run allows an - unless: param.
22:46 shaggy_surfer which means now I need to install ruby
22:47 shaggy_surfer oh nice.
22:47 forrest yea just use - unless: ls /path/to/bin_file or something
22:48 shaggy_surfer perfect.  I assume the source will need to be in the tree to get pulled from, or can I pull from a different location on the salt-master?  That way I won't have to check in code to the git hub for my salt
22:48 shaggy_surfer like off the local disk?
22:49 shaggy_surfer out of a directory like /Downloads/Sources, for example
22:54 ksalman soo i had to restart salt-master and it's getting DOS'd now, and it looks exactly liek this https://github.com/saltstack/salt/issues/11781, with a ton of auth request/accept messages. My minion conf file looks like this https://gist.github.com/ksalman/ec8ee4d9430683ffb216 on all the minions
22:54 ksalman i don't know why i am getting hit by this again?
22:55 obimod anyone know where i can checkout the salt['pillar.get'] function? I'm getting a TypeError: get() got an unexpected keyword argument 'merge'
22:55 obimod is it in environment.py?
22:55 whiteinge joined #salt
22:56 jnials joined #salt
22:56 obimod whiteing!
22:56 obimod just the person I was hoping to see : )
22:56 whiteinge uh. are you a cop?
22:56 forrest lol
22:57 obimod whiteinge: I'm having a problem with the nginx.ng formula (map.jinja) see https://github.com/saltstack-formulas/nginx-formula/issues/38 - TypeError: get() got an unexpected keyword argument 'merge'
22:57 obimod hehe
22:57 obimod : P
22:57 obimod maybe..
22:57 obimod jk
22:57 * whiteinge looks
22:58 obimod haven't been able to find the file which has the pillar.get method... which is one i should probably check out despite troubleshooting this problem
22:58 whiteinge obimod: ah, you're right about that. the merge kwarg was added to pillar.get() in the upcoming Helium release
22:59 obimod past 2014.1.5?
22:59 whiteinge yeah
22:59 obimod aww
22:59 obimod i wonder if i could hack it in there
22:59 Shish joined #salt
22:59 obimod so i dont have to re-do this config
23:00 whiteinge it's (briefly) mentioned in the README for the 'ng' states
23:00 whiteinge obimod: certainly worth a try. download this file: https://github.com/saltstack/salt/blob/develop/salt/modules/pillar.py
23:00 whiteinge and put it in your /srv/salt/_modules directory
23:00 obimod sweet!
23:00 lude joined #salt
23:00 lude joined #salt
23:00 whiteinge then run ``salt '*' saltutil.sync_modules``
23:00 whiteinge i don't know if it will work or not
23:00 whiteinge but worth trying, imo
23:01 obimod totes
23:01 obimod kk brb
23:02 obimod alrighty - redeploying le cloud
23:02 ksalman any ideas? :)
23:03 obimod ksalman: i would change ports & implement more stringent iptables rules
23:04 DaveQB joined #salt
23:04 obimod there are a number of DOS countermeasure statements with iptables
23:04 nickg nevermind on mines.. apparently sync_all does not send send pillars (refresh_pillars is necessary)
23:04 obimod just off a google search, http://blog.bodhizazen.net/linux/prevent-dos-with-iptables/
23:08 ksalman it seems like there's some issue with the minions
23:09 obimod whiteinge: same error.. wonder if it's being used?
23:09 whiteinge obimod: when you ran the sync command did you see the module in the output?
23:10 obimod whiteinge: bingo :) brb
23:11 obimod hokay... refreshing le high state
23:11 yomilk joined #salt
23:11 obimod i'm guessing merge replaced traverse_dict_and_list?
23:12 obimod i'm getting the same problem but now with that attribute
23:12 obimod instead of merge
23:13 aquinas joined #salt
23:14 obimod oh wait i gotta update grains
23:15 whiteinge oh yeah? hm. i may have just led you down the rabbit hole...
23:15 whiteinge four hours later and you'll have upgraded all of salt...one file at time. :-P
23:17 obimod lol
23:18 obimod i guess that's one way to get to know a system pretty well
23:28 Gareth joined #salt
23:30 schimmy1 joined #salt
23:46 rallytime joined #salt
23:54 TaiSHi non-salt related question
23:55 TaiSHi But any suggestion for a system that needs to replicate files between webservers ?
23:55 TaiSHi rsync has proven to be... well... DELAYED :P
23:56 TaiSHi cc: xt
23:59 Gareth joined #salt

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