Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-01-15

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

All times shown according to UTC.

Time Nick Message
00:04 shaggy_surfer joined #salt
00:04 aparsons joined #salt
00:06 nmadhok hello
00:07 UtahDave hey, nmadhok
00:07 nmadhok what's up
00:07 UtahDave iggy: most bugfixes should be backported to the 2014.1 branch
00:08 iggy UtahDave: is that written anywhere? I've seen a few people say in here various subtly different things.
00:08 nmadhok @UtahDave I heard from someone that all bug fixes won't be applied to 2014.1 branch any longer
00:08 mark__ joined #salt
00:08 UtahDave starting with the 2014.7 branch we changed our git workflow so that now bugfixes can just be added to 2014.7 and then easily merged forward into all future branches, such as 2015.2, as well as develop
00:08 nmadhok and will only be applied to 2014.7 branch
00:08 nmadhok is that correct?
00:09 UtahDave 2014.1 branch still has to have things manually cherry picked into it, so it's a longer more manual process
00:09 nmadhok ahhh
00:10 UtahDave 2014.1 will be supported for a little while longer. at least until 2015.2 is fully baked and released.  I'm not sure we have a hard date on when 2014.1 branch will stop getting bugfixes.
00:10 nmadhok alright
00:12 iggy UtahDave: you think it'll get another release?
00:15 desposo joined #salt
00:16 smcquay joined #salt
00:17 vbabiy joined #salt
00:19 TyrfingMjolnir joined #salt
00:23 druonysus joined #salt
00:23 druonysus joined #salt
00:26 otter768 joined #salt
00:27 theologian joined #salt
00:31 jm_sn joined #salt
00:31 TheThing joined #salt
00:31 davebarnes is 2015.2 the next release?
00:32 yomilk joined #salt
00:32 iggy yes
00:33 aqua^mac joined #salt
00:36 UtahDave hey, iggy, just had a conversation with one of our QA engineers
00:36 UtahDave about the branches
00:36 UtahDave I guess we're not going to have any more 2014.1 branch releases.
00:37 iggy ok
00:37 UtahDave There have been a few bug fixes that people have made against that branch, so you could use the bootstrap script or salt-cloud to install from the head of that branch
00:37 iggy I have been
00:38 iggy it's kind of a pita, but it's working for now
00:38 jm_sn Hi there - Is there a way to change the grains node_type of a minion? That is to say I used a particular cloud.profile to create minion of node_type 'webserver' but I want to reassign it to 'ci'. I'm guessing this isn't possible but figured I'd ask the experts.
00:39 iggy I imagine there's going to be a push for me to start using tagged releases at some point, which probably pushes me back to 2014.1.10 (as every release after that has had one problem or another for us)
00:39 iggy UtahDave: thanks for asking about for me (still would be nice to get that stuff written down somewhere)
00:39 UtahDave iggy: I agree. I'm going to push to have a roadmap put up so everyone is aware.
00:40 UtahDave jm_sn: what do you mean by node_type?
00:40 iggy jm_sn: it's probably in /etc/salt somewhere
00:41 jm_sn UtahDave - I'm referring to the grains: node_type that can be added to the cloud yaml file. We use the node_type for top file matching.
00:42 cpt-oblivious joined #salt
00:42 cpt-oblivious joined #salt
00:42 UtahDave jm_sn: it's probably in your  /etc/salt/grains file
00:43 jm_sn UtahDave - is that on the minion?
00:43 * iggy crosses his fingers that 2014.7.1 is without any major bugs
00:43 iggy jm_sn: grains are always set on the minion
00:43 TheThing joined #salt
00:44 UtahDave iggy: I'm pretty hopeful. Our QA team has really been polishing it.
00:44 jm_sn Thanks guys! It does still say 'webserver'. I did execute saltutil.sync_grains on master, but that didn't seem to work
00:45 TheThing joined #salt
00:45 UtahDave jm_sn: can you pastebin your /etc/salt/grains file?   (sanitized)
00:46 iggy jm_sn: you have to restart the minion to reread the config
00:47 jm_sn iggy: yeah I was wondering about that. Is that something I can do from a salt command or just a system reboot?
00:47 iggy service salt-minion restart
00:48 iggy you could do it from salt: salt 'minion_id' service.restart salt-minion
00:48 jm_sn Hmm, I did do that.
00:48 jm_sn and that :)
00:48 yomilk_ joined #salt
00:49 iggy grep -rin node_type /etc/salt
00:49 bhosmer_ joined #salt
00:50 ajw0100 joined #salt
00:53 jm_sn last line of output is: /etc/salt/cloud:61:            node_type: ci
00:55 UtahDave jm_sn: did you run iggy's command on the salt master or the minion?
00:56 TyrfingMjolnir joined #salt
00:56 jm_sn I'm guessing that saltutils,sync_grains is doing the right thing, from it's POV. The minion was created with the webserver grain. Could I manually edit that file?
00:57 UtahDave jm_sn: yes you can manually edit  /etc/salt/grains on the minion.  It must be valid yaml
00:57 iggy sync grains doesn't do what you think
00:58 iggy it sync's custom grain modules under /srv/salt/_grains from the master to the minions
00:59 iggy in reality... why not just spin up a new "ci" instance and kill the webserver one?
00:59 jm_sn Great, thanks for the help guys. I will give it a try
01:03 cberndt joined #salt
01:04 mrjk hi
01:04 davebarnes hi
01:05 mrjk I’d like to store the result of « salt '*' ssh.host_keys » into the pillar when i do an hightstate. Is it possible ?
01:05 davebarnes yeah
01:05 mrjk (i’d like to manage all my ssh host key)
01:06 davebarnes you could do: --out=json --static
01:06 davebarnes then process the result with a script
01:06 murrdoc also install jq
01:06 murrdoc so u can handle json in bash
01:06 aurynn httpie + jq == yay
01:06 jm_sn @iggy Indeed that's what I was going to do. But I'd have to wait until the ci server is not being used, etc. Anyway, I changed /etc/salt/grains, reran state.highstate and it picked up everything.
01:06 mrjk there’s no better way ? I mean, I believed waht i want to achieve is common, no ?
01:07 dude051 joined #salt
01:07 hasues joined #salt
01:07 hasues left #salt
01:07 iggy mrjk: there are lots of returners that you could then feed back through ext_pillar
01:07 iggy mrjk: not common, no
01:09 mrjk hum, what the main use of modules if you cannot easily use their output ?
01:09 mrjk s/what/what is/
01:09 iggy to do the heavy lifting for states
01:09 iggy and to use on the command line
01:11 mrjk okk
01:14 mrjk pfff, not so easy then
01:14 iggy what are you really trying to do?
01:15 iggy generally if I get the answer "no, that's not normal usage" I try asking different questions
01:19 aqua^mac joined #salt
01:22 mrjk iggy: you’re right, I may have not fully understood the key concepts. I try to manage a little SSH PKI for deploying host key of all know hosts
01:25 saurabhs left #salt
01:28 malinoff joined #salt
01:31 neogenix joined #salt
01:34 shaggy_surfer joined #salt
01:42 smcquay joined #salt
01:47 Ryan_Lane joined #salt
01:47 TyrfingMjolnir joined #salt
01:53 monkey661 joined #salt
01:55 mikaelhm joined #salt
01:57 druonysuse joined #salt
01:57 druonysuse joined #salt
01:59 JimmyJames joined #salt
02:07 ekristen joined #salt
02:10 schristensen joined #salt
02:11 smcquay joined #salt
02:13 Ryan_Lane joined #salt
02:16 cpt-oblivious joined #salt
02:16 cpt-oblivious joined #salt
02:16 nmadhok joined #salt
02:18 sbx joined #salt
02:21 cads joined #salt
02:24 Furao joined #salt
02:27 otter768 joined #salt
02:35 jalbretsen joined #salt
02:38 pviktori joined #salt
02:38 klotho joined #salt
02:45 Mso150_h joined #salt
02:49 zzzirk joined #salt
02:55 monkey661 left #salt
02:58 elco_ joined #salt
03:00 mosen joined #salt
03:00 elco_ joined #salt
03:04 JlRd joined #salt
03:07 Gnouc joined #salt
03:09 mosen joined #salt
03:13 Blacklite so far this week i've set up like 15 applications on salt
03:13 Blacklite it has saved my sanity <3
03:21 CheKoLyN joined #salt
03:23 shaggy_surfer joined #salt
03:23 Ch3LL_ joined #salt
03:25 dude051 joined #salt
03:28 Ch3LL_ joined #salt
03:28 Furao joined #salt
03:38 StDiluted joined #salt
03:41 dude051 joined #salt
03:50 rawzone^ joined #salt
03:58 yomilk joined #salt
04:03 ajw0100 joined #salt
04:04 bhosmer joined #salt
04:11 _JZ_ joined #salt
04:13 asdf___ joined #salt
04:13 zmodemz joined #salt
04:13 zmodemz any one know if this bug also effects the Linux client as well? I am seeing almost exact behaviour https://github.com/saltstack/salt/pull/19350
04:28 otter768 joined #salt
04:30 jerematic joined #salt
04:39 oldmantaiter joined #salt
04:42 favadi1 joined #salt
04:45 zmodemz The answer is yes... yes it is
04:46 bhosmer joined #salt
04:50 bhosmer joined #salt
04:53 dude051 joined #salt
05:00 twellspring joined #salt
05:02 hal58th1 joined #salt
05:04 kermit joined #salt
05:23 bhosmer joined #salt
05:25 Mso150 joined #salt
05:31 jerematic joined #salt
05:36 [vaelen] joined #salt
05:38 felskrone joined #salt
05:38 saravanans joined #salt
05:38 mohae joined #salt
05:40 agend joined #salt
05:42 zmodemz left #salt
05:43 favadi1 joined #salt
05:50 ramteid joined #salt
05:51 yomilk_ joined #salt
06:03 murrdoc joined #salt
06:03 TyrfingMjolnir joined #salt
06:06 mosen joined #salt
06:14 catpigger joined #salt
06:18 bastiandg joined #salt
06:20 favadi joined #salt
06:20 maxskew joined #salt
06:28 otter768 joined #salt
06:29 portablejim joined #salt
06:32 calvinh joined #salt
06:35 Furao joined #salt
06:36 favadi joined #salt
06:36 calvinh joined #salt
06:39 Ryan_Lane joined #salt
06:45 portablejim joined #salt
06:47 calvinh_ joined #salt
06:50 yomilk joined #salt
06:58 colttt joined #salt
06:59 Furao joined #salt
07:05 jerematic joined #salt
07:10 favadi joined #salt
07:12 favadi joined #salt
07:14 malinoff joined #salt
07:20 flyboy joined #salt
07:21 hojgaard joined #salt
07:23 ndrei joined #salt
07:24 favadi joined #salt
07:26 calvinh joined #salt
07:36 jester1 joined #salt
07:36 jester1 does anyone know what the variable "media link :" means for azure cloud  profile. ?
07:37 teohhanhui joined #salt
07:38 hvn joined #salt
07:38 KermitTheFragger joined #salt
07:47 jester1 is there a way to see logs for salt cloud so i can get a broader understanding of what conflicts are taking place
07:50 jester1 omg buggiest cloud script so far... azure cloud .... shite.
07:51 trikke joined #salt
07:51 Auroch joined #salt
07:52 saravanans joined #salt
07:55 Furao salt-cloud -l all
07:56 dkrae joined #salt
07:57 JlRd joined #salt
07:58 calvinh_ joined #salt
07:59 elco__ joined #salt
08:00 slafs joined #salt
08:00 slafs left #salt
08:03 hebz0rl joined #salt
08:09 Nijjan1 joined #salt
08:09 Nijjan1 -b Who likes this game ? https://www.youtube.com/watch?v=7ELS9t3jd8k
08:12 zadock joined #salt
08:13 lb1a joined #salt
08:20 bluenemo joined #salt
08:21 bluenemo hi guys. I'm wondering what the use of the tilde (~) operator is in the following statement: {%- set rcomment = ' ; ' ~ r.comment -%}    r.comment is a string.
08:22 AndreasLutro joined #salt
08:28 cberndt joined #salt
08:29 otter768 joined #salt
08:35 alanpearce joined #salt
08:36 kitp joined #salt
08:37 aqua^mac joined #salt
08:40 kawa2014 joined #salt
08:43 harkx joined #salt
08:48 teohhanhui string concatenation
08:50 akafred joined #salt
08:53 ndrei joined #salt
08:55 Mindfart joined #salt
08:57 kbyrne joined #salt
08:58 Gnouc joined #salt
08:59 farquaad joined #salt
09:00 saravanans joined #salt
09:01 chiui joined #salt
09:01 rjc joined #salt
09:01 tux__ joined #salt
09:03 Andre-B joined #salt
09:08 jhauser joined #salt
09:09 JDog joined #salt
09:10 Gnouc joined #salt
09:11 cuonglm joined #salt
09:12 asyncsrc joined #salt
09:17 bluenemo teohhanhui, thank you
09:22 the_drow joined #salt
09:23 JDog I've got a couple of issues using the pyobjects renderer. THe first question is "Can I just use execution modules directly in the form salt.modules.<modulename>.function(args)
09:24 JDog It seems that, for instance, git requires I do salt.modules.git.clone (for example). Git.clone yields different results, yet Pkg.installed works as expected. (as in capital "P")
09:30 mortis__ any due date for 2014.7.1?
09:30 mortis__ or whatever next version will be :)
09:33 Raging_Fenrir joined #salt
09:36 babilen mortis__: It's been released, but hasn't been packaged
09:37 mortis__ babilen: aha cool :)
09:37 mortis__ tnx
09:39 intellix joined #salt
09:40 jrluis joined #salt
09:41 paulm- joined #salt
09:43 babilen JDog: My understanding was that the pyobjects renderer creates objects (capitalised name) for each available state and that you should use those. That doesn't necessarily mean that "normal" Python calls don't work, but I don't necessarily think that you are supposed to use them in this context.
09:43 babilen So: If "Git.clone" doesn't do what you want it to then one should investigate that
09:43 JDog babilen: thanks
09:44 babilen And keep in mind that we are talking about *states* here and that salt.modules.git.clone is a *module* call. You actually want http://docs.saltstack.com/en/latest/ref/states/all/salt.states.git.html and salt.states.git.latest at that (or in the context of pyobjects Git.latest)
09:45 babilen There should, in fact, not be a Git.clone AFAIUI
09:55 simmel joined #salt
09:57 JDog babilen: According to http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.git.html there is. Unless I'm using everything wrongly...
09:59 babilen There is what?
10:01 JDog Damn, been a bit poorly recently. I completely didn't read your post.
10:01 babilen "Pyobjects takes care of creating an object for each of the available states on the minion. Each state is represented by an object that is the CamelCase version of its name" - http://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.pyobjects.html
10:01 Ossy_ joined #salt
10:01 babilen This is talking about states, not execution modules
10:01 JDog Ok, so how do I use the execution modules in salt states?
10:03 babilen As I said: I don't see why you shouldn't be able to call them normally (plain Python), but do not expect pyobjects to do anything special about execution modules
10:03 Ossy_ left #salt
10:04 JDog What do you mean about "Anything special?"
10:05 babilen It does not create a CamelCased object
10:05 babilen (or whatever else it does with states)
10:06 JDog Ok. So I should just be able to call salt.modules.git.clone as doc'd in the execution modules?
10:07 babilen Yeah, but ... well ... that wouldn't necessarily be appropriate. The right way to go about your problem would be to extend/add to the git *state* if the functionality provided in there isn't what you are looking
10:07 babilen Please note that, so far, we have not talked about your actual problem but between the differences between states and execution modules in the context of the pyobjects renderer
10:07 CaptainMagnus joined #salt
10:08 babilen s/but between the/but about the/ :)
10:08 JDog Yes, we've not. However given that I now understand it's different code I wouldn't expect it to behanve the same way.
10:09 JDog Or _why_ it's different code.
10:12 babilen What's wrong with git.latest ?
10:15 wnkz joined #salt
10:16 che-arne joined #salt
10:16 QiQe joined #salt
10:17 QiQe Gi guys, after search on IRC logs, I found this same question made many times and never answered properly
10:17 QiQe how must be the source part on file.managed state to get a S3 bucket
10:18 QiQe I have tried everything and didnt work
10:18 aquinas joined #salt
10:19 QiQe but works great if I do s3.get module from the minion
10:19 QiQe *Gi=HI
10:21 N-Mi joined #salt
10:30 fredvd joined #salt
10:30 otter768 joined #salt
10:33 phx i've created a vm with the cli cloud.create, and with the python API as well on softlayer, and in both cases when SL send me the "vm has been provisioned" email as a comfirmation, the salt cloud calls are still not returning, what's causing them to hang? logs saying "Port connection timed out: 900'
10:33 JDog babilen: sorry for the latency -- had a impromptu meeting. git.latest does indeed seem to do what I want.
10:37 Arca joined #salt
10:40 Arca Hello everyone, I was looking for a way to list the groupnodes and their attached minions with command line, but can't find a clue on internet :/ Anyone having tips ? Thanks !
10:43 jerematic joined #salt
10:45 Andre-B_ joined #salt
10:46 ajw0100 joined #salt
10:50 xsteadfastx joined #salt
10:57 paulm- Can I write a require or onchanges definition that does not cause the referenced state to change execution order?
10:59 d0xb joined #salt
11:00 intellix joined #salt
11:04 yomilk joined #salt
11:05 calvinh joined #salt
11:07 hvn joined #salt
11:14 CycloHex joined #salt
11:21 tux__ hello, how do i clear the complete salt master cache?
11:22 QiQe tux: rm -rf /var/cache/salt/master/* ?
11:22 QiQe <- tux__
11:22 masterkorp joined #salt
11:23 tux__ is it really easy like that?^^
11:23 istram joined #salt
11:25 bhosmer joined #salt
11:33 bhosmer joined #salt
11:38 xsteadfastx joined #salt
11:49 pdayton joined #salt
11:53 linjan joined #salt
11:54 vbabiy joined #salt
11:57 calvinh_ joined #salt
11:58 CeBe joined #salt
11:58 jerematic joined #salt
12:00 karimb joined #salt
12:01 ecdhe joined #salt
12:02 tux__ i want to run a "salt '...' state.highstate on a host and it allways says this http://pastie.org/9833162 whats my problem?
12:03 zadock joined #salt
12:05 jerematic joined #salt
12:06 ndrei joined #salt
12:07 ThomasJ tux__: From what I can tell, there is no problem. state.highstate seems to be running
12:07 JDog I'm getting this error from the git state. https://gist.github.com/jontyneedham/eedf8cf0228db38c3eff
12:10 ThomasJ tux__: http://docs.saltstack.com/en/latest/topics/jobs/
12:11 ThomasJ In your example, the jid is 20150115115809887731 for that specific job
12:11 ThomasJ You can also try to increase logging using salt -l debug '*' state.highstate
12:12 ThomasJ Or call it from the minion using: salt-call state.highstate which will produce very verbose output by default
12:14 bluenemo hi guys. I wanted to ask (basepi) if its ok if I start (and register and administrate) the channel #saltstack-de for a german speaking salt irc
12:14 bluenemo #salt-de (sry)
12:14 tux__ ThomasJ: is it normal that state.highstate tooks so long? i only install some bash aliases and vim...
12:14 ThomasJ tux__: Sounds odd, but try running it on the minion using salt-call, that will give you the most verbose output
12:17 JDog The gist also has the git state in it. I would love someone to have a look. I'm trying to clone a repo with the git state.
12:18 tux__ hm im using salt-cloud and i have a reactor-config with state.highstate right after the vm is deployed. im wondering why it tooks so long. at login 5 mins after deployment there is nothing happened. and if i run "salt '*' state.highstate -l debug" it allways says what i posted. is there any command to show the current running jobs on minions on the master??
12:18 ThomasJ tux__: See the jobs documentation I linked
12:19 tux__ ok ill have a look
12:20 aqua^mac joined #salt
12:21 bhosmer joined #salt
12:24 arno joined #salt
12:26 Furao joined #salt
12:26 Flusher joined #salt
12:27 zzzirk joined #salt
12:31 otter768 joined #salt
12:31 dec joined #salt
12:35 bhosmer joined #salt
12:39 hvn joined #salt
12:40 xsteadfastx joined #salt
12:46 Furao joined #salt
12:54 yomilk joined #salt
12:54 ericof joined #salt
12:58 redzaku joined #salt
13:02 bluenemo I have a cmd.run that does echo '{{ foobar }}'., which then does echo '{'un': 'deux'}'. How do I get the first or second element (as in un or deux)?
13:06 Furao bluenemo: {% set items = foobar.items() %} … {{ items[0] }} -> retourn un {{ items[1] }} - > deux
13:06 Furao hmpf
13:06 Furao {% set items = foobar.items()[0] %}
13:07 Furao {{ foobar.items()[0][0] }} pour juste “un"
13:10 jtang joined #salt
13:10 bluenemo Furao, thank you, I'll try that. Here is my hacky code example http://paste.debian.net/hidden/06eee8fe/
13:11 bluenemo I specificly want a new list for every item, as I can then have them in the order I wrote them down in the pillar file (I need that as I want to template config files in the order that is given in the pillar, for example required for nginx configs)
13:11 bluenemo (vhosts..)
13:12 Furao why “    - un: deux”
13:12 Furao instead of “    un: deux”
13:12 Furao instead of list of dict you can just have a dict
13:14 bluenemo Furao, a normal dict is not ordered if I got that correctly. If I use that then it will reorder the values given, which would, as described about, not work when I want to template a nginx config, as the values need to be in a specific order.
13:14 paulm- joined #salt
13:15 Furao in salt it’s OrderedDict
13:15 Furao in states at least
13:15 geekatcmu collections.OrderedDict
13:15 geekatcmu Part of the standard Python library
13:15 Furao i guess it’s the same in pillars
13:16 Furao try {{ pillar[‘test’].__class__.__name__ }}
13:17 bluenemo Furao, some more explaination on my problem: http://paste.debian.net/140757/
13:17 dnai23 joined #salt
13:19 bluenemo Furao, that gives me back http://paste.debian.net/140758/
13:19 bluenemo (I put just the first 3 lines in the state file, was I meant to do it that way?)
13:19 Furao yaml and utf8 is not fun
13:19 paulm- How can you manage a file from multiple stateS?
13:19 Furao oh
13:19 Furao wait my fault
13:20 Furao line 3 switch to ‘
13:20 Furao damn
13:20 Furao echo {{ pillar['test'].__class__.__name__ }}
13:20 bluenemo paulm-, with those states kind of knowing about each other? You can have a template that has multiple sections, each for one state for example. it was file.something.
13:20 bluenemo what exactly do you want to do?
13:21 bluenemo Furao, lol yes... didnt see that either :)
13:21 diegows joined #salt
13:21 Furao replace ‘ by ' in line 3 of http://paste.debian.net/140758/
13:21 Furao dinner
13:21 bluenemo yes
13:21 bluenemo gives back dict
13:21 bluenemo ah to bad :(
13:24 xf10e joined #salt
13:25 sieve joined #salt
13:25 sieve Im seeing "Minion did not return. [No response]" on a fairly regular basis
13:25 paulm- bluenemo: I want to deploy a template firewall at first and then add additional entries to it from other states
13:26 sieve But its an intermittent problem. any ideas how I should be debugging this?
13:26 bluenemo sieve, check that you run the same version of salt on both clients and master. that was it for me some time ago
13:27 sieve bluenemo: the versions are equal and its an intermittent problem.
13:27 bluenemo paulm-, yeah, I did that too. I think using sections is a valid idea here. have a look at http://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.blockreplace
13:28 pkimber joined #salt
13:28 bluenemo you will then write into the file ### start firewall something ###   and    ### end firewall something ### and it will write in between those lines. its also handy if you have files managed by salt and humans alike
13:28 tkharju joined #salt
13:29 bluenemo sieve, are you sure clients and master have the same time set? I once had a few vm's wake up from a suspend and there glocks were 10 hours late or sth. that triggered that for me to.
13:29 bluenemo too
13:30 paulm- bluenemo: but surely if two states call the same blockreplace they would supplant each other
13:30 sieve bluenemo: actually the minion and master are on the same machine in this case
13:30 bluenemo paulm-, thats what you are using the marker_start and marker_end for
13:30 bluenemo you can have multiple of thsoe (unless I'm crazy, which might be possible - give it a try) :)
13:31 bluenemo sieve, ah ok. hm. than I have no idea, sry :(
13:31 jtang joined #salt
13:32 bluenemo paulm-, maybe sbd has a better idea, that would be my first shot
13:32 murrdoc joined #salt
13:35 sieve bluenemo: ok, thanks for trying :)
13:35 bluenemo yw :)
13:35 zeroC joined #salt
13:37 TyrfingMjolnir joined #salt
13:41 pdayton joined #salt
13:41 bluenemo sieve, if you find sth better let me know please :)
13:42 sieve bluenemo: Vagrant?
13:43 bluenemo sieve, lol. I've also did sth once with file.replace, where I used a state to set every line in a ssh config file. That way I was able to not edit lines that were present by default and not noted in the pillars. but that was 'kinda' hacky.
13:44 bluenemo it was kinda like this: http://paste.debian.net/hidden/9bea26ec/
13:45 bluenemo I'm not exactly super happy with it so far but it kind of solves the problem of not wanting to template the whole sshd config file and keeping the system maintainers pre defined options if not otherwise given in the pillars
13:47 CeBe1 joined #salt
13:49 Furao joined #salt
13:50 mrjk joined #salt
13:50 toastedpenguin joined #salt
13:54 wild_oscar joined #salt
13:55 wild_oscar say I want to install tomcat7 and tomcat7-admin. the latter needs the former. what's the best way to define this in salt?
13:55 zeroC does every file root have to have a top.sls?
13:55 wild_oscar is it https://gist.github.com/anonymous/18063e4fad37b1575e3d ?
13:55 markizano zeroC: I have found it easiest to digest with just one top.sls
13:55 ericof joined #salt
13:56 markizano wild_oscar: that says "install these 2 packages" yep
13:56 wild_oscar should it be more complex, like "install tomcat" and "install tomcat-admin but require tomcat", though?
13:57 favadi joined #salt
13:57 wild_oscar I'm also thinking the next step: tomcat7-admin will require a specific security access xml file to be installed as well
13:58 zephier joined #salt
13:58 markizano wild_oscar: if you want it to be, but no - it can be simple as that. :)
13:59 markizano I commented on your gist, so you can see what it would look like if the two packages were unrelated, but depended on one-another.
14:00 JDiPierro joined #salt
14:00 wild_oscar thanks for the tip:)
14:00 markizano jep :)
14:00 zeroC markizano: thank you for the tip :)
14:00 JDiPierro Good mornin' salters!
14:01 markizano zeroC: Yeah, we experimented with multiple top.sls - it was really complicated, so we found it easiest to put one top.sls in the base/pillar and one in the base/states - this made it easiest to determine which states hit what hosts by default.
14:01 Heggan joined #salt
14:01 markizano In my most recent setup, I'm using a pillar/top.sls as a symlink to the states because the names are so similar among the two - so essentially, I have one top.sls.
14:02 markizano I'd like to get to a point where I have a python module to generate them though :3
14:04 TyrfingMjolnir joined #salt
14:04 hvn joined #salt
14:04 subsignal joined #salt
14:04 Nazca joined #salt
14:07 abe_music joined #salt
14:08 wild_oscar markizano: following the example at https://gist.github.com/anonymous/18063e4fad37b1575e3d , how would one relate the managed file to tomcat-admin? and if the file was named tomcat.sls, I assume running that file would guarantee everything within it
14:08 wild_oscar would the file bit also need a pkg.installed require pkg tomcat7-admin?
14:09 zeroC markizano: sounds great, right now i am trying to setup a multicustomer system, though i am not preety sure if one top.sls is enough
14:12 lionel joined #salt
14:12 markizano wild_oscar: yep - if you saved that as salt://tomcat.sls, then you should be able to call `salt-call state.sls tomcat' and it'll do those 3 lowstates in the order specified.
14:12 favadi joined #salt
14:12 markizano wild_oscar: what pkg would it be installing in the file ?
14:13 markizano zeroC: I can understand, everyone has their own setup. In one scenario, we also entertained the idea of one top.sls for each saltenv, which was fairly self-contained.
14:14 zeroC markizano: http://pastebin.com/4QpJND7Q this will be the folderstructure (i hope)
14:14 zeroC ;)
14:15 wild_oscar markizano: not sure  I understood the question, but the file is a configuration file for tomcat7-admin package
14:15 zeroC maybe i also misunderstood it, so, i would add at each top level top.sls and have nodegroups defined for ti
14:18 markizano wild_oscar: It was a challenge question to get you thinking - much like my math teacher would always ask me "Are you sure that's right?" Plain text lacks a tone of voice =)     To answer the question, no you don't need another pkg.installed defined for the file.managed. Think of the lowstate as a command/function in your script. and think of a .sls as a class or an object or a .py file in your grand coding scheme to manage your infrastru
14:18 markizano cture. it's a yaml data structure that defines a command to be executed on the minion.
14:19 favadi joined #salt
14:20 markizano wild_oscar: so when you say "pkg.installed(tomcat7); pkg.installed(tomcat7-admin, require=[pkg: tomcat7]); file.managed(/etc/tomcat7/tomcat-users.xml, user=tomcat7, group=tomcat7, require=[tomcat7-admin])" - you're telling the salt minion to install those packages, and then manage that file.
14:20 markizano The relationship is in your head, and you represent this by putting them in the same .sls
14:20 zzzirk joined #salt
14:22 markizano zeroC: for those that match that saltenv, yes
14:23 markizano zeroC: Take caution though, multiple matches to multiple environments leaves a higher chance of name collision - the name of a lowstate must be the unique among all environments matched by the minion.
14:24 cpowell joined #salt
14:25 cpowell joined #salt
14:25 markizano wild_oscar: i commented on your gist, btw
14:25 wild_oscar yup, just realised that. thanks :)
14:26 markizano zeroC: do you plan on the states doing most of the work, or the pillar ?
14:26 wild_oscar this is quite interesting, actually. really enjoying playing around with is
14:26 wild_oscar *it
14:26 markizano wild_oscar: indeed! there's so many ways it can be used!
14:27 perfectsine joined #salt
14:28 karimb joined #salt
14:28 wild_oscar markizano: maybe you know something I wondered yesterday - in production, is it a best practise to have the master override changes in the minion? e.g. if you delete (or edit) a file in the minion that some state requires to exist, the master automatically puts it back in the previous state
14:29 favadi joined #salt
14:30 markizano wild_oscar: not sure I understand your question - the master is just dishing out the states to the minions. The fact that things change on a host that has a salt-master is b/c there's a salt-minion on that host that is effecting changes.
14:30 markizano wild_oscar: so you have one salt-master in your environment dishing out states to a few minions, right?
14:30 markizano or d'you have a salt-master on every host ?
14:31 ndrei joined #salt
14:31 one joined #salt
14:31 jtang joined #salt
14:32 otter768 joined #salt
14:33 zeroC markizano: states or pillars? (i am not so far with the docu)
14:33 wild_oscar markizano: no, a simple scenario: one master (A) and one minion (B). master says minion should have /etc/foo. I login in B and delete or edit /etc/foo
14:33 wild_oscar now minion is inconsistent with rule in master
14:34 msciciel joined #salt
14:34 markizano zeroC: Either - having the same top-level name in either will result in some error talking about "duplicate key" or "key conflict"
14:34 wild_oscar the question is: is it usual to have some sort of mechanism to prevent this? ie, master sees file has changed and automatically puts it again in the state it should be?
14:34 markizano wild_oscar: oh - not quite that way. You describe what you want in a YAML/.sls file. Master interprets that. Master passes instructions to minion. Minion enforces that file.
14:35 wild_oscar I was under the impression this was a standard feature in configuration management systems
14:35 meylor joined #salt
14:35 markizano Yes, if you remove it, and then run `salt-call state.highstate' (assuming top.sls is already configured to match the minion and tell it to run the state that manages that file) - salt-minion will restore the file.
14:35 wild_oscar ie, force you to make changes in the master, not the minions
14:36 markizano yep
14:36 wild_oscar would you have a cron job running salt-call state.highstate or something?
14:36 meylor I'm trying to use the boto.route_53 salt state. I'm setting a myarecord, and the result is true, but the record is never created. Has anyone seen this issue?
14:36 markizano wild_oscar: I have /etc/salt/{master,minion} being managed in salt as well.
14:36 markizano wild_oscar: why have cron when salt has a built-in cron? :)
14:36 markizano http://docs.saltstack.com/en/latest/topics/jobs/schedule.html
14:37 wild_oscar aha, excellent :)
14:37 markizano wild_oscar: so you could just have highstate run once an hour...
14:37 markizano we tried having it run once a minute/120s - noooo..... with 300+ states to run in each highstate, that's just not feasible!
14:38 wild_oscar this will be awesome when I get the hang of it :p
14:38 markizano quite!
14:38 markizano :D
14:38 mpanetta joined #salt
14:38 zeroC markizano: how do you define top level? the top level is the "top-level" of each folder where a top.sls is inside, isn't it?
14:39 wild_oscar yeah, with Ts=time to run states and Ti=time interval in scheduler, you're probably screwed when Ts>Ti...
14:39 lothiraldan joined #salt
14:39 dude051 joined #salt
14:40 agend joined #salt
14:42 nitti joined #salt
14:42 markizano zeroC: top-level of a file, the first element in a data structure if I were to ```sls = yaml.load( open('myfile.sls', 'r') ) ```(python) - it would be sls[top-level] <- any element at that level, not sls[top-level][not-top-level][more-not-top-level]
14:42 bhosmer joined #salt
14:43 bhosmer_ joined #salt
14:43 markizano zeroC:  I would call it "root of a pillar" or "root of a file_roots" to indicate /srv/pillar/top.sls or /srv/salt/top.sls as opposed to /srv/salt/something/not/base/top.sls
14:43 markizano That help ?
14:44 jngd joined #salt
14:45 racooper joined #salt
14:47 karimb joined #salt
14:48 nitti joined #salt
14:52 Cs131 joined #salt
15:00 patrek joined #salt
15:00 oldmantaiter joined #salt
15:00 andrew_v joined #salt
15:03 FarrisG joined #salt
15:04 favadi joined #salt
15:06 jeffspeff joined #salt
15:08 twellspring joined #salt
15:08 housl joined #salt
15:10 xsteadfastx joined #salt
15:11 kaptk2 joined #salt
15:11 msheiny joined #salt
15:13 xsteadfastx joined #salt
15:17 tux__ i have a reactor config. it worked fine since today. now the state.highstate command isnt triggered after my salt-cloud deployment. here is my config http://pastie.org/9833486 any ideas?
15:18 arno joined #salt
15:18 PI-Lloyd joined #salt
15:19 jsm joined #salt
15:22 sieve joined #salt
15:23 tligda joined #salt
15:28 mikkn joined #salt
15:30 xsteadfastx joined #salt
15:31 oldmantaiter_ joined #salt
15:31 nullptr joined #salt
15:32 pdayton joined #salt
15:32 lothiraldan_ joined #salt
15:34 tux__ i have a reactor config. it worked fine since today. now the state.highstate command isnt triggered after my salt-cloud deployment. here is my config http://pastie.org/9833486 any ideas?
15:35 saltymoli joined #salt
15:37 iggy mrjk: I'm not familiar with that tbh, but I think I'd probably write a custom salt module personally (another option might be an ext_pillar that generates the info on the fly)
15:37 saltymoli so i'm trying to build a windows installer for x86, and i keep running into an issue where zmq is not defined. meaning the zmq import fails, but salt doesn't error out (or set a flag), and then it is referenced later
15:37 saltymoli my issue is that i'm trying to use zmq (not raet), and it's not getting included in the bdist_esky step
15:37 johnkeates how can i introspect jinja rendering?
15:37 SheetiS tux__: that looks correct for the part you pasted.  are there any other reactions that you have added since then?
15:37 mrjk iggy: oki, thanks for your explanations :-)
15:38 SheetiS tux__: it will give just a simple 'failed to render <name>.sls' in the logs without much info to help sometimes.
15:39 iggy johnkeates: mostly by causing an error while using salt-call -l debug (as it shows you the rendered output)
15:39 schlueter joined #salt
15:39 iggy johnkeates: you get to the point pretty quick where you don't really need that (as jinja is fairly predictable and simple)
15:42 tux__ in which logs should i look?
15:42 tux__ master or minion?
15:42 mndo joined #salt
15:43 iggy the reactor runs in the master, but it calls things that run on the minions... so... both
15:43 tux__ i have nothing added
15:43 ekristen joined #salt
15:43 tux__ thats kinda stupid
15:44 tux__ yesterday everything was working as expected
15:44 tux__ now i have to do a "salt '*' state.highstate" to do the config
15:45 neogenix joined #salt
15:45 zeroC markizano: ah, of the file, not the folder :)  sure, then i just would like to have one top.sls, i would just like to have one top.sls for eacht cust
15:45 SheetiS tux__: have you tried to listen to events on the master to make sure that the event fired for the reaction to tigger?
15:46 hvn joined #salt
15:46 SheetiS http://docs.saltstack.com/en/latest/topics/reactor/#knowing-what-event-is-being-fired <== this
15:47 meylor i'm trying to return a grain on the command line salt['grains.get']('ip4_interfaces:eth0') | first
15:47 markizano zeroC: I'd recommend using just one file_roots and one pillar_roots per customer then. You appear to have multiple roots defined, I can see that getting hairy :x
15:47 meylor salt '*' grain.get 'ip4_interfaces'
15:47 tux__ i did a "salt-run jobs.list_jobs" on my master and he showed me the jobs i triggered with reactor
15:47 meylor I know i'm getting the syntax off
15:49 xsteadfastx joined #salt
15:49 _JZ_ joined #salt
15:50 iggy meylor: it's grains.get (or grains.item)
15:52 paulm-- joined #salt
15:54 mschiff When trying to use the php.ng formula I get this error: "Rendering SLS 'base:php.ng' failed: Jinja syntax error: no test named 'mapping'"
15:54 mschiff Any idea someone?
15:54 iggy tux__: if the minion isn't up yet, the highstate won't run (i.e. instance is up, but minion hasn't started yet)
15:55 mschiff salt is version 2014.7.0
15:55 hasues joined #salt
15:56 hasues left #salt
15:56 iggy mschiff: can you refheap the whole error message?
15:57 johnkeates joined #salt
15:57 mschiff iggy: https://www.refheap.com/96145
15:58 xliiv joined #salt
15:58 Raging_fenrir joined #salt
15:58 jhauser joined #salt
15:58 iggy mschiff: you need jinja 2.6 for the mapping test
15:59 calvinh joined #salt
16:01 ajw0100 joined #salt
16:01 mschiff iggy: Thanks for the hint... will have to look for a backport for debian squeeze
16:03 redzaku joined #salt
16:03 Raging_fenrir joined #salt
16:04 tux__ iggy look at the config its a command which would run AFTER the vm is created
16:05 tux__ and the point is, it worked fine for me yesterday. today it stopped
16:05 tux__ nothing changed
16:07 schlueter1 joined #salt
16:08 hebz0rl joined #salt
16:09 iggy vm created != minion up and running
16:09 iggy but I was just throwing something out there... good luck
16:09 pdayton joined #salt
16:10 meteorfox joined #salt
16:10 johnkeates Can someone take a look at a jinja loop + pillar data to help figure out why it can't find a variable? I'll pastebin it in a sec
16:10 saltymoli anyone here create a custom salt installer for windows? whom should i ask about this? basepi? utah_dave?
16:12 xsteadfastx joined #salt
16:12 johnkeates this is my state + pillar + pillar.items output:
16:12 johnkeates http://pastebin.com/atUJT99D
16:12 SheetiS I've found that salt/cloud/*/created is only triggered at the end of a salt-cloud run which includes bootstrapping salt onto it (so vm would no only have started, but have been SSH into, salt installed and connected to master)
16:12 iggy the mailing list?
16:12 SheetiS at least in my usage of it.
16:12 zeroC markizano: :D i assume, but thanks for the tips
16:12 zeroC :)
16:12 johnkeates and this the bloody error: Rendering SLS 'test:phpfpm.pools' failed: Jinja variable 'str object' has no attribute 'confdir'
16:12 Ozack joined #salt
16:13 iggy johnkeates: - myhost: (maybe)
16:14 iggy nvm, it's using items
16:14 conan_the_destro joined #salt
16:14 johnkeates yeah :-/
16:14 lothiraldan joined #salt
16:14 johnkeates for some reason the pillar is fine but jinja fails to get the data out
16:14 johnkeates the loop starts so we can assume at least one 'pool' item is found
16:14 favadi joined #salt
16:14 johnkeates but then the attributes aren't available...
16:14 iggy johnkeates: you've verified the pillar looks right with pillar.item phpfpm on the minion?
16:14 hvn joined #salt
16:15 johnkeates no, only on the master, i'll salt-call on the minion right away
16:15 ericof joined #salt
16:15 johnkeates yes, on the minion it's exactly the same
16:17 iggy can you throw a {{ salt['pillar.get']('phpfpm:pools').items() }} above the for loop and see what get's rendered?
16:17 johtso joined #salt
16:17 johnkeates i'll do that
16:17 johnkeates sec
16:17 meylor figured out what I was looking for: getting info from grains via the client.     ret = local.cmd(id, 'grains.get', ['ip4_interfaces:eth0'])
16:18 jramnani` joined #salt
16:18 dave_den1 joined #salt
16:19 tru_tru joined #salt
16:19 schlueter joined #salt
16:20 johnkeates for some magical reason, it doesn't render anything and just gives:
16:20 johnkeates [CRITICAL] Rendering SLS 'test:phpfpm.pools' failed: Jinja variable 'tuple object' has no attribute 'confdir'
16:20 johnkeates doesn't give a line number tho :(
16:21 iggy johnkeates: is that with salt-call -l debug on the minion?
16:21 johnkeates yes
16:21 iggy in the debug output it should show the rendered yaml
16:21 johnkeates sorry for the multiline:
16:21 johnkeates [INFO    ] Fetching file from saltenv 'test', ** skipped ** latest already in cache 'salt://phpfpm/pools.sls'
16:21 johnkeates [DEBUG   ] Jinja search path: ['/var/cache/salt/minion/files/test']
16:21 johnkeates [DEBUG   ] Decrypting the current master AES key
16:21 johnkeates [DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
16:21 johnkeates [INFO    ] Fetching file from saltenv 'test', ** skipped ** latest already in cache 'salt://phpfpm/map.jinja'
16:21 johnkeates [CRITICAL] Rendering SLS 'test:phpfpm.pools' failed: Jinja variable 'tuple object' has no attribute 'confdir'
16:21 johnkeates [INFO    ] Fetching file from saltenv 'test', ** skipped ** latest already in cache 'salt://phpfpm/service.sls'
16:21 iggy yeah, you should really put that in a refheap or something
16:22 johnkeates yeah
16:22 iggy but that was all?
16:22 johnkeates let me post the whole story, sec
16:23 oldmantaiter__ joined #salt
16:24 peters-tx joined #salt
16:25 johnkeates https://www.refheap.com/c9ed2c7afcd255393b33a69c8
16:25 johnkeates there is ofcourse tons of additional lines
16:25 johnkeates for different states etc.
16:26 redzaku joined #salt
16:26 basepi saltymoli: It would definitely be UtahDave, I don't know who utah_dave is, maybe he was logged in on mobile or something, not sure.
16:26 basepi I haven't seen him yet today but as far as I know he'll be working today.
16:29 johnkeates it's probably obvious, tiny, small, simple etc, but after several hrs it's not been solved by 2 people here, so it might be invisible or dark magic...
16:29 iggy johnkeates: try cutting out the loop for now
16:29 tru_tru joined #salt
16:29 johnkeates and just take one item out?
16:29 iggy (so we can just see what's rendered without errors)
16:29 iggy no like deleting the {% for pool .... endfor %}
16:30 sieve left #salt
16:30 oldmantaiter joined #salt
16:32 johnkeates well, this is interesting
16:32 johnkeates let me paste the result of that
16:32 johnkeates this is from the master:
16:32 johnkeates https://www.refheap.com/d7c3994c2e81227db2ab33e7f
16:32 saltymoli basepi, thanks. i just mistyped. i didn't see him in here, and i misremembered his handle
16:33 davet joined #salt
16:33 otter768 joined #salt
16:34 gaurdro joined #salt
16:34 darrend joined #salt
16:35 johnkeates seems like i'm feeding bad data in to a parser or tokenizer in some form or way
16:35 iggy johnkeates: are you saving stuff as unicode?
16:35 johnkeates yes
16:35 iggy (python2 has piss poor unicode support)
16:36 johnkeates hmm
16:36 johnkeates let me double-check the charset
16:37 gaurdro I just ran into the saltutil.revoke_auth not working issue https://github.com/saltstack/salt/issues/18737  Is there a way around it?  we rely on tha behavior for systems that get blown away and rebuilt.
16:37 johnkeates text/plain; charset=us-ascii
16:37 johnkeates that's what file -i tells me
16:37 johnkeates on both files
16:38 iggy both files being?
16:38 johnkeates pools.sls and phpfpm.sls
16:39 smcquay joined #salt
16:40 forrest joined #salt
16:40 johnkeates just to be sure, i did a for file in $(find .); do file -i $file; done
16:40 johnkeates gave only us-ascii for the text files and binary for the stuff git spreads everywhere ;)
16:40 basepi saltymoli: cool, just wanted to make sure someone wasn't pretending to be him or something. =)
16:40 iggy okay, so there goes that idea
16:40 johnkeates yeah
16:40 johnkeates a lot of ideas came and went over the past 3 days ...
16:41 johnkeates but maybe we found a bug!
16:41 johnkeates or maybe it's a stupid invisible char somewhere
16:41 johnkeates (but it can't be because I re-created the files just to be sure and that didn't solve anything)
16:42 schlueter joined #salt
16:42 eirsyl joined #salt
16:42 gattie joined #salt
16:45 johnkeates i'm going home, office is closing :p
16:45 johnkeates but i'll be bach (terminator voice)
16:46 johnkeates at least the big stack trace points to something other than a configuration typo
16:46 darrend hi guys.. hope you don't mind me asking: we have a devops role (we're using salt-stack of course) in London, UK and are struggling to fill it.  pm me if you might be interested?
16:46 subsignal joined #salt
16:47 pdayton joined #salt
16:47 iggy darrend: I've asked about that before, apparently they don't mind you posting to the mailing list either (so long as it is in fact salt related)
16:48 darrend iggy: thanks.. I'll try that too.  We're not having much success via our recruitment agencies :(
16:48 iggy us either
16:49 iggy but we're in a bad location to try to find salt people ;)
16:49 iggy you should have better luck
16:49 darrend I'd hope
16:50 redzaku joined #salt
16:58 philipsd6 joined #salt
17:01 elco_ joined #salt
17:03 schlueter1 joined #salt
17:05 JDiPierro joined #salt
17:06 Ryan_Lane joined #salt
17:08 bhosmer joined #salt
17:09 hvn joined #salt
17:10 alexbst joined #salt
17:11 nickdew joined #salt
17:12 armaghast joined #salt
17:14 bhosmer joined #salt
17:14 mrjk joined #salt
17:18 keyser joined #salt
17:18 KyleG joined #salt
17:18 KyleG joined #salt
17:19 aparsons joined #salt
17:19 wrench_ joined #salt
17:19 elco_ joined #salt
17:25 spookah joined #salt
17:27 desposo joined #salt
17:27 StDiluted joined #salt
17:28 twellspring joined #salt
17:29 theologian joined #salt
17:38 druonysuse joined #salt
17:42 kitp joined #salt
17:45 rap424 joined #salt
17:48 iggy Just booked travel/hotel for saltconf (plus 3 extra days before just to dick around)
17:48 KyleG noice
17:48 Ahlee iggy: nice
17:48 Ahlee iggy: First beer's on me :)
17:49 Ahlee That reminds me.  I need to book a hotel room
17:49 shaggy_surfer joined #salt
17:53 harkx joined #salt
17:54 miqui_ joined #salt
17:55 quickdry21 joined #salt
17:56 iggy I'm not staying at the grand america since I'm going to be there 3 extra days, but I'm about 5 blocks away... Let's hope it's not too cold still in March
17:57 jtang joined #salt
17:59 cpowell joined #salt
18:02 murrdoc joined #salt
18:02 harkx joined #salt
18:04 seanz joined #salt
18:05 druonysus joined #salt
18:05 druonysus joined #salt
18:09 Ryan_Lane joined #salt
18:09 gmoro joined #salt
18:09 bhosmer joined #salt
18:09 kbyrne joined #salt
18:11 conan_the_destro joined #salt
18:15 jalbretsen joined #salt
18:16 harkx joined #salt
18:18 shaggy_surfer joined #salt
18:18 Andre-B joined #salt
18:20 elfixit joined #salt
18:20 twellspring joined #salt
18:23 bhosmer joined #salt
18:29 spookah n00b question - what would be the best method for pushing a series of perl scripts to a select group of minions?
18:30 dark_helmet joined #salt
18:30 d0xb joined #salt
18:30 davebarnes create a state file using file.managed
18:31 hobakill spookah, http://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html
18:33 iggy if they are all in a dir, file.recurse
18:33 harkx joined #salt
18:34 spookah thank you
18:34 otter768 joined #salt
18:35 spookah i suppose i could use the same concept to create a file in /etc/profile.d/ which adds the directory to $PATH?
18:36 ajw0100 joined #salt
18:36 murrdoc file.managed
18:39 schlueter joined #salt
18:40 higgs001 joined #salt
18:41 ericof joined #salt
18:42 schlueter1 joined #salt
18:45 jtang joined #salt
18:45 cwyse joined #salt
18:47 schlueter joined #salt
18:51 mrjk joined #salt
18:56 harkx joined #salt
18:57 hvn joined #salt
18:58 murrdoc is there a way to include a state and pass in two pillars for data
18:58 alejo joined #salt
18:59 iggy you mean contents_pillar?
18:59 Ryan_Lane murrdoc: pillars are global
18:59 Ryan_Lane so there isn't a need to pass them in
18:59 Ryan_Lane or are you asking for something like parameterized classes in puppet?
18:59 iggy yeah, that's why I was asking for clarification... it didn't make much sense as stated
19:00 felskrone joined #salt
19:00 murrdoc https://gist.github.com/anonymous/f59f9b5bbbc01a18a469
19:00 Ryan_Lane param classes don't exist, so you can't really do that
19:00 murrdoc so you see that
19:00 murrdoc i want to reuse that for various pillars like global pkgs, security pkgs, pkgs from formulas (internal apps)
19:01 Ryan_Lane have another pillar key
19:01 Ryan_Lane then have this iterate over the keys from that key
19:01 murrdoc why, because i want to be able to know from pillars what all pkgs end up on a node
19:01 murrdoc hmm so have a pillar by role, that defines what pillars to iterate over
19:01 Ryan_Lane yes
19:02 murrdoc hmm, that could work
19:03 murrdoc i would have liked to do like include: pkg.tpl.sls extend: install_pillar_key: 'pkgs.global.install' remove_pillar_key: pkgs:global:remove'
19:03 murrdoc \n\t implied *
19:03 Ryan_Lane extend can only be done once
19:03 murrdoc yeah
19:03 * Ryan_Lane doesn't like extend
19:04 ericof_ joined #salt
19:08 murrdoc maybe a python state in _states folder
19:08 murrdoc and then call that with the various pillar keys as needed from different states
19:08 geekatcmu That's what I ended up doing for my firewall management
19:11 mschiff in php.ng formula I can add new package definitions via pillar (pkgs:\n  foo: php5-foo") but how can I make it install those packages?
19:12 JDiPierro I've got a rather large json structure that I need to pass from a state definition to a template. The structure is generated by a module call.. I can just do the module call in the template and it works but I'd like to be able to reuse it in multiple templates without re-calling the module. So I tried setting it in a state then in the file.managed giving it a context and putting the variable in there but it seems to
19:12 JDiPierro be causing problems.. Is there a better way to pass a large data structure from a state to a template?
19:12 dexter91x joined #salt
19:14 desposo joined #salt
19:14 dev116 joined #salt
19:15 dexter91x can i tell a state to search for an sls file under the base and require it ?
19:16 iggy dexter91x: "search" no, but you can require: sls: foo
19:17 dexter91x ah yes i saw it in the documentation , but there is nothing similar to what we have under terminal when you type cd /folder/*/foo , right ?
19:18 iggy no
19:18 iggy you have to specify the "path" to it
19:18 wendall911 joined #salt
19:29 schlueter1 joined #salt
19:30 iggy murrdoc: seen https://github.com/saltstack/salt-contrib/blob/master/pillars/lookup.py ?
19:30 iggy just came across it and it sounded like part of what you were looking for
19:31 JDiPierro What's the best way to pass a large dictionary jinja var from a state to a template?
19:32 murrdoc oh this is sweet thanks iggy
19:32 Ryan_Lane JDiPierro: context is likely the easiest way
19:33 murrdoc this is used for proxying pillars tho
19:33 murrdoc i am writing a _state called mulitpkg, that i am passing the pillar key
19:33 murrdoc then it queries for the pillar and calls salt['pkg.install'] as needed
19:34 Ryan_Lane murrdoc: __salt__['config.option']('key')
19:34 murrdoc config prefers grains to pillars in order
19:34 Ryan_Lane that will look in minion config, pillars, etc.
19:35 murrdoc the downside being config keys can be over ridden by local edits on minions
19:35 murrdoc so i am using that for data i am ok with grains getting preference
19:35 murrdoc its good stuff
19:35 Ryan_Lane I don't think it uses grains
19:35 Ryan_Lane you can also tell that function to omit things
19:35 Ryan_Lane murrdoc: __salt__['config.option']('key', omit_opts=True)
19:35 Ryan_Lane for instance
19:36 JDiPierro Ryan_Lane: When I put the {{ data }} in the context it's putting the python dictionary output in and causing yaml render errors: config: {'services': [{u'load': u'low', u'created_at': u'2014-11-19 20:24:28'...
19:36 murrdoc http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.config.html#salt.modules.config.get
19:36 Ryan_Lane JDiPierro: yeah, that's a problem...
19:38 felskrone joined #salt
19:39 murrdoc ryan i dont see where you can tell it to ignore __grains__
19:39 murrdoc https://github.com/saltstack/salt/blob/develop/salt/modules/config.py#L240
19:39 jchen left #salt
19:39 murrdoc oh option
19:39 Ryan_Lane opt/grains are same/same, I think
19:39 Ryan_Lane which kind of sucks
19:39 Ryan_Lane because that also means you ignore minion config, I think
19:40 murrdoc i think opts is minion/master config file
19:40 murrdoc looking config.get, grains is its own data
19:41 Ryan_Lane what's omit_master, then?
19:41 Ryan_Lane that function should have another arg if you can't tell it to ignore the grains, then :D
19:41 Ryan_Lane likely an easy PR
19:46 bhosmer__ joined #salt
19:51 druonysus joined #salt
19:51 druonysus joined #salt
19:52 pdayton joined #salt
19:53 murrdoc yes
19:55 iggy same code on 2 different masters, one works, one gets "No matching sls found for..." roughly the same version (off by 4 commits I think)
19:55 iggy on the failing master, the sls shows up in cp.list_master
19:56 mschiff Any has an explanation for that? https://www.refheap.com/96169 Why does repeating the same jinja statements work while in a for-loop it does not?
19:56 iggy can't think of what else to try to figure out what's going on
19:58 cberndt joined #salt
20:00 tomh- joined #salt
20:01 davet joined #salt
20:03 davet1 joined #salt
20:04 davet1 joined #salt
20:09 eykd joined #salt
20:16 mrjk joined #salt
20:19 d0xb joined #salt
20:21 jerematic joined #salt
20:25 sinh joined #salt
20:30 Diaoul joined #salt
20:30 higgs001 joined #salt
20:34 FRANK_T Where I can get the saltstack documentation the one on the website its not working
20:35 otter768 joined #salt
20:35 wild_oscar left #salt
20:39 rhand joined #salt
20:39 Ryan_Lane FRANK_T: which docs aren't working?
20:40 Ryan_Lane FRANK_T: http://docs.saltstack.com/en/latest/ <-- that's working for me
20:40 bhosmer joined #salt
20:41 davebarnes this should work too: http://salt.readthedocs.org/en/v2014.7.0/
20:42 druonysus joined #salt
20:42 druonysus joined #salt
20:43 oldmantaiter joined #salt
20:45 FRANK_T The pdf just has the salt logo
20:45 FRANK_T :(
20:46 jcockhren I've been considering mirroring/hosting latest docs as well. Would folks want that? Is this something that happens frequently enough?
20:46 hvn joined #salt
20:47 oldmantaiter joined #salt
20:50 FRANK_T I want the PDF.
20:51 ndrei joined #salt
20:53 CeBe1 joined #salt
20:54 aparsons joined #salt
20:55 davebarnes FRANK_T: that's weird, i see that too. just the logo in the PDF
20:55 FRANK_T yup
20:56 jasonrm joined #salt
20:57 harkx FRANK_T, what's the url of the pdf?
20:57 davebarnes https://media.readthedocs.org/pdf/salt/latest/salt.pdf
20:57 harkx didn't even know it existed :p
20:57 harkx thanks :)
20:58 murrdoc http://readthedocs.org/projects/salt/downloads/epub/v2014.7.0/
20:58 KyleG joined #salt
20:58 KyleG joined #salt
20:58 murrdoc http://readthedocs.org/projects/salt/downloads/htmlzip/v2014.7.0/
20:58 FRANK_T https://github.com/saltstack/salt/issues/13755
20:58 FRANK_T got it
20:59 FRANK_T PDF version :)
21:00 davebarnes FRANK_T: that version is old
21:00 davebarnes do you have the PDF for 2014.7?
21:00 FRANK_T no :(
21:00 murrdoc u guys dont like epubs ?
21:02 MugginsM joined #salt
21:03 FRANK_T Never use it before
21:04 FRANK_T murrdoc Can I read epub with acrobat?
21:04 davebarnes no you can't
21:04 davebarnes i tried and it said it couldn't open it
21:04 harkx you can convert epub to anything... (with calibre)
21:05 MugginsM I'm having a lot of trouble with docker support in salt, I can't get it to authenticate to a docker registry, and it appears that maybe it's broken?  https://github.com/saltstack/salt/issues/13305
21:05 xliiv joined #salt
21:05 MugginsM anyone got it working?
21:06 murrdoc u can read epubs in browsers, firefox/chrome have plugins for that
21:09 Ozack joined #salt
21:09 pdayton joined #salt
21:11 testone joined #salt
21:12 wincyj joined #salt
21:12 wincyj hello
21:12 FRANK_T Thanks murrdoc got it!!
21:12 wincyj i got issue with mysql auth using salt-ssh
21:12 davebarnes hi wincyj
21:12 wincyj i cannot make query cuz of i'm not authed
21:12 wincyj how to do that?
21:13 wincyj i;ve found on mailing list sth like this:https://groups.google.com/forum/#!topic/salt-users/UAOFW9Qlutk
21:13 davebarnes grant permissions on mysql server
21:13 wincyj but i dont know how it corresponds with salt-ssh style config
21:13 wincyj i set passwd for root via salt
21:13 wincyj it works fine
21:13 wincyj but now i want to make query
21:14 wincyj so the link i pasted will work when i set this config on remote machine?
21:16 davebarnes yeah, that should set up the mysql user. take a look at these pages for configuring mysql users and access http://docs.saltstack.com/en/latest/ref/states/all/salt.states.mysql_user.html http://docs.saltstack.com/en/latest/ref/states/all/salt.states.mysql_grants.html
21:16 schlueter joined #salt
21:17 wincyj ok i've been there
21:17 wincyj but it's unclear to me how to set premmisions, as far as i understood this it's only for setting particular users on remote database
21:17 wincyj so to auth user from server to remotehost-db i need to follow link i've pasted?
21:20 murrdoc does the salt api have documentaion , like salt.utils.*
21:21 jrluis joined #salt
21:23 izibi joined #salt
21:24 wincyj davebarnes: is it enough if i paste cfg from this example https://groups.google.com/forum/#!topic/salt-users/UAOFW9Qlutk
21:24 wincyj to my /etc/mysql/debian.cnf on remote machine?
21:25 twellspring joined #salt
21:26 rocket joined #salt
21:26 cheus joined #salt
21:27 rocket how do I do something like {% set id = app_{{ env }} %} in a sls file?
21:28 shaggy_surfer joined #salt
21:29 wincyj well still the same
21:29 wincyj Comment: MySQL Error 1045: Access denied for user 'root'@'localhost' (using password: NO)
21:32 davebarnes wincyj: you probably have to set the password to connect to the mysql server. have a look here http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.mysql.html
21:32 rocket I think I figured it out .. nevermind
21:33 wincyj davebarnes: i've got sth like this in sql-config.sls
21:33 wincyj http://pastebin.com/kCfXtMUz
21:33 wincyj is that correct?
21:33 wincyj is it correct to add mysql auth conf to that file?
21:34 wincyj as u send me a link?
21:34 lothiraldan joined #salt
21:36 iggy murrdoc: salt.netapi.*
21:37 perfectsine joined #salt
21:37 davebarnes wincyj: i think you have to add "connection_user" and "connection_pass"
21:38 wincyj hm
21:38 wincyj could you provide me example according to sls file i pasted?
21:38 wincyj cuz i'm trying to conf that i recv errors
21:38 wincyj ID mysql.host in SLS mysql-config is not a dictionary
21:38 wincyj sth like that :/
21:38 wincyj im new to salt im little lost :/
21:38 davebarnes i will try but i am not a mysql expert (i haven't used salt to configure mysql yet)
21:39 wincyj davebarnes: it's all about basics to me to understand structre
21:39 Singularo joined #salt
21:39 Singularo joined #salt
21:40 davebarnes wincyj: maybe something like this will work https://www.refheap.com/96170
21:41 wincyj so i need to create another sls file to connect to db and inside of it i can define query right?
21:41 davebarnes what are you trying to do?
21:42 davebarnes make sure a user exists in your database?
21:42 wincyj nope
21:42 wincyj i need to exec query
21:42 wincyj to update pass and manage db
21:42 wincyj to provide initial status on production
21:43 stevednd wincyj: you need to either define your connection information in your minion's config, or as davebarnes showed inside your state
21:43 stevednd http://docs.saltstack.com/en/latest/ref/states/all/salt.states.mysql_user.html#module-salt.states.mysql_user
21:43 davebarnes you can use "mysql_user.present" to set the password (rather than executing a raw query)
21:43 iggy I think you can do it in a pillar too
21:44 iggy (at least you can with a lot of the other db modules)
21:44 stevednd wincyj: the salt way would be to create that user using mysql_user.present
21:45 tligda joined #salt
21:45 stevednd unless this is an application user and not a mysql user
21:46 stevednd then yes you would need to stick the user in your app table with a query. You probably are just missing the necessary connection args which you can find on the page above
21:47 wincyj stevednd: iggy davebarnes it's app user so there's no point with mysql_user.present
21:47 wincyj the issue i got is auth issue
21:47 wincyj so i need to work with connection_{user, pass} right?
21:48 stevednd wincyj: right, in your query state you need to add the connection parameters
21:48 wincyj fuck yeah :D
21:48 wincyj now i need to figure out how to do that properly :D
21:48 wincyj i owe you guys few bottles of polish vodka ;d
21:49 tligda1 joined #salt
21:51 davebarnes wincyj: try this: https://www.refheap.com/96171
21:51 FRANK_T joined #salt
21:51 davebarnes actually try this: https://www.refheap.com/96172
21:52 zadock joined #salt
21:52 wincyj hold on :)
21:52 mosen joined #salt
21:53 FRANK_T joined #salt
21:54 wincyj WOKRS
21:54 wincyj gimme you addrr so i send you vodka :D
21:54 schlueter1 joined #salt
21:55 wincyj THANKS A LOT!
21:55 davebarnes np... thanks for the vodka
21:55 twellspring joined #salt
21:56 wincyj davebarnes: it's just common saying in poland when you are really thankful :)
21:56 wincyj well i know it corresponds with stereotypes :)
21:56 davebarnes heh
21:57 wincyj if you don't drink i can offer sth else :D
21:57 davebarnes glad the query worked. salt is pretty awesome. just found out about it a couple weeks ago and am using it to configure a magento project that im working on.
21:57 wincyj as you may noticed im trying to conf server for glpi
21:57 wincyj i wish there were stats for glpi :C
21:57 Ryan_Lane for folks that use grafana, a present: https://github.com/saltstack/salt/pull/19768 https://gist.github.com/ryan-lane/770d5c7a2f5df6fe3ccc
21:58 murrdoc u crazy for this ryan
21:58 murrdoc :D
21:58 murrdoc +1
21:58 Ryan_Lane you know it.
21:58 Ryan_Lane we have a lot of services, and making dashboards for all of them suck :)
21:59 Ryan_Lane but we want people to be able to manage their own custom rows and panels. it's pretty nice.
21:59 babilen Ryan_Lane: Thank you
21:59 perfectsine joined #salt
21:59 Ryan_Lane yw :)
21:59 murrdoc grafana is how i convinced people to start using collectd and graphite at work
22:00 mosen ohh RL
22:00 stevednd i have no idea what grafana is, but the ES module is going to be so handy
22:01 yomilk joined #salt
22:01 Ryan_Lane the ES module is the most basic of implementations
22:01 Ryan_Lane I'm sure you're going to want to add to it
22:01 mosen nice, I have an existing monitoring system but I wanted to switch over to graphite for some things
22:01 babilen stevednd: If you don't know grafana you should look into it. Its pretty sweet :)
22:01 babilen Ryan_Lane: Do you also use something collectd'ish and InfluxDB with grafana?
22:01 Ryan_Lane grafana is the best graphite dashboard imo
22:02 babilen yeah, absolutely
22:02 Ryan_Lane I haven't tried the influx integration yet
22:02 ksalman I am seeing this same issue https://github.com/saltstack/salt/issues/19003 even when it's not a bind mount
22:02 Ryan_Lane we use a lot of graphite functions, so it makes it a bit difficult to switch
22:02 stevednd any good tutorials on setting it all up?
22:03 babilen Ryan_Lane: I see, what do you use for generating the data on the hosts?
22:03 Ryan_Lane collectd mostly
22:03 Ryan_Lane also pull some stats from cloudwatch and splunk
22:03 Ryan_Lane which, if you happen to use splunk: https://github.com/saltstack/salt/pull/19285
22:04 babilen We don't, no. collectd so far ...
22:04 Ryan_Lane diamond is also nice
22:04 Ryan_Lane wikimedia uses that. I'd probably switch if I was willing to fix all of our dashboards
22:04 Ryan_Lane which I'm not
22:05 babilen https://github.com/BrightcoveOS/Diamond ?
22:05 Ryan_Lane yeah. impossible to google for, of course
22:05 iggy it's part of graphite (afaik)
22:05 babilen https://github.com/python-diamond/Diamond that is
22:06 babilen Cool, I'll look into that. Curious that I haven't stumbled over it so far, but then... that's what talking to others is for.
22:06 babilen :)
22:06 iggy looks like it is brightcove
22:07 iggy I think most people stick with collectd because ZOMGCOMPILED!!!!!1!!!
22:12 linjan joined #salt
22:13 stevednd so graphite/grafana just do visualization of stats, they don't do any kind of alerts based on the data or anything like that?
22:14 iggy graphite=storage grafana=vis
22:14 clemensb joined #salt
22:14 stevednd iggy: yeah, that's what I got from it. Is there something that takes what's in graphite and goes beyond that to send alerts and such?
22:14 MugginsM yeah, but they can present stats to, say, nagios checks quite easily
22:15 iggy then you need something else (cabot, prometheus, riemann, etc. to do alerts)
22:15 MugginsM we have nagios checks that ask graphite for stats
22:15 MugginsM and graphite does things like calculate moving averages, etc
22:16 Ryan_Lane you can do alerts based on graphite metrics
22:16 babilen stevednd: You might like riemann
22:16 Ryan_Lane cabot can do it too: http://cabotapp.com/use/graphite-checks.html
22:17 iggy yeah, you probably won't like riemann, but you might put up with it
22:17 Ryan_Lane riemann is hard
22:17 thayne joined #salt
22:17 MugginsM that summarises most monitoring systems :)
22:17 iggy I'm leaning more toward cabot or prometheus
22:17 Ryan_Lane cabot is easy, but kind of basic
22:17 iggy (I'm using riemann now)
22:18 murrdoc new relic is good
22:18 Ryan_Lane newrelic is really expensive
22:18 murrdoc true
22:18 davet joined #salt
22:18 jcockhren fwiw,
22:18 stevednd we currently have zabbix running here(installed before I arrived) and it's there, but I'm not a huge fan of it, so am very open to other options
22:18 murrdoc we are moving to ichinga 2
22:18 murrdoc from centreon
22:18 stevednd yeah, we have newrelic for a few servers, but the pricing is pretty ridiculous
22:18 mosen thanks for the recommendations
22:18 iggy yeah, that one that google bought a while back... they were the same... great service, which you paid _well_ for
22:19 jcockhren protip: use newrelic for "server monitoring" instead of app metrics, b/c free
22:19 jcockhren newrelic's 'server monitoring' has always been free
22:19 babilen Ryan_Lane: I'm a clojurist
22:19 cberndt joined #salt
22:19 Ryan_Lane does prometheus have any docs?
22:20 iggy on their main site... some
22:20 jcockhren for those using graphite for things -> http://graphite-api.readthedocs.org/en/latest/
22:20 jcockhren this makes you able to leverage the graphite api without the whoile django frontend part
22:21 Ryan_Lane iggy: what's their main site?
22:21 iggy http://prometheus.github.io/
22:21 Ryan_Lane ah, the wiki has some
22:22 linjan joined #salt
22:24 Ryan_Lane bleh, it's basically a graphite replacement
22:24 jcockhren for those also looking at diamond for shipping metrics, it is awesome
22:24 jcockhren (at it's job)
22:25 elco_ joined #salt
22:25 jcockhren I have example salt states and pillars for diamond config
22:25 eirsyl joined #salt
22:27 iggy need to roll that into the graphite-formula (and split it up correctly... and rewrite it while you're at it)
22:28 kermit joined #salt
22:28 jcockhren yeah. I want to test with the latest diamond 4.0 first (since there where some changes)
22:29 jcockhren My formula will be easily configurable.
22:29 jcockhren 2-3 things and go
22:30 jcockhren I see the other formulas and I get overwhelmed. No offense to any formula writers in here
22:30 mosen sometimes there isnt enough detail though. It's tough
22:30 CeBe2 joined #salt
22:31 jcockhren yeah. I've been taking the time to try to find the balance in my infra
22:31 jcockhren I have examples of both overly tweakable and to strict
22:31 jcockhren too*
22:31 CeBe3 joined #salt
22:32 wincyj davebarnes: if i want to have query_1 i just need to copy that example you gave me and change query is that correct way or i can do that more elegant?
22:32 giantlock joined #salt
22:33 davebarnes yeah, you can change query_1 to anything you want
22:33 davebarnes that's the state id
22:33 wincyj davebarnes: i mean 2 qries in one sls file
22:33 wincyj so i need to double this example and change the query var right?
22:34 davebarnes you should make each ID unique. such as e.g. query-1, query-2
22:34 wincyj ye thats obvious :)
22:34 wincyj ok i just wanted to be sure if i can do sth like that :)
22:34 wincyj thx
22:34 CeBe joined #salt
22:35 davebarnes np
22:35 CeBe1 joined #salt
22:35 hvn joined #salt
22:36 otter768 joined #salt
22:36 cheus joined #salt
22:36 gladiatr joined #salt
22:43 heaumer_ joined #salt
22:43 phx__ joined #salt
22:43 forrest_ joined #salt
22:43 mage__ joined #salt
22:43 wnkz_ joined #salt
22:44 yomilk_ joined #salt
22:44 tligda joined #salt
22:44 schlueter joined #salt
22:44 moderation_ joined #salt
22:45 mikepea_ joined #salt
22:45 zzzirk_ joined #salt
22:45 bhosmer_ joined #salt
22:45 funzo_ joined #salt
22:45 wavis_ joined #salt
22:45 munhitsu____ joined #salt
22:45 stewba_ joined #salt
22:45 ntropy_ joined #salt
22:46 davidone joined #salt
22:46 nebuchad` joined #salt
22:46 twellspr_ joined #salt
22:46 gwhiteman joined #salt
22:46 nafg__ joined #salt
22:46 Hipikat_ joined #salt
22:46 andabata- joined #salt
22:46 ShibMcNe_ joined #salt
22:46 amatas_ joined #salt
22:46 berserk_ joined #salt
22:46 Ligthert_ joined #salt
22:46 gaurdro_ joined #salt
22:46 rogst_ joined #salt
22:47 vu_ joined #salt
22:47 mackstic1 joined #salt
22:47 chrischr1s joined #salt
22:47 retr0h_ joined #salt
22:47 davroman1ak joined #salt
22:47 cwright joined #salt
22:47 mik3_ joined #salt
22:47 nyov_ joined #salt
22:47 __alex_ joined #salt
22:47 bantone_ joined #salt
22:47 gadams_ joined #salt
22:47 zzzirk__ joined #salt
22:47 mpanetta_ joined #salt
22:47 jY- joined #salt
22:47 jsm left #salt
22:47 Xiao joined #salt
22:47 pacopablo joined #salt
22:47 babilen_ joined #salt
22:47 speed145a joined #salt
22:48 knot` joined #salt
22:48 the_ktosiek joined #salt
22:48 bhosme___ joined #salt
22:48 sine_nitore joined #salt
22:48 honestly_ joined #salt
22:48 tedski- joined #salt
22:48 CatPlusPlus_ joined #salt
22:48 mattjb joined #salt
22:49 JonGretar_ joined #salt
22:49 robins joined #salt
22:49 vincent_1dk joined #salt
22:49 schristensen_ joined #salt
22:50 nahamu_ joined #salt
22:50 palantir joined #salt
22:50 jsm joined #salt
22:50 simmel_ joined #salt
22:50 Cottser joined #salt
22:50 hontss joined #salt
22:50 dnj` joined #salt
22:50 crazysim_ joined #salt
22:50 UForgotten_ joined #salt
22:51 mariusv_ joined #salt
22:51 dstokes_ joined #salt
22:51 rigor789z joined #salt
22:51 mrtrosen_ joined #salt
22:51 nhubbard_ joined #salt
22:51 ropes_ joined #salt
22:51 darvon_ joined #salt
22:51 bigmston1 joined #salt
22:51 drawks_ joined #salt
22:51 mortis joined #salt
22:51 tmmt_ joined #salt
22:51 Damianz joined #salt
22:51 Damianz joined #salt
22:51 luminous_ joined #salt
22:51 Ahlee_ joined #salt
22:52 \ask_ joined #salt
22:53 NightMonkey joined #salt
22:53 NikolaiToryzin joined #salt
22:53 muebel joined #salt
22:53 nlb joined #salt
22:53 zemm_ joined #salt
22:53 aqua^lsn_ joined #salt
22:53 sirtaj_ joined #salt
22:53 dh__ joined #salt
22:53 thayne joined #salt
22:53 jasonrm joined #salt
22:53 higgs001 joined #salt
22:53 harkx joined #salt
22:53 darrend joined #salt
22:53 dave_den1 joined #salt
22:53 housl joined #salt
22:53 andrew_v joined #salt
22:53 lionel joined #salt
22:53 Nazca joined #salt
22:53 masterkorp joined #salt
22:53 Linuturk joined #salt
22:53 Ymage joined #salt
22:53 davebarnes joined #salt
22:53 oeuftete joined #salt
22:53 dthorman joined #salt
22:53 wiqd joined #salt
22:53 EWDurbin joined #salt
22:53 SheetiS joined #salt
22:53 nicksloan joined #salt
22:53 antonw joined #salt
22:53 modafinil joined #salt
22:53 emid_ joined #salt
22:53 bigl0af joined #salt
22:53 ashb joined #salt
22:53 mschiff joined #salt
22:53 sroegner joined #salt
22:53 eightyeight joined #salt
22:53 nethershaw joined #salt
22:53 cruatta joined #salt
22:53 ventris joined #salt
22:53 gwmngilfen|afk joined #salt
22:53 64MABMVL9 joined #salt
22:53 lynxman joined #salt
22:53 supermike joined #salt
22:53 Bryanstein joined #salt
22:53 lahwran joined #salt
22:53 steveoliver joined #salt
22:53 z3uS joined #salt
22:53 bdols joined #salt
22:53 TronPaul_ joined #salt
22:53 lazybear joined #salt
22:53 wolog_ joined #salt
22:53 randomuser joined #salt
22:53 freelock joined #salt
22:53 Karunamon joined #salt
22:53 rager joined #salt
22:53 jmccree joined #salt
22:53 wintamute joined #salt
22:53 mlanner joined #salt
22:53 Emantor joined #salt
22:53 SaveTheRbtz joined #salt
22:53 Damon joined #salt
22:53 covox joined #salt
22:53 sgate1 joined #salt
22:53 ahale_ joined #salt
22:53 REdOG joined #salt
22:53 agj joined #salt
22:53 teepark joined #salt
22:53 ahammond joined #salt
22:53 LotR joined #salt
22:53 notbmatt joined #salt
22:53 carmony joined #salt
22:53 pjs joined #salt
22:53 whytewolf joined #salt
22:53 faulkner joined #salt
22:53 codysoyland joined #salt
22:53 jakesyl_insomnia joined #salt
22:53 nkuttler joined #salt
22:53 nikogonzo joined #salt
22:53 johtso joined #salt
22:53 mirko joined #salt
22:54 utahcon joined #salt
22:54 jaylark joined #salt
22:54 mick3y joined #salt
22:54 _ikke__ joined #salt
22:54 jakesyl_insomnia joined #salt
22:54 ldleworker joined #salt
22:54 amontalban joined #salt
22:54 AbyssOne_ joined #salt
22:54 thehaven joined #salt
22:54 Barbaros1a joined #salt
22:54 lz-dylan_ joined #salt
22:54 snuffop joined #salt
22:54 superseb_ joined #salt
22:54 sc`_ joined #salt
22:54 mosen joined #salt
22:54 aparsons joined #salt
22:54 cwyse joined #salt
22:54 dark_helmet joined #salt
22:54 theologian joined #salt
22:54 nickdew joined #salt
22:54 gattie joined #salt
22:54 meylor joined #salt
22:54 zeroC joined #salt
22:54 Flusher joined #salt
22:54 CaptainMagnus joined #salt
22:54 catpigger joined #salt
22:54 hal58th1 joined #salt
22:54 viq joined #salt
22:54 grepory joined #salt
22:54 simonmcc joined #salt
22:54 codekobe joined #salt
22:54 octarine joined #salt
22:54 copelco joined #salt
22:54 fxdgear joined #salt
22:54 neilf______ joined #salt
22:54 manytrees joined #salt
22:54 fxhp joined #salt
22:54 Kenz0r joined #salt
22:54 djinni`_ joined #salt
22:54 stooj joined #salt
22:54 anotherZero joined #salt
22:54 capricorn_1 joined #salt
22:54 scalability-junk joined #salt
22:54 Laogeodritt joined #salt
22:54 paha joined #salt
22:54 numkem joined #salt
22:54 workingcats joined #salt
22:54 Micromus joined #salt
22:54 _ether_ joined #salt
22:54 __number5__ joined #salt
22:54 gfa joined #salt
22:54 Zachary_DuBois joined #salt
22:54 sk_0 joined #salt
22:54 shaggy joined #salt
22:54 v0rtex joined #salt
22:54 rome_390_ joined #salt
22:54 FineTralfazz_ joined #salt
22:54 CSa_ joined #salt
22:55 Hydro_ joined #salt
23:03 ilbot3 joined #salt
23:03 Topic for #salt is now Welcome to #salt | SaltConf 2015 Call for Speakers is open! http://saltconf.com/call-for-speakers/ | 2014.7.0 is the latest | Please be patient when asking questions as we are volunteers and may not have immediate answers | Channel logs are available at http://irclog.perlgeek.de/salt/
23:03 unbmatt joined #salt
23:03 Morbus joined #salt
23:03 wedgie_ joined #salt
23:03 Hybrid1 joined #salt
23:03 dean joined #salt
23:03 erjohnso_ joined #salt
23:03 crazysim joined #salt
23:03 yomilk joined #salt
23:03 scooby2 joined #salt
23:04 monokrome joined #salt
23:04 djaykay joined #salt
23:04 ede joined #salt
23:04 heaumer joined #salt
23:05 18VABY2RR joined #salt
23:05 sirtaj joined #salt
23:05 stotch joined #salt
23:05 Ligthert joined #salt
23:05 CeBe joined #salt
23:05 toddnni joined #salt
23:05 rome_390 joined #salt
23:05 jramnani` joined #salt
23:05 ckao joined #salt
23:05 Alan_S joined #salt
23:05 mpoole joined #salt
23:05 jaylark_ joined #salt
23:05 utahcon_ joined #salt
23:05 Cottser|away joined #salt
23:05 sinh_ joined #salt
23:05 gwmngilfen joined #salt
23:05 REdOG_ joined #salt
23:05 JoeHazzers joined #salt
23:05 rigor789|away joined #salt
23:05 aqua^lsn joined #salt
23:05 jerrcs joined #salt
23:05 eliasp joined #salt
23:05 jbub joined #salt
23:05 kormoc joined #salt
23:05 GvJordan joined #salt
23:05 mfournier joined #salt
23:05 jgelens joined #salt
23:05 esharpmajor joined #salt
23:05 kaiyou joined #salt
23:05 g3cko joined #salt
23:05 berto- joined #salt
23:05 xenoxaos joined #salt
23:05 arapaho joined #salt
23:05 JPaul joined #salt
23:05 goki_________ joined #salt
23:05 SubOracle joined #salt
23:05 jcristau joined #salt
23:05 fintler_ joined #salt
23:05 Sway joined #salt
23:05 zz_Cidan joined #salt
23:05 gamingrobot joined #salt
23:05 techdragon joined #salt
23:05 scarcry joined #salt
23:05 Samos123 joined #salt
23:05 georgemarshall joined #salt
23:05 pppingme joined #salt
23:05 mattl joined #salt
23:05 kwmiebach joined #salt
23:05 imanc joined #salt
23:05 APLU joined #salt
23:05 ikanobori_ joined #salt
23:05 madduck joined #salt
23:05 markizano joined #salt
23:05 Vye joined #salt
23:05 Eugene joined #salt
23:05 hillna_ joined #salt
23:05 rhand joined #salt
23:05 Sypher joined #salt
23:05 oeuftete joined #salt
23:05 wintamute joined #salt
23:05 freelock joined #salt
23:06 mirko joined #salt
23:06 stevednd joined #salt
23:06 thunderbolt joined #salt
23:06 ampex joined #salt
23:06 cberndt joined #salt
23:06 antonw joined #salt
23:06 marcinkuzminski joined #salt
23:06 seb` joined #salt
23:06 tomspur joined #salt
23:06 racooper joined #salt
23:06 blackjid joined #salt
23:06 Rockj joined #salt
23:06 hellerbarde joined #salt
23:06 manfred joined #salt
23:06 tmmt joined #salt
23:06 gadams joined #salt
23:06 mrjk joined #salt
23:07 modafinil joined #salt
23:07 giany joined #salt
23:07 Corey joined #salt
23:07 bigl0af joined #salt
23:07 EvaSDK joined #salt
23:07 EvaSDK joined #salt
23:07 quickdry21 joined #salt
23:07 mik3 joined #salt
23:07 mortis joined #salt
23:07 horus_plex joined #salt
23:07 lude1 joined #salt
23:08 davebarnes joined #salt
23:08 cruatta joined #salt
23:08 phx joined #salt
23:08 supermike joined #salt
23:08 FineTralfazz joined #salt
23:08 jevonearth1 joined #salt
23:08 Emantor joined #salt
23:08 vlcn joined #salt
23:08 hintss joined #salt
23:08 smkelly joined #salt
23:08 beneggett joined #salt
23:08 mage_ joined #salt
23:09 canci joined #salt
23:09 dthorman joined #salt
23:09 grep_away joined #salt
23:09 Damianz joined #salt
23:09 Damianz joined #salt
23:09 codysoyland joined #salt
23:09 lahwran joined #salt
23:09 carmony joined #salt
23:09 APLU joined #salt
23:09 goki_________ joined #salt
23:10 s0lar joined #salt
23:10 hardwire joined #salt
23:10 t0rrant joined #salt
23:10 garphy joined #salt
23:10 chrischris joined #salt
23:10 Bryanstein joined #salt
23:10 fejese joined #salt
23:10 nkuttler_ joined #salt
23:11 jgelens joined #salt
23:11 cedwards joined #salt
23:11 blast_hardcheese joined #salt
23:11 svx joined #salt
23:11 zemm joined #salt
23:11 tru_tru joined #salt
23:11 smcquay joined #salt
23:12 whytewolf joined #salt
23:12 eMBee joined #salt
23:12 TrafficMan joined #salt
23:12 nethershaw joined #salt
23:12 jeblair joined #salt
23:12 seblu joined #salt
23:12 shaggy joined #salt
23:12 Heggan joined #salt
23:12 ashb_ joined #salt
23:12 CeBe2 joined #salt
23:12 vincent_vdk joined #salt
23:12 amontalb1n joined #salt
23:12 lionel joined #salt
23:12 \ask joined #salt
23:12 Ymage joined #salt
23:12 terinjokes joined #salt
23:12 kalessin joined #salt
23:12 jacksontj joined #salt
23:12 muep joined #salt
23:12 goal joined #salt
23:12 bernieke joined #salt
23:12 steveoliver joined #salt
23:12 davromaniak joined #salt
23:12 repl1can1 joined #salt
23:12 Linuturk joined #salt
23:12 bdols joined #salt
23:12 CryptoMer joined #salt
23:12 dave_den1 joined #salt
23:12 pjs joined #salt
23:12 Karunamon joined #salt
23:12 dh joined #salt
23:12 andrew_v joined #salt
23:12 eightyeight joined #salt
23:12 ahale joined #salt
23:12 z3uS joined #salt
23:12 randomuser joined #salt
23:12 lazybear joined #salt
23:12 TronPaul_ joined #salt
23:12 ShibMcNe joined #salt
23:12 sk_0 joined #salt
23:12 PI-Lloyd joined #salt
23:12 Zachary_DuBois joined #salt
23:12 gfa joined #salt
23:12 __number5__ joined #salt
23:12 _ether_ joined #salt
23:12 Micromus joined #salt
23:12 workingcats joined #salt
23:12 numkem joined #salt
23:12 paha joined #salt
23:12 Laogeodritt joined #salt
23:12 scalability-junk joined #salt
23:12 capricorn_1 joined #salt
23:12 anotherZero joined #salt
23:12 stooj joined #salt
23:12 djinni`_ joined #salt
23:12 Kenz0r joined #salt
23:12 fxhp joined #salt
23:12 manytrees joined #salt
23:12 neilf______ joined #salt
23:12 fxdgear joined #salt
23:12 copelco joined #salt
23:12 octarine joined #salt
23:12 codekobe joined #salt
23:12 simonmcc joined #salt
23:12 grepory joined #salt
23:12 viq joined #salt
23:12 hal58th1 joined #salt
23:12 catpigger joined #salt
23:12 CaptainMagnus joined #salt
23:12 Flusher joined #salt
23:12 zeroC joined #salt
23:12 meylor joined #salt
23:12 gattie joined #salt
23:12 nickdew joined #salt
23:12 theologian joined #salt
23:12 dark_helmet joined #salt
23:12 cwyse joined #salt
23:12 aparsons joined #salt
23:12 mosen joined #salt
23:12 sc`_ joined #salt
23:12 superseb_ joined #salt
23:12 snuffop joined #salt
23:12 lz-dylan_ joined #salt
23:12 Barbaros1a joined #salt
23:12 thehaven joined #salt
23:12 overyander joined #salt
23:12 denstark_ joined #salt
23:12 nullptr` joined #salt
23:12 tempspace joined #salt
23:12 nyov joined #salt
23:12 cwright_ joined #salt
23:12 __alex joined #salt
23:12 mohae joined #salt
23:12 zzzirk joined #salt
23:12 yetAnotherZero joined #salt
23:12 danemacmillan joined #salt
23:12 sarlalian joined #salt
23:12 torment_ joined #salt
23:12 Mindfartio joined #salt
23:12 sifusam joined #salt
23:12 pdayton1 joined #salt
23:12 MTecknol1gy joined #salt
23:12 mr_chris- joined #salt
23:12 lamasnik joined #salt
23:12 KaaK_ joined #salt
23:12 cheus joined #salt
23:12 ventris joined #salt
23:12 rome_390 joined #salt
23:12 bregalad joined #salt
23:12 abe_music joined #salt
23:12 Singularo joined #salt
23:12 nlb joined #salt
23:12 nicksloan joined #salt
23:12 SaveTheRbtz joined #salt
23:12 agj joined #salt
23:12 kermit joined #salt
23:12 emid joined #salt
23:12 msciciel joined #salt
23:12 ndrei joined #salt
23:12 darrend joined #salt
23:12 rnts joined #salt
23:12 sgate1 joined #salt
23:12 faulkner joined #salt
23:12 Blacklite joined #salt
23:12 bigmstone joined #salt
23:12 jab416171 joined #salt
23:12 DaveQB joined #salt
23:12 housl_ joined #salt
23:12 jpaetzel joined #salt
23:12 mitsuhiko joined #salt
23:12 twellspr_ joined #salt
23:13 lynxman joined #salt
23:13 arnoldB joined #salt
23:13 muss joined #salt
23:13 jasonrm joined #salt
23:13 LotR joined #salt
23:13 samed joined #salt
23:13 harkx joined #salt
23:13 natewalck joined #salt
23:13 jmccree joined #salt
23:13 renoirb joined #salt
23:13 robawt joined #salt
23:13 Heartsbane joined #salt
23:13 ahammond joined #salt
23:13 kaptk2 joined #salt
23:13 bdf joined #salt
23:13 GnuLxUsr joined #salt
23:13 iggy joined #salt
23:13 totte joined #salt
23:13 masterkorp joined #salt
23:13 pfallenop joined #salt
23:13 woop joined #salt
23:13 baffle joined #salt
23:13 Ouzo_12 joined #salt
23:13 1JTAABLY5 joined #salt
23:13 murrdoc joined #salt
23:13 InAnimaTe joined #salt
23:13 covox joined #salt
23:13 g3cko joined #salt
23:13 GvJordan joined #salt
23:13 ikanobori_ joined #salt
23:13 basepi_ joined #salt
23:13 teepark joined #salt
23:13 iml joined #salt
23:13 CaptTofu_ joined #salt
23:13 mschiff joined #salt
23:13 EWDurbin joined #salt
23:13 wiqd joined #salt
23:13 mihait joined #salt
23:13 akoumjian joined #salt
23:13 joeyparsons joined #salt
23:13 m0nky joined #salt
23:13 JordanTesting joined #salt
23:13 gyre007 joined #salt
23:13 packeteer joined #salt
23:13 ramishra_ joined #salt
23:13 akitada joined #salt
23:13 seanz joined #salt
23:13 kossy joined #salt
23:13 bryguy joined #salt
23:13 balltongu_ joined #salt
23:13 bytemask_ joined #salt
23:13 jayne_ joined #salt
23:13 tomh- joined #salt
23:13 wendall911 joined #salt
23:13 xsteadfastx joined #salt
23:13 [vaelen] joined #salt
23:13 adrianhannah joined #salt
23:13 pipeep joined #salt
23:13 out180 joined #salt
23:13 geekatcmu joined #salt
23:13 nliadm joined #salt
23:13 Tahm joined #salt
23:13 dcmorton joined #salt
23:13 jab416171 joined #salt
23:13 mitsuhiko joined #salt
23:14 samed joined #salt
23:14 Nazca joined #salt
23:14 Mindfartio joined #salt
23:14 jab416171 joined #salt
23:14 kossy joined #salt
23:14 mikkn joined #salt
23:14 pfallenop joined #salt
23:14 phil joined #salt
23:15 skarn joined #salt
23:15 flebel joined #salt
23:15 terinjokes joined #salt
23:15 runnyspot joined #salt
23:15 runnyspot joined #salt
23:15 mlanner joined #salt
23:16 nkuttler_ left #salt
23:16 kossy joined #salt
23:16 moapa joined #salt
23:17 wolog joined #salt
23:17 Rory joined #salt
23:17 iamtew joined #salt
23:17 tedski joined #salt
23:17 Damon joined #salt
23:17 spookah joined #salt
23:17 hybridpollo joined #salt
23:17 murkey joined #salt
23:18 Guest14232 joined #salt
23:18 nkuttler joined #salt
23:18 nkuttler joined #salt
23:18 KyleG joined #salt
23:18 KyleG joined #salt
23:19 eliasp joined #salt
23:21 atoponce if a file is managed in its own state. say, "/etc/ssl/private/file.crt", but I wish to overwrite its user, group, and mode in a different state, how do i do this?
23:21 yomilk joined #salt
23:21 thayne joined #salt
23:21 Guest58281 joined #salt
23:22 lamasnik joined #salt
23:22 atoponce for example, if /etc/ssl/private/dhparams.pem is defined elsewhere, with say "root:root 600", how do i change that here: http://ae7.st/p/8ra
23:22 wincyj atoponce: maybe u just need to overwirte mods in anycase?
23:23 wincyj if mods will be matched - ok if not they will be changed
23:23 wincyj but im new to salt :)
23:23 cofeineSunshine joined #salt
23:23 badon joined #salt
23:23 shaggy_surfer joined #salt
23:23 analogbyte joined #salt
23:23 urtokk joined #salt
23:24 badon joined #salt
23:25 cpt-oblivious joined #salt
23:25 cpt-oblivious joined #salt
23:25 hal58th1 atonponce: Can you not specify the user, group and mode in the first state?
23:26 hal58th1 atonponce: as in, just leave it blank. If you can't, I would write an if statement for that.
23:26 berserk joined #salt
23:26 pviktori_ joined #salt
23:27 atoponce hal58th1: yeah. it's set in the 'sslcerts' state. i want them set there too. i just want to override those settings in 1 different state
23:27 erjohnso joined #salt
23:27 atoponce hal58th1: also, you can tab-complete nicks in your irc client
23:27 atoponce :)
23:28 foulou joined #salt
23:28 spiksius joined #salt
23:28 thunderbolt joined #salt
23:28 antonw joined #salt
23:28 modafinil joined #salt
23:28 supermike joined #salt
23:29 hal58th1 atonponce not using Adium :)  What I would do, is in the first state, write an if statement to not set the user,mode or group if the second state will be called…
23:29 goki_________ joined #salt
23:29 atoponce (there is only 1 'n' in my nick, not 2)
23:29 iggy atoponce: don't... we have some states that do that (2 different touches of the same file)... it annoys the piss out of everyone as it constantly looks like the file is changing
23:29 atoponce iggy: what states?
23:30 iggy 2 file.managed's in different states
23:30 iggy of the same file
23:30 natewalck joined #salt
23:31 akitada_ joined #salt
23:31 ramishra_ joined #salt
23:31 gyre007 joined #salt
23:31 JordanTesting joined #salt
23:31 m0nky joined #salt
23:31 joeyparsons joined #salt
23:31 akoumjian joined #salt
23:31 mihait joined #salt
23:31 wiqd joined #salt
23:31 Guest3442 joined #salt
23:31 CaptTofu_ joined #salt
23:31 iml joined #salt
23:31 Guest25589 joined #salt
23:31 ikanobori_ joined #salt
23:32 atoponce i guess i'm not following. did you say salt had a state to handle that?
23:33 atoponce i guess i could use file.copy, put it in a 2nd location, and managed the user, group, and mode that way
23:34 atoponce that just seems hack-ish
23:34 eagles0513875 joined #salt
23:36 gladiatr_ joined #salt
23:37 shaggy_surfer joined #salt
23:37 wt joined #salt
23:41 jerematic joined #salt
23:43 higgs001 joined #salt
23:45 abrahamrhoffman joined #salt
23:45 iggy file.managed is a state (that can set contents of files, but can also just set user/group/perms/etc)
23:45 yomilk joined #salt
23:46 atoponce right
23:46 atoponce so I have as 'sslcerts' state that is used by our web servers, VPN, etc
23:47 atoponce file.managed is managing the user, group, mode properly
23:47 atoponce but, in the case of our IRC servers, I want to override those, but just for the IRC servers
23:48 iggy I'm not seeing what the problem is here
23:48 atoponce the settings aren't getting overridden
23:50 JDiPierro joined #salt
23:52 CeBe1 joined #salt
23:52 CeBe3 joined #salt
23:53 iggy paste your states, top file, log of the highstate, etc.
23:54 tyler-baker joined #salt
23:54 atoponce I'. on my phone right now. I've got a second pair of eyes looking at it. if we don't have it solved, I'll pastebin it
23:57 nlb joined #salt
23:58 beneggett joined #salt

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