Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-06-14

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

All times shown according to UTC.

Time Nick Message
00:00 chrisgilmerproj left #salt
00:03 rsgaewg joined #salt
00:03 jschadlick left #salt
00:05 raydeo joined #salt
00:07 adotbrown joined #salt
00:09 druonysuse joined #salt
00:09 druonysuse joined #salt
00:15 jacksontj joined #salt
00:17 danielbachhuber joined #salt
00:18 druonysuse joined #salt
00:18 druonysuse joined #salt
00:18 brettlangdon joined #salt
00:22 SexyBitch joined #salt
00:23 efixit joined #salt
00:41 Gwayne joined #salt
00:41 Gwayne joined #salt
00:43 timl0101 joined #salt
00:46 austin987 joined #salt
00:49 pepper After installing with the on-liner on Debian 7, I have no salt-master binary available? (just salt-[call|minion]). What gives?
00:49 brettlangdon left #salt
01:03 Corey pepper: Why do you need to one-line install the master? :-)
01:06 clintberry joined #salt
01:06 pepper Corey: I'm just trying to make my way through the walkthrough to get acquainted with Salt...
01:14 mannyt joined #salt
01:15 jacksontj i'm trying to make a state which enforces a package version-- and I want it to run a command before restarting the service
01:16 joehh pepper: what did you run to install the master?
01:16 jacksontj i have it set up so it works for config changes, but not working with the package change
01:16 SexyBitch left #salt
01:20 joehh pepper: Looking at the bootstrap script, you are probably better off installing using the debian instructions. Bootstrap hasn't been updated to deal with zmq3 being packaged in debian yet
01:20 joehh http://docs.saltstack.com/topics/installation/debian.html
01:27 daniel-brb joined #salt
01:32 mgw joined #salt
01:37 pepper joehh: I installed with the one-liner 'wget bootstap.sh | sh'
01:37 pepper Thanks, I'll try that.
01:37 jacksontj looks like its running the watch_in stuff after the package has been updated-- which in some cases is too late
01:40 joehh pepper: I think you need to provide some additional arguments to install the master that way. I think a -M for master
01:40 joehh https://github.com/saltstack/salt-bootstrap/blob/develop/bootstrap-salt.sh#L119
01:41 mannyt joined #salt
01:44 maspwr joined #salt
02:06 UtahDave joined #salt
02:07 oz_akan joined #salt
02:11 mgw joined #salt
02:18 mirko joined #salt
02:23 logix812 joined #salt
02:45 mgw joined #salt
02:47 jacksontj joined #salt
02:49 axisys joined #salt
02:49 chrism so if i'm doing a conditional on pillar data, and want to do like an "if exists, do X, if not exists, do Y", where would I find the docs on that?
02:49 mannyt joined #salt
02:49 chrism cause right now, my conditionals explode if I if/else it and the else is based on the pillar data not existing. =\
02:50 logix812 running salty-vagrant(develop) I'm getting this error: /tmp/bootstrap_salt.sh: 2469: /tmp/bootstrap_salt.sh: keyfile_path: parameter not set the minion.p/ub/em are set same with the master
02:51 logix812 I can see the keys in the guest OS /tmp folder as well
02:52 UtahDave chrism: first do a     if 'mykey' in pillar
02:52 chrism oh
02:52 chrism that's it?
02:52 chrism lol
02:53 UtahDave that will keep you from stacktracing
02:53 UtahDave check for the existence, first
02:53 chrism and the else to that if will execute if the key doesn't exist?
02:53 chrism that's a weird sentence
02:53 chrism lol
02:53 UtahDave :)  yeah
02:53 chrism cool, thank you yet again =)
02:54 UtahDave Basically,  first check to see if that key exists, then you can check the value for whatever is important to you
02:54 UtahDave you're very welcome!
02:54 chrism well that just... makes sense
02:54 chrism damnit
02:54 chrism lol
02:54 UtahDave That's actually one thing that I wish Python would do differently
02:55 UtahDave i wish that if you checked the value of a key that didn't exist that it would just return False or Nul or something
02:55 chrism yeah you'd think
02:55 jacksontj UtahDave: if its inside a dict you can do a .get('key', DefaultReturnVal)
02:55 EugeneKay False and Null are both data
02:56 chrism i mean that was my assumption and i couldn't figure out why my states kept blowing up on that
02:56 jacksontj it defaults to None
02:56 EugeneKay If you want insanity in typing, try PHP. It's a hell of a drug.
02:56 jacksontj so if a = {}, then a.get('foo', None) == None
02:56 UtahDave jacksontj: good point!
02:56 jacksontj which is the same as a.get('foo')
02:57 jacksontj i don't know why but it took me quite a long time to find that ;)
02:57 chrism hrm maybe i'm missing something
02:57 chrism http://pastebin.com/GM4KzjDb
02:57 chrism to start the if/ifelse stuff
02:58 chrism that throws the same error about 'rails' not being a dict
02:59 UtahDave is rails a dict?
02:59 chrism tbqh i'm not sure of the nomenclature, it's a pillar key
02:59 chrism i.e.
02:59 chrism rails:
02:59 chrism rails_environment: staging
03:02 UtahDave chrism: try the new pillar.get syntax  {% if salt['pillar.get']('rails:rails_environment') == 'production %}
03:03 Nexpro joined #salt
03:03 chrism k
03:03 satshabad joined #salt
03:03 chrism Magic!
03:04 chrism that did it
03:04 chrism gracias sir
03:04 chrism and that just gave me a backlog of things to un-duct tape =P
03:05 jacksontj UtahDave: i've been working on this state + pillar stuff -- its remarcably similar to what i ended up coding around the state system back in the day
03:05 jacksontj very excited :)
03:05 jacksontj just ran into one thing thats more of a nuisance, with my watch_in statements-- it seems to run those commands after (for example) the packages are updated-- not before
03:06 jacksontj is there a way to make it go first?
03:07 UtahDave jacksontj: I'm glad it's working out for you.  :)
03:07 UtahDave are you using watch_in backwards?   do you need a watch there instead?
03:08 jacksontj i tried switching it, then it doesn't do anything at all :/
03:08 jacksontj this is the paste from earlier
03:08 jacksontj http://pastebin.com/x1LvtwnS
03:09 UtahDave jacksontj: by the way, I'm going to be snagging some of this logic for a demo of how to automate adding and removing machines behind an haproxy.  I just hadn't gotten around to it.   :)
03:09 jacksontj ok ;)
03:10 jacksontj are you part of the crew headed out to LinkedIn Monday?
03:10 UtahDave Yep!  Tom and I are both flying out early Monday morning
03:11 UtahDave I'm really looking forward to it.
03:11 jacksontj sweet :) i'm planning on using some of this in a presentation that day ;)
03:11 UtahDave I think it's going to be a lot of fun.
03:11 UtahDave Ah, cool
03:12 UtahDave So the event starts at 5pm.  What time do you think Tom and I should show up?  I don't want to show up so early that we're in the way during the work day
03:12 jacksontj not sure, i'd say a little early so we can chat and make sure we're all on the same page
03:12 UtahDave Gah,  I'm going to have to put my laptop down for a little bit.  My two little daughters are climbing all over me asking for a bedtime snack
03:13 UtahDave Time to put them to bed.  I'll be back in 20 or 30 mins
03:13 jacksontj maybe 3:30  or 4? if you guys want to come earlier and hang out thats cool too ;)
03:13 jacksontj lol, ok
03:13 UtahDave k
03:13 jacksontj k, i'm headed home actually-- i'll hop online in when i get there
03:13 jacksontj i'll be working on the rest of this tomorrow-- hopefully we can get that oor stuff working right-- if not the rest is pretty much done :D
03:17 austin987 joined #salt
03:18 chrism UtahDave: is saltstarters the best place to contribute back to the commuity via salt states?
03:19 chrism i've got a pretty solid repo built up, and while I can't really help with the code, I might be able to give back via that
03:31 baniir joined #salt
03:41 koolhead17 joined #salt
03:41 koolhead17 joined #salt
03:46 Teknix joined #salt
03:54 blast_hardcheese joined #salt
03:56 UtahDave chrism: that's a fantastic way to contribute back. saltstarters is a good start.
03:56 UtahDave We're also just created a new salt community organization on github with lots of repos with examples
03:56 UtahDave you might look there. Let me grab the link for you
03:58 UtahDave chrism: https://github.com/saltstack-formulas
03:58 UtahDave If what you have doesn't fit neatly into anything there, let me know tomorrow and I can create a new repo for your states
03:59 austin987 joined #salt
04:21 linjan joined #salt
04:24 Deece joined #salt
04:25 aat joined #salt
04:27 aat joined #salt
04:34 efixit joined #salt
04:43 linjan_ joined #salt
04:46 cossovich joined #salt
05:06 jdaggett joined #salt
05:10 milind_ joined #salt
05:12 blast_hardcheese joined #salt
05:22 Furao joined #salt
05:23 oz_akan joined #salt
05:35 Deece joined #salt
05:37 stevetodd joined #salt
05:45 Katafalkas joined #salt
05:46 Gwayne joined #salt
05:46 Gwayne joined #salt
05:47 Katafalkas has anyone tried using salt for full deployment ?
05:47 Furao Katafalkas: been doing that for a year.
05:47 Katafalkas and how is it ?
05:47 Furao in fact yesterday I deployed a new client
05:48 Katafalkas as the moment I am thinking of using git for code deployment.
05:48 Furao I wrote state for some DNS suppliers. so, if the states got applied correctly, salt change the DNS entries of some domain
05:48 Furao well i use git, but it's salt that control it
05:49 aat joined #salt
05:49 Furao but we're actually moving to a complete local archive for everything we don't control, such as github, bitbucket, pypi, etc
05:50 Furao all files are mirrored internally
05:50 Katafalkas but if you would replace git entirely with salt. Lets say you pull code from github via git to salt master. and then deploy to minions
05:51 Furao I never deploy a tip of a branch
05:51 Furao all my requirements file come with specific checksum
05:51 Furao or pillar that contains a checksum
05:52 Katafalkas "tip of a branch" whats that ?
05:52 Furao I deploy only what I know exactly what it is.
05:52 Furao well I don't deploy git@gitserver:/something.git
05:52 Furao I always specify revision
05:52 Furao tip of branch is like the latest version of master branch
05:53 Furao so, all requirements file will be replaced from git@gitserver:~/something.git@00deadbeef00#egg=something with {{ pillar['mirror_server'] }}/something/something-1.2.3.tar.gz
05:54 Katafalkas so u use internal git server for deployments ?
05:54 Furao sometimes
05:54 Furao but the salt master come with all git repos to make it run
05:54 Furao as we use gitfs
05:54 Furao I got git server states
05:56 Furao but my states are shared among multiple clients, which all have their own specifics
05:57 Furao this one host git code internally, this other use github
05:58 carlos joined #salt
05:58 Katafalkas ok. i ll keep that in mind
06:20 middleman_ joined #salt
06:20 sebgoa joined #salt
06:24 azbarcea joined #salt
06:30 auser joined #salt
06:32 auser hey all… so I've run into a kinda of odd issue I've never seen before… I'm building nginx and I have an nginx service that doesn't start… In order to get it to restart, I have to log into the box to get it to restart, yet I see that the state runs that tells me it's restarted
06:34 auser anyone else seen this before?
06:37 Furao auser: /etc/init.d/ based startup script?
06:37 Furao on ubuntu?
06:37 auser no, upstart on ubuntu
06:37 auser well… I think
06:37 auser yeah, /etc/init.d is still up
06:37 auser is in there, at least
06:37 Furao there is some issues with that and ubuntu 0.15.3
06:37 auser hi Furao :)
06:38 Furao I had lot's of issues with that
06:38 auser oh really?
06:38 auser it's really annoying
06:38 Furao https://github.com/saltstack/salt/issues/5027
06:38 Furao fixed in git
06:39 Furao my states come with fixes for that :P
06:39 Furao yesterday I deployed first client
06:40 auser you fixed it in git?
06:40 auser nice :)
06:40 faust joined #salt
06:41 Furao I found workaround
06:41 Furao well nginx from nginx.org repo work
06:41 auser ah
06:41 y0j joined #salt
06:43 auser thanks
06:46 txmoose joined #salt
07:08 V1 joined #salt
07:21 p3rror joined #salt
07:23 nliadm joined #salt
07:24 bhosmer_ joined #salt
07:30 luff joined #salt
07:32 Oct 'morning
07:35 Teknix joined #salt
07:36 oliv_mc joined #salt
07:37 tseNkiN joined #salt
07:44 ronc joined #salt
07:46 scott_w joined #salt
07:57 techdragon joined #salt
07:59 scott_w joined #salt
08:00 auser mornin Oct
08:00 auser well… evening
08:03 udiabon joined #salt
08:06 Oct :-)
08:09 chuffpdx joined #salt
08:11 felixhummel joined #salt
08:12 linjan_ joined #salt
08:16 luff left #salt
08:23 adotbrown joined #salt
08:27 krak3n` joined #salt
08:31 bensix2 joined #salt
08:33 felskrone joined #salt
08:37 Deece joined #salt
08:44 p3rror joined #salt
08:52 agend joined #salt
09:19 blast_hardcheese joined #salt
09:31 sterut joined #salt
09:31 sterut I am trying to use archive.unzip in a state file, but I keep getting en error that the state "arcive.unzip" is unavailable
09:32 sterut From the command line it works just fine though
09:33 Furao it's arcive and not unarchive
09:33 Furao no the other way around
09:34 Furao and archive is a module not a state
09:34 Furao http://docs.saltstack.com/ref/states/all/index.html
09:34 Furao no archive there
09:35 Furao before even archive module exists, I wrote that https://github.com/bclermont/states/blob/master/states/_states/archive.py
09:35 Furao it's the old version, might contains bugs
09:36 sterut DOH
09:36 sterut haha that explains it :)
09:38 Furao just looking at some client database… and I can't help to wonder if mysql help people do stupid things
09:38 Furao even the table names are wrong
09:38 entil maybe stupid people have a low barrier of entry into mysql because tout le monde uses it
09:39 Furao well just basic administration is so complicated with mysql, the barrier isn't that low
09:40 sterut Thanks Furao! All I needed was a module.run: in my state to get it working.
09:40 entil when I was with nokia people used to do sudo mysql to get mysql root access and weird stuff like that
09:40 Furao you really need to unarchive the file on each state execution?
09:41 entil I'm not sure I ever learned a one true way to add a user so I used debian-sys-maint for pretty much everything
09:41 entil never before, never again
09:41 Furao that is weird that they mix unix users with database users
09:42 Furao I had to install a ftp daemon a while ago, and I used postgresql to store users because I didn't wanted to mix ftp and local account
09:42 entil iirc it's only the name, but it's confusing. and it probably works because uid 0 mysql client has fs read access to the files or something :D
09:42 Furao anyway, mysql is not a database in first place http://www.youtube.com/watch?v=1PoFIohBSM4
09:43 entil let's see if I get anything out of that without sound
09:43 Furao a haha the table names start in french then _ character and in english
09:43 entil and it's not the translated word?
09:43 Furao programmes_has_exercices
09:43 Furao usagers_has_patients
09:44 entil hah
09:45 entil but mysql was in the right place at the right time
09:45 entil that overweighed the crappiness
09:45 entil it's not like there'd been overtly much competition... the company I was with back then opted to use postgres but people didn't know it and mysql was Corporate-Backed(tm)
09:46 Furao yes, but that's not a reasons to do it 12 years later
09:46 Furao we don't use whale oil to produce light
09:46 entil it shouldn't even have been back then
09:47 entil most companies have gone bust in the mean while so they can't even play the legacy card
09:47 Furao there was postgres95
09:47 Furao but it was worst than mysql
09:47 entil I think we took to 7.2
09:47 entil or 7.3 was at least used
09:47 sterut Furao: no, I don't, but I still want to have this specific archive unzipped in a statefile
09:50 Furao sterut: check my archive.extracted state in https://github.com/bclermont/states/blob/master/states/_states/archive.py
09:52 sterut ah that's pretty great! My intention was just that, in this specific case, have a grain when the server is initially setup along the lines of "bootstraped: no" and then after unzipping setting it to "bootstrapped: yes," and limit the execution based on that grain
09:52 Furao mysqldump takes 80 gb
09:52 Furao one db
09:52 Furao sterut: not a good idea, my state download and extract the file is it can't find expected extracted content
09:53 sterut I never said it was a good idea :) just the best I could come up with right now
09:54 sterut Although I've also considered just building out an RPM with the contents of the archive and using the pkg state instead
09:55 Furao you're just moving the problem
09:56 jeddi as long as you're moving the problem away from yourself, and towards someone else, that's basically a successful move.
09:56 sterut How do you mean?
09:56 sterut jeddi: haha
09:56 jeddi (can you tell I used to work in a telco?)
09:58 Furao jeddi: I used to work for a big canadian printing company with a WAN everywhere in the country. and I was monitoring/managing it. I was talking to 5 different telco all the time. I know you guys have this mentality :P
09:59 Furao one time I had to setup linux boxes between 2 endpoint of a frame relay link to show that we could only get 12 Mbps/2 Mbps but were paying for 100 Mbps… they were always blaming my router configs. they finally apologized and credited a lot of $
10:02 Furao custom code, external libraries, templates, static files, users submitted files, temp files are all mixed in the same directory. no source control.
10:02 Furao php + mysql lower IQ?
10:03 sterut Furao: Was that in regards to building an rpm? the comment about custom code etc...?
10:03 Furao no this is a client server I'm actually looking at right now
10:04 entil computing for everyone!
10:05 sterut ah! well I'll give your archived state a try, it does seem like the most graceful solution and really I'm not in the mood to start dicking with a spec file. Thanks for the help and good luck with that mess.
10:05 sterut extracted state I mean
10:06 Furao %%FE^FEF^FEFD2507%%modal_go_to_login.tpl.php
10:06 Furao that's the name of a template file
10:08 backjlack joined #salt
10:08 entil that's disgusting
10:08 Furao http://en.wikipedia.org/wiki/Infinite_monkey_theorem
10:11 dthom91 joined #salt
10:12 Furao well I won't accept that job, not a client anymore
10:21 krak3n` joined #salt
10:26 giantlock joined #salt
10:31 `3rdEden joined #salt
10:35 felixhummel joined #salt
10:39 `3rdEden joined #salt
10:39 __gotcha joined #salt
10:56 waverider joined #salt
11:02 Odd_Bloke I'm seeing a weird problem.  If I change pillar data on disk, the salt master doesn't compile the new data.
11:03 Odd_Bloke Specifically, if I change the pillar top.sls to point at a different file to include, it continues trying to include the old file.
11:03 Odd_Bloke The old file doesn't exist, so this fails.
11:04 Furao joined #salt
11:10 Odd_Bloke I'll see if I can get the salt-master restarted.
11:11 danieljn joined #salt
11:13 timl0101 joined #salt
11:14 danieljn is anybody running salt on ipv6? I have ipv6: True in both, master and minon configs, but it is not working... ipv6 is not really documented atm
11:14 Odd_Bloke Restarting the salt-master hasn't worked.
11:14 Odd_Bloke Very weird.
11:20 krak3n`_ joined #salt
11:28 Odd_Bloke Restarting the entire machine hasn't worked.
11:37 logix812 joined #salt
11:37 auser joined #salt
11:57 krak3n` joined #salt
12:04 carmony joined #salt
12:13 __gotcha joined #salt
12:13 __gotcha joined #salt
12:19 fredvd joined #salt
12:23 jslatts joined #salt
12:24 zooz joined #salt
12:42 carmony joined #salt
12:46 maspwr joined #salt
12:54 Oct Anybody uses salt to do ordered deploys ?
12:57 Oct like running a command on some host and then running other commands on others hosts, with params of the command depending of the first master host run
12:57 Oct or is this something I should do with minion minin and pillars ?
12:58 oz_akan joined #salt
12:59 oz_akan joined #salt
13:01 danieljn joined #salt
13:04 Khollowa_ joined #salt
13:04 Odd_Bloke Oct: Look at overstates as well.
13:05 Odd_Bloke I'm seeing the following failure: http://pastebin.com/ZNj9pkvg
13:05 Odd_Bloke There is definitely a zadar-production.sls in the pillar directory.
13:05 Odd_Bloke The weird thing, though, is that if I move the top.sls out, I _still_ get this error.
13:06 Odd_Bloke Other minions fail to highstate because their pillar is missing, but this one still somehow knows what pillar files it should be looking for and fails to find them.
13:06 EugeneKay Remove the cache and restart the minion
13:06 Odd_Bloke EugeneKay: The cache?
13:07 santagada joined #salt
13:07 juicer2 joined #salt
13:08 dcrouch joined #salt
13:08 EugeneKay /var/cache/salt/minion/
13:08 Odd_Bloke EugeneKay: Remove that on the master?
13:09 Gifflen joined #salt
13:09 EugeneKay Minion
13:09 EugeneKay I've never seen your problem, just something that I tried(and worked) when I ran into a similar one
13:09 Odd_Bloke EugeneKay: Didn't know about the cache, great tip. :)
13:10 DanGarthwaite joined #salt
13:10 danieljn joined #salt
13:10 bandini_onlinux joined #salt
13:12 juicer2 anyone used cp.push successfully with 0.15.1 or 0.15.3? http://docs.saltstack.com/ref/modules/all/salt.modules.cp.html
13:12 bandini_onlinux Hi, has anyone used the /etc/salt/master directive "client_acl_blacklist"?   I cannot get it to work using the example config it provides.
13:12 mackstick joined #salt
13:13 abe_music joined #salt
13:20 danieljn Is really nobody running salt over ipv6?
13:21 karlp (what's ipv6 ;)
13:21 karlp what's not working?
13:21 karlp are you sure you don't hve something like a listen port explicitly on 0.0.0.0:xxx ?
13:22 karlp so it's binding ipv4 only or something?
13:23 danieljn I set ipv6: True on both, master and minion, and nothing happens salt-key wise ;) I disabled the listen option on the master entirely.. do I have to set something other than default?
13:24 danieljn I figured it would listen on all. It was working on ipv4 with listen: 0.0.0.0, but it's throwing around errors when using :: or '::'
13:26 danieljn joined #salt
13:26 fredvd joined #salt
13:28 Oct Is it possible to sync_* from another host than the Master ?
13:32 timoguin_ joined #salt
13:33 racooper joined #salt
13:44 danielbachhuber joined #salt
13:44 danieljn joined #salt
13:45 karlp I've got a state file that works well (enough) and it's all templated like so: http://paste.ubuntu.com/5764718/
13:46 karlp I'm trying to use most of it to be the base to let multiple states use it as a parent,
13:46 karlp and I tried using includes like so: http://paste.ubuntu.com/5764720/ where pyapp/init.sls is the previous version without the {%set xx%} headers
13:47 karlp now, that doesn't work, I get "app is undefined" type errors,
13:47 karlp is there a better way of doing this?
13:50 nkuttler karlp: inheritance?
13:50 danieljn joined #salt
13:50 nkuttler karlp: iirc you can also include foo with bar=baz etc
13:50 karlp yes, that's the word I want to use, I just don't know how to do it, I thought that's what include was doing.
13:51 karlp the docs search on readthedocs has nothing relevant if you search for inherit.
13:52 nkuttler inheritance is done with extends
13:52 nkuttler oh wait..
13:53 karlp the {%set xxx%} isn't getting passed to the included file,
13:53 nkuttler yeah, i think you want to extend a template
13:53 karlp I'm ok with doing this a completely different way if there's other ways
13:53 karlp this is just where I got to first.
13:54 nkuttler karlp: iirc include: will include a rendered tempalte, not render it
13:54 nkuttler to render something included you'll have to use jinja's include, but i think you want to use extend
13:55 karlp I will havea  look at doing it all inverted with extend, see how that goes,
13:55 nkuttler http://jinja.pocoo.org/docs/templates/#child-template
13:55 karlp but I feel that's going to be the same, just in the inside out order :)
13:55 danieljn karlp: what listen setting do I need on my master? What would you suggest?
13:55 carmony joined #salt
13:56 karlp danieljn: no idea, I don't have a listen setting,
13:56 karlp I guess there's some python code in the salt guts that is not doing an "any interface" call it's doing a "0.0.0.0" call,
13:57 karlp and "something else/wrong" for the ipv6 flag.
13:57 karlp ipv6 shouldn't be a flag anyway, it should just use whatever interfaces you have
13:58 danieljn karlp: yeah it should... Is it working for you without specifiing the listen interface? I feel like I have tried each and every reasonable value for listen
13:59 UtahDave joined #salt
13:59 Oct :/
13:59 karlp danieljn: no, I'm not caring or looking at ipv4 vs ipv6 :)
13:59 karlp I was just trying to help you
13:59 karlp I don't have any settings that specify anything at all
14:00 danieljn karlp: thank you very much for that... guess I will try to track whats wrong in the source then
14:01 mannyt joined #salt
14:01 danieljn joined #salt
14:03 Odd_Bloke EugeneKay: Looks like removing the cache on the _master_ fixed the problem.
14:04 EugeneKay Tada
14:04 EugeneKay Caches are annoying sometimes
14:04 Odd_Bloke EugeneKay: Thanks _so_ much.
14:04 Odd_Bloke I was tearing my hair out here. :p
14:05 jeddi joined #salt
14:06 karlp I can have a file that is "pyapps" that does a {% for app in some_list %} with my template, but that seems like it would only work for identical type apps, not for extensions
14:08 aberant joined #salt
14:11 felixhummel hi! how do you raise an error if a certain pillar value is not set / empty string?
14:15 jdaggett joined #salt
14:17 LarsN If I'm managing something like httpd.conf I imagine I can do something like:  ServerName {% grains.fqdn %}
14:17 abe_music anyone have any experience automating a hadoop deployment with salt or know where there are some example states to browse?
14:17 LarsN in the config file I'm pushing from the salt-master.  Is this a correct assumption?  Or have I completely missed the boat?
14:18 aleszoulek joined #salt
14:20 juicer2 UtahDave: Hi, any more thoughts on cp.push? Do you know if it should be working?
14:23 LarsN testing shows I'm either wrong in my asumption, or I'm just doing it wrong.
14:29 UtahDave juicer2: Yeah, it's working for me.  Can you test it on the latest from git develop?
14:30 UtahDave LarsN:  {% grains['fqdn'] %}
14:30 UtahDave abe_music: auser just posted an awesome slide deck yesterday where he talked about that.
14:30 UtahDave abe_music: I think he plans on releasing his salt formulas for it, too
14:31 juicer2 UtahDave: thx, I'll just wait until it makes it into epel. Be nice if docs showed what versions the modules worked in and which ones they don't.
14:31 abe_music UtahDave: i remember you telling me about his work…any idea where i might find that slide deck?
14:32 LarsN UtahDave: I can do that in the salt://files/httpd.conf?  Or do I need to do that in the .sls file?
14:32 UtahDave LarsN: either
14:32 oz_akan joined #salt
14:33 LarsN http://pastebin.com/QKT57Ccs
14:34 LarsN it wrote {% grains['fqdn'] %} rather than the value.  That's fun :)
14:36 UtahDave abe_music: https://speakerdeck.com/auser/reactive-saltstack  here's ari's slidedeck
14:36 abe_music perfect, thanks!!
14:36 UtahDave LarsN: oh, wrong syntax.  {{ grains['fqdn'] }}
14:36 abe_music i have been looking for a good example of the reactor system
14:38 UtahDave juicer2: good point. I kind of like the idea of a small annotation of    module.do_something()    new in 0.15.0       Or something like that
14:39 LarsN in my sls should I be using "file.managed" or a different directive?
14:39 juicer2 UtahDave: something would be nice. I don't have the time to undo the installed rpm's , roll out from git again, and 'experiment' with to see if it's going to work.
14:39 LarsN http://pastebin.com/JCXtyXEe  (similar results, with all of the pieces listed)
14:40 UtahDave LarsN: you're missing the template declaration.  http://pastebin.com/pRwdjR4H
14:40 baniir joined #salt
14:41 LarsN UtahDave: I knew I was doing it wrong!  :)
14:41 LarsN Many many thanks!
14:41 LarsN and now it works as expected
14:42 baniir i'm trying to append lines to sudoers but am getting "found character '%' that cannot start any token"; is there a way to escape that character
14:42 UtahDave You're welcome!
14:42 UtahDave baniir: are you using file.sed?
14:42 LarsN that "may" have solved the last hurdle for me to roll this out beyond my very small test environment.
14:42 baniir UtahDave: file.append
14:43 LarsN UtahDave: if you find yourself in Austin, TX I'll get you a beer.
14:43 UtahDave baniir: it's easier and less error prone to use file.managed.  Any way you could use that instead?
14:43 teskew joined #salt
14:43 UtahDave LarsN: How about an Ace of Spades at Torchie's Tacos instead??????
14:44 baniir UtahDave: i don't see why not; i'm trying to keep data in pillar, but that shouldn't be more complicated
14:45 Rick1 joined #salt
14:45 Rick1 Hello all.
14:45 UtahDave baniir: you can still keep your data in pillar and template the file.  Trust me, it's a lot easier.    file.append and file.sed have their uses, of course, but they get tricky quickly
14:45 LarsN I think I could make that happen. ;)
14:46 UtahDave LarsN: awesome!   :)
14:46 UtahDave hey, Rick1!
14:47 baniir UtahDave: thanks, looking into a solution with file.managed
14:47 Rick1 We are thinking about setting up reactors.  Anyone had luck with them>
14:48 sarkis joined #salt
14:49 mikedawson joined #salt
14:49 UtahDave what are you trying to accomplish with reactors, Rick1?
14:50 sgviking joined #salt
14:50 aberant joined #salt
14:50 Rick1 SImple things like monitor /tmp and delete if it gets full.  Restart services if they die, etc..
14:52 UtahDave cool
14:52 quantumriff joined #salt
14:52 Rick1 I looked at the documentation thought and not quite sure what I need to do to get it to work.
14:53 fredvd joined #salt
14:53 Rick1 Is it something I have to set up on the minion or is it??
14:54 Katafalkas joined #salt
14:55 UtahDave Rick1: ok, so the reactor configs go in your master config.
14:55 kermit joined #salt
14:55 kho joined #salt
14:55 quantumriff I have a minion that is not currently responding to any commands. (either to '*' or to that machine name directly)  that got me thinking, is there a command I can run to tell me what servers ARE NOT responding? i know I can do a test.ping, but looking at a long list, and figuring out what is missing is tedious
14:56 DerekRBN joined #salt
14:56 quantumriff I of course kind of assume that commands run on all minions, if some don't throw errors, or anything, how will I know they didn't get updated?
14:56 aleszoulek joined #salt
14:57 jdaggett joined #salt
14:57 Rick1 quantumriff I use salt -v --out=text'*' test.ping |grep Minion
14:58 clintberry joined #salt
14:58 quantumriff interesting.. I knew one was not answering.. after that command, I see there are 2 others I did not notice.
14:59 felixhummel do i have to sync pillar somehow? >salt 'foo' pillar.data< returns ok, but >salt 'foo' pillar.raw< returns parse error (which i fixed). is calling state.highstate not enough?
14:59 ktenney joined #salt
15:00 felixhummel ok, got it: http://docs.saltstack.com/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.refresh_pillar
15:03 adotbrown joined #salt
15:04 sciyoshi joined #salt
15:05 quantumriff Rick1, is there a way to redirect the output to syslog?
15:06 quantumriff I have a logstash logging server, I could search for "Minion did not return" regularly
15:07 Rick1 Not sure I have a script that runs that command hourly and then restarts the minions from the list it creates.
15:07 aat joined #salt
15:07 m_george|away joined #salt
15:13 sgviking joined #salt
15:14 JasonSwindle joined #salt
15:16 UtahDave quantumriff: also, there's   salt-run manage.down
15:18 jalbretsen joined #salt
15:19 conan_the_destro joined #salt
15:20 quantumriff UtahDave, thanks, thats pretty straightforward..
15:21 quantumriff salt-run manage.down | logger -t 'salt-minion down' makes for an easy way to log and alert
15:24 jschadlick joined #salt
15:26 chrisgilmerproj joined #salt
15:43 abe_music UtahDave: in Ari's slide deck he's running commands like "salt aws launch …" what's he doing there? Is that something custom he has or something new?
15:44 UtahDave yeah, that must be a custom module he's written.    You can do stuff like that with salt-cloud
15:44 nliadm UtahDave: how do the environments generated from git branches interact with environments in top files?
15:45 UtahDave git branches and tags all become environments in the top file
15:45 abe_music UtahDave cool, i'll have to look into that
15:46 timoguin_ abe_music, slide deck? is there a presentation somewhere?
15:46 abe_music timoguin_: https://speakerdeck.com/auser/reactive-saltstack
15:46 fragamus joined #salt
15:46 nliadm UtahDave: what if I have an environment named 'test' in the top, and also a git branch named 'test'? should the environment in the top just always be 'base' if you're using git?
15:47 timoguin_ abe_music, very interesting. thanks.
15:47 Gareth__ joined #salt
15:47 MFen joined #salt
15:47 armonge joined #salt
15:48 abe_music timoguin_: np, thank UtahDave for providing and auser for creating it :)
15:48 munhitsu joined #salt
15:48 abe_music especially looking forward to seeing his states
15:48 Kyle joined #salt
15:48 UtahDave I think that depends on the order of your file backends
15:48 balltongu joined #salt
15:48 N-Mi joined #salt
15:48 N-Mi joined #salt
15:49 morganfainberg joined #salt
15:50 omame joined #salt
15:51 m_george left #salt
15:52 abe_music anyone know if it's possible to choose what pillar location is set when you run salt?
15:52 canci_ joined #salt
15:52 Mrono joined #salt
15:52 Mrono joined #salt
15:52 lmnts joined #salt
15:53 jay_ joined #salt
15:53 herlo_ joined #salt
15:53 UtahDave abe_music: look in your master config file for the pillar_roots  item
15:54 abe_music UtahDave: right, but that's in the config….looking for something like salt --pillar_root /tmp/new_pillar, basically a way for arbitrary users to manage their own pillar setups without stomping on other users
15:55 mannyt joined #salt
15:55 jdenning joined #salt
15:55 abe_music UtahDave: it's a half baked thought at the moment though, so there might be a better way
15:56 abe_music we may be able to take advantage of individual environments on a per-user basis. haven't really gotten there yet, but it's coming
15:56 erasmas joined #salt
15:56 abe_music so far we're able to dynamically build out salt cloud profiles and maps on a per-user basis and register/unregister those VMs with Route53. a pretty good start so far
15:56 yota_ joined #salt
15:57 pnl joined #salt
15:57 davidone joined #salt
15:57 karlp heh, can't comment out a {% for xxx %} in a sls file...
15:57 up_the_irons joined #salt
15:57 UtahDave nice, abe_music!  Sounds really cool!
15:57 jasonrm joined #salt
16:00 fredvd I'm trying to update salt-cloud on ubuntu lucid: on the ppa page I see that the latest release is 0.8.7-1lucid, but my installed version is stuck at 0.8.6-1lucid , even when I do an apt-get update / apt-get upgrade.
16:00 sciyoshi1 joined #salt
16:01 EugeneKay joined #salt
16:01 UtahDave have you tried  sudo apt-get dist-upgrade salt-cloud     ?
16:03 timoguin_ abe_music, have you seen this: https://github.com/auser/salt-cli
16:03 timoguin_ looks like that has the custom AWS modules you were asking about
16:03 fredvd Ah wait, diving further into the package details I know see that the i386 build for all salt-cloud's 0.8.7 have faild. There's a red cross in the details overview.
16:03 fredvd too many links on those pages.
16:05 fredvd https://launchpad.net/~saltstack/+archive/salt/+build/4480916
16:09 herlo joined #salt
16:10 timl0101 joined #salt
16:11 KyleG joined #salt
16:11 sciyoshi joined #salt
16:11 abe_music timoguin_: coo, thanks for that
16:11 abe_music *cool
16:11 timoguin_ abe_music, https://github.com/auser/states
16:11 timoguin_ and his states too. :)
16:13 abe_music timoguin_: i was looking for his reactive hadoop states from the slide deck, did he add them yet?
16:14 timoguin_ abe_music, i'm not seeing hadoop in there anywhere. just assumed they were because he linked to this repo at the end of the presentation
16:15 abe_music timoguin_: i don't think he's posted them yet, but UtahDave says they are coming soon
16:15 timoguin_ sweet
16:15 jdaggett joined #salt
16:21 bemehow joined #salt
16:22 bemehow_ joined #salt
16:23 mgw joined #salt
16:25 jacksontj joined #salt
16:26 munhitsu joined #salt
16:26 karlp is there some reason that the pilalrs dir isn't in the same root as the salt dir by default?  It makes it more of a hassle to get them both under version control.
16:26 karlp or are people not putting things in the pillars that they want versioned in teh same tree?
16:27 nkuttler karlp: i just have the parent dir in a rcs
16:27 nkuttler also contains documentation, diagrams and such
16:27 karlp yeah, unfrotunately, that's /srv by default.
16:28 UtahDave pillar is sensitive data
16:28 nkuttler it can be
16:28 UtahDave all minions can see all data in the file_roots
16:28 UtahDave that's why pillar is kept separately
16:29 karlp would it be appropriate for the future to have the default be /srv/salt/data and /srv/salt/pillar or something so that all of salt is in one place?
16:29 karlp I can see the separation, but why the need for two separate top level directories by default?
16:30 UtahDave karlp: I can definitely see your point.
16:30 UtahDave I think it's an historical artifact
16:30 UtahDave pillar was created well after the rest of the states stuff
16:30 godber_ I think keeping them in separate directories sends a strong signal to users that "Hey these things are seriously different, and should be thought of differently"
16:31 karlp ok, except for instance, the using a common template for multiple apps I wsa trying earlier, works just fine if I put the list of apps in pillar data instead of trying to do {% set name = app1 %} include base
16:31 godber_ putting sensative things into your source controll should not be a default
16:32 karlp so using the "sensitive data" store is the only easy way of templating things
16:32 karlp and is recommended as the way to template things throughout the docs
16:32 karlp godber_: I'm totally ok with having two directories, I'm jsut against them both being top level directories in /srv
16:32 godber_ yeah, that is a good point
16:33 karlp UtahDave: I realise migration from older versions would be a problem, but would this be a suitable bug report?
16:34 UtahDave I think it would be fine to open up as an issue to initiate some discussion.
16:35 godber_ I would be surprised if it weren't a design decision
16:35 UtahDave Please don't be offended if the answer is "good idea, but we're already down this path, so we're not going to change it.'    :)
16:35 karlp yeah, I'm pretty sure that would be the answer :)
16:35 karlp but it's still a 0.x release right, things are still allowed to change :)
16:36 UtahDave And really, there's absolutely nothing stopping you from configuring your salt install like that
16:36 godber_ karlp: can you define your pillar root to be within the /srv/salt dir?
16:36 karlp oh sure, I know I can configure my master to do that,
16:36 karlp I just think it would be the correct default too :)
16:36 UtahDave karlp: sure, that's true. That's why I said it would be fine to open an issue, because it might be decided to make that change.
16:37 karlp yeah, typing it up at the moment .)
16:38 godber_ well, I think it would be confusing to have the pillar top.sls somewhere within the /srv/salt directory
16:39 UtahDave godber_:  I think karlp is recommending /srv/salt/data   and /srv/salt/pillar
16:39 UtahDave or something like that
16:39 bmorriso1 joined #salt
16:39 godber_ ah yeah
16:39 bmorriso1 Greetings all...how do I find out what version of salt is installed on my minions from the master?
16:41 UtahDave salt \* saltutil.versions_report
16:42 godber_ oh, I was gonna say, salt \* grains.item saltversion
16:42 karlp godber_: yep, what he said: https://github.com/saltstack/salt/issues/5542 if you want to track it and support/complain :)
16:43 godber_ karlp: You have valid concerns, but their separation just felt to me like a point was being made
16:43 godber_ as I use pillars more, I expect to find the same frustrations
16:44 karlp yeah, I've only started using pillars this afternoon, after fialing to do my templated/inherited states without them
16:44 jeddi joined #salt
16:46 karlp hehe, I just used the {{sls}} template. earlier when I saw that, I had no idea what on earth it was for :)
16:47 LyndsySimon joined #salt
16:53 bmorriso1 Get this for a response: "saltutil.versions_report" is not available.
16:54 UtahDave oh, sorry.
16:54 UtahDave test.versions_report
16:55 yml [ANN]: We have developed a super simple ( simplistic ) monitoring system that used salt and django more can be read here : http://lincolnloop.com/blog/2013/jun/14/introducing-salmon/
16:55 pmcg joined #salt
16:55 * yml dropping the bottle into the sea :-)
16:56 Rick1 Nice....yml this looks awesome
16:56 bmorriso1 that's better UtahDave
16:56 UtahDave yml: Very cool!
16:57 bmorriso1 any idea why salt commands are returning the same host twice...but one hosts passes, the other fails?
16:57 yml Rick1: thanks, install it use it send us PR or feedback or stone
16:58 yml bmorriso1: one host can pass because it is the first one to take the lock the second one fails because it timeout
16:58 yml bmorriso1: can you list the keys and make sure the same minion is not registered 2 times
16:59 godber_ karlp: I stand completely corrected on your pillar point.
16:59 bmorriso1 yml: only one host..in fact I deleted the key, and readded it
16:59 bmorriso1 perhaps the master needs a restart to refresh itself?
16:59 godber_ The upside is, at least I will be able to search github for committed password hashes
16:59 Ryan_Lane joined #salt
17:01 EugeneKay There's one I've been thinking on: what's a sane way to (re)set a password for a user across multiple machines via Salt?
17:02 UtahDave EugeneKay: http://docs.saltstack.com/ref/modules/all/salt.modules.shadow.html#salt.modules.shadow.set_password
17:02 EugeneKay Any way that can take the hash on stdin?
17:03 milind_ joined #salt
17:03 EugeneKay I guess I could knock out a small py script
17:03 EugeneKay But I figure somebody has to have done it before, and reengineering the wheel is silly
17:03 jacksontj joined #salt
17:06 jacksontj UtahDave: k, so i have everything working for my deployment except that the OOR script isn't called before the package install (new paste: http://pastebin.com/ED6Z47hd)
17:06 baniir joined #salt
17:08 jacksontj looks like it updates the files before oor as well though :/
17:08 bemehow joined #salt
17:08 __gotcha joined #salt
17:09 jacksontj would overstate be a better place to do this oor/ir stuff?
17:10 UtahDave jacksontj: sorry, being pulled in many directions this morning.  :)
17:10 UtahDave It would definitely be easier to control the order of your executions
17:10 UtahDave if you did that in an overstate
17:10 jacksontj no worries ;)
17:11 jacksontj so overstate can execute those oor/ir scripts even though they aren't technically states?
17:11 logix812 joined #salt
17:11 jacksontj basically what i'd like it to do is if you need to make a change, run oor-- then do all the updates, then restart, then ir
17:11 UtahDave yeah, use cmd.script for that
17:12 karlp what is oor/ir?
17:12 jacksontj oor == out of rotation, ir == in rotation
17:13 UtahDave jacksontj: how are you initiating these changes?
17:14 jacksontj right now? or how i'd like to?
17:14 UtahDave how you'd like to.
17:14 jacksontj a command on the master-- preferably highstate-- but it doesn't matter too much to me if its overstate
17:14 jacksontj the idea is that i have these pillar and state files that define what it should be
17:15 UtahDave right.
17:15 jacksontj i just want to get to a point where you can run a command which does it in batch, does the oor/ir if you need it :)
17:15 jacksontj i have that now, but its all custom runners and modules -- which i want to drop
17:15 jacksontj since its mostly the same as the state system
17:16 UtahDave gotcha.  Let me look through your paste again.
17:16 jacksontj ok :)
17:18 UtahDave So what initiates this whole process?    You modify the minion's haproxy config on the master and then you run a highstate?
17:18 dthom91 joined #salt
17:18 jacksontj yea, or package version
17:19 UtahDave ok, so if the haproxy config or the package changes, then you're going to then execute  ir.sh
17:20 UtahDave no, wait oor.sh
17:20 jacksontj yea, oor
17:20 jacksontj when i run it though it runs oor after updating the packages/files
17:20 jacksontj i want it before :)
17:21 UtahDave Oh, I see.  Yeah, you have it configured for after.  lemme think
17:26 jacksontj that would explain it ;)
17:28 sarkis joined #salt
17:28 sarkis left #salt
17:29 mannyt joined #salt
17:37 waverider joined #salt
17:42 karlp if I have a pillar file like: http://pastebay.net/1240199
17:43 karlp {% for info in pillar.get("pyapps") } works, but how do I get the "top level" name? keypit/data_collector?
17:44 karlp I've tried it this way too: http://pastebay.net/1240198 but then it's hard to get the specific one without looping later
17:46 LyndsySimon joined #salt
17:46 * karlp fires up interactive python to try and work it out
17:47 dthom91 joined #salt
17:52 jacksontj karlp: pillar.get('pyapps') there should be (asusming no iteritems) be the keys (keypi and data_collector)
17:55 UtahDave jacksontj: Tom and I are discussing this.  Turns out Salt can't quite do what you want yet, but Tom is intrigued and wants it in Salt right away.
17:55 jacksontj k, how would you suggest i add it? :D
17:55 UtahDave the genius is flowing.   :)
17:56 UtahDave Tom's adding it to the compiler right now. We're just working out the flow
17:56 bmorriso1 Can I ask a salt-cloud question in here?
17:56 jacksontj its hack day here at work-- so i'm on salt all day :) actually working on an optioanl import thing ;)
17:56 bmorriso1 Is this anything to be worried about? https://gist.github.com/esacteksab/5783909
17:56 jacksontj awesome!
17:56 UtahDave bmorriso1: of course!
17:56 jacksontj of course he can help, not necessarily to worry ;)
17:57 UtahDave bmorriso1: are you using aws?
17:57 bmorriso1 yes, trying to launch an ec2 instance
17:57 aberant joined #salt
17:58 karlp jacksontj: with the pillar data in http://paste.ubuntu.com/5765464/,  I ended up using {{pillar.get('pyapps')[sls].port}} in some files, and {% for app,info in pillar.get('pyapps').items() %} in the common file.
17:58 karlp coming together nicely now :)
17:58 bmorriso1 boto is installed 2.7.0
17:58 redbeard2 joined #salt
17:58 jacksontj karlp: that'll work :)
18:00 UtahDave bmorriso1: redbeard2 is the salt-cloud lead dev.  He can help you better than I.    :)
18:00 karlp glad this vm comes up quickly, doing a bunch of restore snapshots to test this all out :)
18:01 UtahDave lunchtime
18:02 felixhummel joined #salt
18:04 efixit joined #salt
18:05 bmorriso1 more salt-cloud errors :-/ https://gist.github.com/esacteksab/5783973
18:07 Mrono joined #salt
18:07 Mrono joined #salt
18:12 quantalrabbit joined #salt
18:13 maspwr joined #salt
18:14 aberant joined #salt
18:15 JasonSwindle joined #salt
18:15 quantalrabbit I have a question regarding how to handle iptables.  typically i make changes to a file such as /etc/iptables/rules.v4 and then do "sudo iptables-restore < /etc/iptables/rules.v4".  how do i get salt to restore my iptables when i change the file?  is iptables a service on ubuntu or should i use cmd?
18:19 efixit joined #salt
18:20 ggoZ joined #salt
18:29 baniir joined #salt
18:30 tempspace quantalrabbit: are you making the change manually or through salt?
18:32 quantalrabbit tempspace: just a file edit of rules.v4.  not using salt.module commands.
18:32 tempspace quantalrabbit:  This is my iptables state https://gist.github.com/anonymous/beb2018324699c656350
18:33 quantalrabbit tempspace: thanks.  is it targeted for centos?
18:33 tempspace that's for Debian
18:34 tempspace or, that's where it runs
18:35 quantalrabbit tempspace: i see.  thanks!  basically you're doing most of the work in a manged file initiptables.sh
18:36 tempspace quantalrabbit: When I wrote it, nobody had started any iptables stuff in salt
18:37 tempspace quantalrabbit: this is my initiptables script, https://gist.github.com/anonymous/855b8316cf10be6526f4
18:37 Mrono joined #salt
18:37 Mrono joined #salt
18:38 quantalrabbit tempspace: found that i have ufw already installed.  i'm going to "cheat" and just have that service running and watch my rules file.
18:39 tempspace quantalrabbit: then I throw files into a directory when needed from other states, this one is from my Solr state, https://gist.github.com/anonymous/5c3a1d78fc13f2f854c2
18:45 KyleG1 joined #salt
18:48 X-warrior` joined #salt
18:48 X-warrior` Recursive requisite found ? http://pastebin.com/P5BB6sW9
18:52 X-warrior` Ideas?
18:54 UtahDave X-warrior`: is that the entirety of your sls file?
18:55 UtahDave jacksontj: Hey, Tom's on the hunt. I think he'll have that feature for you soon.
19:00 bmorriso1 left #salt
19:03 aberant joined #salt
19:04 faust joined #salt
19:14 X-warrior` UtahDave: nope, that is just that rule, but I thought that error was about just that rule x)
19:15 UtahDave X-warrior`: that error message means you have a stateA requiring stateB which is requiring stateA
19:17 armonge joined #salt
19:18 jschadlick Hiya. I am having to restart my minions before I am able to target them by their pillar data, even though it is showing when i do a pillar.data call. Is there any way around this?
19:19 X-warrior` UtahDave: now it makes sense, ty.. I will double check
19:21 UtahDave jschadlick: salt \* refresh_pillar
19:23 bemehow joined #salt
19:23 jacksontj UtahDave: cool, let me know if he needs any testing/coding help ;)
19:23 UtahDave I'll do that.
19:23 jschadlick thanks!
19:26 UtahDave you're welcome, jschadlick!
19:32 _blink joined #salt
19:36 pentabular joined #salt
19:38 pentabular redbeard2 is bombtastic
19:40 druonysus joined #salt
19:40 druonysus joined #salt
19:44 UtahDave pentabular!!   How's it going, man?
19:45 ploker joined #salt
19:45 pentabular UtahDave: hey! rough. :[  but the good news is I will be demonstrating Salt for our eng staff in 4 wks
19:46 UtahDave nice!
19:46 UtahDave (the demo, not the rough.)    :)
19:46 pentabular heh.
19:46 pentabular needed to drop in here and get a fresh breath of that salty air!
19:48 UtahDave glad you see you. It's been a little while.  :)
19:49 pentabular too long. man I never knew how good I had it just being salty all day!
19:49 UtahDave he he.
19:56 bemehow_ joined #salt
19:58 Boshomi joined #salt
20:00 [diecast] joined #salt
20:00 [diecast] joined #salt
20:03 [diecast] after issuing a saltutil.refresh_pillar i expected to see new pillar.data that i added to the master but it's not listed on the minion
20:03 jacksontj joined #salt
20:04 [diecast] its also not returning when using a pillar search such as salt -I "my:data" test.ping
20:05 [diecast] the minion debug message is Targeted pillar "my" not found
20:06 [diecast] this is with salt 0.15.1
20:16 baniir joined #salt
20:21 bemehow joined #salt
20:22 bemehow_ joined #salt
20:23 UtahDave [diecast]: have you tried running the master in debug mode to see if you're getting any pillar compilation issues?
20:24 UtahDave jacksontj: Tom's figured out the algorithm. Now for implementing
20:24 jacksontj sweet!
20:24 jacksontj i've got my feature ~90% implemented
20:24 [diecast] UtahDave: yes, i was running both master and client in debug. i didnt see any issue but i might have missed it
20:24 UtahDave nice
20:36 aranhoide joined #salt
20:41 jefimenko joined #salt
20:46 nliadm so, minions seem to get an AuthenitcaionError if you touch the keys on the master during a run
20:50 danielbachhuber joined #salt
20:55 cdn joined #salt
20:56 cdn Hi all
20:59 cdn I'm trying to define a windows pkg for jboss where the zip file is defined as following but i'd like it installer option to copy the file over but would like to also uncompress it to a destination is that possible? (snippet installer: 'salt://win/repo/jboss-as/jboss-eap-5.1.2.zip' )
20:59 cron0 joined #salt
20:59 Ryan_Lane joined #salt
21:02 Ryan_Lane joined #salt
21:08 Rick1 left #salt
21:13 UtahDave cdn: The windows pkg installer doesn't have support for installing from zip files
21:14 jacksontj joined #salt
21:14 UtahDave You should probably just use file.managed to push the zip down and then cmd.run to unzip and install it
21:14 cdn Would I definte that in the init.sls of the package or in the jboss-as.sls at the same level of the top.sls?
21:19 jacksontj UtahDave: question about writing a test
21:19 jacksontj the feature i'm adding is a decorator that can be used inside a module
21:20 UtahDave cdn: probably in the init.sls
21:20 jacksontj is there a section in the unittests to have a module that exists just during testing?
21:20 UtahDave jacksontj: Hm. I'm not sure.  Let me grab someone who can point you in the right direction
21:20 jacksontj thanks
21:26 s0undt3ch jacksontj: there is
21:26 s0undt3ch jacksontj: a salt module?
21:26 jacksontj yea
21:26 s0undt3ch or a module to help the tests?
21:26 jacksontj i want to write a unit test that tests a specific thing insidea  module
21:27 s0undt3ch jacksontj: but that module, which is a salt module, is not shipped with salt?
21:27 jacksontj so i have a module that uses the feature-- so i want that module to be available to the minions during test-- but not to be part of the salt "core" modules
21:27 jacksontj if that makes sense
21:28 s0undt3ch yes, it does
21:28 jacksontj i think the module goes here (tests/integration/files/file/base/_modules) right?
21:28 s0undt3ch https://github.com/saltstack/salt/tree/develop/tests/integration/files/file/base/_modules
21:28 jacksontj then i can make a unit test that uses that module
21:28 jacksontj yea
21:28 s0undt3ch jacksontj: heh, yep, that's the place
21:28 jacksontj k, then where should i put the test? inside integration/modules?
21:28 jacksontj its not testing a module, but it is-- kinda?
21:29 s0undt3ch well, that's up to you
21:29 s0undt3ch more or less
21:29 s0undt3ch jacksontj: it needs salt to be running right?
21:29 s0undt3ch if should
21:29 jacksontj well, this is a decorator that you can use within a module
21:29 s0undt3ch *it
21:29 s0undt3ch k
21:29 jacksontj so the thing im testing has to be within a module
21:29 jacksontj but the test itself isn't testing a "modle" per se
21:29 s0undt3ch https://github.com/saltstack/salt/tree/develop/tests/integration/modules/<my-module-testcase>.py
21:31 jacksontj k, i'll put it in there-- i'll have the pull req soon and it'll make more sense ;)
21:33 s0undt3ch cool
21:34 jeddi joined #salt
21:44 nliadm stuck on a templating error, anyone have words of wisdom? http://pastebin.com/X0NWsVmG
21:44 ingwaem joined #salt
21:55 chrisgilmerproj left #salt
22:00 jdenning joined #salt
22:05 nliadm found that problem: don't import a macro from a template you're already extending
22:08 giantlock joined #salt
22:14 aranhoide joined #salt
22:15 jdaggett joined #salt
22:19 jacksontj UtahDave: s0undt3ch pull req in :) https://github.com/saltstack/salt/pull/5549
22:26 bhosmer_ joined #salt
22:27 jrgifford joined #salt
22:31 danielbachhuber joined #salt
22:34 UtahDave jacksontj: sweet!   I think Tom just merged it in
22:35 jacksontj sweet
22:35 Katafalkas joined #salt
22:37 jacksontj meta-class hacks are fun ;)
22:39 efixit joined #salt
22:49 ipmb joined #salt
22:49 UtahDave jacksontj: yep!
22:50 ipmb I just updated my minion and master to 0.15.3, but I'm not seeing the new "ip_interfaces" grain listed for my minion
22:50 UtahDave Hey, everyone, remember to sign up for the LinkedIn / SaltStack  meetup on Monday in Mountain View!!
22:50 UtahDave http://devopsatscale.eventbrite.com/
22:51 UtahDave ipmb: have you tried  salt \* grains.item ipv4     ?
22:51 ipmb I'm looking for this one UtahDave https://github.com/saltstack/salt/pull/5242
22:52 ipmb "grains.item ipv4" works
22:52 ipmb "grains.item ip_interfaces" is empty
22:53 ipmb It works on my local vagrant setup (running 0.15.3 as well)
22:53 maspwr joined #salt
22:53 ipmb I *just* updated the master where I'm having troubles, is there something else I should do?
22:54 UtahDave Hm. It's working for me.  I wonder if it made it into 0.15.3 or if its only in develop
22:55 ipmb ah, that could be it
22:55 UtahDave Yep, just confirmed that it's in develop, but not 0.15.3
22:55 UtahDave it's a new feature and new features stay in develop for the next release
22:56 UtahDave only bugfixes are merged back into a bugfix release
22:56 ipmb so that means 0.16?
22:56 ipmb does develop currently show "saltversion: 0.15.0"?
22:57 UtahDave develop usually shows  saltversion: 0.15.0-<commits since 0.15.0>-<something else>
22:58 UtahDave but if the version functions break, then yeah it will show 0.15.0
22:58 ipmb ahh, ok, I got it. I didn't realize there was more than one PPA
22:58 ipmb I'm using ppa:saltstack/salt-daily on one and ppa:saltstack/salt on the other
22:58 ipmb thx UtahDave
22:58 UtahDave you're welcome!
23:05 UtahDave Great blog post from the Rackspace guys:   http://developer.rackspace.com/blog/marconi-and-salt.html
23:06 cbloss joined #salt
23:07 KyleG1 I thought it was called macaroni for a good minute there lol i was like huh
23:08 UtahDave he he. nice
23:13 jefimenko left #salt
23:19 jacksontj is there a particular reason that the archive module is using cmd.run and not the python modules for the various archive types?
23:21 kermit joined #salt
23:29 jschadlick joined #salt
23:44 jslatts joined #salt
23:51 logix812 joined #salt
23:52 logix812 when passing variables to a managed file, do I have to explicitly pass pillar data or is pillar data exposed like it is in a state file?
23:53 zooz joined #salt
23:56 jschadlick left #salt
23:57 jeddi joined #salt

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