Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-09-27

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

All times shown according to UTC.

Time Nick Message
00:01 nicksloan joined #salt
00:03 pipps joined #salt
00:04 Bryson joined #salt
00:04 subsignal joined #salt
00:04 subsigna_ joined #salt
00:05 jimklo joined #salt
00:09 pipps joined #salt
00:16 Salander27 joined #salt
00:23 mosen joined #salt
00:23 John_Kang joined #salt
00:25 barmaley joined #salt
00:26 jas02 joined #salt
00:28 jimklo_ joined #salt
00:29 Nahual joined #salt
00:38 pipps joined #salt
00:41 ssplatt joined #salt
00:53 Joe630 joined #salt
00:54 Joe630 hello salt-friends.  I have been using salt-cloud to deploy machine and have a salt reactor that responds to 'salt/cloud/*/deploying'.  That stopped working.  I am running salt-master -l debug, and I don't see those events coming in anymore!  Did something change recently?
00:55 Joe630 is there another way to monitor incoming events?
01:09 sandro___ joined #salt
01:12 jachin0 joined #salt
01:14 jachin0 I have a question. I’m running into an issue that looks a lot like this. https://github.com/saltstack/salt/issues/35551 It appears to be fixed and I think i’m running a version that should have the fix in it (salt-ssh 2016.3.3 (Boron)). Am I missing something, or maybe I’m running into a different erro?
01:14 saltstackbot [#35551][MERGED] rsync state not working on RedHat / CentOS | Description of Issue/Question...
01:15 spuder joined #salt
01:16 Joe630 re my issue:  looks like its addressed in https://github.com/saltstack/salt/issues/36055
01:16 saltstackbot [#36055][MERGED] 2016.3.3 -- missing salt-cloud events on the master event bus | Description of Issue/Question...
01:17 jachin0 Here’s the exact error if that help. https://gist.github.com/jachin/60eed5feff70000764f212747a97e9a5
01:19 spuder joined #salt
01:19 swa_work joined #salt
01:25 catpiggest joined #salt
01:27 jas02 joined #salt
01:28 mpanetta_ joined #salt
01:31 netcho joined #salt
01:35 bluenemo joined #salt
01:38 Nahual1 joined #salt
01:39 Jimlad joined #salt
01:41 sebastian-w joined #salt
01:46 edrocks joined #salt
01:48 ilbot3 joined #salt
01:48 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.8.12, 2016.3.3 | Support: https://www.saltstack.com/support/ | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | See also: #salt-devel, #salt-offtopic | Ask with patience as we are volunteers and may not have immediate answers
01:52 mosen hiya saltines
01:53 sleblanc left #salt
01:55 mavhq joined #salt
01:58 akhter joined #salt
01:58 swa_work joined #salt
01:59 BlackMaria_netsp joined #salt
02:12 Jimlad joined #salt
02:21 jachin0 left #salt
02:21 ajw0100 joined #salt
02:27 jas02 joined #salt
02:37 bocaneri joined #salt
02:40 kaak joined #salt
02:42 * XenophonF just keeps swimming
02:48 cliluw joined #salt
02:54 cliluw joined #salt
02:56 blu__ joined #salt
03:08 amontalban joined #salt
03:08 amontalban joined #salt
03:16 Sammichmaker joined #salt
03:16 DEger joined #salt
03:22 thejrose1984 joined #salt
03:28 jas02 joined #salt
03:32 netcho joined #salt
03:36 sjmh joined #salt
03:37 sjmh is it possible to configure extra directories for module syncing, besides /fileroot/_modules?
03:43 tristianc joined #salt
03:46 edrocks joined #salt
03:46 rem5 joined #salt
03:52 subsignal joined #salt
03:55 Jimlad_ joined #salt
04:03 mpanetta joined #salt
04:04 mpanetta_ joined #salt
04:07 voxpop joined #salt
04:10 onlyanegg joined #salt
04:10 voxpop joined #salt
04:11 om joined #salt
04:29 jas02 joined #salt
04:30 DEger joined #salt
04:59 nicksloan joined #salt
05:00 N-Mi joined #salt
05:00 jas02 joined #salt
05:06 rdas joined #salt
05:10 amontalban joined #salt
05:19 keimlink joined #salt
05:29 impi joined #salt
05:33 mikea joined #salt
05:33 netcho joined #salt
05:33 mikea External pillars are run on the master, right?
05:37 narfology I have two formulas who should reference the same state - how to best do this? I don't want to just copy it into both formulas
05:38 felskrone joined #salt
05:38 keimlink joined #salt
05:45 jas02 joined #salt
05:48 edrocks joined #salt
05:54 subsignal joined #salt
06:01 jas02_ joined #salt
06:06 jxm_ joined #salt
06:11 MTecknology does salt have to be compiled or if I want to do dev stuff can I just run ./salt-master from a directory?
06:16 DarkKnightCZ joined #salt
06:17 hlub I think you could use python virtual environments and pip install salt with the --editable flag.
06:18 MTecknology I was shooting more for git clone
06:20 hlub yes, git clone and pip install --editable <path to that clone>
06:22 MTecknology ah
06:23 narfology if I integrate formulas via gitfs, is there still a way to locally make changes (tryout stuff/debug) without having to commit everytime? I rather commit the formula changes once it works.
06:24 MTecknology This is kinda fun... I'm spinning up a master, two syndics, and two minions in my home environment just to test some salt changes I'm working on. Not because I need the fixes anymore, but because they're open bugs I reported that I feel like I can finally fix. :P
06:24 MTecknology narfology: vagrant
06:25 MTecknology +vbox
06:25 narfology MTecknology: I don't see how vagrant solves this. Care to elaborate?
06:25 MTecknology test things, then push
06:26 narfology MTecknology: yes, I can do that, but why vagrant? I can also do that on a server, or anywhere...
06:27 MTecknology k... so then you have the answer to your question
06:27 MTecknology vagrant up master; vagrant up minion; vagrant ssh minion; sudo salt-call state.highstate
06:27 MTecknology works?
06:27 MTecknology push
06:28 gtmanfred joined #salt
06:29 mosen MTecknology: there's a "setting up a development environment" part of the manual which runs in a venv
06:30 mosen also if you're using vagrant anyway you could use the salt provisioner or maybe even kitchen salt but I'm not sure on the status of that :)
06:30 haam3r joined #salt
06:31 mohae_ joined #salt
06:31 MTecknology I don't actually use vagrant for home stuff and my at-work salt doesn't give me a lot of salt dev opportunity, so I'm actually using my home infrastructure to build something larger. Eventually I'll copy what work did.
06:35 ronrib1 joined #salt
06:41 sgo_ joined #salt
06:45 deus_ex joined #salt
06:45 MTecknology actually, if I pull in vagrant, I'm going to try to make it deploy things in that environment
06:51 armyriad joined #salt
07:01 toanju joined #salt
07:01 toanju joined #salt
07:02 jas02 joined #salt
07:08 ronnix joined #salt
07:15 jas02 joined #salt
07:18 lero joined #salt
07:20 Brijesh1 joined #salt
07:23 daxomatic joined #salt
07:27 sagerdearia joined #salt
07:32 jas02 joined #salt
07:34 netcho joined #salt
07:39 dariusjs joined #salt
07:40 DEger joined #salt
07:48 losh joined #salt
07:49 impi joined #salt
07:49 edrocks joined #salt
07:56 subsignal joined #salt
07:57 krymzon joined #salt
07:58 kshlm joined #salt
07:59 hoonetorg joined #salt
07:59 lero joined #salt
08:01 Reverend joined #salt
08:02 mikecmpbll joined #salt
08:03 jas02_ joined #salt
08:04 Rumbles joined #salt
08:06 anmol joined #salt
08:08 geomacy joined #salt
08:13 amontalban joined #salt
08:13 amontalban joined #salt
08:19 s_kunk joined #salt
08:32 frew joined #salt
08:32 netcho joined #salt
08:38 akhter joined #salt
08:41 Couch joined #salt
08:45 narfology MTecknology: I still don't  see how vagrant has anything to do with my attempt to have a formula tested without tons of tiny gitfs git commits.
08:45 harkx joined #salt
08:46 netcho joined #salt
08:49 lero__ joined #salt
08:50 _aeris_ joined #salt
08:55 ferbla joined #salt
09:00 watersoul joined #salt
09:02 AndreasLutro I use vagrant for local testing, and I've just configured the master in vagrant to use regular filesystem roots instead of gitfs
09:02 AndreasLutro so I can make local changes and test them immediately
09:02 hoonetorg joined #salt
09:03 jas02_ joined #salt
09:18 traph joined #salt
09:20 mohae joined #salt
09:30 babilen AndreasLutro: I mount a local checkout of the git repositories into the vagrant box and have it use it as a local file_tree .. that way I can just upgrade those clones and test them immediately in vagrant
09:30 ssplatt joined #salt
09:35 N-Mi joined #salt
09:35 jhauser joined #salt
09:42 netcho joined #salt
09:52 edrocks joined #salt
09:55 weylin joined #salt
09:56 ponyofdeath joined #salt
09:57 chamunks joined #salt
09:58 stotch joined #salt
09:58 subsignal joined #salt
09:58 robbintt joined #salt
09:58 NV joined #salt
09:59 etangle joined #salt
10:00 shanemhansen joined #salt
10:02 Criggie joined #salt
10:04 jas02_ joined #salt
10:24 jfindlay joined #salt
10:26 cyborg-one joined #salt
10:30 ronnix joined #salt
10:39 keekz joined #salt
10:54 teryx510 joined #salt
11:01 Guest28499 joined #salt
11:05 jas02 joined #salt
11:10 jas02 joined #salt
11:12 cyteen joined #salt
11:15 amontalban joined #salt
11:20 subsignal joined #salt
11:22 BlackMaria joined #salt
11:30 netcho hey guys, whats the best way for managing ssh keys?
11:30 netcho using ssh_auth module?
11:32 irctc965 joined #salt
11:34 raspado joined #salt
11:37 josuebrunel joined #salt
11:53 edrocks joined #salt
11:59 amontalban joined #salt
12:00 teryx510 joined #salt
12:02 DEger joined #salt
12:04 akw_ joined #salt
12:05 DammitJim joined #salt
12:06 ashmckenzie_ joined #salt
12:06 jas02_ joined #salt
12:07 numkem joined #salt
12:07 jerryc joined #salt
12:07 hopthrisC joined #salt
12:07 muep joined #salt
12:09 wm-bot4 joined #salt
12:17 fredvd joined #salt
12:24 toanju joined #salt
12:24 west575 joined #salt
12:25 ronnix joined #salt
12:31 voxpop joined #salt
12:31 ssplatt joined #salt
12:35 zulutango joined #salt
12:37 ivanjaros joined #salt
12:46 netcho joined #salt
12:48 shanemhansen joined #salt
12:51 raspado joined #salt
12:52 nicksloan joined #salt
12:52 jas02 joined #salt
12:56 amontalban joined #salt
13:01 jcherndon joined #salt
13:01 jcherndon good morning all
13:02 jcherndon I was wondering if there is a way to drop text from one file into another using salt?
13:02 andreyst joined #salt
13:02 oliver_are joined #salt
13:03 jcherndon maybe using file.blockreplace?
13:03 andreyst Hi all! Is it possible to execute only subset of top state? State.sls <mystate> doesn't help here, since it will execute specified state regardless of whether or not <mystate> is actually in top.sls
13:05 andreyst To give more context: what I am trying to achieve is 1) to execute newly updated state on all hosts which use this state 2) want to save some time and not to run state.highstate on all hosts
13:05 Brew joined #salt
13:05 andreyst No. 1 is achieved by running state.highstate, but that's what I am trying to avoid.
13:05 AndreasLutro andreyst: nope, you can't
13:06 andreyst AndreasLutro: you mean no way? Always running state.highstate?
13:06 giany hi, I have some servers started with lxc driver..and when I try to run lxc.list on a minion I get : "'lxc' __virtual__ returned False: The lxc execution module cannot be loaded: the lxc-start binary is not in the path." What am I missing?
13:06 jas02 joined #salt
13:07 AndreasLutro andreyst: state.highstate and state.sls are your only options, you can't partially apply a highstate
13:08 giany hmm..ignore the question
13:08 andreyst That's too bad… :( Okay thanks a lot!
13:08 andreyst at least now I know that :D
13:09 rem5 joined #salt
13:09 oliver_are Hi, I'm keep getting this most of the time when I execute salt command   "Salt request timed out. The master is not responding. If this error persists after verifying the master is up, worker_threads may need to be increased."
13:10 oliver_are in master
13:11 oliver_are could someone help me to resolve this
13:11 oliver_are I'm new to saltstack
13:12 prg3 joined #salt
13:16 racooper joined #salt
13:17 netcho joined #salt
13:19 impi joined #salt
13:21 XenophonF oliver_are: check your salt master's firewall settings
13:21 XenophonF make sure the minion can connect to the master over ports 4505 and 4506 (TCP)
13:22 XenophonF you'll want to read through the FAQ and troubleshooting guides, too
13:22 XenophonF http://docs.saltstack.com/
13:22 XenophonF search for FAQ
13:22 XenophonF the faq is the first hit, troubleshooting the third
13:23 oliver_are XenophonF, Thanks for your response. I'm not sure why this is happening http://pastebin.com/sX4P1WVG
13:24 tapoxi joined #salt
13:26 oliver_are I can see the slat master daemons keep running even after stoping the master
13:27 subsignal joined #salt
13:29 XenophonF please don't use pastebin - use paste.debian.net, ix.io, etc.
13:30 XenophonF i'm glad your master is running
13:30 XenophonF make sure to verify that minions can connect to it over the network
13:31 oliver_are XenophonF, I feel the problem is salt-master keeps running even after the stop of salt-master
13:32 XenophonF oh
13:32 XenophonF hm
13:32 XenophonF clearly i haven't had enough coffee yet
13:32 XenophonF well, try killing them
13:32 XenophonF that's definitely odd
13:32 XenophonF what version of salt do you have installed
13:32 akhter joined #salt
13:32 XenophonF (hint: run `salt --versions`)
13:33 oliver_are yes I killed all the zombies, This is the version I have salt 2016.3.3 (Boron)
13:34 krymzon_ joined #salt
13:34 _JZ_ joined #salt
13:37 PalTale joined #salt
13:38 akhter joined #salt
13:38 yuhlw__ joined #salt
13:43 DammitJim joined #salt
13:44 JoeJulian joined #salt
13:48 akhter joined #salt
13:49 amontalb1n joined #salt
13:51 mTeK joined #salt
13:51 akhter_1 joined #salt
13:52 Tanta joined #salt
13:55 perfectsine joined #salt
13:55 edrocks joined #salt
13:59 akhter joined #salt
14:02 lumtnman joined #salt
14:02 lumtnman joined #salt
14:04 swa_work joined #salt
14:07 jas02 joined #salt
14:11 ecdhe My bash->salt translator is working as of last night provided you only want to translate apt-get commands to pkg.installed states
14:11 toanju joined #salt
14:11 ecdhe but it works, 'apt-get install foo bar baz' generates three pkg.installed states!
14:11 cyborg-one joined #salt
14:12 jcherndon hello, is it possible to do an ls on a directory and use it in a jinja variable to iterate a for loop on in a salt state?
14:12 AndreasLutro that's pretty funny
14:13 AndreasLutro jcherndon: salt['cmd.run']('ls ...') - though there may be salt modules dedicated to listing files in a directory if that's what you want
14:13 ecdhe My next step is to translate add-apt-repository commands and add "required" to any packages that are subsequently installed.
14:13 cmarzullo jcherndon: yes. you can use the https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.file.html#salt.modules.file.readdir
14:13 AndreasLutro ecdhe: is it that hard to just write states from scratch?
14:14 ecdhe This would force salt to start executing in the same order as bash, but I can trim unneeded "require" attributes.
14:14 ecdhe AndreasLutro, here's an example input I'd like to support:
14:14 ecdhe http://vladikk.com/2013/09/12/serving-flask-with-nginx-on-ubuntu/
14:14 KingOfFools joined #salt
14:15 ecdhe It's an example, and an input I'm trying to support.
14:15 ecdhe That link isn't my only goal in the world.
14:15 cmarzullo Maybe you could use chef to deploy that script that generates salt states.
14:15 KingOfFools Should I use external pillar if I want to get some data from mysql and form config for my application?
14:16 ecdhe But I HATE installing ppas in salt, I don't do it very often and I spend wayyy too much time in the docs, or confusing the verb form of some attribute... "require? requires? required?" "source? src?"
14:16 AndreasLutro maybe create an example for yourself that you can re-use
14:17 AndreasLutro I just copy-paste stuff from another existing state when I do stuff like that
14:17 ecdhe AndreasLutro, I do that, for certain.  But my patterns are across many repos.  I'd love to be able to generate the best-practices type stuff.
14:17 XenophonF it would be nice if there were aliases for commonly misspelled states
14:18 XenophonF like enable/enabled, content/contents
14:18 XenophonF with warnings for using the wrong one
14:18 ecdhe XenophonF, I agree, except that it should fail on the wrong one.
14:18 ecdhe The worst thing would be inconsistent code.
14:18 XenophonF well i don't know
14:19 XenophonF warnings are nice
14:19 ecdhe Like, 'git stats' asks if you mean "git status", but it doesn't actually run the command you might have meant.
14:19 ronnix joined #salt
14:19 XenophonF meh
14:19 XenophonF i like my UIs to be somewhat flexible w/r/t inputs
14:19 XenophonF the old postel aphorism
14:20 XenophonF be liberal in what you accept, strict in what you emit
14:20 AndreasLutro if you accept multiple names for the same argument you make it more difficult to grep for things though
14:20 ecdhe XenophonF, that's what gave us IE...  It would accept malformed HTML "because it knew you meant to close those tags"
14:21 ecdhe That philosophy sounds great but you want to steer away from it when it comes to protocols.
14:21 ecdhe Including input specifications for salt.
14:21 XenophonF well ironically it's about ietf protocol design :)
14:21 ecdhe =)
14:22 ecdhe XenophonF, that principle was once widely adopted, but after a couple of decades of results, the industry, I believe, has largely rejected it.
14:22 * XenophonF shrugs
14:22 XenophonF can we agree to disagree?
14:23 ecdhe Would a volley of "considered harmful" essays change your mind?
14:23 ecdhe XenophonF, sure!
14:23 AndreasLutro agree to disagree in a computer people crowd? are you mad
14:23 XenophonF hah have you read "'Considered Harmful' Essays Considered Harmful"?
14:23 XenophonF http://meyerweb.com/eric/comment/chech.html
14:24 AndreasLutro I have not, I consider it harmful
14:24 dps haha
14:25 ecdhe In any case, MOST of my time with salt is maintaining and running the states to bring up new infrastructure, not writing new states.  So I can write MOST salt states from memory, but its painful when I run highstate for 45 seconds only to find src/source is off...
14:25 ecdhe since I'm typically just writing salt states from bash commands anyway, why not automate that?
14:26 AndreasLutro why is that your typical workflow?
14:26 AndreasLutro you mean you test by doing apt-get stuff, then write salt states to retroactively get what you want?
14:27 ecdhe AndreasLutro, say a small company needs a mediawiki instance on the lan authenticated against LDAP.  I don't memorize mediawiki deploy details, so I find some instructions, and then write salt states to carry them out until it works.
14:28 ecdhe I don't run the bash first -- the end result has only ever been administrated by salt.
14:28 cmarzullo yeah you are following pretty bad patterns there m8.
14:29 ecdhe cmarzullo, enlighten me
14:29 cmarzullo If you aren't making reusable states you are missing the point. We've been over this. But you "Didn't" have time for that.
14:29 cscf cmarzullo, by re-usable, you mean using pillar variables, or what?
14:30 cmarzullo data driven, testable formulas that you can assemble to stand up a number of application stacks.
14:31 ecdhe cmarzullo, why wouldn't my states be re-usable?  Once I've written a good mediawiki, roundcube, or redmine formula, I can easily deploy it again.
14:32 cmarzullo The process you have described for generating your states does not lead me to belive your states are very DRY.
14:32 amontalban joined #salt
14:33 ecdhe cmarzullo, a lot of this stuff doesn't lend itself to that.  If I install a ppa for a particular package, why bring in the package name from pillar?
14:33 cscf DRY?
14:33 ecdhe cscf, Don't Repeat Yourself
14:33 cscf Ah
14:34 cmarzullo cscf: there's a nice blog outlining states: http://unicolet.blogspot.com/2016/05/a-not-so-short-guide-to-tdd-saltstack.html
14:34 cmarzullo err I mean breaking down salt into formulas that are testable.
14:35 ecdhe cmarzullo, when I get more than 10 salt states, or more than one use case for them, I'll certainly start using pillar for the parameters that will change from instance to instance.
14:35 cmarzullo ecdhe: If you can't see how making stuff DRY is useful, then my position stands, you are missing the point of automation.
14:36 ageorgop joined #salt
14:36 ecdhe cmarzullo, I love automation and DRY is beautiful, but in this case my scope may be different than yours.  Sure, driving is usually faster than walking, but if you need to move yourself 20 feet and you're not already in a car, walking is the faster option.
14:37 cmarzullo and yet here you are showing your anti-patterns.
14:37 cscf ecdhe, the problem is that if you don't start doing it right at the beginning, there won't be a point where you realize "I should start doing this for real now"
14:37 KingOfFools Guys, how can I retrieve data from mysql and use it as configuration data for state?
14:38 cmarzullo KingOfFools: I haven't had to do that yet. sorry m8
14:38 cmarzullo cscf: ++
14:38 Tuxick KingOfFools: https://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.mysql.html
14:38 xmj cscf: there will be
14:38 xmj it's usually right before realizing "oops"
14:39 cmarzullo heheh
14:39 ecdhe cmarzullo, I have a NAS at home.  It takes 5 states to configure it.  I mount the data drive, install samba, file.manage smb.conf, and set the hostname.
14:40 ecdhe I could parameterize all those states but it will never be used anywhere else/
14:40 ecdhe I could use formulas, but they would complicate the application.
14:40 cscf I've been using Pillar properly, but moving my states into Formulas is still on my TODO, and it's been there for a while.
14:40 * cmarzullo shrugs
14:40 xmj the better question is where to find enough salt consulting gigs that would make writing N proper formulas for each usecase a good idea
14:40 KingOfFools Tuxick: i don't get how to use it properly :/ It looks like query should return data formed as a pillar (including minion and values). But I have just some random data there, that i want to use in configuration.
14:40 xmj ideas? :p
14:41 cmarzullo cscf: that blog is pretty decent. I wrote that scaffolding piece and would be happy to answer any questions about it.
14:41 hlub it is dependent on the situation very much.. ecdhe, cmarzullo, cscf are talking about the good old feelings-packed topic -- waterfall versus agile development.
14:42 ecdhe hlub, exactly!  If we were deploying apps to AWS I'd agree on formulas, but for my one-off nas -- not so much!
14:42 xmj nah, tis a time-preference thing! :)
14:42 xmj how much do i put into overengineering something such that it's reusable to any usecase
14:42 ecdhe cscf, converting states to formulas is a minefield!
14:43 xmj vs how many states can i write in the same time and get shit done
14:43 cscf ecdhe, yeah, that's why it's still on my TODO.
14:43 cmarzullo if you have the patterns in place it isn't hard at al.
14:43 ecdhe cmarzullo, have you every heard of the semantic web?
14:43 cscf cmarzullo, right, I'm sure once you've done it a few times it's easy.  Not the point.
14:44 impi joined #salt
14:44 cmarzullo I'm not going to get into ecdhe. But, to me, spending time writing an application to generate states is very much an anti-pattern. If you enjoy doing it for your home lab. Have fun. Clearly I have a differnet scope in mind.
14:46 hlub IMO it is a bad pattern to just choose one pattern and follow it blindly.
14:46 hlub and I didn't really read the whole discussion of yours. :)
14:46 ecdhe cmarzullo, what do you do when a formula you use needs to add users to the system?  Do you add the users-formula as a submodule?  What if the server has a second formula that also needs to add users?  Do you generate your pillar from a database?
14:47 xmj don't be silly, he'll use nsscache and hook the server up to a LDAP thingy
14:47 xmj ;)
14:47 cmarzullo ^^
14:47 cmarzullo We use a users formula for actual users. Service accounts and handled by the formula that needs the serivce account.
14:48 hlub I've seen the disadvantages of the both ends: one just codes a piece of shit and lets me fix it later while the other does not even get strted as he/she plans for a good way before writing anything.
14:48 losh joined #salt
14:48 armonge joined #salt
14:49 cmarzullo My team generally uses all the same patterns, so we can have code reuse as much as possible. It also allows the whole team to contribute.
14:49 ecdhe cmarzullo, that helps.
14:49 ecdhe cmarzullo, I have had a hard time finding a schema that everyone agrees on.
14:49 cmarzullo Using test-kitchen we also can bring people quickly up to speed by handing them a formula and asking them to a small feature.
14:49 ssplatt it also makes it easier to understand what you are looking at when you jump intoa  formula you’ve never used before
14:50 hlub I have currently a team with a size of 1 :)
14:50 cmarzullo then can test locally with complete freedom knowing they can't destroy prod with a badly placed state.
14:50 cmarzullo Like i said. different scope.
14:50 cmarzullo if it was just me and only doing one small application stack, i'd probably use ansible.
14:51 dariusjs joined #salt
14:52 ecdhe cmarzullo, I still test everything in vagrant before it goes to prod
14:52 ecdhe It's not unit tests, but it helps.
14:53 darix is there support for systemd instanced services in the service module?
14:53 cmarzullo darix: yeah. we use systemd for everything. (just about)
14:53 cmarzullo Generally 'just works'
14:53 cmarzullo Or do you mean creating unit files?
14:54 ecdhe I really appreciate systemd, despite the debate, it's only made my job easier.
14:54 johnkeates joined #salt
14:55 cscf .service files are a pretty nice way to make things work.
14:56 ecdhe I did some embedded linux work on a headless platform, I loved the flexibility of boot ordering my services, and also, the watchdog functionality.
14:57 darix cmarzullo: enabling services
14:58 ecdhe cmarzullo, I really like the workflow at http://unicolet.blogspot.com/2016/05/a-not-so-short-guide-to-tdd-saltstack.html
14:58 darix cmarzullo: i will just use redis@configname and hope
14:59 jenastar joined #salt
15:00 cscf darix, you're configuring redis in salt?  I have been looking at that.  How do you install it?
15:00 jas02 joined #salt
15:01 ivanjaros joined #salt
15:03 ssplatt ecdhe: https://asciinema.org/a/3b7exrkl5fnjxsj2szp5ik42e  got a couple demos of running kitchen on a formula
15:03 impi joined #salt
15:04 prg3_ joined #salt
15:06 impi_ joined #salt
15:09 ecdhe ssplatt, interesting
15:10 ssplatt 1 local, 1 in the cloud, and then 1 in vagrant trying to use the infratest module i wrote to simulate serverspec
15:10 ssplatt kitchen’s definitely a lot nicer for formula development than pure vagrant
15:11 tiwula joined #salt
15:11 ssplatt i’ve actually got a integration test configured in kitchen. stands up 5 machines then runs salt inside the env and uses serverspec to run integration tests/user test
15:14 darix cscf: (open)suse rpm of course
15:14 Joe630 sorry if this is somewhere obvious, but when is the 2016.3.4 release going to get cut?
15:15 cscf darix, ok.  The Redis site says that you're supposed to compile from source, because packages are out of date, but I didn't want to do that.
15:19 fxdgear joined #salt
15:20 XenophonF man, i need to learn how to use kitchen
15:20 ecdhe cscf, have you ever used check_install?
15:20 XenophonF great video, ecdhe
15:20 ecdhe XenophonF, that was ssplatt, but yes, I agree
15:20 ecdhe I really need to add that for a few things.
15:21 ecdhe XenophonF, do you write much salt that gets deployed to multiple OSs?
15:21 ssplatt the verify step really is the icing
15:21 XenophonF yes
15:21 cscf ecdhe, I have not.
15:21 XenophonF FreeBSD, RHEL/CentOS, Windows
15:23 ecdhe cscf, it wraps a call like "make install" and builds a deployable package that you can install with a line like "pkg.installed -source: salt://pkgs/mypackage.deb"
15:23 XenophonF can kitchen use chroot/jail/ABI emulation?
15:23 cscf ecdhe, I have heard of it.  I will use Redis from repos, and if I find I need newer, I will look into it.  Thanks.
15:23 XenophonF i do a lot of dev from freebsd, which supports linux syscall emulation
15:24 jimklo joined #salt
15:25 XenophonF oh, hm, neat
15:26 XenophonF i found the docs
15:26 XenophonF thanks again!
15:27 ixs joined #salt
15:27 darix cscf: tbh ... they might say that ... but i prefer distro maintained packages.
15:28 cscf darix, yeah, me too.
15:29 subsignal joined #salt
15:33 jimklo joined #salt
15:33 XenophonF the problem is when distros keep really outdated packages in thier repos
15:33 XenophonF their
15:34 XenophonF debian/ubuntu seem egregiously bad, but rhel/centos have similar issues
15:35 darix XenophonF: there are often backport repositories you can use
15:38 cscf xenial package is 2:3.0.6-1
15:38 cscf Redis Stable is 3.2
15:39 cscf assuming that means apt has 3.0.6, that's not too bad.  One stable behind
15:39 nZac joined #salt
15:40 darix cscf: is there backports.org for ubuntu?
15:40 cscf dunno
15:40 cmarzullo darix: yes I've done ceph-mon@{{ grains['host'] }} and it works
15:41 DammitJim if I want to manage a file with salt that contains mysql passwords, how do I go about securing it? or is there no way to do that?
15:41 darix cmarzullo: i did the same
15:41 DammitJim template with pillar hashed password or something?
15:41 pipps joined #salt
15:41 Trauma joined #salt
15:41 sadf joined #salt
15:42 XenophonF darix: I know
15:42 cmarzullo DammitJim: use gpgencrypted pillar.
15:42 DammitJim cmarzullo, before I jump in too deep... what should be the first step?
15:42 XenophonF DammitJim: i just went through that process with my Pillar store.
15:43 DammitJim create the state with template and pillar data
15:43 XenophonF hang on let me pull up my notes
15:43 DammitJim then gpgencrypt the pillar data?
15:43 XenophonF you don't need to change your states at all
15:43 benjiale joined #salt
15:43 DammitJim oh really XenophonF ?
15:43 subsignal joined #salt
15:43 XenophonF and you end up having to encrypt individual values in pillar
15:43 DammitJim ok, so the least I should do is start creating my states
15:43 XenophonF hang on just a sec gotta fire up onenote
15:43 cmarzullo DammitJim: make the state work with clear text pillar. When you know that works. setup gpg keys on your salt master. Then encode the pillar (with a new pass) against the master's pubkey
15:43 DammitJim onenote? man, you are  like the 3rd person today that tells me they use onenote
15:43 DammitJim and here I am using google docs
15:44 XenophonF the gpg renderer docs are somewhat confusing
15:44 XenophonF i love onenote
15:44 cscf All I want is cloud-based Freemind.  There's probably a thing for that.
15:44 XenophonF wish there was a mac version
15:44 benjiale onenote isn't terrible...
15:44 benjiale there is
15:44 MTecknology I don't use MS Onenote, but I actually didn't hate it when it was combined w/ sharepoint
15:44 benjiale I use one note on my mac
15:44 benjiale I think it's in the app store.
15:44 MTecknology one of their few decent products
15:45 MTecknology everyone hear ms sql is coming to linux?
15:45 XenophonF DammitJim: first step is to create a gpg keypair for salt
15:45 XenophonF so create .../etc/salt/gpgkeys
15:46 MTecknology DammitJim: https://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.gpg.html
15:46 XenophonF then run gpg --homedir .../etc/salt/gpgkeys --quick-gen-key salt@example.com rsa4096 - 2026-09-27
15:46 XenophonF do not set a passphrase
15:47 XenophonF then run gpg --homedir .../etc/salt/gpgkeys --edit-key salt@example.com
15:47 XenophonF run addkey
15:47 BattleChicken joined #salt
15:47 XenophonF then enter: 6, 0, y, y, <enter>, <enter>, y, save
15:47 DammitJim omg. hold on, let me copy this
15:48 XenophonF sorry
15:48 XenophonF not somewhere where i can easily post a gist
15:48 XenophonF so what those two steps do is create a gpg keystore and then create a sub-key suitable for encryption
15:48 voileux_ joined #salt
15:49 MTecknology XenophonF: you're making him frantic but he could just follow that document that clearly explains it. :(
15:49 XenophonF that doc is _far_ from clear
15:49 MTecknology I thought it was pretty easy to follow; maybe update it?
15:50 tapoxi joined #salt
15:50 XenophonF i will when i have time
15:50 Aleks3Y joined #salt
15:51 mTeK joined #salt
15:57 edrocks joined #salt
16:00 ixs joined #salt
16:01 ronnix joined #salt
16:01 jas02 joined #salt
16:03 mpanetta joined #salt
16:04 mpanetta_ joined #salt
16:05 mpanetta joined #salt
16:06 jcherndon can I get file.readdir to ig nore . and ..?
16:06 Vaelatern joined #salt
16:10 darix jcherndon: probably
16:11 darix jcherndon: why do you need readdir?
16:12 jcherndon I want to get a list of files to iterate over in a state file
16:13 MTecknology {% if d != '.' and d != '..' %}   {% endif %}   sounds ugly, but would likely work
16:13 benjiale_ joined #salt
16:13 darix jcherndon: why?
16:14 darix jcherndon: the high level task you want to solve
16:14 sp0097 joined #salt
16:14 jcherndon I want to be able to take an arbitrary list of files and append them to another file.
16:19 sjmh so is there a way to add extra directories for saltutils.sync_modules to read from? rather than fileroots/_modules?
16:20 cryptolukas joined #salt
16:20 scubahubby joined #salt
16:21 lero joined #salt
16:21 cryptolukas I want to use the iptables state.module iptables. https://docs.saltstack.com/en/latest/ref/states/all/salt.states.iptables.html#management-of-iptables. How can I append DROP Rules after my ALLOW Rules_
16:21 cryptolukas ?
16:22 MTecknology cryptolukas: insert your allow rules, append the deny, look at default table policies
16:23 scubahubby I have a reactor (written in python) that needs to invoke a runner.  I tried to create a RunnerClient (salt.runner.RunnerClient(...)) but I get an exception (AttributeError: runner).  Same thing seems to happen no matter what salt module I try to reference (e.g. salt.loader... gets exception AtrtributeError: loader).  Any ideas?
16:24 MTecknology sjmh: You might be able to hack it in, but I don't think there's any support for it; I just keep a _modules directory w/ my states repo
16:24 cryptolukas Mtechnology: thx. I thought there is no notice in the doc to DROP. I try it!
16:25 jimklo joined #salt
16:25 sjmh MTecknology - yeah, we have our default _modules dir, but we have multiple teams and wanted to allow them to have their own _modules dir to sync stuff down
16:27 MTecknology scubahubby: I'm guessing you probably don't need to be creating/managing a runner. I'd start looking at the source for this https://docs.saltstack.com/en/develop/ref/modules/all/salt.modules.state.html#salt.modules.state.orchestrate
16:28 dps hi: i am trying to implement publisher_acl.  I have followed the instructions here (i.e. changing permisisons) https://docs.saltstack.com/en/2015.8/ref/clientacl.html, but I am getting IPC permission denied errors on an strace.  it runs fine when I run it as root.  Would anybody be able to point me in the right direction on this?  I'm really scratching my head over here.  https://gist.github.com/dsulli99/f3558f2c48d23a2838e9c296ef0f974c
16:29 MTecknology scubahubby: ya, looking at the source, I get the feeling it's what you're looking to emulate. https://github.com/saltstack/salt/blob/develop/salt/modules/state.py
16:30 ilijab joined #salt
16:30 prg3 joined #salt
16:30 flebel joined #salt
16:31 MTecknology dps: "Salt request timed out. The master is not responding" doesn't sound like an acl problem
16:31 dps I cal telnet to the port
16:31 dps I am on the localhost
16:31 dps and listening on all interfaces
16:31 MTecknology k..
16:32 dps it also works fine when i run the same command with sudo
16:32 sjmh scubahubby : can you post a gist of what you're trying to do?
16:34 scubahubby sure
16:34 scubahubby give me a sec
16:34 seanacais_ joined #salt
16:34 __JZ__ joined #salt
16:34 Sarph joined #salt
16:34 mpanetta_ joined #salt
16:34 tercenya_ joined #salt
16:34 Xopher joined #salt
16:34 rem5_ joined #salt
16:35 jimklo_ joined #salt
16:35 scubahubby sjmh: reactor is at https://gist.github.com/scubahub/1ef2e71f5f3b7a7e7d66c06ea8c8dd37
16:35 voxpop_ joined #salt
16:36 Aleks3Y_ joined #salt
16:36 nZac_ joined #salt
16:36 jhauser_ joined #salt
16:36 kuromagi joined #salt
16:36 djinni` joined #salt
16:36 teryx5101 joined #salt
16:36 RandyT_ joined #salt
16:36 oliv` joined #salt
16:36 dh__ joined #salt
16:36 Lionel_Debroux joined #salt
16:36 BattleChicken1 joined #salt
16:36 felskrone joined #salt
16:36 oliv` joined #salt
16:36 manfred joined #salt
16:37 hop joined #salt
16:37 jgelens joined #salt
16:37 jenastar1 joined #salt
16:37 voileux_ joined #salt
16:37 yuhlw___ joined #salt
16:37 leev joined #salt
16:37 kusen_ joined #salt
16:37 mikea joined #salt
16:37 jrklein joined #salt
16:37 ilijab left #salt
16:37 wryfi_ joined #salt
16:37 akhter_1 joined #salt
16:37 qman__ joined #salt
16:37 deus_ex joined #salt
16:37 fxhp_ joined #salt
16:37 joshin1 joined #salt
16:37 joshin1 joined #salt
16:37 one joined #salt
16:37 GothAck joined #salt
16:37 iggy_ joined #salt
16:37 dunz0r_ joined #salt
16:37 trent___ joined #salt
16:37 cswang_ joined #salt
16:37 muep__ joined #salt
16:38 jxm__ joined #salt
16:38 jamesog joined #salt
16:38 JPaul joined #salt
16:38 aalmenar joined #salt
16:38 aalmenar joined #salt
16:38 ashmckenzie joined #salt
16:38 sjmh joined #salt
16:38 armyriad joined #salt
16:38 bryguy_ joined #salt
16:38 drawsmcgraw joined #salt
16:38 TheBigRedButton joined #salt
16:38 pfallenop joined #salt
16:38 pfallenop joined #salt
16:38 hoonetorg joined #salt
16:38 rickflare joined #salt
16:38 smcquay joined #salt
16:38 tru_tru_ joined #salt
16:38 lazybear joined #salt
16:38 tristianc_ joined #salt
16:38 NV joined #salt
16:38 tehsufn joined #salt
16:38 fullstop joined #salt
16:38 Steelpan joined #salt
16:38 renoirb joined #salt
16:38 scubahubby MTecknology: Im not following you
16:38 karlthane joined #salt
16:38 thehaven joined #salt
16:39 Reverend joined #salt
16:39 Kaliiiixx joined #salt
16:39 darvon joined #salt
16:39 lynxman joined #salt
16:39 lynxman joined #salt
16:39 filippos joined #salt
16:39 weylin joined #salt
16:39 ixs joined #salt
16:39 ivanjaros joined #salt
16:39 Jimlad joined #salt
16:39 johnkeates joined #salt
16:39 mavhq joined #salt
16:39 notpratch joined #salt
16:39 sagerdearia joined #salt
16:39 yidhra joined #salt
16:39 flebel joined #salt
16:40 eichiro joined #salt
16:40 onlyanegg joined #salt
16:40 jgelens_ joined #salt
16:40 wm-bot4 joined #salt
16:40 Derailed joined #salt
16:41 watersoul joined #salt
16:41 amontalban joined #salt
16:41 amontalban joined #salt
16:41 perfectsine joined #salt
16:41 west575 joined #salt
16:41 alrayyes joined #salt
16:41 scubahubby I have a custom returner that I use to generate an event when a salt schedule job completes.  On the master my reactor passes the event data to a reactor that generates alerts (slack at the moment) if a scheduled job fails.  I have it all working when the reactor is jinja/yaml except that sometimes the event data causes rendering errors when the reactor is compiled so I am trying to rewrite the reactor as pure python to avoid the js
16:41 benjiale joined #salt
16:42 robbintt joined #salt
16:42 dtsar joined #salt
16:42 Gareth joined #salt
16:42 stooj joined #salt
16:42 njg joined #salt
16:42 snaggleb joined #salt
16:42 snaggleb joined #salt
16:42 MaZ- joined #salt
16:43 Ahlee joined #salt
16:44 mortis joined #salt
16:44 prg3 joined #salt
16:44 seanacais joined #salt
16:44 scubahubby you can see the full implementation (the non python reactor version) I posted as a comment on this issue https://github.com/saltstack/salt/issues/12653
16:45 mpanetta joined #salt
16:45 nZac joined #salt
16:45 emid joined #salt
16:45 babilen joined #salt
16:45 kusen joined #salt
16:45 jenastar joined #salt
16:45 TomJepp joined #salt
16:46 felskrone joined #salt
16:46 oliv` joined #salt
16:46 oliv` joined #salt
16:46 BattleChicken joined #salt
16:47 the_lalelu joined #salt
16:47 amontalb1n joined #salt
16:47 JohnnyRun joined #salt
16:47 artemz joined #salt
16:47 ivanjaros3916 joined #salt
16:47 gnord joined #salt
16:47 mage__ joined #salt
16:47 lubyou joined #salt
16:47 ange__ joined #salt
16:47 Nebraskka_ joined #salt
16:47 stopbyte joined #salt
16:47 trent__ joined #salt
16:47 tehsu joined #salt
16:47 aberdine joined #salt
16:47 yuhlw___ joined #salt
16:47 njg1 joined #salt
16:47 __alex joined #salt
16:47 telx joined #salt
16:47 josuebrunel joined #salt
16:48 Shirkdog joined #salt
16:48 jrklein joined #salt
16:48 qman__ joined #salt
16:48 mikea joined #salt
16:48 saltstackbot [#12653][OPEN] salt schedule doesn't return jobs result info to master | salt schedule doesn't return jobs result info to master, and don't fire event to event bus.   It's inconvenient  for debugging or checking the schedule functions status.
16:48 ponyofdeath joined #salt
16:48 keekz joined #salt
16:48 stotch joined #salt
16:48 Shirkdog joined #salt
16:48 NVX joined #salt
16:48 onlyaneg1 joined #salt
16:48 ajolo_ joined #salt
16:48 lynxman_ joined #salt
16:48 Deliant joined #salt
16:48 _aeris_ joined #salt
16:48 eseyman joined #salt
16:48 carmony joined #salt
16:48 Steelpan_ joined #salt
16:48 MrGats joined #salt
16:48 tristianc joined #salt
16:48 jab416171_ joined #salt
16:48 RandyT_ joined #salt
16:48 Taytay joined #salt
16:48 t0m0 joined #salt
16:48 muep_ joined #salt
16:48 Derailed joined #salt
16:48 leev joined #salt
16:48 darvon joined #salt
16:48 patrek joined #salt
16:48 JPaul joined #salt
16:48 kuromagi joined #salt
16:48 fullstop joined #salt
16:48 muep joined #salt
16:48 wryfi joined #salt
16:48 karlthane_ joined #salt
16:48 daemonkeeper joined #salt
16:48 gpampara joined #salt
16:48 sagerdearia joined #salt
16:48 eichiro joined #salt
16:48 zer0def joined #salt
16:48 mavhq joined #salt
16:48 mTeK joined #salt
16:49 Ssquidly joined #salt
16:49 voileux_ joined #salt
16:49 pprkut joined #salt
16:49 keekz_ joined #salt
16:49 deus_ex joined #salt
16:49 oliver_are joined #salt
16:49 djinni` joined #salt
16:49 Hazelesque joined #salt
16:49 Bryson joined #salt
16:50 rideh joined #salt
16:50 tru_tru joined #salt
16:50 sebastian-w joined #salt
16:50 om joined #salt
16:50 anmol joined #salt
16:50 _W_ joined #salt
16:50 Kaliiiixx joined #salt
16:50 frew joined #salt
16:50 Gareth joined #salt
16:50 Jimlad joined #salt
16:50 dyasny joined #salt
16:50 numkem joined #salt
16:50 jfindlay joined #salt
16:51 weylin joined #salt
16:51 monokrome joined #salt
16:51 tiwula joined #salt
16:51 jesusaur joined #salt
16:51 ponyofdeath joined #salt
16:51 hopthrisC joined #salt
16:51 AvengerMoJo joined #salt
16:51 sagerdearia joined #salt
16:51 ashmckenzie joined #salt
16:52 woodtablet joined #salt
16:52 watersoul joined #salt
16:52 Corey joined #salt
16:52 jerrcs joined #salt
16:52 twiedenbein joined #salt
16:52 tvinson joined #salt
16:52 daxomati1 joined #salt
16:52 justanotheruser joined #salt
16:52 mihait joined #salt
16:53 akw joined #salt
16:53 psy0rz joined #salt
16:53 sgo_ joined #salt
16:53 dimeshake_ joined #salt
16:53 sp0097 joined #salt
16:53 smcquay joined #salt
16:53 pocketprotector joined #salt
16:54 renoirb joined #salt
16:54 unusedPhD_ joined #salt
16:54 thehaven joined #salt
16:54 nihe joined #salt
16:54 Shirkdog_ joined #salt
16:54 rburkholder joined #salt
16:55 sagerdearia joined #salt
16:55 filippos joined #salt
16:55 babilen joined #salt
16:55 dunz0r joined #salt
16:55 Ahlee joined #salt
16:55 darkalia joined #salt
16:56 SteamWells joined #salt
16:56 sjorge joined #salt
16:56 SubOracle joined #salt
16:57 nidr0x joined #salt
16:57 jamesog joined #salt
16:57 tuxx joined #salt
16:57 kiorky_ joined #salt
16:58 nshttpd joined #salt
16:58 Brijesh1 joined #salt
16:58 sagerdearia joined #salt
16:58 Edgan_ joined #salt
16:59 dtsar joined #salt
16:59 GothAck joined #salt
16:59 kiorky joined #salt
16:59 gmoro joined #salt
16:59 perfectsine joined #salt
17:01 drags joined #salt
17:01 shawnbutts joined #salt
17:02 jas02 joined #salt
17:02 amontalb1n Hi, do anyone knows how can I do something like this?
17:02 amontalb1n salt '*' hosts.add_host 127.0.0.1 "network.get_hostname"
17:02 amontalb1n Where "network.get_hostname" is the Salt module
17:03 mikecmpbll joined #salt
17:05 tuxx_ joined #salt
17:06 dh joined #salt
17:07 thehaven_ joined #salt
17:08 BattleChicken1 joined #salt
17:09 Shirkdog1 joined #salt
17:09 ivanjaros joined #salt
17:09 Tanta I can show you how to invoke a module
17:10 djinni`_ joined #salt
17:10 sp0097_ joined #salt
17:10 jgelens- joined #salt
17:10 felskrone joined #salt
17:11 Lionel_Debroux_ joined #salt
17:11 Tanta here, amontalb1n: http://pastebin.com/raw/FcgnjZG0
17:11 ajolo joined #salt
17:11 sagerdearia joined #salt
17:11 impi joined #salt
17:11 cebreidian joined #salt
17:11 iggy___ joined #salt
17:11 oliv` joined #salt
17:11 tristianc_ joined #salt
17:11 GothAck joined #salt
17:11 theblazehen__ joined #salt
17:11 lynxman_ joined #salt
17:11 lane_ joined #salt
17:11 Corey__ joined #salt
17:11 akhter joined #salt
17:11 SWA joined #salt
17:11 tuxx joined #salt
17:11 ToeSnacks joined #salt
17:11 imanc joined #salt
17:12 keekz_ joined #salt
17:12 JohnnyRun joined #salt
17:12 nidr0x joined #salt
17:12 bryguy_ joined #salt
17:12 gpampara joined #salt
17:12 racooper joined #salt
17:12 mikea joined #salt
17:12 deus_ex1 joined #salt
17:12 RandyT_ joined #salt
17:12 ashmckenzie_ joined #salt
17:12 njg2 joined #salt
17:12 filippos_ joined #salt
17:12 leev_ joined #salt
17:12 darvon_ joined #salt
17:12 carmony_ joined #salt
17:12 jfindlay_ joined #salt
17:12 saltsa joined #salt
17:12 Steelpan joined #salt
17:12 stooj joined #salt
17:12 saltstackbot joined #salt
17:12 pocketprotector joined #salt
17:12 pocketprotector joined #salt
17:12 muep__ joined #salt
17:12 Awesomecase joined #salt
17:12 weylin joined #salt
17:12 alrayyes joined #salt
17:12 Hazelesque joined #salt
17:13 NVX joined #salt
17:13 aalmenar joined #salt
17:13 sagerdearia joined #salt
17:13 artemz joined #salt
17:13 trent__ joined #salt
17:13 mavhq joined #salt
17:13 afics joined #salt
17:13 anmol joined #salt
17:13 AvengerMoJo joined #salt
17:13 titilambert joined #salt
17:13 voileux_ joined #salt
17:13 ponyofdeath joined #salt
17:13 yuhlw___ joined #salt
17:14 onlyanegg joined #salt
17:14 gmoro joined #salt
17:14 mikecmpbll joined #salt
17:14 Derailed joined #salt
17:14 alexlist joined #salt
17:15 subsignal joined #salt
17:16 tvinson joined #salt
17:16 the_lalelu joined #salt
17:16 Vye joined #salt
17:16 eseyman joined #salt
17:16 Freek joined #salt
17:17 perfectsine joined #salt
17:17 stotch joined #salt
17:17 yidhra joined #salt
17:17 MaZ- joined #salt
17:17 scubahubby smjh: or you can see it (and the full stack trace) here https://github.com/saltstack/salt/issues/36581
17:18 BlackMaria joined #salt
17:19 leev joined #salt
17:19 benjiale joined #salt
17:19 rmc3 joined #salt
17:19 RandyT_ joined #salt
17:20 mage_ joined #salt
17:20 Jimlad_ joined #salt
17:21 felskrone joined #salt
17:21 oliv` joined #salt
17:21 oliv` joined #salt
17:21 Lionel_Debroux joined #salt
17:21 lubyou_ joined #salt
17:21 amontalban joined #salt
17:21 amontalban joined #salt
17:21 voileux__ joined #salt
17:21 yuhlw__ joined #salt
17:21 MrGats joined #salt
17:21 _aeris_ joined #salt
17:21 saltstackbot [#36581][OPEN] How to execute a runner from a reactor written in python? | Description of Question...
17:21 Edgan_ joined #salt
17:21 jfindlay joined #salt
17:21 futuredale[uf] joined #salt
17:22 tuxx joined #salt
17:22 weylin- joined #salt
17:22 jxm___ joined #salt
17:22 CeBe1 joined #salt
17:22 numkem1 joined #salt
17:22 Shirkdog joined #salt
17:22 dyasny_ joined #salt
17:22 Shirkdog joined #salt
17:22 frew1 joined #salt
17:22 J0hnSteel Hello in this snippet http://pastebin.com/SmiGzVr5 is it possible to call node_type from inside the template?
17:23 filippos joined #salt
17:23 karlthane joined #salt
17:23 debian112 joined #salt
17:23 deus_ex joined #salt
17:23 eichiro_ joined #salt
17:23 numkem joined #salt
17:23 monokrome joined #salt
17:24 flebel joined #salt
17:24 jrklein joined #salt
17:24 woodtablet1 joined #salt
17:24 patrek_ joined #salt
17:25 Morrolan joined #salt
17:25 alexlist joined #salt
17:25 bryguy_ joined #salt
17:25 Tanta if you pass it in with the context directive
17:26 Tanta https://docs.saltstack.com/en/latest/topics/troubleshooting/yaml_idiosyncrasies.html#nested-dict-indentation
17:26 Tanta this shows the basic syntax
17:26 perfectsine joined #salt
17:26 Deliants joined #salt
17:26 simonmcc joined #salt
17:26 west575_ joined #salt
17:27 Tanta in this case you'd do - context: \n  custom_var={{ node_type }}
17:27 __alex joined #salt
17:27 Tanta er, custom_var: {{ node_type }}
17:27 cryptolukas joined #salt
17:27 Jimlad joined #salt
17:28 losh joined #salt
17:29 J0hnSteel @Tanta in the template file I have {{ node_type }}:{{ grains['fqdn_ip4'][0] }} and I get SaltRenderError: Jinja variable 'node_type' is undefined
17:30 Tanta did you read what I just posted
17:30 Tanta you must pass in the variable via reference using the ```CONTEXT``` option in the STATE file
17:31 J0hnSteel I was too quick I'm reading it now
17:31 cryptolukas Have anyone an idea why I receive this error in the highstate? "Rendering SLS 'base:iptables.minion1' failed: Conflicting ID 'iptables.insert'" https://gist.github.com/LukasDoe/01dedf503afe0192a4f18dd506268192
17:31 Derailed_ joined #salt
17:31 MTecknology cryptolukas: line 31
17:32 MTecknology 64
17:32 MTecknology 76
17:32 mikecmpb_ joined #salt
17:32 whytewolf cyraxjoe: your indenting looks way off.
17:32 kuromagi joined #salt
17:32 sgo_ joined #salt
17:32 aalmenar joined #salt
17:32 saltstackbot joined #salt
17:32 yuhlw___ joined #salt
17:32 aalmenar joined #salt
17:32 Tanta http://pastebin.com/r2pceUWL
17:33 Tanta like that JohnnyRun
17:33 flebel_ joined #salt
17:33 asoc_ joined #salt
17:33 aljosa joined #salt
17:33 Tanta J0hnSteel
17:33 cryptolukas aaaaahhh idended.
17:33 cryptolukas thx
17:33 voileux_ joined #salt
17:33 pjs joined #salt
17:33 djural joined #salt
17:33 akhter joined #salt
17:33 alrayyes joined #salt
17:33 racooper joined #salt
17:33 tristianc joined #salt
17:34 titilambert joined #salt
17:34 pprkut joined #salt
17:34 dyasny joined #salt
17:34 renoirb joined #salt
17:34 Edgan_ joined #salt
17:34 njg2 joined #salt
17:34 jrklein joined #salt
17:34 Trauma joined #salt
17:34 monokrome joined #salt
17:35 ange joined #salt
17:35 aberdine joined #salt
17:35 samkottler joined #salt
17:35 patrek joined #salt
17:36 shawnbutts joined #salt
17:36 saltsa joined #salt
17:37 diegows joined #salt
17:37 Shirkdog joined #salt
17:37 Shirkdog joined #salt
17:37 alexlist joined #salt
17:37 jas02 joined #salt
17:37 stooj joined #salt
17:37 nahkiss joined #salt
17:38 perfectsine joined #salt
17:38 mikea- joined #salt
17:38 fxhp_ joined #salt
17:38 filippos joined #salt
17:38 shanesveller joined #salt
17:39 artemz joined #salt
17:40 kutenai joined #salt
17:40 phtes_ joined #salt
17:40 iggy_ joined #salt
17:41 bluethundr joined #salt
17:41 keltim joined #salt
17:41 bluethundr hey guys.. how do a launch a number of amazon ec2 servers at the same time using salt cloud
17:41 gazarsgo joined #salt
17:41 cyraxjoe whytewolf: ?
17:42 bluethundr is that a parameter I can set in the cloud profile?
17:42 sjorge joined #salt
17:42 cyraxjoe whytewolf:  that was for cryptolukas, I assume
17:42 CeBe joined #salt
17:42 whytewolf cyraxjoe: sorry, tab compleate failed me
17:42 cyraxjoe np
17:43 onlyanegg joined #salt
17:44 ssplatt joined #salt
17:45 lynxman joined #salt
17:45 cswang joined #salt
17:46 bluethundr like if I wanted to launch 10 servers at a time, where do I specify that
17:46 bluethundr on the command line? or in the config?
17:47 saltsa joined #salt
17:47 CaptTofu joined #salt
17:47 scoates joined #salt
17:47 twodayslate joined #salt
17:47 Aleks3Y_ joined #salt
17:47 Morrolan joined #salt
17:49 cliluw joined #salt
17:49 Shirkdog joined #salt
17:50 SteamWells joined #salt
17:50 anmol joined #salt
17:50 imanc joined #salt
17:51 mattl joined #salt
17:51 johtso joined #salt
17:51 antonw joined #salt
17:53 cryptolukas it is possible in the state.module iptables to define more as one source ip in one function?
17:53 simonmcc joined #salt
17:53 Awesomecase joined #salt
17:54 mihait joined #salt
17:55 bbbryson joined #salt
17:56 scubahubby joined #salt
17:56 futuredale[uf] joined #salt
17:57 ToeSnacks joined #salt
17:59 edrocks joined #salt
17:59 bmcorser joined #salt
18:02 SWilhelm joined #salt
18:02 benjiale_ joined #salt
18:03 jas02 joined #salt
18:03 JTB03 joined #salt
18:05 bluenemo joined #salt
18:07 autofsckk joined #salt
18:08 teryx510 joined #salt
18:09 telxr joined #salt
18:10 Lionel_Debroux joined #salt
18:10 felskrone joined #salt
18:10 oliv` joined #salt
18:10 tristianc_ joined #salt
18:10 oliv` joined #salt
18:10 saltsa_ joined #salt
18:10 _aeris_ joined #salt
18:10 josh__ joined #salt
18:10 yuhlw___ joined #salt
18:10 aberdine joined #salt
18:10 filippos joined #salt
18:10 qman__ joined #salt
18:11 artemz- joined #salt
18:11 racooper joined #salt
18:11 sjmh joined #salt
18:11 Edgan_ joined #salt
18:11 jacksontj_ joined #salt
18:11 ange joined #salt
18:11 mmidgett joined #salt
18:11 muep__ joined #salt
18:11 diegows joined #salt
18:11 jab416171 joined #salt
18:11 ashmckenzie joined #salt
18:11 sebastian-w joined #salt
18:11 stooj joined #salt
18:12 bryguy joined #salt
18:12 bluenemo joined #salt
18:12 rem5 joined #salt
18:12 patrek joined #salt
18:13 Trauma joined #salt
18:13 daemonkeeper joined #salt
18:14 Shirkdog joined #salt
18:15 woodtablet joined #salt
18:15 alexlist joined #salt
18:15 netcho joined #salt
18:15 dunz0r joined #salt
18:15 perfectsine joined #salt
18:16 fxhp_ joined #salt
18:16 Aleks3Y_ joined #salt
18:19 cryptolukas I received a syntax error in the iptables state What I need to change that it works? "Rendering SLS 'base:iptables.minion1' failed: Jinja syntax error: expected token 'name', got 'string'; line 39"  source: {{ '8.8.8.8/32'|'8.8.8.8/32' }}
18:19 bbbryson joined #salt
18:19 sjorge joined #salt
18:20 gazarsgo joined #salt
18:20 aljosa joined #salt
18:20 gazarsgo joined #salt
18:20 aljosa joined #salt
18:21 pjs joined #salt
18:21 darvon_ joined #salt
18:21 ange__ joined #salt
18:21 njg2 joined #salt
18:21 josuebrunel joined #salt
18:21 jacksontj_ joined #salt
18:21 armguy joined #salt
18:21 diegows joined #salt
18:21 dyasny joined #salt
18:22 keltim joined #salt
18:22 muep_ joined #salt
18:22 djural joined #salt
18:28 antonw joined #salt
18:28 bmcorser joined #salt
18:28 antonw joined #salt
18:28 bmcorser joined #salt
18:29 aberdine joined #salt
18:29 dyasny_ joined #salt
18:30 ToeSnacks joined #salt
18:30 mTeK joined #salt
18:30 GORF000 joined #salt
18:30 lane_ joined #salt
18:31 ecdhe joined #salt
18:31 futuredale[uf] joined #salt
18:31 Shirkdog joined #salt
18:32 sebastian-w joined #salt
18:32 Vaelatern joined #salt
18:32 Heartsbane joined #salt
18:33 irctc101 joined #salt
18:33 alexlist joined #salt
18:33 DammitJim joined #salt
18:33 DammitJim do I update minions or master first for salt?
18:34 evidence joined #salt
18:34 iggy joined #salt
18:34 Awesomecase joined #salt
18:35 cmarzullo cryptolukas: that's not valid jinja.
18:36 cryptolukas i'm a newbie in jinja. Can you help me to find out the right syntax?
18:37 babilen DammitJim: master
18:37 cmarzullo cryptolukas: source: '8.8.8/32
18:37 J0hnSteel @Tanta if you are still around I read the documentation and set node_type: "master" under context with indentation and I still get Jinja variable 'node_type' is undefined
18:37 cmarzullo hmm missing an 8.
18:37 cmarzullo and a quote.
18:37 DammitJim oh wow
18:37 DammitJim realy?
18:39 cryptolukas yes. but so i need much more functions because, i also need rules for state: new, established ..
18:39 Steelpan joined #salt
18:39 sjmh joined #salt
18:40 evidence joined #salt
18:40 SWilhelm joined #salt
18:40 sebastian-w joined #salt
18:41 Awesomecase joined #salt
18:41 cryptolukas i want to take one function with more source ips and connection states. I think with jinja this can work that salt generate 1, 2, 3, .. rule. It is possible?
18:41 cmarzullo ok but when you put a pipe in a jinja you are trying to invoke a jinja filter.
18:42 diegows joined #salt
18:42 cmarzullo you could do {{ ['1','2'] | join(' ') }} and you would get back '1 2'
18:42 mikecmpbll joined #salt
18:43 aagbds joined #salt
18:44 cryptolukas also {{ ['8.8.8.8/32', '4.4.4.4/32'] | join('source:') }}?!
18:44 Tanta source: {{ ['8.8.8.8/32', '4.4.4.4/32'] | join(' ') }}
18:45 cmarzullo ^^
18:45 Tanta or source: [] or source: {} if you use a list or dict
18:45 Tanta replace [] or {} with the name of the variable containing the list or dict
18:46 XenophonF joined #salt
18:46 rubenb joined #salt
18:46 dyasny_ joined #salt
18:46 cryptolukas ah. My problem is i know what you mean, but I don't know how to write it correct :(
18:47 Tanta it also helps if the asker provides a full context with sample code, values, and output for everyone
18:48 Tanta and defines a clear goal of what is expected
18:52 jhauser joined #salt
18:54 keltim cryptolukas, the iptables modules have only basic functionality last I looked, I just use file.managed on an iptables.save file
18:55 dariusjs joined #salt
18:55 SWilhelm Could I get feedback on a module that I worked on?  https://github.com/S-Wilhelm/wordpress-module  I'm helping a friend with a Wordpress theme, and I want to use Vagrant and Salt to automate a test environment.
18:55 jimklo joined #salt
18:55 SWilhelm The code should work, but I haven't tested it yet, and I don't know if I'm doing things idiomatically.
19:00 dps joined #salt
19:00 jimklo_ joined #salt
19:01 edrocks joined #salt
19:02 DammitJim joined #salt
19:03 jas02 joined #salt
19:03 simonmcc joined #salt
19:04 jfindlay SWilhelm: looks great.  I would rename the dirs to `_modules` and `_states`
19:04 SWilhelm jfindlay: Makes sense; I hadn't looked at how to load custom modules and states when I started, but that's an easy fix.
19:04 fxdgear joined #salt
19:05 DammitJim does one use salt to update salt?
19:05 fxdgear hey salt-cloud question. in my provider I have a section that says `minion: master: <url of master>`
19:05 fxdgear I also have that same section in my profiles
19:05 jfindlay SWilhelm: and don't be afraid to submit it upstream if you think others could use it :-)
19:05 SWilhelm DammitJim: I haven't tried, but there is a Salt formula for setting up Salt, so...
19:05 fxdgear that is supposed to specify the `grains: role: <role_name>`
19:05 fxdgear do they not "stack" is it one or th eother?
19:06 SWilhelm jfindlay: I will consider it; it could use a bit more work before that, but definitely a possibility.
19:06 DammitJim I mean, this is a big one
19:06 DammitJim I am changing repositories and everything
19:06 jfindlay fxdgear: I think the profile supersedes the provider config
19:06 jfindlay but I am not sure
19:07 sjmh joined #salt
19:10 ajw0100 joined #salt
19:10 jimklo joined #salt
19:10 jas02_ joined #salt
19:10 freelock[m] joined #salt
19:11 west575 joined #salt
19:12 daemonkeeper joined #salt
19:12 pjs joined #salt
19:12 bluenemo joined #salt
19:12 woodtablet1 joined #salt
19:12 jab416171 joined #salt
19:12 gmoro joined #salt
19:16 impi joined #salt
19:18 ssplatt joined #salt
19:19 iter joined #salt
19:20 teryx510 joined #salt
19:20 lazybear joined #salt
19:21 pocketprotector how do i set modes on files with salt? file.access only seems to read access bits?
19:24 nidr0x joined #salt
19:24 jfindlay pocketprotector: state module or execution module?
19:25 supermike_ Has anyone figured out how to get Salt to reenable a PPA after upgrading an Ubuntu release?
19:26 aalmenar_ joined #salt
19:26 theblazehen_ joined #salt
19:26 kuromagi joined #salt
19:26 qman joined #salt
19:26 jrklein joined #salt
19:26 Edgan_ joined #salt
19:26 yuhlw___ joined #salt
19:27 brotatochip joined #salt
19:27 jfindlay pocketprotector: canonical way with exec is `file.manage_file` and with state `file.managed`, using the `mode` arg in both cases
19:27 daemonkeeper joined #salt
19:27 saltstackbot joined #salt
19:27 woodtablet joined #salt
19:27 cyraxjoe joined #salt
19:27 cyborg-one joined #salt
19:28 dariusjs_ joined #salt
19:28 TooLmaN joined #salt
19:28 jfindlay supermike_: have you looked at the pkgrepo state?
19:28 racooper joined #salt
19:28 Okie_Dokie joined #salt
19:29 renoirb joined #salt
19:29 monokrome joined #salt
19:29 Okie_Dokie Hello salt people
19:30 Okie_Dokie question for the masses
19:30 Okie_Dokie can you do multidimensional arrays in your sls file.. If so how
19:30 keekz joined #salt
19:30 devtea joined #salt
19:31 josuebrunel joined #salt
19:32 TyrfingMjolnir joined #salt
19:32 pocketprotector jfindlay, conical method thanks
19:32 pocketprotector canonical*
19:32 fannet joined #salt
19:33 supermike_ jfindlay: Yes, i've tried explicitly setting 'enabled:true' and 'disabled:false' but Salt won't seem to uncomment the PPAs
19:33 jfindlay supermike_: what version?
19:33 jfindlay that sounds like a bug to me
19:33 mTeK joined #salt
19:33 jfindlay or, wait, if you have the repo configs commented, that is possibly something else
19:34 supermike_ jfindlay: 2015.8.8 (Beryllium)
19:34 jfindlay supermike_: I think that that bug might have been fixed in more recent versions
19:34 aljosa joined #salt
19:35 iggy_ joined #salt
19:35 supermike_ jfindlay: do-release-upgrade commented them out, but Salt refuses to return them back to an enabled state
19:35 peter1 joined #salt
19:35 davromaniak joined #salt
19:35 davromaniak joined #salt
19:35 benjiale joined #salt
19:35 sybix_ joined #salt
19:35 saltstackbot joined #salt
19:36 egilh joined #salt
19:36 FreeSpencer joined #salt
19:36 FreeSpencer joined #salt
19:36 asoc joined #salt
19:36 sebastian-w_ joined #salt
19:36 LotR joined #salt
19:36 PalTale joined #salt
19:36 froztbyte joined #salt
19:36 froztbyte joined #salt
19:36 edrocks joined #salt
19:36 coldbrewedbrew joined #salt
19:36 KingOfFools1 joined #salt
19:36 tperale joined #salt
19:36 jab416171 joined #salt
19:36 jrklein_ joined #salt
19:36 rhand_ joined #salt
19:36 kuromagi joined #salt
19:36 armguy joined #salt
19:36 NV joined #salt
19:36 coldbrewedbrew joined #salt
19:36 arif-ali joined #salt
19:36 racooper joined #salt
19:36 borgstrom joined #salt
19:36 coldbrew- joined #salt
19:36 artemz joined #salt
19:36 cyborg-one joined #salt
19:36 scc joined #salt
19:36 daveleigh joined #salt
19:36 Steelpan joined #salt
19:36 shadoxx joined #salt
19:36 oida_ joined #salt
19:37 renoirb joined #salt
19:37 Valfor joined #salt
19:37 ekkelett joined #salt
19:37 Valfor joined #salt
19:37 josh__ joined #salt
19:37 jY joined #salt
19:37 keekz joined #salt
19:37 supermike_ I'll see if an upgrade fixes it
19:37 jfindlay supermike_: do you have a space in your state config, `enabled: true` rather than `enabled:true`?  The latter is a syntax error
19:38 perfectsine joined #salt
19:38 cyraxjoe joined #salt
19:38 devtea joined #salt
19:38 izrail joined #salt
19:38 yuhlw___ joined #salt
19:38 davisj joined #salt
19:38 ThomasJ joined #salt
19:38 MK_FG joined #salt
19:38 MK_FG joined #salt
19:38 eset joined #salt
19:38 eset joined #salt
19:38 mavhq joined #salt
19:38 jfindlay Okie_Dokie: are you talking about jinja data?
19:39 monokrome joined #salt
19:39 Okie_Dokie yes
19:39 tyler-baker joined #salt
19:39 babilen joined #salt
19:39 gmoro joined #salt
19:39 bryguy joined #salt
19:40 dyasny_ joined #salt
19:40 oyvindmo joined #salt
19:40 jfindlay you should be able to use normal python data types
19:40 Okie_Dokie right now i have an array but it needs to be 2 dimensional.. the closest i am seeing to do what i need is http://stackoverflow.com/questions/20233721/how-do-you-index-on-a-jinja-template
19:41 Okie_Dokie and using two list and indexing
19:41 jfindlay `{% set array = [[j for j in range(3)] for i in range(5)] %}`
19:42 jfindlay can you paste an example with more context?
19:42 Mate joined #salt
19:42 Mate joined #salt
19:42 edrocks_ joined #salt
19:42 brotatochip joined #salt
19:42 pipps joined #salt
19:42 Garo_ joined #salt
19:43 imanc joined #salt
19:43 Okie_Dokie I have a for statement in my sls {% for fileupdate in [ 'a','b','c','d' ] %} but a needs to referenable to 1 and b to 2 and so on
19:43 BattleChicken1 left #salt
19:43 Okie_Dokie you get what i am trying to do
19:43 Okie_Dokie ?
19:44 cro joined #salt
19:44 cmek joined #salt
19:44 AlexLau joined #salt
19:44 IdoKaplan joined #salt
19:44 jrklein joined #salt
19:44 kuromagi joined #salt
19:44 Edgan_ joined #salt
19:44 qman__ joined #salt
19:44 yuhlw____ joined #salt
19:44 ponyofdeath joined #salt
19:44 saltstackbot joined #salt
19:44 jfindlay `{% for key, val in enumerate(['a', 'b', 'c', 'd']) %}`
19:45 izrail_ joined #salt
19:45 ThomasJ joined #salt
19:45 utahcon joined #salt
19:45 daemonkeeper joined #salt
19:45 racooper joined #salt
19:45 MTecknology joined #salt
19:45 MTecknology joined #salt
19:45 daveleigh joined #salt
19:45 canci_ joined #salt
19:45 jab416171 joined #salt
19:45 regretio_ joined #salt
19:45 egil joined #salt
19:45 khorben_ joined #salt
19:45 stotch joined #salt
19:45 KingOfFools joined #salt
19:45 supermike_ yeah I was just shorthanding it
19:45 lv__ joined #salt
19:45 Valfor joined #salt
19:45 blue joined #salt
19:46 Valfor joined #salt
19:46 renoirb joined #salt
19:46 lane_ joined #salt
19:46 jfindlay if you want `key` to start with 1, you'll have to do `key + 1`
19:46 eset joined #salt
19:46 eset joined #salt
19:46 TooLmaN joined #salt
19:46 Morrolan joined #salt
19:46 mTeK joined #salt
19:46 PalTale joined #salt
19:46 yesimon3 joined #salt
19:46 kevc joined #salt
19:46 \ask joined #salt
19:46 coldbrewedbrew joined #salt
19:46 coldbrewedbrew joined #salt
19:46 cyborg-one joined #salt
19:46 oida_ joined #salt
19:46 cyraxjoe joined #salt
19:47 Okie_Dokie findlay... so let me add to this {% for fileupdate in [ 'test','dev','prod' ] %} <-- i need these values... but i also need to have them relate to a location /etc/test /etc/dev/etc/prod
19:47 shadoxx joined #salt
19:47 coldbrewedbrew_ joined #salt
19:47 Skaag joined #salt
19:47 jfindlay supermike_: it seems like you might need another way to uncomment the file if applying a pkgrepo state doesn't work exactly for the case of dp-release-upgrade
19:47 sinh joined #salt
19:47 jfindlay Okie_Dokie: sounds like what you want is a dictionary
19:47 Okie_Dokie so right now am adding in {{fileupdate}} to get values filled with dev,test,prod
19:47 teryx510 joined #salt
19:48 pipps joined #salt
19:48 dyasny_ joined #salt
19:48 svg joined #salt
19:48 alxchk joined #salt
19:48 vadimck joined #salt
19:48 monokrome joined #salt
19:48 benjiale joined #salt
19:48 nixjdm joined #salt
19:48 saltsa joined #salt
19:48 majuscule joined #salt
19:48 Okie_Dokie but this is a one off update to the box i dont want a pillar... is there a way to do it directely in the sls... note my example is not my actually situation... the array is bigger
19:48 jas02 joined #salt
19:49 borgstrom joined #salt
19:49 IdoKaplan Hi, when I'm configuring "log_level_logfile:  trace", I get a summary json - [salt.output      ][TRACE   ][ data = {  xxxx } . I would like to get this json output every time I execute highstate without to configure trace log because I want to send this log to logstash. Is it possible to do it?
19:49 jfindlay Okie_Dokie: `{% set envs = {'test': '/srv/envs/test', 'dev': '/srv/envs/dev'} %}` and then you can use it with `{% for env in envs%} ... {{ envs[env] }}`
19:49 djural joined #salt
19:49 catpiggest joined #salt
19:49 Okie_Dokie Ahh that looks like what i need!!!
19:50 Okie_Dokie thank you.. i will give it a roll... Thanks for barring with me
19:50 jfindlay sure
19:50 sybix joined #salt
19:50 Awesomecase joined #salt
19:51 oyvindmo joined #salt
19:51 tperale joined #salt
19:51 antonw joined #salt
19:52 samkottler joined #salt
19:52 alexlist joined #salt
19:54 ksk joined #salt
19:54 simonmcc joined #salt
19:54 supermike_ jfindlay: yeah I am temtped to just manage /etc/apt/sources.list.d/ directly, but I am doing a slow rolling upgrade, which means dealing with different releases on different machines
19:54 iter joined #salt
19:55 jimklo joined #salt
19:56 gazarsgo joined #salt
19:56 ToeSnacks joined #salt
19:56 cmarzullo joined #salt
19:56 edrocks_ is there a way to have `file.recurse` not replace a file? I'm trying to fix this https://github.com/docker/docker/issues/15793#issuecomment-135411504
19:56 saltstackbot [#15793][MERGED] File mount does not update with changes from host | I have this nginx container, on which I'm mounting a vhost configuration file (indirectly, in fact, I'm using a data volume container). I would like to reload the configuration without stopping the container, with `docker-compose kill -s HUP webserver`, but when I change the configuration file on the host, it does not change on the guest, and *vice versa*. When I restart the
19:57 _igloo joined #salt
19:58 jimklo joined #salt
19:58 johtso joined #salt
19:58 jfindlay edrocks_: check out the `include_pat` and `exclude_pat` arguments to `file.recurse`
19:58 bmcorser joined #salt
19:59 edrocks_ jfindlay: I still want it to update for my single file. I think this might be related https://github.com/saltstack/salt/issues/24099
19:59 saltstackbot [#24099][OPEN] Feature: Add support to file.managed (and others) to preserve the file inode | When `file.managed` is used, every time the file is updated the inode of the file is changed. This breaks things like hardlinks and file-based docker volume mounts. It's not terribly difficult to work around, but it's awfully hard to figure out what's happening. In our case, files mounted into a docker container, that were managed by salt, were not re
19:59 pjs joined #salt
19:59 shanesveller joined #salt
19:59 shawnbutts joined #salt
20:00 SteamWells joined #salt
20:03 nahkiss joined #salt
20:03 mattl joined #salt
20:04 jas02_ joined #salt
20:04 west575 joined #salt
20:04 sjmh joined #salt
20:06 twodayslate joined #salt
20:07 tongpu joined #salt
20:08 cro joined #salt
20:08 Aleks3Y_ joined #salt
20:11 Aleks3Y joined #salt
20:11 sjmh IdoKaplan : you'd have to find the log msg and jus change the level yourself
20:11 DammitJim is there a way for me to run a shell script from the master
20:11 sjmh we did the same for job output, since we wanted to see arguments send to jobs
20:11 sjmh and not just the job cmd
20:11 DammitJim where I also pass a source file that the script processes?
20:12 IdoKaplan sjmh: thanks, how can I do it?
20:13 amcorreia joined #salt
20:13 sjmh IdoKaplan - youd have to find where in the source code that log msg is generated
20:13 ecdhe joined #salt
20:13 ecdhe joined #salt
20:14 t0m0 joined #salt
20:14 sjmh IdoKaplan - it looks like it's in output/__init__.py
20:14 sjmh around line 89
20:15 sjmh just search that file for log.trace
20:15 sjmh and change it to log.info
20:15 sjmh then restart
20:15 cscf DammitJim, why not just file.managed and then cmd.run?
20:15 shawnbutts joined #salt
20:16 zer0def joined #salt
20:18 mrueg joined #salt
20:20 ntropy joined #salt
20:21 jimklo_ joined #salt
20:21 teryx5101 joined #salt
20:21 verax joined #salt
20:22 PalTale joined #salt
20:22 IdoKaplan sjmh: great, thanks! Do you have another idea how can I get json output of the highstate status to the minion/master log? like salt-call state.highstate --out=json
20:22 tapoxi joined #salt
20:22 scc_ joined #salt
20:22 tperale_ joined #salt
20:22 jrklein_ joined #salt
20:22 kuromagi^ joined #salt
20:22 MTecknol1gy joined #salt
20:23 mattp_ joined #salt
20:23 jas02 joined #salt
20:23 josh__ joined #salt
20:23 saltstackbot joined #salt
20:23 egil_ joined #salt
20:23 Hydrosine joined #salt
20:23 pjs joined #salt
20:23 angvp joined #salt
20:23 mrueg joined #salt
20:23 catpigger joined #salt
20:23 s0undt3ch joined #salt
20:24 t0m0 joined #salt
20:24 Qwazerty2 joined #salt
20:24 jas02 joined #salt
20:24 qman joined #salt
20:24 unusedPh- joined #salt
20:24 giany_ joined #salt
20:24 sjohnsen joined #salt
20:24 cyraxjoe joined #salt
20:24 racooper joined #salt
20:24 saltsa_ joined #salt
20:24 cyborg-one joined #salt
20:24 sinh joined #salt
20:24 gmoro joined #salt
20:24 bryguy joined #salt
20:24 stiefkind joined #salt
20:24 brotatochip joined #salt
20:24 Edgan_ joined #salt
20:25 mavhq joined #salt
20:25 mTeK joined #salt
20:25 monokrome joined #salt
20:25 tongpu joined #salt
20:26 jY joined #salt
20:26 ekkelett joined #salt
20:26 benjiale joined #salt
20:26 shadoxx joined #salt
20:27 ujjain joined #salt
20:27 ujjain joined #salt
20:27 alexlist joined #salt
20:27 ksa joined #salt
20:28 bmcorser joined #salt
20:28 west575 joined #salt
20:28 stotch joined #salt
20:28 Garo_ joined #salt
20:28 khorben joined #salt
20:29 eset joined #salt
20:29 eset joined #salt
20:30 Dev0n joined #salt
20:31 XenophonF joined #salt
20:31 beowuff joined #salt
20:31 sjohnsen- joined #salt
20:31 elkektetet joined #salt
20:31 s0undt3ch_ joined #salt
20:31 Kruge joined #salt
20:32 kuromagi joined #salt
20:32 benjiale_ joined #salt
20:32 jas02 joined #salt
20:33 gazarsgo joined #salt
20:33 canci joined #salt
20:33 daemonkeeper joined #salt
20:33 Edgan_ joined #salt
20:33 jab416171 joined #salt
20:33 pipps joined #salt
20:33 cyraxjoe joined #salt
20:33 saltstackbot joined #salt
20:33 PalTale joined #salt
20:33 catpigger joined #salt
20:33 Qwazerty2 joined #salt
20:33 cyborg-one joined #salt
20:33 racooper joined #salt
20:33 renoirb joined #salt
20:33 unusedPhD joined #salt
20:33 artemz joined #salt
20:33 mrueg joined #salt
20:33 woodtablet joined #salt
20:34 ksk joined #salt
20:34 shanesveller joined #salt
20:34 kevc joined #salt
20:35 regretio joined #salt
20:35 thehaven joined #salt
20:35 Hydrosine joined #salt
20:35 jas02_ joined #salt
20:35 _igloo Anyone have experience using salt-cloud on Azure? Is it not possible to use salt-cloud with resources created in the new Azure portal? When I run `salt-cloud -p [profile-name]`, it tells me that resources (virtual_network_name, media_link) don't exist. They don't exist if I look at the classic portal, but they do exist in the new portal.
20:35 simonmcc joined #salt
20:36 bryguy joined #salt
20:36 whytewolf joined #salt
20:36 SWAT joined #salt
20:37 giany joined #salt
20:37 lv_ joined #salt
20:37 sjmh joined #salt
20:39 jas02_ joined #salt
20:39 cro joined #salt
20:41 thehaven_ joined #salt
20:41 gmoro joined #salt
20:41 rem5 joined #salt
20:42 benjiale joined #salt
20:42 johtso joined #salt
20:42 djural joined #salt
20:42 SteamWells joined #salt
20:43 shawnbutts joined #salt
20:43 samkottler joined #salt
20:45 stfknd joined #salt
20:45 Rkp joined #salt
20:45 honestly joined #salt
20:45 woodtablet1 joined #salt
20:45 PalTale joined #salt
20:45 capri joined #salt
20:45 jas02_ joined #salt
20:45 _igloo And the only place I found to upload a management certificate was on the classic portal. So I'm wondering if it has something to do with that.
20:45 kevc_ joined #salt
20:45 cmarzull1 joined #salt
20:45 canci joined #salt
20:45 MTecknology joined #salt
20:45 cro_ joined #salt
20:45 angvp1 joined #salt
20:45 kuromagi^ joined #salt
20:45 asoc_ joined #salt
20:46 Skaag joined #salt
20:46 majuscul1 joined #salt
20:46 iter_ joined #salt
20:46 Rumbles joined #salt
20:46 nixjdm_ joined #salt
20:46 ToeSnacks joined #salt
20:46 keekz_ joined #salt
20:46 StolenToast joined #salt
20:46 qman__ joined #salt
20:46 racooper joined #salt
20:46 josh__ joined #salt
20:46 racooper joined #salt
20:46 rhand joined #salt
20:46 renoirb joined #salt
20:46 armguy joined #salt
20:46 ToeSnacks joined #salt
20:46 daemonkeeper joined #salt
20:46 cebreidian joined #salt
20:46 pcn joined #salt
20:47 mrueg joined #salt
20:47 lane__ joined #salt
20:47 jab416171 joined #salt
20:47 ponyofdeath joined #salt
20:47 jY joined #salt
20:47 Edgan_ joined #salt
20:47 gazarsgo joined #salt
20:48 bryguy joined #salt
20:48 tongpu joined #salt
20:48 devtea joined #salt
20:48 saltstackbot joined #salt
20:48 cyraxjoe joined #salt
20:48 jrklein joined #salt
20:50 Vaelatern joined #salt
20:50 Heartsbane joined #salt
20:51 bltmiller joined #salt
20:52 lero joined #salt
20:53 jas02_ joined #salt
20:53 sp0097 joined #salt
20:54 Nebraskka joined #salt
20:54 eightyeight how can i pin a specific salt minion to identify as a specific os_family?
20:54 edrocks joined #salt
20:54 eightyeight i have some minions identifying as os_family = `Virtuozzo', and i want them to identify as `CentOS'
20:55 eightyeight permanently
20:56 Awesomecase joined #salt
20:57 sgo_ joined #salt
20:57 Sketch just a guess: install the centos-release package (or copy /etc/centos-release and/or /etc/redhat-relase from a centos box)
20:58 * Sketch knows nothing about virtuozzo
20:58 eightyeight # cat /etc/redhat-release
20:58 eightyeight VirtuozzoLinux release 6.8
20:58 Sketch yeah...that would probably explain it
20:58 antonw joined #salt
20:58 Edgan_ eightyeight: custom grain
20:58 eightyeight it's been that for a while now. a recent salt update added `Virtuozzo' and subsequently, broke highstating the minion
20:58 Sketch CentOS Linux release 7.2.1511 (Core)
20:59 eightyeight Edgan_: how do i overwrite the os_family grain? assuming /etc/salt/grains?
20:59 shanesveller joined #salt
20:59 angvp joined #salt
20:59 whytewolf eightyeight: https://docs.saltstack.com/en/latest/topics/grains/#precedence
20:59 eightyeight or /etc/salt/minion also, i guess
20:59 whytewolf you just do
20:59 jfindlay eightyeight: distros are frustrating inconsistent with version data like that.  `grains/core.py` tries its best to normalize it, but often fails when distros update /etc/my_bedazzled_version_info
21:00 twodayslate joined #salt
21:00 eightyeight so:
21:00 eightyeight grains:
21:00 mattl joined #salt
21:00 eightyeight os_family: CentOS
21:00 eightyeight ?
21:00 jfindlay I wish linux distros would install `lsb_release` by default
21:00 thehaven joined #salt
21:01 whytewolf os_family is for CentOS shows as RedHat for me [in CentOS 7.2]
21:02 whytewolf os shows as CentOS
21:02 whytewolf but yeah pretty much
21:02 edrocks_ joined #salt
21:03 eightyeight ah. indeed.
21:03 eightyeight thxwhy
21:03 eightyeight gah
21:03 eightyeight thx whytewolf
21:03 johny_ joined #salt
21:04 whytewolf jfindlay: we can all dream
21:04 johny_ hey everyone, I've logged an issue I'm having with importing logrotate using GitFS over here https://github.com/saltstack-formulas/logrotate-formula/issues/23 . I'd really appreciate any input!
21:04 saltstackbot [#23][OPEN] jobs.sls not being executed | Hi,...
21:05 brotatochip joined #salt
21:06 rem5 joined #salt
21:06 whytewolf johny_: did you actually put logrotate.jobs in your top file?
21:07 beowuff joined #salt
21:07 johny_ @whytewolf I did not!
21:07 johny_ I only put "logrotate"
21:07 whytewolf ...
21:07 whytewolf that would be why it didn't run.
21:07 johny_ haha, that makes a lot of sense, I figured it would get run by default. Let me try :)
21:08 whytewolf johny_: npoe if they make mention of them in the readmes then they are meant to be seperate items in your top file.
21:08 DEger joined #salt
21:09 whytewolf you might also need to look at logrotate.config
21:09 Edgan_ eightyeight: don't overwrite it, just use your own
21:10 eightyeight hmm. looks like i need a recent virtuozzo fix post 2016.3
21:10 cyborg-one joined #salt
21:10 johny_ @whytewolf: great point man, thanks for this, this had me stumbled for some time!
21:13 ixs joined #salt
21:16 johny_ @whytewolf worked great, thanks!
21:17 leev joined #salt
21:18 * MTecknology thinks he just found a regression issue w/ salt
21:18 * MTecknology grumbles
21:20 brotatochip joined #salt
21:20 MTecknology I don't know if someone introduced a bug in our salt states or if someone introduced a bug in the yaml renderer. I'm suddenly ready to go home for the day. :P
21:20 raspado joined #salt
21:20 leev joined #salt
21:23 MTecknology Let's start here... should a mac address in a pillar file need to be quoted?
21:24 JohnnyRun joined #salt
21:24 MTecknology It appears that at some point, for some reason, salt is trying to expand each set as a new dictionary
21:24 akw joined #salt
21:25 whytewolf might need to setup a literal
21:26 MTecknology my question is "should" and not "does"?
21:27 MTecknology I'm asking both, but really mostly curious about the former
21:27 whytewolf if you are using colons in the mac address then yes it should be a literal other wise it will never look right in yaml
21:28 MTecknology What does "look right" mean?
21:28 whytewolf it will parse it down into a set of dicts
21:29 MTecknology aight
21:29 MTecknology I wonder why it was working before
21:29 whytewolf that is a good question
21:29 whytewolf it was broken before? someone fixed the rendering?
21:31 MTecknology will pillar data fully refresh is pillar data starts to fail to render or will it skip that and use the old value?
21:31 MTecknology quoting the strings seems to have made no impact
21:31 whytewolf you need a literal not just quotes
21:33 whytewolf trying to remeber where they are discribed in the documentation. but basicly it is a pipe
21:33 MTecknology I know how to use one, but that seems excessively silly considering yaml itself will do the right thing if it's quoted..
21:34 whytewolf when has salts yaml ever worked exatly like normal yaml?
21:35 whytewolf so many other layers could be striping things out
21:36 MTecknology If quotes aren't enough, I'm gonna call it a bug /somewhere/
21:36 MTecknology granted, some pillar stuff needs to be double quoted.
21:38 MTecknology even trying out literal blocks doesn't work
21:39 whytewolf interesting. a literal should defintly work.
21:40 whytewolf something elase must be at work here
21:41 whytewolf does it show up correctly in pillar.items?
21:43 * MTecknology gets cranky
21:43 MTecknology problem solved
21:43 MTecknology someone forgot a colon a few lines up
21:44 whytewolf ouch
21:44 MTecknology that explains a lot, though
21:44 RandyT howdy crew
21:44 KajiMaster joined #salt
21:45 RandyT question about beacon internals... anyone know how beacon is getting status of services running on a minion?
21:45 RandyT seeing system load on an idle minion of over 50% cpu for systemd
21:45 RandyT if I turn on debug log, I see a complete output of systemctl every second...
21:47 whytewolf looks like it uses the module service.status
21:47 RandyT thanks whytewolf heading there now...
21:48 evidence joined #salt
21:48 lilvim joined #salt
21:48 evidence hmm.. what is salt not getting that it expects? http://pastebin.com/uLdkBtHs
21:49 evidence it's running the command twice, and then still trying to load the module
21:49 evidence in the standard run case, it runs kldstat once, see's it's loaded, and moves on without trying to
21:50 jimklo joined #salt
21:50 RandyT not clear from a glance at the code, but wondering if it is calling service.status for each named beacon?
21:50 whytewolf RandyT: https://github.com/saltstack/salt/blob/develop/salt/beacons/service.py#L82-L85
21:52 RandyT ouch, that can't possibly scale
21:53 justan0theruser joined #salt
21:53 daxomati1 joined #salt
21:54 RandyT does not seem to be a global interval setting that applies to all beacons... default interval is every second...
21:58 rem5 joined #salt
22:00 pipps joined #salt
22:05 jas02 joined #salt
22:07 MadHatter42 joined #salt
22:10 rylnd joined #salt
22:10 jas02 joined #salt
22:17 rylnd hey guys. i wondered if anyone had found a work-around for updating a minions config and restart/reloading the daemon without have to run the salt command twice. for example, i have a state file that puts a mysql config file in /etc/salt/minion.d and then creates some mysql tables and makes sure permissions are right. but do be able to do that, the minion needs to be restarted to read the new config. with 2016.3.2 i have to run the state file twice, it
22:17 rylnd give me 'Minion did not return. [No response]' when it restarts the minion to load the mysql config.
22:18 flebel joined #salt
22:18 rylnd it seems that the service itself doesn't support a reload
22:18 MK_FG joined #salt
22:19 whytewolf rylnd: the mysql configs can be pillar data [which doesn't need to reload the minion for]
22:21 rylnd whytewolf you can use pillar data in minion config files?
22:22 whytewolf rylnd: no. but you can use pillar data as some of the config options. when config.get is used internally it actualy cycles through a few things to get the config.
22:22 rylnd whytewolf right now i create a /etc/salt/minion.d/mysql.conf file that contains 'mysql.default_file: '/etc/mysql/salt.cnf''. and a /etc/mysql/salt.cnf file with the right credentials
22:25 whytewolf rylnd: here is what i used to use for setting up mysql [I was using ubuntu at the time, which has a built in default file]
22:28 whytewolf rylnd: https://gist.github.com/whytewolf/1e942a1b982000b9d315
22:28 whytewolf almost forgot the link
22:32 rylnd whytewolf thanks. but that confuses me even more. i mean i know debian and know about the debian.cnf. but i dont understand how that helps, as it doesnt bring the configuration change to the minion
22:32 rylnd whytewolf or i misunderstand your intent
22:33 whytewolf rylnd: config.get [the module that is used by the mysql module for getting it's config options] will pull info from pillar.
22:33 rylnd whytewolf ah, ok. now i get your drift.
22:33 rylnd whytewolf thanks!
22:34 whytewolf np
22:38 brotatochip joined #salt
22:50 Mate joined #salt
22:50 Mate joined #salt
22:52 Morrolan joined #salt
22:52 v0rtex joined #salt
23:03 RedundancyD joined #salt
23:03 daxomati1 joined #salt
23:03 om joined #salt
23:05 edrocks joined #salt
23:07 CeBe joined #salt
23:08 alias joined #salt
23:11 jas02 joined #salt
23:16 pavan joined #salt
23:21 om joined #salt
23:22 pavan Hello! I need some help with salt.. I have a master on 2016.3.3 and all the minions on 2016.3.3. I have about 100 minions connected to this master. I see lot of "SaltReqTimeoutError: Message timed out", "SaltClientError: Attempt to authenticate with the salt master failed with timeout error" errors. Things I have tried are increasing the timeout on master, trying tcp_keep_alive config on minions, increasing worker threads on master etc
23:23 pavan This infrastructure is on Azure.. I also took a look at the tcpdump on the master and I see some random RST flags for the connections (minions) that failed.
23:23 nicksloan joined #salt
23:24 pavan Is the problem with ZeroMQ ?
23:28 debian112 joined #salt
23:36 evidence hmm.. what is salt not getting that it expects? http://pastebin.com/uLdkBtHs
23:36 evidence in the standard run case, it runs kldstat once, see's it's loaded, and moves on without trying to
23:37 hemebond1 joined #salt
23:49 SubOracle joined #salt
23:55 sjmh joined #salt

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