Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-07-03

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

All times shown according to UTC.

Time Nick Message
00:01 kivihtin joined #salt
00:10 manfred ingwaem: i was pretty sure that was what returners did...
00:11 manfred ingwaem: all of the stuff you would normally get on the command line should go to the mysql database
00:12 ingwaem manfred: yea exactly that
00:12 manfred that is what returners do
00:12 manfred oh
00:12 manfred i think i miss understood
00:13 manfred you want something to be able to interface with the saved data after everything has run?
00:15 dimeshake ll
00:15 ingwaem yes
00:16 manfred i am not aware of any
00:16 ingwaem ahh ok, i’ll keep on poking around :) thanks
00:22 kballou joined #salt
00:24 aquinas joined #salt
00:24 gzcwnk hmm i want to check selinux mode, I assume I use this, salt.states.selinux.mode  but it gives no example on how to use it
00:26 TaiSHi Any reason I can't use host: '%' in mysql.user ?
00:26 manfred gzcwnk: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.selinux.html
00:27 manfred gzcwnk: that is how you use it, you specify the mode in the name of the state
00:27 manfred gzcwnk: if a state doesn't have a name: variable under it, it uses the state id as the name
00:27 gzcwnk yeah i can see that example but I odnt want to set a state I just want to query
00:27 manfred so enforcing is the mode it is going to set
00:27 gzcwnk i odnt want it set
00:27 manfred that isn't a stae module then
00:28 manfred gzcwnk: http://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.selinux.html#salt.modules.selinux.getenforce
00:28 gzcwnk i have oracle servers so some have to be permissive
00:28 manfred http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.selinux.html#salt.modules.selinux.getenforce
00:29 gzcwnk yes i found that but it isnt in asls file is it?
00:29 manfred it isn't used for that no, what are you trying to do?
00:29 manfred gzcwnk: if you are just trying to check it in a state file to see if you need to run another state, then you need to wrap that state in jinja
00:29 manfred templating
00:30 gzcwnk I just want to run a report in effect.  I am setting up a csi security . org benchmark check
00:30 manfred {% if salt['selinux.getenforce']() == 'enforcing' %}
00:30 manfred some state stuff
00:30 manfred {% endif %}
00:30 manfred gzcwnk: then use the module.run state
00:30 manfred to run that module
00:30 gzcwnk Ok so I need to earn "jinja" oh bugger, LOL
00:30 gzcwnk this isnt as easy as Id hoped
00:31 TaiSHi Gah
00:31 TaiSHi Why can't I use % in yaml?
00:31 manfred gzcwnk: you don't need jinja
00:32 manfred gzcwnk: use the module.run state if you just want to report the getenforce status
00:32 manfred gzcwnk: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.module.html
00:33 xt JordanTesting: how's your bot coming along?
00:33 gzcwnk yeah im having problems getting my head around it
00:33 TaiSHi xt: tried gluster, we didn't get along.
00:33 manfred gzcwnk:
00:33 manfred selinux.getenforce:
00:33 xt TaiSHi: :(
00:33 manfred module.run
00:33 manfred that is it
00:34 luminous hi! what is the proper way to capture logs from salt, when using the python salt.client.* classes?
00:34 TaiSHi xt: one of the sites had over 100k files, it almost blew it up
00:34 xsteadfastx joined #salt
00:35 TaiSHi ingwaem: ping, did you get any issues when trying to deploy mysql formula?
00:37 ingwaem TaiSHi, yes I did
00:37 xt I've been working on a IRC bot for salt events. If anyone's interested: https://github.com/torhve/saltibot
00:38 ingwaem TaiSHi: here’s what I came up with, it’s a nasty hack but it works
00:38 ingwaem here’s a link to my modified code along with what the master config needs: http://pastebin.com/qPAt0Bxb And config chunk: http://pastebin.com/kNWmAdjP
00:38 TaiSHi ingwaem: I can't push % for host nor *
00:39 gzcwnk na, still dont get it
00:39 TaiSHi xt: gonna give it a look later on, thanks
00:39 JordanTesting xt: pretty well mostly just reporting things now, but has been running without any issue for a week or two now, so time to start adding to the base
00:39 TaiSHi ingwaem: my issue isn't related :(
00:40 gzcwnk i just dont see the logic
00:40 ingwaem might have to escape it somehow…I had some escaping issues last night with the sql string, but after trial and error got it to work
00:41 xt JordanTesting: is your code available somewhere in a nice license?
00:41 TaiSHi I tried '' and ""
00:41 TaiSHi No luck
00:41 xt JordanTesting: I'm interested in controlling salt from my bot too :)
00:42 yomilk joined #salt
00:42 bhosmer joined #salt
00:43 JordanTesting xt: yeah it will be once I make up my mind on some things, the general structure has changed like 5 times
00:43 bhosmer_ joined #salt
00:43 JordanTesting split it into 2 services now really, but bot that just takes restful messages and does stuff, and passes stuff forward
00:43 JordanTesting so the bot is dumb to keep it connected to irc when logic changes happen
00:44 JordanTesting all it is, is a message bus basically
00:44 TaiSHi manfred: sorry to ping you,  but have you encountered any issue when trying to use % as host for a mysql user ?
00:44 xt ah right
00:44 xt JordanTesting: I will be using localclient I think
00:47 xt since my bot requires running on the master anyway
00:47 ingwaem TaiSHi, not sure you want to set % in the yaml configs
00:48 ingwaem if you need to create a user on the db, use the commands: salt '*' mysql.user_create 'username' 'hostname' password_hash='hash'
00:48 ingwaem other than that I’m not sure on all teh features at this point in time
00:48 ingwaem Mailing list could also help since it is something that requires the right eyes to see it
00:48 JordanTesting xt: ah yeah, I have mine via modules setup to handle our alerting and tickets too
00:48 manfred TaiSHi: not since i started quoting it
00:49 TaiSHi I'm using mysql-formula but it seem to be unquoting it
00:49 manfred TaiSHi: i just quote the pillar
00:49 manfred website:
00:49 manfred wordpress:
00:49 manfred user: "wordpress"
00:49 manfred host: "10.%"
00:49 manfred database: "wordpress"
00:49 manfred for using mysql.user
00:50 manfred ¯\(°_o)/¯
00:50 manfred for mysql_user.present
00:50 TaiSHi I was trying '%' and "%" directly
00:50 zain_ joined #salt
00:51 manfred TaiSHi: https://github.com/gtmanfred/salt-states/blob/master/website/mysql.sls#L14
00:51 manfred i don't do anything special
00:52 TaiSHi Hmm, gonna compare it to the formula
00:52 manfred that isn't the same thing as the formula
00:53 manfred i just use the mysql formula when actually deploying the initial mysql setup
00:53 manfred then I configure the users on my own with mysql_user
00:53 TaiSHi Comment: State 'debconf.set' found in SLS 'mysql.server' is unavailable this is rather odd
00:53 TaiSHi I'm using latest dev, it should be there
00:53 beneggett joined #salt
00:53 JordanTesting Alright, I am out of here.
00:54 JordanTesting xt: I will hit you up once I have something semi-stable and usable - you can fork it and go crazy
00:54 xt cool
00:54 TaiSHi Seems today is not my day
00:54 manfred TaiSHi: not if you don't have the package that is required
00:55 manfred do you have debconf installed on the vm?
00:55 manfred also, check if it is erroring out when you attempt to run with salt-call
00:55 manfred on the vm
00:56 DaveQB joined #salt
00:56 yomilk joined #salt
00:56 TaiSHi manfred: debconf is installed in the vm
00:56 TaiSHi Let me check
00:57 pressureman joined #salt
00:57 TaiSHi State 'debconf.set' found in SLS 'mysql.server' is unavailable - same thing
00:59 TaiSHi Ah, it seems it isn't installing mysql for some reason
01:01 TaiSHi Nope, it's not taht
01:01 TaiSHi Weird, debconfmod -is- on the server
01:04 oz_akan_ joined #salt
01:04 possibilities joined #salt
01:06 TaiSHi Something really odd is happening here and -l debug isn't giving any useful output
01:07 scoates_ joined #salt
01:07 beneggett joined #salt
01:11 bhosmer joined #salt
01:11 manfred are you running -l debug on the minion with salt-call?
01:11 TaiSHi Yeah, it seems as if the debconfmod isn't being loaded for some reason
01:11 TaiSHi I don't have it either to autocomplete on master
01:12 manfred refresh your modules,
01:13 krow joined #salt
01:14 TaiSHi Just did, nothing
01:14 to_json joined #salt
01:14 TaiSHi http://dpaste.com/07WFCX7
01:14 mgw joined #salt
01:15 manfred show me the -l debug output
01:16 TaiSHi http://dpaste.com/1E3NCGW <-- I poo you not.
01:22 manfred TaiSHi: and if you run 'which debconf-get-selections' you get the correct path back?
01:22 jagster02 joined #salt
01:23 TaiSHi Well no output
01:24 manfred then you don't have it installed
01:24 TaiSHi debconf-utils should provide it, let's see
01:24 TaiSHi Great, there's the issue, much appreciated
01:24 manfred np
01:24 TaiSHi I'll have to provision it to all the servers now ¬¬
01:38 ipalreadytaken joined #salt
01:41 otter768 joined #salt
01:53 otter768 joined #salt
01:55 Outlander hi
01:55 Outlander I’ve got an amazon ec2 autoscale group spinning up nodes using a preshared salt key
01:55 Outlander which works when I run salt-call state.highstate from the node as it comes up
01:56 Outlander but can I control all nodes from the salt master if there’s only a single name for the key?
01:56 Outlander It seems to pick a single random node each time it does a salt run from the master against the preshared key
01:59 bchung joined #salt
02:03 luminous I see mention of a doc sprint, when is that happening?
02:04 whiteinge luminous: July 10
02:04 whiteinge luminous: where did you see it mentioned?
02:06 krow joined #salt
02:09 mapu joined #salt
02:10 oz_akan_ joined #salt
02:16 TaiSHi manfred: thanks again for earlier help, found a couple more issues and submitted one to mysql-formula gh
02:17 xsteadfastx joined #salt
02:18 __number5__ Outlander: you might want to check out https://github.com/saltstack-formulas/ec2-autoscale-reactor
02:19 TaiSHi Just random question, anyone using mysql-formula from gh?
02:19 Outlander yeah we’re currently building aws artifacts using jenkins, so might need some thinking of how to glue salt into that
02:20 Outlander but I’ve found a workaround for my problem so far and a possible configuration error that i need to verify
02:20 Outlander salt -G 'id:asg.nginx-shared' cmd.run "hostname"
02:20 Outlander that command lists all the active autoscale instances that I might want to affect individually or as a group with a particular state
02:21 Outlander salt asg.nginx-shared “hostname” will only show one random host each time
02:21 Outlander so that’s my bugbear
02:21 Outlander salt asg.nginx-shared cmd.run “hostname” rather, is what only returns a single host at a time
02:22 mateoconfeugo joined #salt
02:23 manfred TaiSHi: yes
02:25 TaiSHi manfred: asked you earlier, but you told me you don't deploy users from there
02:26 manfred i do not, i just deploy mysql and configure root
02:28 TaiSHi Ahh, there we go <3
02:29 TaiSHi from: - host: {{ user['host'] }} // to: - host: '{{ user['host'] }}'
02:29 TaiSHi I wonder why the quotes are removed
02:30 bhosmer joined #salt
02:31 dude051 joined #salt
02:34 shaggy_surfer joined #salt
02:36 TaiSHi Is that pro-guidelines manfred ? Never coded anything close to formulas
02:36 TaiSHi And I would like to submit a merge request
02:37 manfred i have no idea
02:37 TaiSHi Well gonna fix it on my end and see
02:37 ramishra joined #salt
02:39 TyrfingMjolnir_ joined #salt
02:43 krow joined #salt
02:45 pjs manfred, hey there :) Question.. in salt's setup.py, the option salt-base-master-roots-dir (Salt\'s pre-configured master roots directory) ... what is that for? Custom state files for master only?
02:45 manfred i have no idea, haven't touched the setup.py at all
02:46 TaiSHi Never understood how to make a pull requests directly attached to an existing issue :(
02:46 manfred TaiSHi: you don't
02:46 manfred TaiSHi: when you make a pull request it make another issue
02:47 manfred TaiSHi: otherwise, you just reference the other issue number in your pull request
02:47 TaiSHi manfred: good to know, it was one of my life issues lol
02:47 TaiSHi Yeah I did just that
02:47 manfred if you add 'Closes #31245' it will close the other issue when the PR gets merged
02:48 TaiSHi Added Fixes #12345
02:48 manfred https://help.github.com/articles/closing-issues-via-commit-messages
02:48 TaiSHi Should have added it on the commit as well
02:50 krow joined #salt
02:51 oz_akan_ joined #salt
02:52 TyrfingMjolnir joined #salt
02:53 TaiSHi whiteinge: lel you're here
02:59 luminous whiteinge: I saw it mentioned here. it's a 1 day sprint?
02:59 luminous now that there is more activity around these parts.. I'll repost:  what is the proper way to capture logs from salt, when using the python salt.client.* classes?
03:00 whiteinge luminous: yes, indeed! http://www.saltstack.com/saltstack-events/2014/7/10/salt-documentation-sprint
03:00 whiteinge TaiSHi: i'm here! (sorta)
03:00 luminous awesome, thanks for confirming!
03:01 whiteinge i don't have the Python-logging fu to know how to "properly" capture salt logs from the python level
03:01 whiteinge ooc, what info are you looking for?
03:03 luminous well, I have this badass python script that sort of does what salt-bootstrap does plus a bunch more (to meet my use cases). it's a bit of a generic framework for installing salt and then bootstrapping the system with some formula, and then (optionally) running more modules and all that.. For the most part it's awesome, but I'm not capturing logs properly, so I can't always see errors that come out of the state.highstate or other module calls
03:04 luminous right now I'm using salt.client.Caller(), though I'm assuming capturing logs from the others (client.LocalClient and the other) would be similar
03:04 luminous I've been digging through the code in github in an effort to confirm what's going on
03:04 mgw joined #salt
03:04 luminous it's either really simple and I'm overlooking that, or I'm missing something
03:05 luminous I might just need to use my python debuggin a little more :P
03:05 TaiSHi whiteinge: heh I just saw you accepted my pr, I'm happy with it
03:06 whiteinge luminous: interesting
03:06 whiteinge TaiSHi: good. thanks for sending that in
03:11 luminous whiteinge: theoretically.. https://github.com/saltstack/salt/blob/develop/salt/client/__init__.py#L1612 would return the stuff (from the salt function run) that the salt logger would format.. no?
03:12 manfred luminous: should be correct?
03:12 luminous interesting, maybe it is that easy - to capture that return and do something meaningful with it
03:12 luminous I guess I need to figure out how to sensibly formate this
03:12 manfred luminous: you can also tell it to output in json instead of parsing weird yaml
03:12 luminous tell Caller.function() to output in json?
03:13 kermit joined #salt
03:13 luminous my understanding was/is that the output formatting is done separately from this
03:13 luminous but I don't remember where I ran into that before
03:14 luminous I have been meaning to find/write a tool for mapping out salt's code
03:14 luminous I get lost in it..
03:15 luminous https://github.com/saltstack/salt/blob/develop/salt/output/__init__.py
03:16 whiteinge sorry, was on the phone
03:16 luminous no worries, you aren't my tech support :P
03:17 manfred can you specify output format in master or minion config?
03:17 manfred ¯\(°_o)/¯
03:17 whiteinge that's going to make this bill I just sent you rather awkward...
03:17 luminous haha
03:17 whiteinge luminous: the return from the function call will be different from the actually python-level logging
03:17 whiteinge there is data that shows up in both places
03:17 whiteinge like tracebacks
03:18 luminous manfred: well, this stuff I'm doing is running/happening in python and separate from salt and salt's config. I can't update/touch the master/minion config
03:18 manfred oh, i am a dummy
03:18 luminous updates there would step on what the script may have been told what to do
03:18 manfred i have no idea how you are going to get the logging, unless there something in the python logging module that lets you grab it all
03:19 manfred luminous: but you could still change it in the self.opts variable
03:19 luminous whiteinge: so maybe I need to setup my own log handler to append to salt's?
03:19 luminous manfred: of the client.Caller() ?
03:19 luminous that's a good point
03:19 manfred luminous: yar
03:19 whiteinge to be clear, when you say logging you're talking about the /var/log/salt/minion output, right?
03:19 manfred luminous: it is passing the opts dictionary into the function in the example https://github.com/saltstack/salt/blob/develop/salt/client/__init__.py#L1600
03:20 songqipeng joined #salt
03:20 luminous yes
03:20 manfred i would actually have to look closer, but if it really is the minion config, you can modify it however you want then pass it in
03:20 luminous whiteinge: yea, I want to see as much as possible, as much as is available, without looking at what's in /var/log/salt/minion
03:21 manfred luminous: sounds like you need a way to grab the python logging modules output
03:21 luminous the script is writing it's own log, so it's all self-contained.. everything in the script's log is what happened during 'kickstart'
03:21 luminous manfred: right, which would be creating/setting up a log handler and having salt use that
03:21 manfred import logging
03:21 manfred import sys
03:21 manfred logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
03:21 manfred right
03:21 luminous which ought to be possible
03:22 manfred should be
03:22 beneggett joined #salt
03:22 whiteinge that's sounding to me like the best (only?) way to do this
03:23 luminous yea, because that is what salt is using internally to write var/log/salt/minion log
03:23 luminous I've already got a logging.basicConfig() in there, but stream=sys.stderr
03:23 luminous so that might need to change
03:24 whiteinge depending how crazy you wanted to get: perhaps a wrapper module to return both logging and regular salt output in one go
03:24 whiteinge so you'd run ``salt '*' mymod.wrapper state.sls foo`` and your ``wrapper()`` function would call out to the Caller() class.
03:25 whiteinge otherwise i think you'd have to return the logging output separately from the function output. (maybe via an event?)
03:25 luminous I'll start with improving the capture of salt's internally logging
03:27 luminous I think, techinally, management wants me solving other problems tonight anyway :P
03:27 whiteinge heh
03:27 TyrfingMjolnir joined #salt
03:29 luminous thanks for the input / guidance and bouncing ideas around :)
03:29 luminous I'll be thrilled once I have the thumbs up to share this kickstart stuff
03:30 luminous 2014-07-03 03:29:15,651 DEBUG calling post kickstart function state.highstate < this is as deep as my current solution goes
03:31 whiteinge neat
03:37 krow joined #salt
03:38 dvogt joined #salt
03:40 ramishra joined #salt
03:41 TaiSHi Night lads
03:42 mateoconfeugo joined #salt
03:42 mosen joined #salt
03:43 Ryan_Lane joined #salt
03:52 oz_akan_ joined #salt
03:53 ramishra joined #salt
03:56 whyzgeek joined #salt
03:59 rjc joined #salt
04:03 mgw joined #salt
04:10 Theo-SLC joined #salt
04:11 Theo-SLC left #salt
04:14 * goodwill slaps whiteinge
04:14 beneggett joined #salt
04:18 ajolo joined #salt
04:18 bhosmer joined #salt
04:19 mgw joined #salt
04:20 ajolo_ joined #salt
04:22 HACKING-FACEBOOK joined #salt
04:25 intr1nsic joined #salt
04:26 jalbretsen joined #salt
04:33 possibilities joined #salt
04:33 ramteid joined #salt
04:45 mgw joined #salt
04:50 ramishra_ joined #salt
04:51 ramishr__ joined #salt
04:52 felskrone joined #salt
04:52 oz_akan_ joined #salt
04:55 krow joined #salt
05:04 whiteinge i don't have to take that
05:05 * whiteinge return-slaps goodwill
05:05 * goodwill re-return slaps whiteinge
05:05 UtahDave joined #salt
05:07 joehh UtahDave: good to see someone sensible arrive and stop all the fighting
05:07 UtahDave :)   ??
05:07 whiteinge goodwill started it
05:07 joehh :)
05:07 UtahDave do I need to put whiteinge and goodwill in the corner?
05:08 ramishra joined #salt
05:08 joehh obviosly not the same corner... :
05:08 joehh how is .6 coming along - must be late there
05:10 UtahDave We're still polishing off rough corners.  I know Tom wanted to have .6 out already, but it's still not quite fully baked.
05:10 aw110f joined #salt
05:13 aw110f_ joined #salt
05:15 joehh good to hear - best to get it right
05:15 joehh unless you are thinking of a .7, its likely to be around for awhile
05:15 malinoff joined #salt
05:17 joehh given next debian stable is due for freeze in early Nov, depending on how helium stabilizes, we might end up with .6 as the default in debian stable for a couple of years
05:17 whiteinge interesting
05:18 UtahDave good to know!
05:21 kermit joined #salt
05:21 joehh so xmj would probably want to kill me, but from my perspective, I'd rather make sure it is "right"
05:22 UtahDave :)  Yeah, we definitely want it to be "right"
05:23 thayne_ joined #salt
05:28 yomilk joined #salt
05:33 d3vz3r0 joined #salt
05:38 pssblts joined #salt
05:46 emostar i'd like to keep my /etc/salt/cloud and cloud.profiles managed in git... does anyone have any recommendations on how to save these files?
05:52 EWDurbin anyway to inject an environment variable that would be available during highstate runs?
05:52 EWDurbin i'd really like to just export PIP_CONFIG_FILE=/etc/pip.conf so that i don't need to pass index-url for our pypi cache
05:52 EWDurbin and have pip.installed use the config
05:53 oz_akan_ joined #salt
05:54 EWDurbin looks like environ state and module are coming up.... i'll just nab those
05:56 smcquay joined #salt
05:57 ipalreadytaken joined #salt
05:57 otter768 joined #salt
05:58 possibilities joined #salt
06:02 whiteinge EWDurbin: sounds like the ``pillar`` kwarg may work for you. ``salt '*' state.highstate pillar='{pypi-index: yoururlhere}'``
06:02 whiteinge then you reference that in your state as normal:  ``{{ salt['pillar.get']('pypi-index') }}``
06:03 EWDurbin whiteinge: yeah, i thought of a few ways around it and copy/pastaing the new module into _modules _states did the trick :)
06:03 EWDurbin and i really don't need it for anyting but my local, heavily cached vagrant instances
06:03 whiteinge cool
06:04 cnelsonsic joined #salt
06:04 jhauser joined #salt
06:04 EWDurbin that was the evening hack up for me, make my vagrant instances install pypi modules and rpms from a cache on my laptop.
06:04 EWDurbin helps to speed things up :)
06:05 whiteinge heh, i'll bet
06:06 bhosmer joined #salt
06:10 bhosmer_ joined #salt
06:11 krow1 joined #salt
06:18 UtahDave whiteinge: is there a way to have the eventlisten.py exclude certain tags?  like the find_job stuff?
06:18 whiteinge i don't think so
06:18 UtahDave I might have to write my own version some day.
06:19 whiteinge would be a good addition to the state.event runner. (i think eventlisten.py should go away post-Helium)
06:19 UtahDave whiteinge: Hey, when you get a moment, can you look at this runner?
06:20 mateoconfeugo joined #salt
06:20 mosen aww, can i still hook into the 0mq whiteinge ?
06:22 jdmf joined #salt
06:36 luette joined #salt
06:39 mway joined #salt
06:44 xmj joehh: good morning
06:44 chiui joined #salt
06:44 xmj why would i want to kill you?
06:48 Hell_Fire_ joined #salt
06:51 picker joined #salt
06:54 oz_akan_ joined #salt
06:56 jalaziz joined #salt
06:59 joehh wanting to hold off .6 till it is right...
06:59 joehh though you probably want it right to  - just really soon
06:59 joehh :)
07:06 God-Emperor joined #salt
07:07 God-Emperor left #salt
07:09 slav0nic joined #salt
07:17 active8 joined #salt
07:18 HACKING-FACEBOOK joined #salt
07:19 jhauser joined #salt
07:20 active8 joined #salt
07:26 whiteinge mosen: que?
07:29 luminous is there a way to tell vim a file is a jinja template without using the file suffix?
07:30 schimmy joined #salt
07:31 mosen whiteinge: i wanted to use the zeromq events to do a monitoring application
07:32 whiteinge luminous: something like  set ft=jinja
07:32 whiteinge or did you mean automatically?
07:32 luminous mosen: which zmq events are you referring to? the normal events system?
07:32 whiteinge mosen: yeah, that would be a coll project
07:32 whiteinge *cool
07:33 mosen the same ones that eventlisten.py listens to, I THINK
07:33 luminous whiteinge: I mean like when I open a file in jinja, is there a way I can inform vim in the file itself?
07:33 whiteinge # vim:filetype=jinja
07:33 whiteinge ^^ add that comment at the top or bottom
07:33 luminous ah!
07:33 luminous thanks!
07:34 schimmy1 joined #salt
07:34 Lomithrani joined #salt
07:36 ml_1 joined #salt
07:37 mosen maybe this project is too similar to halite
07:37 luminous mosen: how so?
07:37 luminous events != ui
07:38 HACKING-FACEBOOK joined #salt
07:39 mosen halite already stores minion event logs yeah?
07:39 linjan joined #salt
07:39 mosen i played with it a little bit
07:39 luminous there's a log stream sent to the UI, yes
07:39 luminous but not storing them
07:40 luminous but maybe I'm wrong
07:42 mosen time to fire up halite agaqin
07:44 whiteinge halite doesn't persist those events between page refreshes
07:45 mosen ah right, just the immediate results of the minion command
07:47 CeBe joined #salt
07:50 jhauser joined #salt
07:52 Kenzor joined #salt
07:53 HACKING-FACEBOOK joined #salt
07:54 oz_akan_ joined #salt
07:55 bhosmer joined #salt
07:58 lipiec joined #salt
08:02 darkelda joined #salt
08:05 justlooks joined #salt
08:06 ajw0100 joined #salt
08:07 machmalabala joined #salt
08:08 HACKING-FACEBOOK joined #salt
08:09 machmalabala joined #salt
08:20 Miguel_london joined #salt
08:25 HACKING-FACEBOOK joined #salt
08:25 yomilk joined #salt
08:28 justlooks left #salt
08:30 ajw0100 joined #salt
08:33 keyvan joined #salt
08:39 HACKING-FACEBOOK joined #salt
08:45 irfan joined #salt
08:46 N-Mi joined #salt
08:55 oz_akan_ joined #salt
09:00 ajw0100 joined #salt
09:01 ajw0100 joined #salt
09:02 picker joined #salt
09:07 ndrei joined #salt
09:07 ndrei_ joined #salt
09:15 ajw0100 joined #salt
09:19 keyvan joined #salt
09:28 xmj joehh: i'm personally not that much invested, i just.. get giddy when i hear something's about to come "real soon" :p
09:28 Lomithrani hi, I've been trying to do http://docs.saltstack.com/en/latest/ref/states/all/salt.states.archive.html  http://pastebin.com/auj52E8g  they don't put ":" after the tar name , I don't know if it's a mistake or not but I tried and it didn't fix it
09:28 giantlock joined #salt
09:29 aquinas joined #salt
09:30 Lomithrani oooh nvm
09:30 Lomithrani or you can mind .. :/ not really sure going to try something
09:31 irfan is there any one from test environment management background explored saltstack ?
09:33 malinoff irfan, ask your question
09:33 linjan joined #salt
09:34 irfan does it help to push  application image on respective node's?
09:34 Lomithrani http://pastebin.com/auj52E8g corrected some stuff so it looks absolutly identical to the example http://docs.saltstack.com/en/latest/ref/states/all/salt.states.archive.html  still getting same yaml error :(
09:34 malinoff irfan, what is application image?
09:35 irfan application image cosit of = app code + propriety software + any web / app server etc..
09:35 possibilities joined #salt
09:36 malinoff Lomithrani, you're using source argument wrong
09:37 malinoff Lomithrani, you can specify only one source
09:37 pssblts joined #salt
09:37 Lomithrani ?
09:37 Lomithrani ooooh
09:38 Lomithrani the line is just too long in the example ....
09:38 malinoff Lomithrani, yes
09:38 Lomithrani thansk
09:38 irfan ?
09:38 Lomithrani looks much more logical now
09:39 malinoff irfan, in salt there is no term "application image", instead you write a bunch of states describes what should be present and what shouldn't on target servers
09:40 irfan ok
09:40 malinoff irfan, e.g. "ensure that app code is installed; ensure that proprietary software is installed; ensure nginx is installed and restart it; etc"
09:40 irfan ok
09:40 irfan how it's diffrent than ansible ?
09:41 malinoff irfan, very similar, but with it's own features
09:41 malinoff and limits, of course
09:42 malinoff i like salt more than ansible, but we found that salt is not stable enough for us
09:43 bhosmer joined #salt
09:44 qba73 joined #salt
09:44 Lomithrani now i get :  Unable to determine upstream hash of source file http://downloads.datastax.com/community/datastax-agent-4.1.4.tar.gz
09:44 Lomithrani I set "z" as the tar_options because it asked me to provide him tar_options
09:45 malinoff Lomithrani, http://pastie.org your state please
09:45 irfan we have see great demand of server configuration manegement software recently but still there arent many reliable options
09:45 irfan all are pretty new
09:46 Lomithrani http://pastie.org/9349737
09:46 irfan I need to know individuals experiences with chef, puppet and other cm tools anyone used and succeded
09:46 malinoff Lomithrani, you must specify source_hash argument
09:47 Lomithrani hmm how do I get that ?
09:47 Lomithrani I usually just curl the damn thing
09:48 malinoff Lomithrani, go for it, and run md5sum on downloaded file
09:48 giantlock joined #salt
09:49 malinoff irfan, I have a lot of experience and i can say that chef and puppet suck a lot, ansible sucks much less than chef & puppet, salt suck much less than ansible (if we don't mind about stability and backwards compatibility)
09:50 malinoff But everybody sucks with complex deployments :(
09:50 irfan in ops world all that matters is stability isn't it
09:50 malinoff it is, that's why we don't use salt anymore
09:50 irfan than why not stick over to CFEngine
09:50 malinoff oh please
09:50 malinoff we're not in 80
09:50 irfan :)
09:50 irfan but atleast that is more stable than other
09:51 babilen malinoff: Just out of curiosity: What do you use these days?
09:52 malinoff babilen, ansible (and I have a lot of pain with it, but at least upgrading to a new version does not break things), and writing my own tool
09:53 xmj How do i install multiple packages through pip.installed ?
09:53 babilen "and writing my own tool" -- the solution of the desperate :)
09:54 xmj https://dpaste.de/bLFN/raw << funky error
09:55 babilen xmj: pip.installed does not support "pkgs:"
09:55 xmj https://github.com/saltstack/salt/issues/4648
09:55 ramishra joined #salt
09:55 xmj just noticed. is there a way to have it install multiple pkgs at once?
09:56 xmj babilen: ^
09:56 babilen One state per package
09:56 oz_akan_ joined #salt
09:56 xmj == no? :(
09:57 babilen You can track develop if you want to (not that that would be my suggestion) -- It might make it into Helium
10:00 xmj huh. what's Helium
10:00 xmj code for 2014.2.0 ?
10:00 xmj Succeeded: 11
10:00 xmj Failed:     0
10:00 xmj thx babilen !
10:04 babilen xmj: It is YEAR.MONTH.Minor so Helium will be something along the lines of 2014.7.0 or 2014.8.0
10:06 luette hi guys, i just tried to install sth via pkg.installed in a state file, which propably failes due to old repository headers. is there any way to force salt in a state file to update the package lists?
10:07 babilen luette: It does that automagically. Mind pasting your state, error and repo definitions to, say, http://paste.debian.net ?
10:07 luette i'll do
10:07 Sp00n pkg.refresh?
10:08 babilen luette: You are looking for "refresh: True" though
10:08 Sp00n :>
10:08 luette yeah, just found, that i can install repository lists via salt and i shouln'd just copy the files... so... <.<
10:08 luette i probably should do that
10:09 babilen luette: But then you wouldn't necessarily want to set that for every state. I would much rather recommend to run that interactively (using http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.aptpkg.html#salt.modules.aptpkg.refresh_db ) prior to your highstate run
10:10 xmj babilen: makes sense
10:11 luette i'll have a look at the docu, thx for the hint
10:14 xmj babilen: (at one point I thought it was YEAR.RELEASE.MINOR so MONTH makes sense)
10:19 Outlander joined #salt
10:20 malinoff babilen, yes, but isn't any tool a solution of the desperate? Everybody don't like existing stuff
10:23 elfixit joined #salt
10:23 babilen I am trying to dynamically create state IDs and run into the following: http://paste.debian.net/107945/ -- Could anybody shed some light on this?
10:25 malinoff babilen, I guess you should use pki['git_repo'] syntax since pki is a dict
10:31 CeBe joined #salt
10:31 babilen That doesn't change anything
10:32 ggoZ joined #salt
10:34 malinoff babilen, can you create a dummy state contains just {% set %} and {{ pki }} and run state.template on it?
10:36 babilen I'll do that in a second.
10:38 possibilities joined #salt
10:38 dzen joined #salt
10:38 dzen hello
10:42 babilen malinoff: *sigh* -- I updated the data in a location that wasn't used. What I pasted was therefore the idealised state (correct output though, but wrong state)
10:42 HACKING-FACEBOOK joined #salt
10:43 babilen It works perfectly
10:49 rowleyaj joined #salt
10:52 rowleyaj joined #salt
10:57 LordOfLA|Weechat joined #salt
10:57 oz_akan_ joined #salt
10:57 DaveQB_ joined #salt
10:57 ramishra joined #salt
10:57 luette babilen: http://paste.debian.net/107948/ i still get a few errors. a local apt-cache search will result in finding the package. salt however doesn't
10:58 oncallsucks joined #salt
10:58 eclectic joined #salt
10:59 dzen left #salt
11:00 HACKING-FACEBOOK joined #salt
11:00 majoh joined #salt
11:00 Ssquidly joined #salt
11:02 HACKING-FACEBOOK joined #salt
11:04 HACKING-FACEBOOK joined #salt
11:15 jrdx joined #salt
11:22 ndrei joined #salt
11:22 ndrei_ joined #salt
11:23 jrdx joined #salt
11:26 77CAAO8ZF joined #salt
11:29 TheThing joined #salt
11:30 HACKING-FACEBOOK joined #salt
11:31 bhosmer joined #salt
11:33 HACKING-FACEBOOK joined #salt
11:35 bhosmer_ joined #salt
11:35 possibilities joined #salt
11:41 malinoff babilen, you should always paste the concrete output, since in yaml every space is important
11:47 bhosmer joined #salt
11:48 HACKING-FACEBOOK joined #salt
11:51 simmel joined #salt
11:55 mike25de1 joined #salt
11:58 oz_akan_ joined #salt
12:01 Lomithrani joined #salt
12:04 ramishra joined #salt
12:14 patrek joined #salt
12:15 ramishra joined #salt
12:16 ndrei joined #salt
12:16 ndrei_ joined #salt
12:17 simmel Is it possible to store files in a pillar? E.g. an security sensitive file.
12:19 vbabiy joined #salt
12:19 dh joined #salt
12:21 CeBe joined #salt
12:25 thayne_ joined #salt
12:25 majoh joined #salt
12:26 crane joined #salt
12:28 simmel I've seen https://github.com/saltstack/salt/issues/1543 but my data is binary
12:29 malinoff simmel, read this: https://github.com/saltstack/salt/issues/13510
12:31 jas-_ joined #salt
12:31 jaimed joined #salt
12:33 mgw joined #salt
12:35 jas-_ joined #salt
12:42 mgw1 joined #salt
12:48 jas-_ joined #salt
12:52 bmcorser is there a way to just compile my state tree to check for syntax error etc?
12:53 Sp00n you can run it as a test
12:53 xmj test=True
12:54 TheThing public global bool test = true;
12:56 miqui joined #salt
12:59 gmoro joined #salt
13:01 bhosmer joined #salt
13:04 racooper joined #salt
13:05 yomilk joined #salt
13:05 oz_akan_ joined #salt
13:07 oz_akan_ joined #salt
13:11 vbabiy joined #salt
13:11 ekristen joined #salt
13:12 babilen simmel: My recommendation would be: Use file.managed - contents_pillar and write your pillar in Python (essentially return a dictionary that contains one key .. the value is the content of the file and is being read directly from the filesystem)
13:17 ipmb joined #salt
13:25 mgw joined #salt
13:25 mapu joined #salt
13:27 danielbachhuber joined #salt
13:32 synical joined #salt
13:34 TyrfingMjolnir joined #salt
13:35 possibilities joined #salt
13:36 Lomithrani joined #salt
13:46 aquinas joined #salt
13:47 Lomithrani re, I get this error : http://pastebin.com/QsR8KVVC  , it was behaving normally this morning :(
13:47 babilen If I want to generate my own events I will have to write execution modules and trigger them or is there a better way?
13:47 babilen Lomithrani: It's obviously sleepy now
13:48 babilen Lomithrani: What's the state you use there?
13:48 jalbretsen joined #salt
13:48 Lomithrani babilen: archive.extracted
13:49 Hell_Fire joined #salt
13:49 babilen Lomithrani: Yes, sure .. I mean what is your entire definition and, in particular, the source_hash: value you set there?
13:49 diegows joined #salt
13:50 Lomithrani babilen: http://pastebin.com/wB7NELYB
13:50 Lomithrani this morning it was working fine :/
13:51 Lomithrani and the value I got it by dowloading the file and running md5sum  on it
13:51 Lomithrani forgot the md5=
13:51 Lomithrani T_T dunno when it left ... nvm sorry guys I really should get some sleep :/
13:54 babilen Lomithrani: Yes, it tells you that in the error message. The question is: What changed between this morning and now?
13:54 Lomithrani well I guess I removed the md5= but I don't know when how or why ....
13:55 babilen also, bleh for pastebin.com -- Support the blue ribbon campaign and use sensible pastebin websites such as http://refheap.com, http://paste.debian.net, http://paste.ubuntu.com and http://dpaste.com
13:55 babilen Lomithrani: Check your git logs?
13:58 babilen So, how would I go about raising my own events?
13:58 bhosmer_ joined #salt
13:59 babilen Some of my boxes need certificates and I want a central PKI to generate them and distribute those via the event system. What I would like to do now is to write some "states" that check if a client already has a (valid) certificate and for it to fire a "certificate request" event to the master if one is missing or invalid (outdated, ...)
14:00 babilen I know how to tie in some reactions to well known events, but I am not sure how to create a the "request a new certificate" one.
14:01 jbub joined #salt
14:01 vejdmn joined #salt
14:02 babilen What I would like to achieve right now is to react to a "key accept" even and then to trigger the "request certificate" one on the new minion. The cert request event should trigger the generation of a new certificate on the PKI which is then being returned to the master. The master hands that to the new minion and the minion eventually saves it.
14:11 Networkn3rd joined #salt
14:14 ramishra joined #salt
14:15 ajolo joined #salt
14:15 yomilk joined #salt
14:17 albertid joined #salt
14:18 simmel babilen: Thanks!
14:20 albertid Hi, I have in my pillar list of my app instances. What would be the way to go if I only want to include one of these in my highstate?
14:20 albertid a list*
14:20 albertid So, for a highstate call I want to filter this list to only include one instance
14:21 albertid Is that feasible?
14:23 CeBe joined #salt
14:24 ramishra joined #salt
14:24 alanpearce joined #salt
14:25 Outlander joined #salt
14:26 mateoconfeugo joined #salt
14:28 yomilk joined #salt
14:28 CeBe1 joined #salt
14:29 tyler-baker joined #salt
14:29 Tween joined #salt
14:30 Tween In the dockercon video, the output of the state commands had duration, is this a new feature in the version that was being run or is that possible to get now?
14:31 tedski i think that's new in helium
14:31 tedski i noticed that, too, though
14:31 TheThing helium \o/
14:31 Tween i currently have a state that takes ~30 minutes to run, and that would be very helpful at trimming the fat
14:32 otter768 joined #salt
14:33 econnell joined #salt
14:33 tedski Tween: you could do something hacky like cmd.wait with each state to output the timestamp and then calculate on your own
14:34 tedski Tween: here's where the Duration bits were added: https://github.com/saltstack/salt/pull/12345
14:34 Tween heh, pull req 12345
14:34 tedski i didn't even notice that
14:34 Tween thanks! i was just going to look that up
14:35 possibilities joined #salt
14:36 Tween maybe i should just use the develop branch
14:38 Miguel_London joined #salt
14:39 elfixit joined #salt
14:39 Networkn3rd joined #salt
14:40 Miguel_London whats the max connection on salt master
14:40 Tween over 9000
14:40 Miguel_London when connection minions
14:40 Miguel_London ok
14:40 Miguel_London pretty good
14:40 jslatts joined #salt
14:40 Networkn3rd joined #salt
14:40 Tween heh, that was a joke, but for the most part i think i've heard salt starts to break down around the 20k minions to 1 master mark
14:41 Tween of course it depends on specs of the master, connection etc
14:41 TheThing Pretty sure everything starts to break once you reach 20k+ minions ;)
14:41 TheThing or 20k+ anything really
14:41 Tween true that
14:42 Tween i think last month thatch said the largest deployment was somthing like 6.5k minions
14:42 Miguel_London 20000 minion per master
14:42 Miguel_London ?
14:42 Tween its a rough number based on a lot of things, but several thousand per master
14:42 Miguel_London why is it salt can handle so many and puppet can only handle 100
14:43 TheThing Because salt is awesome?
14:43 Networkn3rd joined #salt
14:43 simmel babilen: Using contents_pillar works awesomely, thanks!
14:43 DenkBret1l puppet can only manage 100 clients per master?
14:43 babilen simmel: Hooray!
14:43 Miguel_London Yes puupet brakes after 100 clients
14:44 DenkBrettl awesome
14:44 TheThing lol
14:44 TheThing seems very inefficient
14:53 ipmb joined #salt
14:53 ramishra joined #salt
14:55 krow joined #salt
14:55 flupke joined #salt
14:56 felskrone joined #salt
14:57 krow1 joined #salt
15:00 krow2 joined #salt
15:00 thedodd joined #salt
15:02 kballou joined #salt
15:03 tru_tru joined #salt
15:05 quickdry21 joined #salt
15:05 rallytime joined #salt
15:06 doddstack joined #salt
15:08 alanpearce joined #salt
15:13 mgw joined #salt
15:15 bhosmer_ joined #salt
15:18 conan_the_destro joined #salt
15:25 vbabiy joined #salt
15:25 lynxman joined #salt
15:30 malinoff joined #salt
15:31 dvogt joined #salt
15:34 TheRealBill_here joined #salt
15:40 repl1cant I haven't seen Puppet 'break' after 100 clients, it just depends on your deployment
15:40 repl1cant I've run at least 500 clients under one master
15:41 repl1cant The master setup is basically https requests, so you just scale it like you would a web app
15:43 tligda joined #salt
15:46 jslatts joined #salt
15:58 krow joined #salt
16:08 flupke Hi, I managed to get autoscale ec2 instances automatically accepted, but can't test.ping them.
16:09 ramishra joined #salt
16:09 flupke I suspect this is because they have salt minion config included in the AMI
16:12 flupke Because we have salt minion already setup in the VM used to create spot instances' AMI... How can I have salt-cloud replace /etc/salt/minion when the VM is created?
16:12 Sacro UtahDave: ping
16:15 flupke (I followed https://github.com/saltstack-formulas/ec2-autoscale-reactor to have instances automatically accepted by the master)
16:15 mateoconfeugo joined #salt
16:18 Outlander flupke: I had the same issue
16:18 Outlander salt -G 'id:blah’ cmd.run "hostname"
16:18 Outlander where blah is your minion_id that all the autoscale instances will have the same
16:18 Outlander will return a list of all the active nodes with that id
16:19 Outlander just using salt <key> whatever will only match the first node that answers, not all nodes, for nodes with preshared key
16:19 smcquay joined #salt
16:20 KyleG joined #salt
16:20 KyleG joined #salt
16:21 kaiserpathos joined #salt
16:22 flupke Outlander: looking at a minion logs, I see "The Salt Master has cached the public key for this node" errors
16:22 Eureka_ joined #salt
16:23 Outlander so it’s not accepted?
16:23 Outlander or it was previously accepted so now has a key mismatch problem?
16:23 flupke yes it was previously accepted
16:23 flupke since we provision our "master VM" with salt too
16:24 flupke so all minions have the same key...
16:25 Gareth morning
16:25 Outlander so there’s a way to do preshared keys
16:25 Outlander which is different from the usualy way of accepting a minion/key
16:25 Outlander that’s what I used
16:26 Outlander salt doco calls it preseed
16:26 Outlander http://docs.saltstack.com/en/latest/topics/tutorials/preseed_key.html
16:27 geekmush joined #salt
16:27 Miguel_London has whitespace, a function with whitespace is not supported, perhaps this is an argument that is missing a ":"
16:27 Outlander something else I noticed was that I had to drop the minion pub key into /etc/salt/pki/master/minions without the .pub extension or it wouldn’t work
16:28 Miguel_London any one know what this means ?
16:28 Outlander anyways I need to head to bed
16:28 flupke Ok thanks Outlander!
16:28 UtahDave Sacro: hey!  I only have a minute before I have to leave for a meeting.
16:33 felskrone hey dave
16:34 UtahDave hey, felskrone!
16:34 felskrone do you by any chance know how i can fix https://github.com/saltstack/salt/pull/13570 :-)
16:35 felskrone i think toms to busy to investigate and/or explain it to me :-)
16:36 UtahDave Hm. Let me grab a git expert for this one
16:36 TheRealBill_here joined #salt
16:37 vejdmn joined #salt
16:38 UtahDave felskrone: so git won't let you merge them at all now?  or github?
16:38 felskrone git does not, it tells me everything is up to date
16:38 felskrone if i change something in the branch and then merge, only the last change is merged
16:39 Whissi joined #salt
16:40 UtahDave OK, so from what I've been told git is seeing those commit sha's already in the repo, hence it telling you everything is up to date
16:40 UtahDave It doesn't see that they've been reverted.
16:40 troyready joined #salt
16:40 UtahDave So we can either revert the revert, or you can create a fresh branch based off the latest develop and cherry pick those commits into your new branch
16:40 joehillen joined #salt
16:41 UtahDave that will create new sha's for those commits and then you should be able to create a new pull request
16:41 felskrone awesome, ill try that!
16:41 UtahDave felskrone: does that make sense?  I'm not sure how clear I was.
16:41 felskrone yeah, it does
16:41 UtahDave cool.
16:41 felskrone ive never cherrypicked before, but i am able to read :-)
16:42 felskrone dont be late for your meeting! :-)
16:42 felskrone if you run into tom, tell him he does not need to answer anymore, ill will create a new PR
16:42 felskrone -ll
16:42 Tween git cherry-pick <commit-sha>
16:43 Sacro UtahDave: cool, was just about salt
16:43 felskrone Tween: great, saved me the googling :-)
16:44 campie joined #salt
16:44 UtahDave Sacro: cool. I'll be back in an hour or so.
16:44 UtahDave left #salt
16:44 campie howdy,
16:45 campie quick question, is there a module that allows me to move a file?
16:45 Tween yes
16:45 Tween file.rename
16:45 campie ah
16:45 Tween is ~= to move
16:45 campie dag
16:45 Tween file.copy would do what you expect
16:45 campie I was looking scanning on the file module but was looking for explicit 'move'
16:46 campie kool rename will work
16:46 campie thanks
16:46 Tween Sure thing
16:46 bhosmer_ joined #salt
16:47 possibilities joined #salt
16:48 Eureka_ Im having a hard time trying to use jinja / grains to modify a db connection string on a server that the db server is not running. Any suggestions?
16:49 Eureka_ Basically im not getting the IP address of the db server on my web server for some reason.
16:49 rowleyaj joined #salt
16:49 Tween you may want to look at salt mine
16:49 Tween not grains for getting the ip addr of the webserver
16:49 azylman joined #salt
16:50 Tween check out http://docs.saltstack.com/en/latest/topics/mine/ and http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.mine.html#module-salt.modules.mine
16:50 Tween your dbserver would push up its ip
16:50 Tween to the mine, and the webserver would pull it down
16:53 forrest joined #salt
16:54 Eureka_ Ah, ive been playing with mine. Still having a hard time figuring it out but I will check that out. Thank you!
16:54 Tween or if you know what the IP will be ahead of time you can use a pillar
16:54 TyrfingMjolnir joined #salt
16:54 Eureka_ In this case I wont know ahead of time. Only at instance create.
16:54 smcquay_ joined #salt
16:55 smcquay_ joined #salt
16:55 kermit joined #salt
16:56 Tween so i think how it would work, would be setting up your db with the mine_functions option, probably to get ip address like in the example
16:58 smcquay joined #salt
16:58 kivihtin joined #salt
16:58 Tween then you would target your db on a webserver, module.run: mine.get - tgt: 'role:db' - expr_form: 'grain' - fun network.ipaddrs
16:59 Tween err actually i think thats wrong :-p
17:00 schimmy joined #salt
17:01 Tween you can do a set {% set db_addr = salt['mine.get]('roles:db', 'network.ip_addrs', expr_form='grain' %} then can reference with {{ db_addr }}
17:02 campie is there a module to print all env variable from linux minion?
17:02 campie when I run cmd.run 'env' ; does not give me what I would expect env would provide
17:02 Tween http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.environ.html#salt.modules.environ.items
17:03 campie amazing...
17:03 schimmy1 joined #salt
17:03 campie thanks Tween
17:03 Tween Cheers
17:03 bhosmer joined #salt
17:03 druonysus joined #salt
17:03 druonysus joined #salt
17:05 saturdayplace joined #salt
17:09 ramishra joined #salt
17:10 tkharju2 joined #salt
17:17 TheRealBill_here joined #salt
17:18 krow joined #salt
17:18 shaggy_surfer joined #salt
17:19 kermit joined #salt
17:23 TheRealBill_here joined #salt
17:24 bhosmer joined #salt
17:24 bhosmer_ joined #salt
17:25 schimmy joined #salt
17:27 ajw0100 joined #salt
17:27 ipalreadytaken joined #salt
17:27 tkharju2 joined #salt
17:28 schimmy1 joined #salt
17:29 econnell1 joined #salt
17:31 Kenzor joined #salt
17:33 Ryan_Lane joined #salt
17:34 kermit joined #salt
17:37 t0rrant joined #salt
17:37 mephx joined #salt
17:39 bensons 5~
17:39 johngrasty joined #salt
17:39 dancat How to I have salt install python dependencies using pip instead of default package installer
17:40 jalaziz joined #salt
17:40 dancat I looked for examples and I am having a hard time finding any
17:40 Tween http://docs.saltstack.com/en/latest/ref/states/all/salt.states.pip_state.html#module-salt.states.pip_state
17:40 dancat thanks!
17:40 Tween http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.pip.html#module-salt.modules.pip
17:41 johngrasty Hi all. I'm new to salt (I used to use ansible), and I am beginning to wrap my head around it. I ran into an issue with the nginx-ng formula. Is this the right channel to ask?
17:41 possibilities joined #salt
17:41 Tween probably
17:43 johngrasty Ok. I'm runnign 2014.1.5 on master and minion. I'm not doing anything fancy with the pillar or formula file, but I am getting this error: TypeError: get() got an unexpected keyword argument 'merge'
17:43 dvogt joined #salt
17:44 Tween what when running a state?
17:44 MTecknology all of a sudden, one of my boxes is telling me "Failed sign in" when I try to run salt-minion... :S
17:44 econnell2 joined #salt
17:45 johngrasty Tween: Yes.
17:45 Tween where did you find the nginx-ng forumla?
17:45 johngrasty ghttps://github.com/saltstack-formulas/nginx-formula
17:45 MTecknology johngrasty: you should get more details such as a short stacktrace which tells you the state that caused the issue as well as the line number
17:46 Tween ^ That would be helpful
17:46 johngrasty I will pastebin it momentarily. Thanks for the help!
17:47 MTecknology a pbin of  salt-call --versions-report  from both minion and master would also be helpful
17:47 thayne_ joined #salt
17:47 johngrasty http://pastebin.com/ntvuQk1F is the stack trace.
17:49 MTecknology {% set nginx = salt['pillar.get']('nginx:ng', {      <-- looks like some stuff is missing
17:50 shaggy_surfer joined #salt
17:50 MTecknology or not
17:50 MTecknology johngrasty: salt-call --versions-report
17:51 johngrasty MTecknology: master and minion  http://pastebin.com/7Mz8RD9q
17:52 * MTecknology isn't sure how merge is used or what it's supposed to do
17:53 MTecknology I'm sure pillar.get doesn't have it, though
17:53 Tween its a jinja thing
17:53 Tween http://makina-corpus.com/blog/metier/2014/saltstack-merge-dictionaries-of-settings-with-grains-filter_by
17:54 MTecknology that shows an entirely different usage
17:55 Eureka_ Tween: Thanks for the help earlier. I think i figured it all out and I was able to use mines + templates to do it =)
17:56 Tween Eureka_: No problem, glad you got it figured out!
17:56 Tween Did setting the variable work?
17:56 Tween i actually ahven't used mines all that much
17:57 MTecknology Tween: according to that page you linked to, wouldn't the usage look more like this? https://gist.github.com/MTecknology/8f13409af5b17d09e1f8
17:58 johngrasty Thanks for the help, guys. The github formula was literally just updated. Apparently the merge=true is just available in the development branch.
17:58 MTecknology oh
17:59 MTecknology johngrasty: thanks for sharing
17:59 Tween lol
17:59 Tween terminalmage: ninja edit?
18:00 terminalmage eh?
18:00 terminalmage oh, the nginx formula?
18:00 terminalmage yeah, well I have push access
18:00 terminalmage :)
18:04 johngrasty terminalmage: Thanks!
18:05 jagster02 joined #salt
18:07 Tween joined #salt
18:08 sxar_ joined #salt
18:08 Kenzor joined #salt
18:09 terminalmage no prob
18:09 terminalmage I think whoever edited that jinja map last must have been running off the develop branch
18:09 krow joined #salt
18:11 krow1 joined #salt
18:12 ajw0100 joined #salt
18:12 azylman_ joined #salt
18:13 mgw joined #salt
18:16 spidermo joined #salt
18:16 possibilities joined #salt
18:17 picker joined #salt
18:22 Ryan_Lane joined #salt
18:22 Ryan_Lane joined #salt
18:25 Ryan_Lane howdy. when's the RC being cut?
18:26 ckao joined #salt
18:26 spidroid joined #salt
18:27 ml_1 joined #salt
18:28 patrek_ joined #salt
18:28 krow joined #salt
18:30 kermit joined #salt
18:32 shaggy_surfer joined #salt
18:33 MTecknology another one?
18:33 MTecknology I haven't finished updating to 2014.1.5 yet...
18:34 analogbyte joined #salt
18:37 terminalmage MTecknology: RC for the next feature release
18:37 terminalmage Ryan_Lane: soon, within the next week most likely
18:37 * MTecknology wants to always be on the latest salt
18:38 Ryan_Lane cool. I'm currently creating a relocatable venv and sticking it into S3
18:38 Ryan_Lane I'd like to stop doing that :)
18:38 terminalmage Ryan_Lane: we had to work through getting RAET working well and passing tests
18:38 Ryan_Lane ah, ok
18:38 terminalmage we squashed several issues and have it almost 100% passing tests
18:38 Ryan_Lane excellent
18:38 Kenzor joined #salt
18:38 terminalmage that's the only remaining blocker
18:39 terminalmage Ryan_Lane: refresh my memory, what is your environment?
18:39 terminalmage what distro?
18:39 Ryan_Lane ubuntu
18:39 terminalmage ok
18:39 Ryan_Lane RC ubuntu packages would be *awesome*
18:39 terminalmage because there is a new dependency that is still blocked for RHEL 5 and RHEL 7
18:39 MTecknology host salt.domain.tld <-- shows the right IP;  telnet salt.domain.tld 4505 <-- tries connecting to the wrong IP;  and that's why salt-minion is failing to authenticate
18:39 ramishra joined #salt
18:39 terminalmage trying to get it built
18:39 MTecknology da crap?..
18:39 Ryan_Lane a RC PPA would be excellent
18:40 terminalmage Ryan_Lane: a separate one?
18:40 Ryan_Lane yes
18:40 terminalmage yeah that is a good idea
18:40 MTecknology iirc, ya'll been discussing that
18:41 johngrasty Okay. Another noob question. I've got the formula mostly working, but it is not respecting the filter by os in map.jinja file. I created a new block for our OS (SmartOS), but it only uses it if I change the default to "SmartOS". Any ideas?
18:43 johngrasty salt -G 'os:SmartOS' test.ping filters correctly, but the formula is not (or I messed something up! :-D).
18:43 Ryan_Lane oh man, it would be excellent if I could run state.template with an S3 URL
18:49 jnials joined #salt
18:50 chrisjones joined #salt
18:53 otter768 joined #salt
18:54 spidroid left #salt
19:03 dvogt joined #salt
19:05 meteorfox joined #salt
19:07 ajolo joined #salt
19:08 doddstack joined #salt
19:12 zirpubolci joined #salt
19:13 bhosmer joined #salt
19:15 jalaziz joined #salt
19:16 Kenzor joined #salt
19:17 jalaziz_ joined #salt
19:18 stanchan joined #salt
19:20 dvogt joined #salt
19:21 jnials_laptop joined #salt
19:28 jnials joined #salt
19:36 catpig joined #salt
19:40 ramishra joined #salt
19:47 possibilities joined #salt
19:54 krow joined #salt
19:55 kaiserpathos joined #salt
19:58 mgw1 joined #salt
20:01 whiteinge johngrasty: filter_by defaults to the ``os_family`` grain not the ``os`` grain
20:02 druonysuse joined #salt
20:02 druonysuse joined #salt
20:05 econnell1 joined #salt
20:10 oz_akan__ joined #salt
20:13 oz_akan__ joined #salt
20:14 campie quick question
20:14 babilen too slow
20:14 campie I have noticed that when I went I say, tell a minion to delete a file
20:14 campie it returns saying that there is no file to delete,
20:15 campie when I checked the box, found out that salt created two processes
20:15 campie one that deleted the file, and the second one that tried to deleted and reported back that there was no file to delete
20:16 campie it just happened again trying to start a service with the supervisord module
20:16 babilen That would be a bug. Could you paste some more detailed information to, say, http://paste.debian.net ?
20:16 campie claiming that it had already started,
20:16 campie k
20:17 vbabiy joined #salt
20:18 campie nvm, it seems that there are two minion daemons running..
20:18 campie sorry for that
20:18 vbabiy joined #salt
20:20 scoates joined #salt
20:25 dalexander joined #salt
20:27 chrisjones joined #salt
20:33 Eureka_ MTecknology: did you fix your ip isse?
20:36 ninkotech_ joined #salt
20:36 yomilk joined #salt
20:37 babilen campie: heh
20:38 schimmy joined #salt
20:40 sirtaj joined #salt
20:41 ramishra joined #salt
20:41 terminalmage johngrasty: I had to revert that change to the nginx.ng formula
20:41 terminalmage https://github.com/saltstack-formulas/nginx-formula#nginxng
20:41 terminalmage it is only compatible with the upcoming release
20:41 terminalmage missed that in the readme
20:42 sgate1 joined #salt
20:45 donnyk joined #salt
20:47 possibilities joined #salt
20:48 donnyk hi, how can I get upper case "host" grain item?  This is for templated managed file.  I don't care what renderer is used.
20:55 forrest donnyk, http://jinja.pocoo.org/docs/templates/#id7
20:55 forrest for most values you'd want to use {{ salt['grains.get']('host')|upper }}
20:56 mateoconfeugo joined #salt
20:59 donnyk forrest, thank you!
20:59 mgw joined #salt
20:59 forrest np
21:00 ajolo joined #salt
21:00 tligda1 joined #salt
21:01 oz_akan_ joined #salt
21:01 gzcwnk joined #salt
21:03 gzcwnk is there a way in a .sls file to check and add or edit files? eg inject "net.ipv6.conf.all.accept_redirects=0" into /etc/sysctl.conf?
21:03 schimmy1 joined #salt
21:05 schimmy2 joined #salt
21:08 obimod joined #salt
21:09 robawt joined #salt
21:09 forrest gzcwnk, http://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.append
21:10 gzcwnk ta, I'd only read as far as 22.26.30   :/
21:10 gzcwnk lol
21:11 smcquay joined #salt
21:11 gzcwnk wrong way...must of missed it
21:12 whytewolf if it is for sysctl I perfer http://docs.saltstack.com/en/latest/ref/states/all/salt.states.sysctl.html which keeps the file updated, AND sets it right then
21:13 saturdayplace1 joined #salt
21:15 gzcwnk yeah im trying to write a setup to meet the cissecurity.org recommended settings
21:15 gzcwnk that looks perfect, are there any examples about?
21:18 MTecknology Eureka_: yup... entry in the hosts file :S
21:18 krow joined #salt
21:18 MTecknology not sure why it was there, but... w/e
21:19 thayne_ joined #salt
21:22 busted joined #salt
21:40 donnyk is it possible to have multiple managed files under a single state id?  Or do I have to break every one of them into a separte state id?
21:42 steveoliver donnyk: are you wanting to templatize each?  because you can just use file.directory if not
21:44 donnyk yes, I wanted to use templates.  It's getting a little cumbersome to add "requires" and list all the packages and files.  I was wondering if I could put everything under the same state ID, and put requires on that
21:45 taterbase joined #salt
21:45 shaggy_surfer joined #salt
21:47 donnyk for example, "apache" state installs package, copies a few managed files, creates users.  If I then want to write apache_service that ensures the service is running, I have to do requires with all the users, files, and packages installed by apache state?
21:47 possibilities joined #salt
21:48 gzcwnk hi, trying to config sysctl and I got an error, any idea whats wrong pls?  http://dpaste.com/32NG4ZS
21:51 steveoliver donnyk: I'd review http://docs.saltstack.com/en/latest/topics/tutorials/states_ordering.html
21:53 steveoliver because you may be able to achieve what you want with ordering alone (to ensure pieces are in place in the right order for the whole state to succeed) and use watch to actually trigger a service reload when config-holding files are changed by Salt
21:53 steveoliver but to templatize, each file needs its own definition in a state file
21:53 steveoliver (I believe)
21:55 steveoliver since the top file supports templating, you may be able to get tricky with how you list your 'requires' items if you really do need to explicitly require manu
21:55 toastedpenguin joined #salt
21:55 steveoliver s/manu/many/
21:57 dalexander_ joined #salt
21:58 ndrei joined #salt
21:58 ndrei_ joined #salt
21:59 AdamSewell joined #salt
22:05 whytewolf gzcwnk: I couldn't tell you but i think it has to do with sysctl directly. I just tried it myself. I had to run sudo sysctl -w net.ipv6.conf.all.accept_redirects=0 once i did that the state ran fine, but before hand it acted like the ipv6 module wasn't loaded
22:05 Ryan_Lane if you have more than pillar root and have a top.sls in each, do all of the top.sls files get evaluated? or just one?
22:06 Ryan_Lane ugh. it looks like only one of the top.sls files is evaluated.
22:07 TheThing more than pillar root? You mean multiple pillar roots in the configuration?
22:07 Ryan_Lane yeah
22:07 TheThing could just create the multiple pillar roots as sub-folders in the main pillar-root and then just include them all
22:08 Ryan_Lane I'm including pillars from multiple repos
22:08 gzcwnk wytewolf a bug maybe?
22:08 gzcwnk I have run it with other settings like log_martians fine
22:09 bhosmer joined #salt
22:10 whytewolf gzcwnk: maybe, i would ask one of the developers here who know more then i do about it. i find it odd that once i ran the sysctl command to change the setting the state worked fine afterwords. but was erroring out before hand.
22:11 mateoconfeugo joined #salt
22:11 eightyeight so, /var/cache/salt/master/jobs/ has _completely_ consumed all of the inodes on our filesystem
22:11 eightyeight are these safe to clear up?
22:11 Ryan_Lane oh well. I worked around the issue
22:12 lionel joined #salt
22:12 eightyeight hmm. "keep_jobs: 24"
22:12 eightyeight seems reasonable
22:13 eightyeight https://github.com/saltstack/salt/issues/10443
22:14 Hell_Fire_ joined #salt
22:18 busted i have a job opening for a system engineer in seattle.  linux shop using salt and other interesting tech to manage server farms.  /msg me if interested
22:19 KyleG Seattle huh..
22:19 KyleG I've been watching A LOT of "The Killing" on Netflix lately
22:19 KyleG lol
22:20 kermit joined #salt
22:20 gzcwnk ug, usa
22:21 busted not as murderous here as you may think
22:21 gzcwnk LOL, yeah right, 10,000 deaths due to guns every year
22:21 eightyeight http://i.imgur.com/wDsIjEu.jpg
22:22 gzcwnk NZ, about 20
22:22 gzcwnk if that
22:22 whytewolf gzcwnk: okay, looking at the source code of state.sysctl.present it checks that the value is listed in sysctl.show before it does anything. and sysctl.show is just sysctl -a
22:22 gzcwnk whytewolf every other setting Im doing works fine, so that suggests a bug in salt
22:23 manfred gzcwnk: what are you doing?
22:23 gzcwnk writing a .sls to meet cissecurity requirements
22:23 gzcwnk i got this error http://dpaste.com/32NG4ZS
22:23 manfred gzcwnk: it is redirects
22:23 gzcwnk on just one setting on RHEL7
22:23 manfred not redirect
22:24 gzcwnk oh k
22:24 gzcwnk ta
22:24 manfred yw
22:24 gzcwnk lemme run that
22:25 gzcwnk :D 9 succeeds
22:25 whytewolf lol, I compleatly missed the s
22:28 bhosmer joined #salt
22:28 gzcwnk tricky little sucker
22:29 gzcwnk is there a module to fix up limits.conf?
22:30 whytewolf that one is going to have to be a state.file
22:30 forrest why not just make it a managed file
22:30 manfred file.append
22:31 gzcwnk k, ta
22:31 yomilk joined #salt
22:31 aquinas joined #salt
22:33 TheThing joined #salt
22:36 tligda joined #salt
22:36 DaveQB joined #salt
22:37 acabrera joined #salt
22:38 aquinas joined #salt
22:39 tligda1 joined #salt
22:43 mosen joined #salt
22:47 aquinas joined #salt
22:47 possibilities joined #salt
22:49 krow joined #salt
22:50 bhosmer_ joined #salt
22:55 a1j joined #salt
22:55 a1j https://github.com/saltstack/raet clever stuff, i hope it gets to release soon.
22:56 manfred a1j: supposedly they want it to be released next week
22:56 manfred for rc1
22:57 manfred but we will see
22:58 bhosmer_ joined #salt
23:01 jnials joined #salt
23:02 yomilk joined #salt
23:02 deny[all] joined #salt
23:08 bhosmer joined #salt
23:11 claytron joined #salt
23:11 TheThing_ joined #salt
23:12 schimmy joined #salt
23:13 saturdayplace1 left #salt
23:14 flebel joined #salt
23:14 Ryan_Lane joined #salt
23:14 tedski joined #salt
23:14 Hell_Lap joined #salt
23:14 AnswerGuy joined #salt
23:15 eliasp joined #salt
23:15 schimmy1 joined #salt
23:16 dancat joined #salt
23:16 mosen so i don't understand completely, but would salt eventually ditch zmq for something more lightweight?
23:17 manfred mosen: no
23:17 forrest mosen, are you watching the salt air from a few weeks ago?
23:17 manfred zmq is still the default
23:18 manfred they are just making it so that we can add more transport layers
23:18 mosen forrest: nope, im really super new to salt
23:18 manfred mosen: http://www.youtube.com/watch?v=SI5J43UkarM
23:18 forrest yea that's the best explanation
23:18 forrest very clearly explains the goal
23:18 mosen ok will watch
23:18 joehh Ryan_Lane: nightly ubuntu packages coming this weekend - RC builds should be available shortly after the rc is released
23:19 Ryan_Lane excellent :)
23:19 Ryan_Lane joehh: is that going to be a separate PPA as well?
23:19 Ryan_Lane or in the daily?
23:21 a1j manfred: lets hope so, cause i had problem with "syn flood" and mission output on returner tcp port right from the beginning.
23:21 a1j missing*
23:21 shaggy_surfer joined #salt
23:24 chrisjones joined #salt
23:24 bhosmer joined #salt
23:25 repl1cant joined #salt
23:30 donnyk has anyone used tomcat module?  I set tomcat-manager:user tomcat-manager:passwd pillar items, but it still complains there's no user or password set.  I can see them set via salt '*' pillar.items.  I'm using trunk version of the module https://github.com/saltstack/salt/blob/develop/salt/modules/tomcat.py
23:32 joehoyle joined #salt
23:32 donnyk the module uses salt.utils.traverse_dict_and_list(struct, entry, '_|-') where entry is "'tomcat-manager:user" .  So a pillar entry like "tomcat-manager:user: tomcat" should work?
23:37 AdamSewell joined #salt
23:38 bhosmer_ joined #salt
23:43 ramishra joined #salt
23:44 ajolo joined #salt
23:47 possibilities joined #salt
23:51 ingwaem joined #salt
23:51 krow joined #salt
23:51 bhosmer joined #salt
23:54 yomilk joined #salt
23:55 Outlander joined #salt
23:59 joehh Ryan_Lane: probably, haven't decided that yet, it is likely to depend on how and when the RC is branched

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