Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-11-20

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

All times shown according to UTC.

Time Nick Message
00:00 MugginsM 2014.7 party time!
00:00 iggy you can definitely pass a full map as a context variable
00:00 skyler_ iggy: yeah, I am not sure which is less desirable: a random variable showing up with no explanation, or importing ../map.jinja, (or in the formula I am working on, ../../map.jinja).
00:01 murrdoc i like map.jinja + pillar
00:01 skyler_ iggy: lol, that makes a lot more sense than what I was thinking. I think just sending map in if you need it makes the most sense.
00:01 murrdoc for formulas
00:01 iggy skyler_: oh the joys of salt... flexibility out the ass and just enough rope to hang yourself 400 different ways
00:02 Nacmac kinda like unix
00:02 Nacmac unix isn't user friendly, it's expert tolerant
00:02 csstylish joined #salt
00:02 iggy I was going to say python, but yeah
00:02 Nacmac kids these days.  back in my day we had C and ASM… AND WE LIKED IT
00:02 Nacmac :P
00:03 cromark joined #salt
00:03 skyler_ python... What happened to only having one way to do things?
00:03 aurynn no you didn't
00:03 aurynn :)
00:07 aparsons joined #salt
00:08 Nacmac meh.  true. :P  memory management was a PITA
00:12 aparsons joined #salt
00:17 jonatas_oliveira joined #salt
00:17 forrest joined #salt
00:19 aw110f joined #salt
00:19 csstylish joined #salt
00:20 MTecknology Too much month at the end of the money... I miss OT pay.
00:21 MTecknology Corey: hey! I forgot to share mysql states/pillars that I built. Remind me tomorrow!
00:21 vbabiy joined #salt
00:22 unpaidbi1l not sure if this qualifies as a bug, but if you don't set master_type to failover and specify an array of masters, stuff sort of works and there's no obvious 'hey dont do that idiot' error
00:23 MTecknology I wonder how many of the multi-master bugs have been worked out...
00:23 unpaidbi1l not that one :P
00:24 unpaidbi1l maybe it'd be a better idea to use a vip and copy the master key to the backup and manually or heartbeat fail it if need be
00:25 MTecknology talking about synchronizing keys?
00:25 unpaidbi1l although that's the only problem i've run in to so far so not too bad
00:25 unpaidbi1l yeah
00:25 jonatas_oliveira joined #salt
00:26 unpaidbi1l although reading the docs closer it seems that my original multi-master setup is theoretically supported but it doesnt work correctly
00:26 unpaidbi1l i'll have to do some more testing and submit a bug if im not being an idiot
00:27 MTecknology way back when... I had four syndic boxes and one master of masters. I wrote an sls and ext_pillar that would use modulus division on an integer hash of the key to pick two syndic boxes
00:27 MTecknology that was neat, but... bleck... I forced my company to pay someone from this channel to help with performance issues. Then we got to drop back down to one master that handles the load with ease.
00:28 MTecknology To keep keys in sync, I had the boxes sharing a virtual disk and put ocfs2 on top .. so they all had the same keys all the time.
00:28 geekatcmu ew
00:28 iggy I wonder if you or that person ever documented how you tracked down the problems, what they were, and what you did to fix them
00:28 iggy that would definitely be an interesting read
00:28 unpaidbi1l that sounds way too complicated heh
00:29 MTecknology iggy: I don't think so, but that patch did make its way into git
00:30 iggy ahh, so it ended up being an actual salt bug (I was assuming it maybe was something in states/custom modules/etc.
00:30 MTecknology We had a lot of performance issues when scaling out to 200 boxes that were connected to a T1
00:31 MTecknology I'd actually like to detail some of it in a saltconf talk, but... I don't think I can remember the details well enough.
00:31 iggy T1...
00:31 iggy people still use those?
00:31 MTecknology our facility in hawaii has four of them and is getting two more
00:32 MTecknology most of our facilities are in incredibly rural areas and a T1 is the only way you can get a reliable connection
00:32 iggy let's do the math... a whopping 9 mbps
00:32 iggy yeah, I'm just giving you a hard time
00:33 MTecknology the other issue with a T1 is how effing expensive they are
00:33 MTecknology <30min until my date
00:33 iggy better put some pants on
00:33 MTecknology I'm fully clothed!
00:34 aqua^mac joined #salt
00:34 smcquay joined #salt
00:34 smcquay joined #salt
00:34 MTecknology showered, clothed, teeth brushed, money in bank checked... I'm going all out! :D
00:35 chitown i have a runner question....
00:35 chitown i'd like to get some pillar data based on a grain
00:36 chitown grain = cluster1
00:36 chitown there are a bunch of pillar data set based on that
00:36 chitown i am trying to use salt.pillar.Pillar().compile_pillar
00:36 chitown but, that only gives me the top file
00:39 iggy chitown: what exactly are you trying to get? the equivalent of pillar.items?
00:39 StDiluted joined #salt
00:42 chitown iggy: yes
00:42 chitown well, specifically, "pillar.item cluster_data"
00:42 chitown but, pillar.items would give me a superset of that :)
00:43 teebes joined #salt
00:43 rojem joined #salt
00:44 MTecknology with me luck, ttyal
00:44 iggy __salt__['pillar.get']('cluster_data')
00:44 mohae joined #salt
00:45 iggy http://docs.saltstack.com/en/latest/topics/development/dunder_dictionaries.html
00:45 chitown its in a runner
00:45 chitown and i need it for a specific grain value, which may not have any minions with that grain
00:46 iggy well... pillars are assigned to hosts... not grains
00:46 chitown not exactly
00:46 iggy I mean I get what you're trying to say
00:46 chitown the data for a minion is based on other minion data, like grains
00:47 iggy but there is no functionality to say "give me the pillars that match some grain"
00:47 chitown in this specific case, any other data that may be different for minions i dont care about
00:47 chitown i want to render the pillar based ona minion with just that grain set
00:48 chitown the id doesnt matter; nothing else matters
00:48 iggy I don't think you can
00:48 chitown the pillar that generates that data is all done via jinja calls
00:48 chitown so, i know its specific to that grain
00:48 alexr joined #salt
00:48 chitown ok... so, can i call i jinja template render from a runner?
00:48 chitown directly via python
00:49 tkharju joined #salt
00:49 iggy I haven't seen a runner that has similar functionality... but I'm sure with enough work it's probably possible
00:51 murrdoc joined #salt
00:51 iggy if I were you, I'd open an issue or possibly ask on the -users mailing list
00:51 Reiner030 joined #salt
00:51 chitown what i REALLY want is the master side db
00:51 iggy you'll get more input from devs there
00:52 chitown spacing on the name atm
00:52 chitown sb???
00:52 chitown sdb
00:52 chitown anyway, thanks :)
00:53 iggy if you figure it out, I'd be interested to know how
00:53 iggy seems like an interesting problem to solve
00:54 aparsons joined #salt
01:02 cpowell joined #salt
01:03 aqua^mac joined #salt
01:05 glyf joined #salt
01:07 jimklo_ joined #salt
01:08 feythin joined #salt
01:11 schristensen joined #salt
01:29 phirebird joined #salt
01:34 rojem joined #salt
01:35 phirebird hi, anyone having trouble with archive.extracted with "archive_format: tar"? according to documentation if using the tar format, "tar_options" is required, if my archive.extracted statement includes tar_options, it fails with the error "tar: You must specify one of the `-Acdtrux' or `--test-label'  options Try `tar --help' or `tar --usage' for more information." Only by removing the tar_options then archive.extracted works. Using t
01:37 Guest71585 joined #salt
01:37 cromark joined #salt
01:39 aparsons joined #salt
01:41 MugginsM joined #salt
01:47 pr_wilson joined #salt
01:51 TTimo joined #salt
01:54 hasues joined #salt
01:56 druonysuse joined #salt
01:56 druonysuse joined #salt
01:57 Ssquidly joined #salt
02:03 hasues left #salt
02:13 MugginsM joined #salt
02:18 rypeck joined #salt
02:23 nyx_ joined #salt
02:27 spielberg joined #salt
02:29 aparsons_ joined #salt
02:35 malinoff joined #salt
02:45 TyrfingMjolnir joined #salt
02:48 aparsons joined #salt
02:48 cedwards joined #salt
02:48 jalbretsen joined #salt
02:49 cedwards evening
02:51 rm_jorge joined #salt
02:54 Leonw joined #salt
03:00 TyrfingMjolnir joined #salt
03:01 aqua^mac joined #salt
03:01 wendall911 joined #salt
03:02 wendall911 joined #salt
03:04 rojem joined #salt
03:04 Ssquidly joined #salt
03:06 pdayton joined #salt
03:07 wendall911 joined #salt
03:09 Mso150 joined #salt
03:12 TyrfingMjolnir joined #salt
03:18 nitti joined #salt
03:20 ampex joined #salt
03:26 beneggett joined #salt
03:38 Ryan_Lane joined #salt
03:40 beneggett joined #salt
03:41 bhosmer joined #salt
03:50 mohae joined #salt
03:58 Ryan_Lane joined #salt
04:04 mr_chris Could someone please tell me if I'm doing this right? https://github.com/saltstack/salt/pull/18295
04:05 mr_chris The test failed but I'm pretty sure my code is not related to it. To expedite inclusion should I branch from a previous passing build or just wait on the devs?
04:15 druonysus joined #salt
04:17 murrdoc joined #salt
04:24 hcl2 joined #salt
04:25 hcl2 anyone know why helium would give a jinja error "unexpected keyword 'default'"?  trying to use nginx:ng formula
04:29 ezheidtmann joined #salt
04:33 vbabiy joined #salt
04:36 jonatas_oliveira joined #salt
04:38 murrdoc joined #salt
04:44 Ssquidly joined #salt
04:52 kermit joined #salt
05:01 Hell_Fire_ joined #salt
05:02 TTimo joined #salt
05:10 nickg ive set state_output to mixed and state_verbose to False in the /etc/salt/master but I need to override those for just one call. is there an easy way to do that?
05:11 joehh tempspace: I'm not sure how to reproduce your TimeoutSauce error
05:12 joehh have you got more of a stack trace?
05:13 rap424 joined #salt
05:17 nickg i've tried "salt -v --state-output=full ..." but it does not cahnge the output
05:20 NV joined #salt
05:25 steveoliver joined #salt
05:36 murrdoc nick does -l debug help ?
05:36 murrdoc salt -l debug '*' state.highstate
05:37 carlos_felix joined #salt
05:41 beneggett joined #salt
05:43 TTimo joined #salt
05:44 desposo joined #salt
05:47 felskrone joined #salt
05:48 ramteid joined #salt
05:53 tligda joined #salt
05:58 ndrei joined #salt
05:58 tmh1999 joined #salt
06:07 jonatas_oliveira joined #salt
06:09 jonatas_oliveira joined #salt
06:11 jonatas_oliveira joined #salt
06:12 TOoSmOotH joined #salt
06:13 jonatas__ joined #salt
06:15 jonatas_oliveira joined #salt
06:17 jonatas_oliveira joined #salt
06:19 murrdoc joined #salt
06:19 jonatas_oliveira joined #salt
06:21 jonatas__ joined #salt
06:23 jonatas_oliveira joined #salt
06:25 jonatas_oliveira joined #salt
06:26 jonatas__ joined #salt
06:28 jonatas_oliveira joined #salt
06:30 jonatas_oliveira joined #salt
06:32 jonatas_oliveira joined #salt
06:34 jonatas_oliveira joined #salt
06:36 TOoSmOotH joined #salt
06:36 jonatas_oliveira joined #salt
06:38 jonatas__ joined #salt
06:40 jonatas_oliveira joined #salt
06:41 nickg bleh apparently the latest version of ubuntu doesn't have at installed, so at.present just barfs.
06:42 jonatas__ joined #salt
06:44 jonatas_oliveira joined #salt
06:45 jonatas_oliveira joined #salt
06:46 catpigger joined #salt
06:47 jonatas_oliveira joined #salt
06:49 jonatas_oliveira joined #salt
06:51 jonatas__ joined #salt
06:53 jonatas_oliveira joined #salt
06:55 jonatas_oliveira joined #salt
06:57 jonatas_oliveira joined #salt
06:58 thayne joined #salt
06:59 jonatas_oliveira joined #salt
07:00 monkey66 joined #salt
07:00 colttt joined #salt
07:01 jonatas__ joined #salt
07:03 jonatas_oliveira joined #salt
07:03 navneet joined #salt
07:03 Kurt__ joined #salt
07:04 jonatas_oliveira joined #salt
07:06 jonatas_oliveira joined #salt
07:08 jonatas_oliveira joined #salt
07:09 tomspur joined #salt
07:10 jonatas__ joined #salt
07:11 csstylish joined #salt
07:12 jonatas_oliveira joined #salt
07:14 jonatas_oliveira joined #salt
07:16 jonatas_oliveira joined #salt
07:18 jonatas_oliveira joined #salt
07:18 druonysus joined #salt
07:18 druonysus joined #salt
07:20 jonatas_oliveira joined #salt
07:22 jonatas__ joined #salt
07:22 navneet left #salt
07:23 oyvjel joined #salt
07:23 jonatas_oliveira joined #salt
07:25 jonatas__ joined #salt
07:27 jonatas_oliveira joined #salt
07:29 jonatas_oliveira joined #salt
07:30 murrdoc joined #salt
07:31 jonatas__ joined #salt
07:32 smcquay joined #salt
07:38 UForgotten joined #salt
07:39 __gotcha joined #salt
07:40 vincehu joined #salt
07:45 pdayton joined #salt
07:48 slafs joined #salt
07:48 philipsd6 joined #salt
07:51 spiksius joined #salt
07:53 jstrom joined #salt
07:54 csstylish_ joined #salt
07:55 agrundy joined #salt
07:56 rogst joined #salt
07:57 UForgotten joined #salt
07:59 rmnuvg joined #salt
08:00 kbyrne joined #salt
08:02 lcavassa joined #salt
08:02 TaiSHi joined #salt
08:08 UForgotten joined #salt
08:13 chiui joined #salt
08:13 flyboy joined #salt
08:17 alanpearce joined #salt
08:30 slav0nic joined #salt
08:30 slav0nic joined #salt
08:36 xsteadfastx joined #salt
08:39 falzm joined #salt
08:39 falzm hi there
08:42 jeffrey4l_ joined #salt
08:42 falzm when I run "state.highstate test=True" to dry-run changes, only the first change is displayed... is this a known behaviour or a bug?
08:44 slafs left #salt
08:44 PI-Lloyd joined #salt
08:45 ndrei_ joined #salt
08:45 calve joined #salt
08:45 spo0nman joined #salt
08:47 shorty_mu joined #salt
08:50 calve joined #salt
08:53 CeBe joined #salt
08:53 lothiraldan joined #salt
09:02 superted666_ Does it apply all changes when you run it without the dry run?
09:03 calve \q
09:03 calve \quit
09:03 calve meh :/
09:04 malinoff /q
09:04 malinoff he can't even say thx after that ;(
09:05 lothiraldan joined #salt
09:06 TTimo joined #salt
09:11 yes456 joined #salt
09:12 yes456 when salt 2014.7.0 deb pkg will  available?
09:13 monkey66 left #salt
09:15 N-Mi_ joined #salt
09:15 N-Mi_ joined #salt
09:17 karimb joined #salt
09:18 felskrone joined #salt
09:19 slav0nic yes456, already
09:20 jonatas_oliveira joined #salt
09:30 flyboy82 any way to use mine.get inan orchestrate sls file without it returning me a blank dict?
09:32 TheThing joined #salt
09:34 fredvd joined #salt
09:36 karmatronic joined #salt
09:37 otter768 joined #salt
09:37 jstrom left #salt
09:42 Guest71585 joined #salt
09:45 bhosmer joined #salt
09:45 che-arn4 joined #salt
09:45 che-arne joined #salt
09:48 yes456 slav0nic: thanks
09:49 slav0nic yes456, check this before update https://github.com/saltstack/salt/issues/17313 ;)
09:52 dRiN joined #salt
09:55 yes456 slav0nic: not using salt-ssh. i will test it before updateing my minion thanks :)
09:56 Rucknar Does anyone have any links to documentation about the new multimaster failover config/setup?
10:00 CeBe1 joined #salt
10:01 lothiraldan joined #salt
10:06 TTimo joined #salt
10:15 giantlock joined #salt
10:16 arif-ali joined #salt
10:27 alexr__ joined #salt
10:28 fredvd joined #salt
10:30 ckao joined #salt
10:31 slav0nic Rucknar, http://docs.saltstack.com/en/latest/topics/tutorials/multimaster_pki.html this?
10:31 Rucknar Wicked - Thanks slav0nic
10:33 lothiraldan joined #salt
10:41 viq http://docs.saltstack.com/en/latest/ref/runners/all/salt.runners.search.html  - where can I find more about this "search system" ?
10:46 slav0nic viq, https://github.com/saltstack/salt/blob/develop/salt/search/whoosh_search.py#L80
10:46 jonatas_oliveira joined #salt
10:47 jasonrm joined #salt
10:47 viq Thanks, now to see what the hell is whoosh ;)
10:50 diegows joined #salt
10:59 CeBe joined #salt
11:07 TTimo joined #salt
11:10 xsteadfastx joined #salt
11:13 rawkode joined #salt
11:17 elfixit joined #salt
11:23 peters-tx joined #salt
11:23 alexr__ joined #salt
11:24 alexr__ joined #salt
11:26 ipm joined #salt
11:36 __gotcha joined #salt
11:37 TOoSmOotH joined #salt
11:37 jhauser joined #salt
11:37 otter768 joined #salt
11:38 lothiraldan joined #salt
11:40 ChaosPsyke joined #salt
11:42 istram joined #salt
11:44 badon joined #salt
11:54 jonatas_oliveira joined #salt
11:56 lothiraldan joined #salt
12:01 gebi joined #salt
12:01 gebi hi all :)
12:08 CeBe1 joined #salt
12:11 TTimo joined #salt
12:15 rawkode Hi gebi
12:15 felskrone joined #salt
12:18 felskrone1 joined #salt
12:24 __gotcha joined #salt
12:26 karimb joined #salt
12:27 csstylish joined #salt
12:31 gebi how can i have a watch statement (service reload) when anything changes regarding the daemon config (nginx)
12:32 gebi every example of a watch statement is the wrong way (defined in the nginx service) which is not helpfull because i'd have to specify all and every eg. vhost on every system directly to the nginx config
12:32 viq gebi: you can have reverse, watch_in defined in file.managed for example
12:33 viq gebi: and it can only watch states, it cannot watch some arbitrary file on filesystem that salt knows nothing about for changes
12:34 gebi yay, didn't find watch_in on wading through the docs, THX for the tip :)
12:35 LotR doesn't the nginx-formula do this automatically?
12:35 viq gebi: have you seen http://salt.readthedocs.org/en/latest/ref/states/requisites.html#the-in-versions-of-requisites  ?
12:35 viq I'd have to read the formula to answer this, just as you would ;)
12:35 gebi viq: yea, that's really something i miss, but the missing pieces are already there (something that just creates a list of md5sums recursive from a directory, stores that and compares that on the next run)
12:36 gebi viq: yes sure, but only after you told me about watch_in, then i've found it instantly
12:36 LotR viq: I was suggesting gebi do the reading :)
12:37 viq LotR: oh, uhm, I missed it was someone else that said it :P the nicks of both of you have same (dark) colour in my client and same number of letters ;)
12:37 LotR hehe
12:38 gebi LotR: ups sorry, i missed your post
12:38 viq gebi: there are daemons that watch for changes on filesystem, and $do_stuff. Where $do_stuff could be reloading nginx directly, or it could be sending an event to salt master, where you could program it to tell nginx to restart
12:38 sjaredj left #salt
12:40 gebi LotR: what do you mean by nginx formular?
12:40 mick3y is it possible to use nodegroup within jinja template?
12:41 LotR gebi: the formula (search for nginx https://github.com/saltstack-formulas) lets you specify the vhost config in the pillar, so you make your changes in salt, and the restarting becomes automatic
12:42 gebi danm... i didn't know about formulars
12:42 gebi thx :)
12:43 LotR they are awesome. most of the time someone else already did all the hard work :)
12:43 Guest71585 joined #salt
12:44 Roee joined #salt
12:44 Roee Hi all...
12:44 Roee Have a question sure that you can help
12:44 hobakill joined #salt
12:44 Roee is there a way to run a state from salt-master server
12:44 Roee and get the full stdout in live ?
12:45 viq Roee: not currently
12:45 Roee in the master...
12:45 Roee is there a log that i could run tail on it ?
12:45 ale__ joined #salt
12:45 viq maybe kinda possibly when using a returner, but even that I suppose would be sent after the state completed
12:46 Roee ahhh ok...
12:46 Roee :(
12:46 Roee thank you viq
12:46 viq Usual disclaimer - I could be mistaken, things could have changed in 2014.7
12:46 gebi WTH... is the nginx-formula doing??!
12:46 ale__ hi guys
12:46 gebi fiddling with source, diverting nginx init script, omg...
12:47 viq ale__: just the person I wanted to talk to ;)
12:47 ale__ is there any good doc on how to use salt-cloud and all these query options or at least a guide on how to us -S -Q -F ?
12:47 ale__ viq, hi :)
12:48 gebi LotR: thx for the tip, but at leas tthe nginx-formula is completely unusable for me, i'd never let something like this anywhere near a system i maintain ;)
12:48 viq ale__: regarding your a dash of salt, you use elasticsearch returner, which requires all nodes to talk directly to ES. Do you think a similiar result could be achieved with salt-eventsd and then that having ES support?
12:48 viq gebi: or you could fix/improve it... ;)
12:49 CeBe2 joined #salt
12:49 LotR gebi: yes, I am actually using a different nginx formula too, which I found before I was told about that formulas repository. from what I've read of the official one, it gives you lots of options. so yes you can have it install from source, but that's not required
12:49 viq felskrone1: I guess that's a question to you as well ;)
12:50 ale__ viq, i believe there is a upcoming change in salt that sends all reports stuff to the master, then only the master would need access to whatever DB/backend ... am not sure where that is at tho ... might already be in 2014.7 ... then the returner might need updating ...
12:50 viq felskrone1: https://alex-leonhardt.github.io/a-dash-of-salt/  - do you think something similiar could be achieved with salt-eventsd if it was able to write to ES, instead of using returner on minions?
12:51 JlRd joined #salt
12:51 viq ale__: interesting, thank you
12:51 peno joined #salt
12:52 LotR gebi: I use this one for now, but I was told here it does things in an 'interesting' (read non-standard) way: https://github.com/bechtoldt/saltstack-nginx-formula
12:53 ale__ any help with this salt-cloud stuff :) ? am trying : sudo salt-cloud -c salt/ -Q '{"ec2-default": {"ec2": {"*": {"state": "running"}}}}' --out=json
12:53 ale__ i just want the running instances
12:53 ale__ :(
12:53 ale__ i cant find any good docs on this
12:53 TheKid89 joined #salt
12:54 TheKid89 Hello everyone
12:54 viq Sorry, the only clouds I have experience with involve lots of water ;)
12:54 TheKid89 lol
12:54 TheKid89 I missed the question
12:55 mortis_ ale__: hmm was it something like : salt-cloud --list-images <provider>
12:55 mortis_ ?
12:55 mortis_ maybe gives everything
12:55 mortis_ cant remember
12:55 ale__ nah, just shows the images available :(
12:55 mortis_ cant reach my salt-master from where i am now
12:55 ale__ i need the running instances only in a json
12:55 gebi LotR: thx, that nginx formular actually looks A LOT more sane
12:55 ale__ then I can check and iter over that
12:56 ale__ ideally, i can just list all hosts based on a image (in json)
12:56 ale__ is what i really want :)
12:56 felskrone1 viq: i dont have elastic search running anywhere, but setting up a worker that sends data to ES should not be too hard todo
12:57 felskrone1 if you tell/show me how i can send data to ES, ill try writing one :-)
12:57 mortis_ ale__: are you using a mapfile
12:57 mortis_ ?
12:58 TheKid89 I have a question about for loops in salt if anyone wouldn't mind letting me pick there brain
12:58 ale__ mortis, nope
12:58 ale__ left #salt
12:58 ale__ joined #salt
12:58 ale__ oops
12:59 TOoSmOotH joined #salt
12:59 mortis_ -Q should give all info tho
12:59 ale__ to create instances: sudo salt-cloud -c salt/ -p profile host1 host2
12:59 mortis_ yeah
12:59 ale__ hmm
12:59 ale__ what does -S do ?
12:59 mortis_ Execute a query and print out selected information about all cloud VMs. Can be used in conjunction with -m to display only information about the specified map.
12:59 mortis_ ^-S
13:00 ale__ yup, read that, but how do I select the info :) ?
13:00 mortis_ i eeeh ........dont know :D
13:00 mortis_ to the sourcecode!
13:01 LotR gebi: yes, but as I said, it does things differently than most formulas. I think I will want to create a formula that works like the other official ones, but doesn't do all the extra stuff that the current official nginx one does
13:01 viq felskrone1: for example https://github.com/saltstack/salt/blob/develop/salt/returners/elasticsearch_return.py
13:01 LotR but I only just started exploring saltstack, so I am holding that off until I get a bit more experience under my belt :)
13:03 LotR there isn't a standard grain that tells you what cloud provider (if any) a minion is on, is there?
13:03 TheKid89 I have some questions this "{% for name, user in pillar.get('users', {}).items() if user.absent is not defined or not user.absent %}" from this formula "https://github.com/saltstack-formulas/users-formula/blob/master/users/init.sls"
13:03 gebi LotR: any hint on what it does that different?
13:06 ale__ mortis_, after lunch tho :)
13:06 LotR gebi: most formulas put the data for configuration files in the pillar, and then generate the configuration file from that. that nginx formula just puts the complete config file as a string in the pillar
13:06 felskrone1 viq: seems fairly straight forward, elasticsearch.Elasticsearch is python lib?
13:07 viq felskrone1: I don't know enough about python, I guess. also,  https://github.com/saltstack/salt/blob/develop/salt/returners/elasticsearch_return.py#L7
13:07 thawes joined #salt
13:07 felskrone1 ah ok, i mssed that
13:08 gebi LotR: ah quick and dirty *g*
13:08 flyboy82 joined #salt
13:08 gebi LotR: uh... and the formula has a ugly licence exception, it's not open source - https://github.com/bechtoldt/saltstack-nginx-formula/blob/master/LICENSE
13:08 ecdhe joined #salt
13:09 viq felskrone1: main reason I'm asking, is with it based on mysql like you have it now, it still requires some programming knowledge to do something useful with it, which I don't have. With it putting appropriate data into ES, you can just point kibana at it and get (hopefully useful) stuff out of it
13:09 felskrone1 viq, if i had es available to test somewhere, i could try, but i dont have the time to set it all up
13:10 viq felskrone1: would a ready vagrant setup be of help?
13:10 viq or docker
13:10 felskrone1 viq: the idea is, to have all kinds of workers and ES fits perfectly. i was actually hoping, others would contribute workers, but that does not seem to happen :-)
13:10 LotR gebi: oh, I hadn't even looked at that
13:10 felskrone1 viq: yes, that would work
13:10 LotR gebi: one more reason to start my own formula :)
13:11 viq felskrone1: I'll look into getting something for you. So far I've seen ale__ here claim he has some docker images https://alex-leonhardt.github.io/a-dash-of-salt/#/7  ;)
13:14 mikkn joined #salt
13:14 viq As far as a vagrant box with it, I'll look into that, though it probably will take me a while. And now lunch time ;)
13:14 felskrone1 viq: i you find anything, feel free to open an issue :-)
13:16 viq felskrone1: ah, yeah, that's a good way to contact you I guess ;) Yeah, when I'll find/make a confirmed working vagrant setup with ELK or at least EK I'll post it there. Any preference regarding os platform and version?
13:16 VSpike If I do salt 'somehost' state.highstate and I get "Comment: No Top file or external nodes data matches found" but I disagree, how can I debug this? Doing -l debug doesnt give me much that looks useful
13:17 mikkn Hi! after updating to salt 2014.7 the publish module doesn't seem to be accepting more than one variable as input for other modules...
13:17 mikkn Anyone else experiencing this or has the syntax changed? (this is not reflected in the manual if that's the case)
13:23 alexr__ left #salt
13:23 TOoSmOotH joined #salt
13:23 felskrone1 viq: debian is always appreciated :-)
13:27 glyf joined #salt
13:28 lothiraldan joined #salt
13:28 mikkn My issue seems related to this "fix": https://github.com/saltstack/salt/issues/13294
13:33 hobakill anyone have much salt-cp experience and windows? i'm trying to copy a simple exe file to the C:\ drive and i can't quite figure out the syntax: salt-cp "minion" file.exe C:   <----doesn't quite do it
13:35 neco` joined #salt
13:38 spo0nman hello! i'm trying to fire events from a minion and run commands with them, The first time i fire the event everything goes fine but the command never runs. The second time onwards I don't even see salt do anything with the event, even though I see it come in when I look at it from eventlisten.py  Config/Logs: http://pastebin.com/raw.php?i=NMyDyVaL
13:38 spo0nman any ideas?
13:38 otter768 joined #salt
13:40 giantlock joined #salt
13:40 csstylish joined #salt
13:41 toastedpenguin joined #salt
13:43 akafred joined #salt
13:46 miqui joined #salt
13:47 mikkn 2014.7 really broke most of my custom stuff. That's not very nice...
13:50 miqui_ joined #salt
13:52 miqui__ joined #salt
13:54 thawes joined #salt
13:54 miqui___ joined #salt
13:55 Ahlee mikkn: custom _states, _modules, other?
13:55 miqui____ joined #salt
13:55 miqui_____ joined #salt
13:56 Ahlee spo0nman: so you're not seeing every minion removing /tmp/testing?
13:57 Ahlee shouldn't cmd.run be -name:rm /tmp/testing, not - arg: - rm /tmp/testing
13:57 Ahlee or is the sytax through local different
13:57 miqui___ joined #salt
13:59 miqui joined #salt
14:02 racooper joined #salt
14:04 nyx_ joined #salt
14:05 XenophonF joined #salt
14:07 hcl2 joined #salt
14:10 lcavassa joined #salt
14:11 Tom_ joined #salt
14:11 snuffeluffegus joined #salt
14:12 Guest71488 left #salt
14:13 glyf joined #salt
14:14 nyx_ joined #salt
14:14 miqui joined #salt
14:15 miqui_ joined #salt
14:16 diegows joined #salt
14:16 TheKid89 I'm having a problem with pulling data from my pillar
14:16 TheKid89 can someone help me out please ?
14:18 perfectsine joined #salt
14:18 racooper If you will provide a clear explanation of the error you are seeing, someone is more likely to be able to assist :)
14:18 ale__ mortis_, digged a bit around, still no luck :/
14:19 bshaw joined #salt
14:19 TheKid89 I'm only able to pull the user names from my pillar and nothing else
14:20 spo0nman I've found the error to be https://github.com/saltstack/salt/issues/13879
14:20 viq TheKid89: show your pillar, show how you're trying to get it. Without that the best you can get is "I feel for you" ;)
14:20 spo0nman Ahlee: and the syntax i was using was wrong too
14:21 bshaw Can a pillar import another file if a certain grain is matched?
14:21 XenophonF TheKid89: you can use the following command to display the minion's pillar data: salt minionid pillar.items
14:21 spo0nman using cmd.cmd.run works all the time
14:21 TheKid89 I'm trying to get a users fullname and password from my pillar and I just can't seem to find a way to do it
14:22 _JZ_ joined #salt
14:22 XenophonF TheKid89: show us your state file - use http://bpaste.net or something
14:23 XenophonF usually you'd include jinja code similar to the following: {{ salt['pillar.get']('username') }}
14:23 TheKid89 https://bpaste.net/show/2c3c7362a32f
14:23 masterkorp How is the state of the salt-formulas mailing list officialization ?
14:23 XenophonF then in a pillar file you'd set username: xenophonf
14:24 jaimed joined #salt
14:24 XenophonF and in the pillar top.sls you'd assign the pillar file exactly the same way you assign state files in the state tree's top.sls
14:24 hcl2 I'm having problems with nginx NG formula.  jinja says unexepcted keyword argument 'default'... but I have Helium.
14:24 Ahlee spo0nman: ah, well good deal
14:24 XenophonF TheKid89: oh i see what you did
14:25 XenophonF TheKid89: instead of pillar.get('fullname') use user.get('fullname')
14:25 nitti joined #salt
14:25 TTimo joined #salt
14:26 TheKid89 XenophonF: why user and not name ?
14:27 XenophonF TheKid89: you know the answer to that already - name is a string, the key in each of the key-value pairs contained in the 'users' pillar/dictionary
14:27 XenophonF TheKid89: in your for loop, user is bound to the value of that dict
14:28 XenophonF TheKid89: your iterating over the key-value pairs contained in the users pillar, right?
14:28 XenophonF er, you are iterating, i mean
14:28 TheKid89 XenophonF: I guess
14:29 XenophonF TheKid89: did you copy/paste this from somewhere?
14:29 TheKid89 XenophonF: I don't really fully understand jinja yet and the salt docs really don't go into it as much as I would like
14:29 XenophonF TheKid89: bing/duckduckgo/google/yahoo jinja2
14:29 TheKid89 XenophonF: Sorta ... I was trying to learn from a user formula I found on github
14:29 LotR TheKid89: I think that is because jinja isn't a salt invention. it has documentation of its own
14:30 XenophonF TheKid89: exactly - read its manual
14:30 XenophonF TheKid89: also, that's effectively python code
14:30 perfectsine_ joined #salt
14:31 XenophonF TheKid89: so search the web for "python for loop dictionary" or something along those lines
14:31 XenophonF TheKid89: that will explain what's going on
14:31 TheKid89 XenophonF: I think I get it based off our convo
14:31 _JZ_ joined #salt
14:31 XenophonF TheKid89: in python "for key, value in dict:" iterates through the key-value pairs in the dictionary dict
14:31 TheKid89 XenophonF: well how the for loop is working
14:32 perfectsine joined #salt
14:32 XenophonF TheKid89: it will be more clear to you if you change it to {% for user, settings in pillar.get('users', {}).items() %}
14:32 TheKid89 XenophonF: {{ user.get('fullname') }} is not working though
14:33 XenophonF then use {{ settings.get('fullname') }} and so forth
14:33 TheKid89 XenophonF: how does settings come into play though ?
14:33 XenophonF TheKid89: can you post a copy of the pillar? with secrets scrubbed out of it, of course
14:33 XenophonF hang on, i can show you an example
14:34 TheKid89 XenophonF: my pillar https://bpaste.net/show/10d2fdcb95a6
14:34 TheKid89 brb
14:34 herzi joined #salt
14:35 TOoSmOotH joined #salt
14:35 Rucknar Is anyone aware of any issues with the multiprocessing setting in minion configuration on 2014.7.0 with multiple masters?
14:36 rojem joined #salt
14:36 XenophonF TheKid89: here's an example for you, first the state formula https://bpaste.net/show/668250d84d60 and second the pillar https://bpaste.net/show/9c045b2d4cdc (with secrets scrubbed)
14:37 mikkn Ahlee: It is mainly custom modules at this point. Specifically, it seems that you get no return from the publish module nowadays if you target either an offline minion or a large-enough set of minions (I have yet to investigate which one it is)
14:38 mikkn I just upgraded, so we'll see what more comes out of the woods. :)
14:38 mikkn I'm also having troubles syncing pillars, grains, states, modules and such
14:40 TheKid89 XenophonF: I'm going through it now
14:40 aldum|arbiter joined #salt
14:42 badon_ joined #salt
14:43 thawes joined #salt
14:45 TOoSmOotH joined #salt
14:46 eriko joined #salt
14:51 mohae joined #salt
14:55 Ahlee mikkn: Well that's not good to hear.
14:55 Ahlee mikkn: What's a rough number of "large-enough set"?
14:55 Ahlee i typically target in groups of 800
14:56 viq joined #salt
14:56 viq joined #salt
14:56 beneggett joined #salt
14:58 mikkn Ahlee: It's only about 50 minions, so I doubt it's related to the size of the set
14:59 mikkn Ahlee: I managed to get the pillars to sync properly by removing the cache folder on the servers it didn't work on at least!
14:59 mikkn So that's a victory
14:59 kbyrne joined #salt
14:59 ajolo joined #salt
14:59 mikkn These errors may also be intermittent. I have both successful and unsuccessful runs now
15:00 perfectsine joined #salt
15:01 SheetiS joined #salt
15:01 mens Is it possible to set a watcher on a command that is triggered when a file was altered (not by salt)?
15:01 viq mens: watch is for states
15:01 mens I know, that's what I mean
15:02 glyf joined #salt
15:02 ale__ mens, there should be other ways to watch for file changes to trigger e.g. a salt run ;)
15:02 viq mens: you could possibly have some other daemon that would watch for changes in files and send an event to salt and trigger an action that way
15:02 ale__ mens, ^^^ :)
15:03 mens the problem I have is that the augeas state in hydrogen doesn't seem to have an unless
15:03 mens I need to restart a service when certain parameters in a config file were changed
15:03 viq mens: why not file.managed ?
15:04 ntropy XenophonF: my apache formula is very similar, one question though - do you have a way to specify defaults in the pillar, like admin_contact for vhosts admined by the same person / group?
15:04 Ahlee mikkn: interesting.  I'll have to whip up a state quick to purge the caches
15:04 XenophonF ntropy: i specify defaults directly in the state or template files
15:04 housl joined #salt
15:04 mens because I don't control the entire file...
15:04 mpanetta joined #salt
15:04 XenophonF ntropy: give me a second - i'll post my vhost template
15:04 ntropy that would be appreciated, thank you :)
15:05 pdayton joined #salt
15:05 XenophonF ntropy: https://bpaste.net/show/740467de1596
15:05 mens viq: I cannot overwrite te file, only change certain parameters within
15:05 XenophonF ntropy: please note that this is version 1 of my apache state formula
15:05 XenophonF i'm currently in the middle of a major rewrite
15:05 miqui joined #salt
15:06 bshaw I've got a somewhat user-related question too -more of a jinja / pillar thing I'm having trouble figuring out if someone has a minute to help with...
15:06 XenophonF basically to make it easier to extend from other state formulae
15:06 TheKid89 XenophonF: I found the issue with my pillar file
15:06 viq mens: file.block<whatever_it_was> ?
15:06 XenophonF like, say, a formula for owncloud or for kallithea
15:06 TheKid89 XenophonF: I had a - in front of things
15:06 XenophonF TheKid89: ah
15:06 TheKid89 XenophonF: Thanks for the help
15:07 XenophonF TheKid89: no problem, glad you got it!
15:07 XenophonF yeah, the "-" prefix means list
15:07 TheKid89 XenophonF: I also have a better understanding of how this stuff works
15:07 Guest71585 joined #salt
15:07 XenophonF so "loginname" value was a list of key-value pairs
15:07 aldum|arbiter left #salt
15:07 XenophonF rather, a list of dictionaries, each with only a single key-value pair
15:08 TheKid89 I'm starting to understand now
15:08 mens viq: I'll give that a try, thanks
15:08 XenophonF TheKid89: if it's any consolation, it took me a while to figure out the whole YAML/Jinja business
15:08 TheKid89 XenophonF: Yeah It's different
15:09 XenophonF TheKid89: dunno what your background is, but mine includes Lisp, and this feels a _lot_ like Lisp :)
15:09 spo0nman is there an easy way to test the syntax of .sls?
15:09 TheKid89 XenophonF: Mine is very basic bash
15:09 spo0nman i'm struggling with Failed to render errors with my reactors
15:10 XenophonF TheKid89: esp. how data (Python data structures serialized to YAML) converts to code (Python function calls to Salt objects/methods)
15:10 CycloHex joined #salt
15:10 VSpike Hm. Somehow we managed to change the public key on our master, I think
15:10 VSpike Oops
15:11 TheKid89 XenophonF: I will look into python a little more
15:12 thawes joined #salt
15:13 XenophonF ntropy: this is where i'm going with my apache state formula - https://bpaste.net/show/4cfd1b1e331b
15:13 XenophonF TheKid89: knowing a little python will really help you when it comes to developing state formulas
15:14 XenophonF if you're just doing basic salt states or accessing data via pillar, it doesn't matter
15:14 XenophonF but when you start doing stuff like iteration or other complicated kinds of data composition, it really, really helps
15:14 XenophonF and read the jinja2 docs too
15:14 XenophonF and the yaml docs
15:15 XenophonF that's http://yaml.org
15:15 XenophonF lots and lots and lots of good stuff there
15:15 TheKid89 I will be doing a hole lot more reading now
15:15 TheKid89 XenophonF: Thanks man
15:16 XenophonF TheKid89: no problem
15:16 XenophonF keep asking questions, too
15:16 TheKid89 XenophonF: Will do
15:16 XenophonF if you hit something you don't understand, ask
15:16 TheKid89 XenophonF: I'm going to head out for food now but I will be back in a bit
15:16 XenophonF cool cool
15:19 ndrei joined #salt
15:19 ndrei_ joined #salt
15:19 catpig joined #salt
15:20 bshaw is there a way in a pillar file to 'import' another file? for example my users pillar applies to every host, but if a certain grain is matched I want to pull in an additional set of users
15:21 kaptk2 joined #salt
15:21 CycloHex is it possible to filter on grains in a reactor? For example a reactor gets triggered when a minion starts it service, some parts in this reactor will be executed on another server, but only needs to be executed if the grain 'foo' on the minon starting it's service has te value 'bar'
15:22 miqui_ joined #salt
15:24 lufeng joined #salt
15:25 Deevolution bshaw: Does doing something like: {% include "file" %} work?
15:26 Deevolution bshaw: Per the docs, this should work: "include:   - users";  http://docs.saltstack.com/en/latest/topics/pillar/#including-other-pillars
15:26 VSpike what should state.show_top actually show when it's working? Could someone give me an example?
15:27 bshaw Deevolution: I'll take a look at that link --I tried {% include "file" %} with no luck, but I might be missing some other key detail... I'll report back shortly
15:28 Deevolution Does anyone know how to ensure a parameter for an execution module is interpreted as a string?  When I pass it 0.20 it's interpreted as 0.20000000001 which when passed into my execution module gets set to 0.2   ;  I've tried passing it in '0.20' and it still seems to assume it's a number.
15:28 XenophonF Deevolution: check yaml.org for escaping rules
15:28 Deevolution XenophonF: What am I escaping?  The quotes?
15:29 XenophonF http://www.yaml.org/spec/1.2/spec.html#id2802842
15:29 XenophonF i misspoke, not escaping, but serialization rules
15:29 XenophonF so to force a string use !!strin "0.20"
15:29 XenophonF i mean !!str "0.20"
15:30 XenophonF using that as a value will force the YAML parser to interpret the value as a generic string type
15:31 XenophonF I really, really, really wish that winrepo would let me specify a list of files to download as part of an installer.
15:31 XenophonF really
15:31 XenophonF really, really, really
15:31 Deevolution XenophonF:  I'll give it a try.  This should be the case from the command line?  I.e. if I execute 'salt-call module "0.20"' it treats it as a number.
15:31 XenophonF Deevolution: that, I don't know - it's possible
15:31 miqui joined #salt
15:32 Deevolution XenophonF: Nope, bash treats the ! as repeating the previous command.  It's an interesting set of output if nothing else.  LOL
15:32 XenophonF heh
15:32 XenophonF maybe single-quote or backslash the "!"
15:32 BrendanGilmore joined #salt
15:33 sroegner joined #salt
15:34 Hell_Fire_ joined #salt
15:34 miqui joined #salt
15:37 bshaw @Deevolution I think what you linked me to worked
15:38 Deevolution bshaw: Excellent.  Glad to help.  It's something I think I'm going to need also in the near future.
15:38 TheoSLC joined #salt
15:38 TheoSLC Greetings.  Any news on a 2014.7.1 release?
15:39 bshaw Deevolution: what I did was create pillar/users.sls that includes users-common.sls and then has an if sttement to match a grain and import users-other.sls
15:39 otter768 joined #salt
15:41 bhi left #salt
15:44 TOoSmOotH joined #salt
15:44 godber joined #salt
15:45 CycloHex I have a config file on my minion calle dlogrotate.conf. I'd like to replace the entry rotate 1 in block /var/log/foo to rotate 4. in this file another block /var/log/bar has a rotate 1 as well, But I don't want this to be replaced. I don't seem to succeed in finding the pattern multilined. When trying to repl multilines it gives me a YAML error
15:46 rypeck joined #salt
15:47 bhosmer joined #salt
15:48 pr_wilson joined #salt
15:50 __gotcha joined #salt
15:51 wincus joined #salt
15:52 viq CycloHex: maybe managing the whole file would be an idea?
15:52 CeBe1 joined #salt
15:52 viq CycloHex: or if there is more stuff on the line that is unique, then match that?
15:54 CycloHex I currently manage the file, yes. I think I'll keep it that way.
15:55 viq Then it sounds like job for vi on where you keep your salt files, not for salt
15:55 Ozack joined #salt
15:56 csstylish joined #salt
15:59 N-Mi_ joined #salt
15:59 N-Mi_ joined #salt
16:00 pentabular joined #salt
16:02 oyvjel joined #salt
16:03 Guest71585 joined #salt
16:03 XenophonF hey are there any salt devs online right now?
16:04 XenophonF i'm looking at modules/win_pkg.py
16:04 XenophonF it'd be nice if i could specify installer as a list of things to download
16:04 XenophonF because often i need to download an executable file and some kind of install settings file that the exe loads as part of a scripted install
16:04 thayne joined #salt
16:05 XenophonF or possibly an MSI file plus a transform
16:05 XenophonF or possibly an MSI file and a CAB file
16:05 XenophonF really, the possibilities are quite varied
16:06 XenophonF and i want something a little more flexible
16:06 ckim joined #salt
16:06 XenophonF like, say i want to deploy Microsoft Office via Salt
16:07 jngd joined #salt
16:09 XenophonF brb
16:09 jalbretsen joined #salt
16:10 thedodd joined #salt
16:12 thawes joined #salt
16:17 CycloHex is it possible to use require: in reactors? eg: I'd like my sync_all to be executed first, later on the add_to
16:18 __TheDodd__ joined #salt
16:20 delinquentme joined #salt
16:22 jdesilet joined #salt
16:22 RedundancyD joined #salt
16:23 XenophonF oh i get it now
16:23 jimklo joined #salt
16:24 XenophonF 'installer' can be a Windows path, too
16:24 XenophonF hm
16:25 Hell_Fire_ joined #salt
16:28 jcockhren hey. was anyone here aware of: http://www.pagerduty.com/docs/guides/saltstack-integration-guide/
16:28 jcockhren pagerduty integration with saltstack
16:29 viq No, but I've noticed http://docs.saltstack.com/en/latest/ref/states/all/salt.states.pagerduty.html before
16:29 forrest joined #salt
16:29 karimb joined #salt
16:30 XenophonF there are status states?
16:30 XenophonF that's awesome
16:31 XenophonF oh too bad, limited to load average and process checks
16:32 thawes joined #salt
16:33 mapu joined #salt
16:35 hasues joined #salt
16:35 hasues left #salt
16:35 XenophonF just found https://github.com/saltstack/salt/issues/9028, which describes what i want regarding multiple files as part of a windows package definition
16:35 XenophonF hm
16:36 perfectsine joined #salt
16:36 XenophonF eliasp: i summon thee
16:36 XenophonF you around, buddy?
16:36 XenophonF i want to pick your brain about windows packages
16:37 jimklo joined #salt
16:39 XenophonF eliasp: I'd specifically like to see your package definition for Office 2013, if that's OK with you
16:41 ipm joined #salt
16:43 StDiluted joined #salt
16:44 XenophonF does modules/win_pkg.py run the installer from the minion cache directory?
16:45 XenophonF I think I need it to.
16:48 troyready joined #salt
16:51 tomspur joined #salt
16:55 nitti joined #salt
16:55 wendall911 joined #salt
17:02 nitti joined #salt
17:06 Kurt__ joined #salt
17:07 LordMike joined #salt
17:09 LordMike Hi there
17:09 LordMike Anyone having issues with the latest debian salt-packages
17:09 LordMike ?
17:09 pdayton joined #salt
17:09 viq LordMike: no, have them on a bunch of machines and seem to work fine, what's your issue?
17:10 LordMike I'm trying to update, but it's held back on a few servers. For fun I tried to remove it from one server, and am now told upon reinstall that a dependency is unmet: "python-requests (>= 1.0.0) but 0.12.1-1 is to be installed"
17:10 flebel joined #salt
17:10 LordMike It only happens on some machines, so I suspect a conflicting package
17:10 CeBe1 joined #salt
17:10 tligda joined #salt
17:10 lothiraldan joined #salt
17:12 iggy yeah, the requests thing was one of the hold ups for the release
17:13 LordMike So I've moved from 2014.1.13+ds-1~bpo70+1 to 2014.7.0+ds-2~bpo70+1 (or am trying to)
17:13 LordMike Is there a solution, or should I dig in and find the conflicts+
17:14 thayne joined #salt
17:14 iggy joehh: ^
17:15 LordMike Another issue with the new version, is that cmd.run no longer behaves as expected.. Maybe i should find a changelog :P
17:16 zlhgo joined #salt
17:18 nitti joined #salt
17:19 karmatronic joined #salt
17:19 desposo joined #salt
17:24 linjan joined #salt
17:25 CeBe1 joined #salt
17:28 spookah joined #salt
17:28 patap joined #salt
17:32 aparsons joined #salt
17:34 wt joined #salt
17:35 snarfy joined #salt
17:37 gngsk joined #salt
17:37 hal58th LordMike: Let me know what difference you find with cmd.run
17:38 LordMike I was just looking into that
17:38 LordMike It seems to work as expected when i nthe cli ("salt '*' cmd.run ...")
17:38 LordMike But when in halite, it requires a templat engine other than null
17:38 LordMike And then a user, and then a umask, cwd and so on
17:39 snarfy anyone get weirdness with pkgrepo in ubuntu not setting repos properly?
17:39 snarfy (in He)
17:39 tligda joined #salt
17:39 LordMike hal58th: F.ex, "salt '*' cmd.run 'apt-get upgrade -s'" in the CLI works as expected
17:40 LordMike In Halite, I get "ERROR: Attempted to render file paths with unavailable engine null"
17:40 otter768 joined #salt
17:41 hal58th LordMike: Interesting, good thing I don't use Halite. Seems there are no defaults
17:41 LordMike If i set the template parameter to "jinja", I get "ERROR: User 'null' is not available"
17:41 LordMike Well, it used to work :)
17:41 LordMike Also, it fails only on new 2014.7 clients
17:41 LordMike 2014.1.13 work as normal
17:42 hal58th Write an issue if one doesn't already exists. Loss of functionality.
17:42 LordMike Github?
17:42 hal58th yes. https://github.com/saltstack/salt/issues
17:46 LordMike Wow
17:46 LordMike Issue #18329
17:46 LordMike Lots'o'issues :P
17:47 LordMike Well, that'll be my salt for today :P
17:47 LordMike Thanks for the support :)
17:49 murrdoc joined #salt
17:49 VSpike A question I keep wondering about. If I run salt-call state.highstate on a minion directly, get a ton of output and at the end "Failed: 3", is there a way I can now get details of the 3 states which failed in the last run without scrolling back through a thousand lines?
17:50 hal58th I belive you could do a search for "state: false" or something like that
17:50 VSpike in the log file?
17:51 hal58th yes
17:51 VSpike I'm trying hard not to mentions it's windows :)
17:51 murrdoc VSpike:  set failhard to true
17:51 hal58th welll…. good luck
17:51 murrdoc it ll stop at the failed state
17:51 lothiraldan_ joined #salt
17:51 murrdoc http://docs.saltstack.com/en/latest/ref/states/failhard.html
17:51 VSpike luckily, if one of the failed states was not my msysgit install, I should have a grep
17:51 VSpike murrdoc: ah, useful. thanks!
17:52 hal58th To bad you can't set failhard in the minion config
17:52 babilen VSpike: I also typicalle set state_output to mixed which you might find advantageous (cf. http://docs.saltstack.com/en/latest/ref/configuration/master.html#state-output) -- no idea why that isn't the default
17:53 aparsons joined #salt
17:54 jhauser joined #salt
17:57 meylor joined #salt
18:00 gngsk joined #salt
18:06 linjan joined #salt
18:08 aparsons joined #salt
18:14 thayne joined #salt
18:17 shaggy_surfer joined #salt
18:17 rawkode joined #salt
18:17 Ryan_Lane joined #salt
18:18 ajolo joined #salt
18:21 tligda joined #salt
18:29 faust joined #salt
18:32 istram joined #salt
18:33 alexr___ joined #salt
18:33 rojem joined #salt
18:35 rap424 joined #salt
18:36 TOoSmOotH joined #salt
18:36 Setsuna666 joined #salt
18:37 slafs joined #salt
18:39 aw110f joined #salt
18:42 thawes joined #salt
18:42 cromark joined #salt
18:42 stevednd joined #salt
18:42 ndrei joined #salt
18:42 ndrei_ joined #salt
18:45 glyf joined #salt
18:45 TheThing joined #salt
18:45 glyf joined #salt
18:46 KyleG joined #salt
18:46 KyleG joined #salt
18:50 cruatta So, if I wanted to write a script to make running salt commands a bit safer, what would be the best way to tackle that? I'm thinking about the script running a test.ping against all targets before the run and prompting the user with a y/N before they run the command
18:50 dooshtuRabbit joined #salt
18:51 TheThing joined #salt
18:52 SheetiS cruatta: how many systems do you manage?  That test.ping can be somewhat costly in load on a salt-master once you get into the several hundred connected systems and definitely if you are above that will be expensive in cpu time.
18:52 murrdoc there is always http://rundeck.org/news/2014/03/20/Rundeck-and-Salt-at-Salesforce.html
18:52 jcockhren SheetiS: I think that is an example
18:52 cruatta About 300 systems.
18:52 cruatta give or take
18:53 iggy state.highstate test=True
18:53 murrdoc rundeck gives you gui, auth and so on
18:56 cruatta rundeck is definitely an idea. Anything from the cli?
18:56 murrdoc pepper
18:56 murrdoc https://github.com/saltstack/pepper
18:58 hal58th1 joined #salt
18:58 druonysus joined #salt
18:58 druonysus joined #salt
19:00 hal58th joined #salt
19:01 thawes_ joined #salt
19:01 thawes joined #salt
19:02 rawkode joined #salt
19:02 alexr joined #salt
19:05 Ahrotahntee oh sweet, .7 is out>
19:09 Ryan_Lane murrdoc: does pepper actually work?
19:10 Ryan_Lane I /really/ like the idea of pepper, but it looks like no one has done anything with it for 7 months
19:11 Ryan_Lane whiteinge: are you still working on pepper?
19:11 murrdoc last i heard from whiteinge it did work
19:12 Ryan_Lane it would be really sweet to have a web interface, and pepper. the web interface could give you a token that could be used for pepper
19:12 otter768 joined #salt
19:12 whiteinge It works. It's not featurefull, but it works.
19:12 Ryan_Lane then protect the web interface with oauth
19:13 whiteinge I am still working on it, yes. We've been strapped for personnel all year, so this is a little lower on the priority list, but it is still in development.
19:13 * Ryan_Lane nods
19:13 murrdoc if you have an issue list , like a todo list for the project, i am sure the community would help
19:13 Ryan_Lane whiteinge: after it does the command, does it poll for the results?
19:14 whiteinge The first iteration just used the normal time behavior. There was a recent community contribution that added a kind of polling, so yes.
19:15 whiteinge *timeout
19:15 v0rtex can someone explain why from my main master I sometimes see minion keys from minions under a syndic master but not all of them and when I do something like a "salt-run manage.up" I don't consistently get the same list of minions under control of the syndic master?
19:15 Ryan_Lane ah, https://github.com/saltstack/pepper/pull/16
19:15 whiteinge That's the one. I haven't had much time to play with it since it went in.
19:16 v0rtex err...sorry I meant to say "salt-run manage.status" because that way I would think I could see everything
19:19 druonysus joined #salt
19:20 __gotcha joined #salt
19:20 nethershaw joined #salt
19:21 thawes joined #salt
19:21 REdOG joined #salt
19:24 badon_ joined #salt
19:25 Ahrotahntee I'm clearly not getting how exclude_pat works
19:25 Ahrotahntee I'm trying to get my nginx state to not wipe out sites-enabled and sites-available; I have exclude_pat: sites-* in the sls
19:26 yetAnotherZero joined #salt
19:26 Ahrotahntee I'm clearly not understanding how this parameter works
19:26 aparsons joined #salt
19:27 iggy in what state?
19:28 Ahrotahntee I have a state: nginx.upstream, it's a file.recurse with exclude_pat: sites-* set
19:28 iggy did you read the docs?
19:28 Ahrotahntee when I do state.sls (or highstate) the recurse still wipes out the two directories
19:28 Ahrotahntee and I am looking at the docs as I type this
19:28 iggy it excludes what it copies from the source
19:28 iggy that doesn't mean skip it in the destination
19:29 Ahrotahntee there is a note here that exclude_pat, when specified with clean=True excludes the pattern from the removal list
19:29 jimklo joined #salt
19:30 Ahrotahntee [and preserves in the destination]
19:30 tligda joined #salt
19:30 druonysus joined #salt
19:30 druonysus joined #salt
19:30 iggy yeah, I haven't used exclude_pat with clean=True before
19:31 iggy I've only used it to not copy some stuff from source (vs using it to avoid copying _over_ something that exists)
19:34 hal58th joined #salt
19:34 alexr joined #salt
19:36 macmurray joined #salt
19:38 * Ahrotahntee deploys workaround
19:39 b0r0 joined #salt
19:39 karimb joined #salt
19:39 jimklo joined #salt
19:43 kballou joined #salt
19:43 felskrone joined #salt
19:47 tligda1 joined #salt
19:47 nethershaw joined #salt
19:47 jimklo joined #salt
19:50 nosleep77 joined #salt
19:53 teepark basepi: ohai! this is much better than twitter
19:56 iggy I have an irssi plugin that trims everybody's posts, uploads them to a site and then puts a bit.ly link so I can see the rest
19:56 iggy gives me that twitter feeling all day long
19:57 hobakill1 joined #salt
20:00 Mso150 joined #salt
20:03 SheetiS heh
20:05 hasues joined #salt
20:06 hasues left #salt
20:07 murrdoc thing is, he probably does
20:07 murrdoc :D
20:08 jalbretsen I want to confirm before I move on..... http://docs.saltstack.com/en/latest/ref/states/top.html  The rules apply to both salt and pillar, correct?
20:08 Ryan_Lane jalbretsen: yep
20:09 jalbretsen thx Ryan_Lane.
20:09 Ryan_Lane yw
20:11 toastedpenguin joined #salt
20:13 toastedpenguin joined #salt
20:14 hal58th joined #salt
20:15 karimb joined #salt
20:15 toastedpenguin joined #salt
20:17 TTimo joined #salt
20:21 karimb joined #salt
20:22 smcquay joined #salt
20:24 yetAnotherZero joined #salt
20:26 Kurt__ joined #salt
20:27 nethershaw joined #salt
20:29 giantlock joined #salt
20:31 snuffeluffegus joined #salt
20:32 ponpanderer joined #salt
20:33 ponpanderer Hey, i'd like to call salt-cloud from a celery worker, but due to salt-cloud using multiprocessing there is a conflict calling salt-cloud from the python api. Any idea on how to workaround that?
20:34 SheetiS use http://docs.saltstack.com/en/latest/ref/states/all/salt.states.cloud.html instead?
20:34 __gotcha joined #salt
20:34 mpanetta That is what I would recommend.
20:35 alexr joined #salt
20:42 ponpanderer hmm i'll check that out
20:44 snarfy joined #salt
20:52 nickg the webupd8team java ppa for ubuntu now requires you to press <enter> to install it, is there anyway to send the '-y' argument to add-apt-repository with the pkgrepo.managed state?
20:55 SheetiS nickg: does this work for you? http://askubuntu.com/questions/190582/installing-java-automatically-with-silent-option
20:56 SheetiS As that could be statefully done at worst with a cmd.run and required in your package installation.
20:58 nickg SheetiS: this is required before that stage.  this is new i didnt have this problem a few months ago
20:58 nickg SheetiS: i'm trying to just add the webupd8team repo, which is prior to installing java and those prompts
21:00 berto- joined #salt
21:00 georgemarshall joined #salt
21:01 nickg bleh now there's a bug in helium which breaks my jinja files.  saltstack is supposed to make management easy, but it seems like every other month there's more complications that didnt exist last time :(
21:02 MugginsM joined #salt
21:04 johtso_ joined #salt
21:04 aparsons_ joined #salt
21:06 muckmuck joined #salt
21:07 aparsons joined #salt
21:07 muckmuck Can you get parameters into salt runners from a minion
21:08 TTimo joined #salt
21:08 shaggy_surfer joined #salt
21:08 felskrone joined #salt
21:09 snarfy nickg, join the club, bro https://github.com/saltstack/salt/issues/18302
21:09 snarfy pkgrepo aint workin for ubuntu anymore. ooops our entire infra is ubuntu
21:09 aurynn this is in 2014?
21:09 aurynn er
21:10 SheetiS nickg: It looks like it wouldn't work with pkgrepo.managed right now, but appears to be fairly trivial to resolve from the looks of it.
21:10 aurynn 2014.7?
21:10 snarfy yeap
21:11 snarfy its true it does sound like you can work around using a format like the 2nd example form http://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkgrepo.html rather than the third example
21:11 basepi teepark: twitter is pretty limited, for sure. ;)
21:12 snarfy that said, come *on*, re-writing our states for something so fundamental is hardly the appropriate response
21:19 jonatas_oliveira joined #salt
21:22 shaggy_surfer joined #salt
21:24 aquinas_ joined #salt
21:28 CeBe1 joined #salt
21:28 span joined #salt
21:29 kermit joined #salt
21:30 snarfy joined #salt
21:32 steffo joined #salt
21:35 Ryan_Lane man, these docker modules need some love
21:36 Ryan_Lane they're pretty rough
21:36 Ryan_Lane especially from the documentation POV
21:36 racooper can jinja be used as such in a source line for a managed file? source: salt://common/sshd_config.{% grains['osmajorrelease'] %}
21:36 druonysus joined #salt
21:36 aurynn Most of the docs need a lot of love
21:37 iggy racooper: {{ grains... }}
21:37 nickg i guess i need to downgrade the minions.. another complicated task
21:37 SheetiS racooper: definitely.  You can also specify multiple sources so you have a default source if the grain doesn't match a file.
21:37 Ryan_Lane aurynn: a lot of them are pretty good
21:37 Ryan_Lane especially for the modules
21:37 SheetiS but make sure to use the {{ }} like what iggy said.
21:38 Ryan_Lane most of the intro docs aren't really very good
21:38 racooper ah. so the {% %} is for conditionals. thanks.
21:38 Ryan_Lane racooper: {% %} is to do actions
21:38 iggy control structures in jinja speak
21:38 Ryan_Lane {{ }} is to output
21:38 racooper gotcha. thanks.
21:38 Ryan_Lane yw
21:42 nickg is there anyway with ppa to downgrade salt?
21:43 nkuttler nickg: .deb packages don't do downgrades well in general... that being said.. you can try to dpkg -i the older one..
21:43 nkuttler at your own rist
21:44 nickg bleh
21:44 nickg how does helium get released with so many bugs
21:44 nkuttler because you didn't test + report them?
21:44 nickg maybe they need to up the QA staff on http://www.saltstack.com/careers/
21:45 aurynn maybe because big systems are really hard
21:45 aurynn also pushing out a .0 release into the public consumption channel is a bit foolhardy
21:46 Ryan_Lane well, there were 7 RCs :)
21:46 Ryan_Lane basepi: do you know if there's any way to refresh pillars during a state run?
21:46 Ryan_Lane we're using the etcd external pillar and we push changes into etcd during the state run that we want to use later in the run
21:46 Ryan_Lane but I can't see any way to refresh them
21:47 Ryan_Lane (I want to do the same thing with grains, btw)
21:47 SheetiS That would be super good to know/implement.  Not the first time I've seen someone ask about it around here, and I've had the desire to try some things that would use it myself.
21:47 SheetiS Especially with grains.
21:48 Ryan_Lane I tried fixing it with grains once before
21:48 Ryan_Lane but my change was reverted because it broke regression tests :(
21:48 SheetiS ahh
21:48 aurynn .0 is still never a great idea to move to
21:48 Ryan_Lane https://github.com/saltstack/salt/issues/15125
21:49 Ryan_Lane ideally they'd use a PPA that wasn't reprepro based, so that it could handle more than a single version of salt and its dependencies
21:49 Ryan_Lane then you could use the PPA and lock yourself to a version
21:49 bhosmer_ joined #salt
21:49 igorwidl joined #salt
21:49 Ryan_Lane fuck reprepro
21:50 racooper .0 in an open source project that rolls out RCs is a bit different than .0 in proprietary software though.
21:50 aurynn racooper, no, it's not
21:50 micah_chatt joined #salt
21:51 rawkode joined #salt
21:51 jimklo joined #salt
21:53 iggy Ryan_Lane: like https://github.com/saltstack-formulas/aptly-formula
21:54 rawkode joined #salt
21:54 TOoSmOotH joined #salt
21:54 ryanxm joined #salt
21:55 Ryan_Lane yeah :)
21:56 Ryan_Lane is aptly written in go? :D
21:56 iggy I wouldn't be surprised
21:56 spielberg joined #salt
21:57 spielberg my mate could use some love for his first PR: https://github.com/CSSCorp/openstack-automation/pull/38
21:57 Ryan_Lane it is
21:57 XenophonF left #salt
21:57 ryanxm left #salt
21:57 spielberg he's just getting started with salt/openstack :)
21:58 igorwidl any ideas how to manage a global ssh known_hosts with salt? i can't find any builtin functions for this
21:58 shaggy_surfer joined #salt
21:59 Ryan_Lane igorwidl: unfortunately, I think file.managed is your answer
22:00 jonatas_oliveira joined #salt
22:00 iggy igorwidl: just leave user blank?
22:00 murrdoc hahaha
22:00 murrdoc this thread https://github.com/CSSCorp/openstack-automation/pull/38
22:01 spielberg they grow up so fast!
22:01 yomilk joined #salt
22:01 murrdoc i should look into committing our openstack stuff to OpenSource
22:01 murrdoc we got it done for trusty and nova
22:02 igorwidl iggy: up to individual users. but there would be global /'etc/ssh/ssh_known_hosts'
22:02 thayne joined #salt
22:03 iggy igorwidl: I mean if you leave user blank in the ssh_known_hosts state, it defaults to /etc/ssh/ssh_known_hosts
22:04 basepi Ryan_Lane: well, you could do a module.run of saltutil.refresh_pillar
22:04 igorwidl ah yes… just looking for a way to put all minion pub keys to /etc/ssh/ssh_known_hosts and distribute it to minions..
22:04 Ryan_Lane basepi: that doesn't work
22:04 Ryan_Lane I don't think it does, anyway
22:04 Ryan_Lane I guess I should try it
22:04 iggy it probably resync's but doesn't re-read
22:05 aparsons joined #salt
22:06 basepi Ryan_Lane: what are you trying to do with said data?
22:06 basepi I was worried it wouldn't update the in-use dictionaries for your state run
22:06 Ryan_Lane in the state I write to etcd, then later in the run I use pillars, which should come from etcd
22:06 basepi And I'm not sure how to resolve that, because it's in a separate process, and pillar is only in-memory....hrm.....
22:07 Ryan_Lane the module run forks, right?
22:07 Ryan_Lane I also am not using a minion
22:07 iggy orchestrate?
22:07 Ryan_Lane I'm doing masterless with no daemon
22:15 Ryan_Lane basepi: yep. it doesn't update the in-memory dict
22:15 basepi I was afraid of that. And I'm not sure how to resolve that issue off the top of my head.
22:16 basepi I guess maybe file a feature request and we can brainstorm solutions?
22:16 Ryan_Lane I'm pretty sure all the saltutil stuff assumes a minion process
22:16 Ryan_Lane and usually minion/master, too
22:16 basepi In the meantime a custom module is probably in order, to just fetch that data from etcd more manually. =-\
22:16 Ryan_Lane bleh
22:17 basepi Agreed
22:17 Ryan_Lane makes the idea of external pillar useless
22:17 Hell_Fire_ joined #salt
22:18 quickdry21 joined #salt
22:18 basepi For mid-state refreshes, yes.
22:18 basepi But pillar wasn't really designed with mid-state-run refreshes in mind. ;)
22:19 basepi Actually, orchestrate would probably work
22:19 Ryan_Lane masterles....
22:19 basepi Just as an alternate idea
22:19 basepi Oh dangit
22:19 basepi I forgot
22:19 basepi Dang that feels limiting. =P
22:19 iggy that's what you get for using masterless!
22:20 basepi File the issue for now, Tom may have one of his genius ideas
22:20 Ryan_Lane https://github.com/saltstack/salt/issues/15125
22:20 Ryan_Lane already did that for grains
22:23 badon joined #salt
22:23 mosen joined #salt
22:26 pentabular joined #salt
22:31 Ryan_Lane basepi: heh. saltutil just fires a damn event
22:32 basepi Right
22:32 basepi Because you can't refresh in a fork
22:32 basepi And expect it to make it back to the main process
22:32 Ryan_Lane which is 10000% worthless on masterless
22:32 basepi I had forgotten about that though
22:32 basepi Yep
22:33 basepi Again, you are the first big deployment that's full masterless. Many architecture decisions were made without masterless in mind
22:33 Ryan_Lane we can add reload_grains and reload_pillars as keys to state
22:33 basepi So we're working on catching up. ;)
22:33 basepi That'll probably be the answer in the end
22:34 forrest Ryan_Lane: I talked to Dave a while back, and I know he wanted to implement a good chunk of the master stuff into masterless if possible, especially the reactor and so on.
22:34 Ryan_Lane yeah. would be nice.
22:34 Ryan_Lane even for non-masterless being able to refresh pillars and grains in-run would be nice
22:34 Ryan_Lane would be way slower in master/minion, but oh well
22:35 jhauser joined #salt
22:36 nickg in a sls file, when you run execute salt['mine.get'] and use the expr_form='grain' format does the data come back?  I see ('ip-10-0-0-1', {'biosversion': '3.0b'}) etc how do I access the biosversion?
22:43 mbrgm joined #salt
22:45 mbrgm hi! when I run salt-master non-daemonized, are the key logs also appended to stdout?
22:46 perfectsine joined #salt
22:49 Ryan_Lane basepi: ugh. it looks like reload_modules doesn't work with module.run
22:49 Ryan_Lane it never triggers
22:50 basepi interesting
22:51 Ryan_Lane I take it back. it at least calls the function
22:51 Ryan_Lane wtf
22:53 Ryan_Lane basepi: I'm trying to add new global state arguments. I'd imagine the only place I need to put them is into the list in state.py
22:53 Ryan_Lane but it doesn't show up in the data
22:53 Ryan_Lane STATE_INTERNAL_KEYWORDS
22:54 basepi The state compiler is one piece of code I just haven't messed with much
22:54 basepi You may want to ping Tom on that one
22:54 Ryan_Lane ah. ok
22:55 Outlander joined #salt
22:58 slafs left #salt
22:58 TOoSmOotH joined #salt
22:59 Pixionus joined #salt
23:01 mbrgm left #salt
23:01 aparsons_ joined #salt
23:05 iggy nickg: {% for name, biosversion in salt['mine.get'].... %}  {{ biosversion['biosversion'] }}  {% endfor %}
23:10 span joined #salt
23:10 span joined #salt
23:11 smcquay joined #salt
23:14 hasues joined #salt
23:14 hasues left #salt
23:19 nitti_ joined #salt
23:20 nickg iggy: ah thanks
23:21 cads joined #salt
23:23 Ryan_Lane basepi: https://github.com/saltstack/salt/pull/18351 :)
23:26 TOoSmOotH joined #salt
23:33 mordonez joined #salt
23:35 TOoSmOotH joined #salt
23:43 pdayton joined #salt
23:45 badon joined #salt
23:46 tafa2 joined #salt
23:47 forrest babilen: you around?
23:47 pdayton joined #salt
23:48 Cottser joined #salt
23:50 pdayton joined #salt
23:58 jimklo joined #salt
23:59 hal58th joined #salt

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