Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-10-22

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

All times shown according to UTC.

Time Nick Message
00:03 flowstate joined #salt
00:05 voxpop_ joined #salt
00:06 XenophonF i've set exclude_pat=.gitignore in a file.recurse state, but directories are getting created with .gitignore files in them
00:06 XenophonF is that a bug in salt or am i doing it wrong?
00:07 edrocks_ joined #salt
00:07 XenophonF i have the sneaking suspicion that i need to add a wildcard in there so that any file in the source directory tree with a name of .gitignore gets excluded
00:09 hemebond I can't even tell what kind of syntax it's using.
00:12 joshin joined #salt
00:12 joshin joined #salt
00:20 XenophonF :-/
00:45 jas02 joined #salt
00:52 subsignal joined #salt
00:56 hypercube32 joined #salt
01:01 flowstate joined #salt
01:02 codehotter joined #salt
01:07 gpampara joined #salt
01:26 XenophonF i looked at the code
01:26 XenophonF there's an option to do regexps by prefixing the exclude_pat with "E@"
01:26 hemebond Oh, that's what that is.
01:26 XenophonF exclude_pat=E@\.gitignore seemed to do the trick
01:27 XenophonF i couldn't get */.gitignore to work, probably because it looks like a YAML back reference
01:28 hemebond What if you just escaped the . ?
01:28 hemebond \.gitignore
01:29 hemebond In quotes.
01:29 hemebond 'E@\.gitignore'
01:31 XenophonF i dunno
01:32 XenophonF i have `exclude_pat: E@\.gitignore` in my yaml
01:32 XenophonF i tried a couple of other variations without the regexp and couldn't make it work
01:32 * XenophonF shrugs
01:41 sebastian-w joined #salt
01:46 jas02 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 akhter joined #salt
01:53 mpanetta joined #salt
01:55 catpigger joined #salt
02:01 flowstate joined #salt
02:04 tristianc joined #salt
02:09 edrocks_ joined #salt
02:09 |aaron is there an existing jinja filter or something i can use to expand potentially nested "kwargs" type dict in a custom template?
02:09 zulutango joined #salt
02:10 hemebond You'd need to just use nested loops I think.
02:10 hemebond Oh
02:10 hemebond You can use macros to do recursion.
02:10 |aaron ah good call. yeah i was just starting to write something, thought id check if there was a stock solution
02:10 |aaron thanks again!
02:11 hemebond ????
02:24 writtenoff joined #salt
02:24 mpanetta joined #salt
02:25 mpanetta joined #salt
02:25 mpanetta joined #salt
02:31 krymzon joined #salt
02:35 jas02 joined #salt
02:39 godlike joined #salt
02:39 godlike joined #salt
02:46 XenophonF joined #salt
02:46 iggy there are json and yaml filters
02:47 iggy depends what you need exactly
02:47 jas02_ joined #salt
02:53 blu__ joined #salt
02:56 |aaron iggy: well i have a macro that generates a state, id like to have a "kwargs" sort of parameter that i can pass a nested dict and have a filter expand that into yaml for the state, for example [{'require': [{'pkg': 'somepkg'}, {'pkg': 'anotherpkg'}]}]
02:57 |aaron obviously i can write a macro or somethingi was just thinking maybe salt already had a way to do that
02:58 hemebond There is already a filter for outputting a dict as YAML.
02:58 |aaron oh what is that?
02:59 hemebond |yaml
02:59 |aaron derp haha thats easy
02:59 |aaron thank you
02:59 * iggy wanders off
02:59 hemebond |aaron: https://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.jinja.html
03:01 flowstate joined #salt
03:21 XenophonF |aaron: i use the |yaml and |yaml_encode filters all the time
03:21 XenophonF https://github.com/irtnog/shibboleth-formula, for example
03:25 cyborg-one joined #salt
03:26 |aaron XenophonF: thanks i will check that out
03:34 krymzon joined #salt
03:47 jas02 joined #salt
03:53 akhter joined #salt
04:02 flowstate joined #salt
04:05 dendazen joined #salt
04:07 jas02 joined #salt
04:11 edrocks_ joined #salt
04:26 mpanetta joined #salt
04:26 vegasq joined #salt
04:35 nicksloan joined #salt
04:48 jas02_ joined #salt
04:48 antpa joined #salt
04:57 krymzon joined #salt
05:01 bltmiller joined #salt
05:02 flowstate joined #salt
05:20 bltmiller joined #salt
05:37 DanyC joined #salt
05:41 DanyC joined #salt
05:42 bltmiller joined #salt
05:46 DanyC joined #salt
05:49 jas02 joined #salt
05:53 marcinkuzminski joined #salt
05:56 Ni3mm4nd joined #salt
06:00 akhter joined #salt
06:00 sgo_ joined #salt
06:02 flowstate joined #salt
06:04 lompik joined #salt
06:13 edrocks_ joined #salt
06:26 DEger joined #salt
06:50 jas02 joined #salt
07:01 flowstate joined #salt
07:07 jas02 joined #salt
07:07 jas02_ joined #salt
07:17 jas02 joined #salt
07:19 jas02__ joined #salt
07:19 jas02 joined #salt
07:21 flowstate joined #salt
07:29 zer0def joined #salt
07:31 jas02 joined #salt
07:44 DEger joined #salt
07:51 bocaneri joined #salt
08:01 flowstate joined #salt
08:03 DEger joined #salt
08:03 akhter joined #salt
08:08 jas02_ joined #salt
08:11 DEger joined #salt
08:15 edrocks_ joined #salt
08:23 DEger joined #salt
08:28 mpanetta joined #salt
08:29 SaltyVagrant joined #salt
08:34 sgo_ joined #salt
08:36 DEger joined #salt
08:44 Reverend joined #salt
08:50 samodid joined #salt
08:55 DEger joined #salt
09:07 Miouge joined #salt
09:07 darvon joined #salt
09:09 DEger joined #salt
09:11 DarkKnightCZ joined #salt
09:11 DEger_ joined #salt
09:17 jas02 joined #salt
09:18 jas02 joined #salt
09:20 samodid joined #salt
09:23 jas02__ joined #salt
09:27 DEger joined #salt
09:35 jcristau joined #salt
09:36 antpa joined #salt
09:40 scarcry joined #salt
09:44 DEger joined #salt
09:59 DEger joined #salt
10:12 DEger joined #salt
10:15 antpa joined #salt
10:16 mikecmpbll joined #salt
10:16 edrocks_ joined #salt
10:18 salty joined #salt
10:20 armin joined #salt
10:22 Trauma joined #salt
10:22 salty hi
10:27 DEger joined #salt
10:30 paant joined #salt
10:37 antpa joined #salt
10:47 cyteen joined #salt
11:04 mavhq joined #salt
11:06 akhter joined #salt
11:18 antpa joined #salt
11:32 nihe joined #salt
12:00 lompik joined #salt
12:08 abednarik joined #salt
12:10 amcorreia joined #salt
12:16 DarkKnightCZ joined #salt
12:18 edrocks_ joined #salt
12:24 toanju joined #salt
12:27 keimlink joined #salt
12:29 mpanetta joined #salt
12:33 jeddi joined #salt
12:34 cyteen joined #salt
12:34 losh joined #salt
12:44 jeddi joined #salt
12:45 keimlink joined #salt
12:53 DEger joined #salt
13:05 abednarik joined #salt
13:11 akhter joined #salt
13:30 cyteen joined #salt
13:38 hoonetorg joined #salt
13:51 samodid joined #salt
13:52 cyteen joined #salt
14:19 tiaz joined #salt
14:19 tiaz joined #salt
14:20 edrocks_ joined #salt
14:21 Edgan joined #salt
14:24 cyteen joined #salt
14:25 abednarik joined #salt
14:26 akhter joined #salt
14:29 tiwula joined #salt
14:29 theblazehen_ joined #salt
14:31 Bico_Fino joined #salt
14:59 lero joined #salt
15:03 froztbyte joined #salt
15:04 krymzon joined #salt
15:23 Ni3mm4nd joined #salt
15:24 telx joined #salt
15:28 Cottser joined #salt
15:29 Cottser_ joined #salt
15:29 nicksloan joined #salt
15:32 dendazen joined #salt
15:34 cyborg-one joined #salt
15:37 edrocks joined #salt
15:40 keimlink joined #salt
15:47 edrocks joined #salt
15:51 xet7 joined #salt
15:53 scoates joined #salt
15:54 Cottser joined #salt
15:57 edrocks joined #salt
16:02 edrocks joined #salt
16:04 keimlink joined #salt
16:07 akhter joined #salt
16:13 edrocks joined #salt
16:22 edrocks_ joined #salt
16:24 TyrfingMjolnir joined #salt
16:25 edrocks joined #salt
16:31 WKNiGHT joined #salt
16:34 edrocks joined #salt
16:38 khorben_ joined #salt
16:49 edrocks joined #salt
16:54 mirko hey, i guess i found a bug: when the disk on the minion is full, the process to do $thing on the master just exits with error code 0
16:54 mirko https://pb.nanl.de/show.php?id=1505&hash=77155288
17:05 edrocks joined #salt
17:09 DEger joined #salt
17:09 vegasq joined #salt
17:11 Nightcinder joined #salt
17:21 Cottser joined #salt
17:33 edrocks joined #salt
17:35 krymzon joined #salt
17:42 scarcry joined #salt
17:48 systo joined #salt
17:49 edrocks joined #salt
17:58 Bico_Fino_ joined #salt
18:02 PerilousApricot joined #salt
18:04 Cottser joined #salt
18:08 akhter joined #salt
18:11 tristianc joined #salt
18:20 f4 joined #salt
18:21 ProT-0-TypE joined #salt
18:24 ProT-0-TypE I'm trying to create a file (using file.managed) as a prereq of a pkg.installed and then a file.absent on the same file that run only when the pkg changes. But it doesn't work, with a "RuntimeError: maximum recursion depth exceeded"
18:25 ProT-0-TypE I can change the "file.absent" with a cmd.run with rm -f /path/to/file, but is there a better option to solve this?
18:25 edrocks_ joined #salt
18:29 ProT-0-TypE ok, solved simply putting to different IDs for the 2 similar file states (the create part had the filename as id, the absent part not)
18:36 _KaszpiR_ does github/salt/salt-contrib accept non python code? like shell scripts
18:42 smcquay joined #salt
18:45 iggy _KaszpiR_: good luck getting anything in there
18:45 _KaszpiR_ ;)
18:45 _KaszpiR_ okay
18:46 k_sze[work] joined #salt
18:46 iggy what exactly are you trying?
18:55 smcquay joined #salt
19:12 Cottser joined #salt
19:17 deus_ex joined #salt
19:21 n1L[m] joined #salt
19:23 jas02 joined #salt
19:26 n1L[m] left #salt
19:30 ivanjaros joined #salt
19:33 eseyman joined #salt
19:34 ZachLanich joined #salt
19:35 ZachLanich Anyone have experience with the Orchestrate Runner?
19:36 iggy some people do
19:39 krymzon joined #salt
19:39 shakalaka joined #salt
19:40 subsignal joined #salt
19:45 DEger joined #salt
20:00 Cottser joined #salt
20:01 cyborg-one joined #salt
20:01 amontalban joined #salt
20:03 systo joined #salt
20:03 Cottser_ joined #salt
20:05 viq How do I run survey.hash runner through salt-pepper?
20:11 edrocks_ joined #salt
20:11 antpa joined #salt
20:12 ZachLanich iggy I'm trying to figure out if I can get data from one item in an orchestration and pass it to another - i.e. Create an LXD container, run a cmd to find an available IP on the subnet, configure the container's NIC to that IP, then pass that resulting IP to the next state in my runner
20:12 dhoutz joined #salt
20:12 ZachLanich Anyone know how I might accomplish that?
20:13 iggy ZachLanich: that's more along the lines of what salt mine or sdb would be used for
20:13 iggy (or an external cluster membership service like etcd, etc)
20:13 ZachLanich iggy Ok. I've had that on my mind, but wasn't sure if that was the best route
20:14 ZachLanich iggy Have you ever messed round with deploying containers  with Saltstack?
20:14 edrocks__ joined #salt
20:14 iggy yeah, trying to pass stuff through the orchestrate runner would require a lot of weird hackery (reading the stack or having to read returner data directly, etc)
20:15 iggy no, I haven't
20:15 iggy I've deployed container mgmt systems using salt though
20:15 iggy (i.e. kubernetes)
20:15 viq how about that salt queue system, whatever it's called?
20:16 ZachLanich iggy Hmm. viq Are you talking to me?
20:17 viq Well, both of you, generally your use case, yes
20:17 iggy I mean salt is a queue at it's core... what specifically are you talking about?
20:18 amontalb1n joined #salt
20:19 viq sec, let me find the docs for that
20:19 viq https://docs.saltstack.com/en/latest/ref/runners/all/salt.runners.queue.html
20:20 iggy it still wouldn't be easy to pass data from the end of one state to another with that
20:20 iggy (which sounds like the bigger issue for what ZachLanich is trying to achieve)
20:20 dhoutz has anyone run into this error when starting a salt-proxy? [ERROR   ] No proxy key found in pillar for id mx240_1. Check your pillar configuration and contents.  Salt-proxy aborted
20:21 ZachLanich iggy viq Yea, I guess I will look into Salt Mine for that
20:21 ZachLanich Or etcd as I just read about briefly
20:21 iggy I would personally have a beacon on the lxd host that fired off an event with the required data when a container was spun up
20:23 iggy i.e. your runner tells lxd-minion to fire up container, lxd-minion calls lxc tools/etc to spin up container, when container is up lxd-minion shoots event back up to master to do the next phase of work
20:27 systo joined #salt
20:27 edrocks_ joined #salt
20:27 ZachLanich iggy That's definitely possible. My only hesitation was having to break my orchestrations up into a bunch of very tiny orchestrations rather than being able to define a whole orchestration in one file, making it easier to understand the order of execution.
20:28 theblazehen_ joined #salt
20:28 iggy I never do that anyway
20:28 iggy it's super hard to debug orch jobs
20:29 iggy so my orch's usually consist of "state.sls 1 on tgt1" then "state.sls 2 on tgt2"
20:30 iggy you can debug the individual pieces of work a lot easier that way (as you are just running normal states at that point)
20:33 viq joined #salt
20:38 ZachLanich iggy Gotcha
20:43 abednarik joined #salt
20:44 LeProvokateur joined #salt
20:47 paant joined #salt
20:47 antpa joined #salt
20:58 MTecknology joined #salt
20:58 systo joined #salt
21:10 akhter joined #salt
21:16 ZachLanich joined #salt
21:32 RandyT joined #salt
21:54 toanju joined #salt
21:55 edrocks_ joined #salt
21:56 ZachLanich Does anyone know if this lxc stuff is still relevant with the release of LXD?: https://docs.saltstack.com/en/latest/topics/tutorials/lxc.html#tutorial-lxc
22:00 abednarik joined #salt
22:03 viq ZachLanich: AFAIK LXD builds on top of LXC, so yes, all information there should be still valid
22:06 zulutango joined #salt
22:06 mswart joined #salt
22:09 ZachLanich viq That was my assumption, but I know the LXD component is an important factor when considering security for containers, networking, etc and it worries me that there are absolutely no mentions of LXD in any of the Saltstack docs...
22:10 devster31 joined #salt
22:10 danlsgiga joined #salt
22:15 j-- joined #salt
22:15 danlsgiga Hi everyone... anyone already did it or has any idea on how I can use Consul to store my top.sls and also my pillar? I know and I already use the consul ext_pillar but I can't use it to do targetting (done on top.sls)
22:18 ZachLanich viq Looks like this finally popped up: https://github.com/pcdummy/saltstack-lxd-formula
22:19 danlsgiga and doing target based on the minion_id setup on the master.conf is not feasible for my use case.
22:22 iggy ZachLanich: there is a PR open for lxd modules/states
22:22 ZachLanich iggy Link me?
22:28 iggy ZachLanich: can't find the PR's but the module/state is in that formula (under _modules/_states)
22:28 ZachLanich iggy Yea, I'm assuming the PR is for this formula. That's awesome. I'm adding the formula via gitfs for now to play around with it.
22:29 edrocks__ joined #salt
22:31 iggy the person who wrote it is in here, I'm sure they would like feedback
22:31 Miouge joined #salt
22:41 krymzon joined #salt
22:44 Cottser joined #salt
22:50 cyteen joined #salt
22:53 _JZ_ joined #salt
23:03 mschiff is it possible to have more than one mysql ext_pillar each with individual connection info?
23:05 mswart left #salt
23:05 akhter joined #salt
23:13 jas02 joined #salt
23:15 sleblanc joined #salt
23:18 justanotheruser joined #salt
23:20 edrocks_ joined #salt
23:27 esharpmajor joined #salt
23:27 ZachLanich Has anyone had trouble getting gitfs backend to work reliably?
23:27 ZachLanich It seems to be loading one of my formulas, but not the other 2
23:27 ZachLanich Weird thing is, it loaded 2/3 a bit ago, now it's only loading 1
23:34 danlsgiga ZachLanich: my gitfs experience was not good as well... inconsistencies all over the place.
23:34 ZachLanich danlsgiga So I've heard. I was afraid of that lol. Do you have a suggestion for the fastest way to get formulas in during dev stages?
23:35 danlsgiga ZachLanich: I personally have my own git sync structure
23:36 ZachLanich danlsgiga Interesting. Elaborate?
23:36 danlsgiga ZachLanich: Nothing really outstanding... just couple scripts to fetch my branches to /srv/salt
23:37 ZachLanich Gotcha
23:37 danlsgiga ZachLanich: I'm now looking into some way to have my pillar entirely on consul, including the top.sls
23:38 ZachLanich Yea, I have a lot to figure out myself for my project.
23:38 danlsgiga But I guess I need to develop my own or at least enhance the consul_pillar module
23:39 KevinAn joined #salt
23:42 KevinAn27 joined #salt

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