Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-08-23

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

All times shown according to UTC.

Time Nick Message
00:22 jakubm_ joined #salt
00:25 Cliph joined #salt
00:26 indispeq joined #salt
00:27 zwi joined #salt
00:29 zwi joined #salt
00:30 thayne joined #salt
00:39 mohae joined #salt
00:43 aquinok joined #salt
00:44 aqua^c joined #salt
00:47 dthom91 joined #salt
00:57 GreatSnoopy joined #salt
01:03 matt_604 joined #salt
01:17 RandyT_ joined #salt
01:19 dthom91 joined #salt
01:19 zwi1 joined #salt
01:28 cachedout joined #salt
01:34 pcdummy joined #salt
01:38 edrocks joined #salt
01:44 dthom91 joined #salt
02:04 sunkist joined #salt
02:16 cheus joined #salt
02:27 sbogg joined #salt
02:30 tzero joined #salt
02:34 dthom91 joined #salt
02:35 dyasny joined #salt
02:39 ITChap joined #salt
02:41 XenophonF left #salt
02:50 jeadre joined #salt
02:58 malinoff joined #salt
03:25 test joined #salt
03:31 cachedout joined #salt
03:35 writtenoff joined #salt
03:35 dthom91 joined #salt
03:35 zwi joined #salt
03:39 dthom91 joined #salt
03:41 evle1 joined #salt
03:55 jeadre joined #salt
03:58 pm90_ joined #salt
04:04 dthom91 joined #salt
04:08 cberndt joined #salt
04:11 yexingok joined #salt
04:16 ventris joined #salt
04:20 aqua^c joined #salt
04:28 schristensen joined #salt
04:28 jeadre joined #salt
04:28 schristensen left #salt
04:36 thayne joined #salt
04:39 jeadre joined #salt
04:40 dthom91 joined #salt
04:40 zmalone joined #salt
04:44 goldbuick__ joined #salt
04:44 ventris joined #salt
04:54 sbogg joined #salt
04:58 pcdummy joined #salt
04:58 favadi joined #salt
04:58 tzero joined #salt
05:03 catpiggest joined #salt
05:17 pm90_ joined #salt
05:23 malinoff joined #salt
05:38 evle joined #salt
05:43 cheus joined #salt
05:49 harkx joined #salt
05:53 orion For logstash-forwarder, I need to add one stanza to the JSON-formatted config file per log file I want shipped. What's the best salt state to use for this?
05:55 sbogg joined #salt
06:08 aqua^c joined #salt
06:15 TyrfingMjolnir joined #salt
06:36 scooby2 joined #salt
06:54 viq joined #salt
06:55 bfoxwell joined #salt
07:06 cape joined #salt
07:08 cape I'm starting to add Windows minions into our salt installation, and working to fix all the Linux-assumptions we have in our states. Is there some recommendation for how to separate states into linux/windows parts?
07:11 whytewolf cape: jinja templating and useing the grain os. [also can use a map.jinja to build os dependent information in a state. ala http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#abstracting-static-defaults-into-a-lookup-table]
07:14 cape whytewolf: thanks! guessed as much, but wanted to make sure I wasn't missing some nice builtin feature/pattern. do you typically keep things in the same file, or split it per os? I've seen some examples where init.sls has been something like (pseudo) 'include:{% if linux %} - mystate.linux {% elseif Windows %} - mystate.windows {%endif %}'
07:15 cape I'm not sure if I like it or not - on one hand there is a clear separation, but on the other it will be less clear what is shared between these states
07:16 whytewolf cape: sorry I'm an all linux shop so don't really deal with the problem myself.
07:16 cape lucky you ;)
07:16 whytewolf well I'm like a bad maid. I don't do windows
07:17 cape haha
07:18 whytewolf anyway. seperation of states into os, might give a better way of dealing with the hardships of windows. without having to compromise your already working linux states
07:19 cape yeah, guess I'll just have to tinker a bit and see what looks best/more readable
07:19 cape thanks for the tips :)
07:20 whytewolf no problem. have fun ;)
07:23 favadi joined #salt
07:25 ITChap joined #salt
08:00 raakesh joined #salt
08:11 supersheep joined #salt
08:31 TyrfingMjolnir joined #salt
08:49 cape So, git backend for salt, ext_pillar and winrepo are all subtly different, esp regarding how to only use a subdir from the repo (which doesn't even seem possible for winrepo). Are they all different somehow from salt's point of view, or is it something that will consolidate over time?
08:51 favadi joined #salt
08:52 jeadre joined #salt
09:02 cberndt joined #salt
09:19 pm90_ joined #salt
09:23 cberndt joined #salt
09:29 AndreasLutro joined #salt
09:43 X67r joined #salt
09:49 alcachi_ joined #salt
09:53 Edur joined #salt
09:53 intel joined #salt
10:12 CeBe joined #salt
10:15 favadi joined #salt
10:45 dopesong joined #salt
10:50 dopesong_ joined #salt
11:13 intel joined #salt
11:14 supersheep joined #salt
11:16 bluenemo joined #salt
11:32 aqua^c joined #salt
11:40 orion What does "with context" mean in this line of jinja?: {%- from 'logstash_forwarder/map.jinja' import logstash_forwarder with context %}
11:46 AndreasLutro joined #salt
11:46 mapu joined #salt
11:51 supershe_ joined #salt
11:56 tekops joined #salt
11:57 raakesh joined #salt
12:17 ITChap joined #salt
12:31 linjan joined #salt
12:47 keimlink joined #salt
12:50 sirnightlord joined #salt
13:13 favadi joined #salt
13:22 pm90_ joined #salt
13:30 sirnightlord joined #salt
13:44 favadi joined #salt
13:46 linjan joined #salt
13:49 s_kunk joined #salt
13:52 cachedout joined #salt
13:57 jeddi joined #salt
14:07 peterdemin joined #salt
14:15 aqua^c joined #salt
14:18 sunkist joined #salt
14:19 teryx510 joined #salt
14:25 pravka joined #salt
14:28 Bryanstein joined #salt
14:42 pravka joined #salt
14:44 apejens I don't understand why I can get a pillar from the command line, but when I try to get it in a state file, it returns NoneType? https://gist.github.com/omega/98390a70a18b9184ffb4
14:44 apejens anyone have any ideas for how I can investigate further?
14:44 zwi joined #salt
14:46 timoguin joined #salt
14:56 bluenemo joined #salt
15:00 supersheep joined #salt
15:06 danielcb joined #salt
15:07 dthom91 joined #salt
15:11 stephanbuys joined #salt
15:11 thayne joined #salt
15:17 pravka joined #salt
15:21 _ikke_ Using salt-call on the minion, I can succesfully run things like highstate, but running salt minion_id test.ping on the master, it gets no response from the minion. Any idea how I can find out?
15:24 _ikke_ starting the minion with -ldebug, I don't see anything happening when executing things on the master
15:49 dthom91 joined #salt
15:49 katyucha version : 2015.5 . How do you update and upgrade a debian without problem with salt-minion ? salt-minion is going down and then : Failed. You use async ?
15:51 afics Somebody please explain, how [0] makes sure, that each minion can only read its private key, but not the private key of other minions? [0] https://github.com/saltstack-formulas/tinc-formula
15:51 V joined #salt
15:51 V hi
15:52 supershe_ joined #salt
15:54 stephanbuys1 joined #salt
15:55 V joined #salt
15:58 CeBe joined #salt
16:11 apejens afics: since it gets it's data from the pillars, I guess you can use `salt-call pillar.get tinc` on a minion to see what data is would have access to?
16:12 afics apejens: since I don't see anything, which indicates otherwise, I think all minions would have access to everything.
16:12 apejens afics: depends on how you structure the pillar data, and what nodes you apply it to I think?
16:15 afics apejens: Yup, I think so too. Allowing access to all public keys per node isn't the problem. But a separate statement (per node) to give each node access to its privkey sucks
16:15 apejens you could keep them in files maybe, and reference by hostname or something like that?
16:16 afics probably the way to go, yes
16:16 apejens what is tinc?
16:18 Fiber^ joined #salt
16:18 afics A vpn software, see http://tinc-vpn.org
16:19 dthom91 joined #salt
16:23 apejens aha, cool
16:29 afics Makes it very easy to build multi-site-to-site vpns
16:30 edrocks joined #salt
16:32 Ztyx joined #salt
16:33 apejens yeah, looks nice, I'm gonna have to look into it
16:33 apejens ah well, I'm giving up on my pillars problem for tonight..
16:39 apejens is there any way to see what is returned from `pillar.get` during a state.sls run?
16:43 dthom91 joined #salt
16:45 apejens ahhh, can't use : in pillar.get
16:46 jdesilet joined #salt
16:48 jdesilet joined #salt
16:54 pravka joined #salt
16:55 bfoxwell joined #salt
17:04 malinoff joined #salt
17:16 jeadre joined #salt
17:17 stephanbuys joined #salt
17:24 dthom91 joined #salt
17:47 edrocks joined #salt
17:51 aqua^c joined #salt
17:52 supersheep joined #salt
17:57 TyrfingMjolnir joined #salt
18:02 diegows joined #salt
18:05 Lionel_Debroux joined #salt
18:13 sgargan joined #salt
18:13 stephanbuys joined #salt
18:27 CeBe joined #salt
18:27 aw110f joined #salt
18:29 Sacro joined #salt
18:30 aw110f_ joined #salt
18:36 shiriru joined #salt
18:37 keimlink joined #salt
18:46 wiqd joined #salt
18:50 CheKoLyN joined #salt
18:59 s_kunk joined #salt
19:02 shiriru joined #salt
19:02 edrocks joined #salt
19:07 supersheep joined #salt
19:13 ajw0100 joined #salt
19:30 Norbell joined #salt
19:35 sgargan joined #salt
19:39 supersheep joined #salt
19:48 cachedout joined #salt
19:50 Lionel_Debroux_ joined #salt
19:51 orion Is there a function I can call to test for the existence of a pillar value?
19:52 nk joined #salt
20:04 zwi joined #salt
20:07 sgargan joined #salt
20:08 denys joined #salt
20:09 pm90_ joined #salt
20:11 dthom91 joined #salt
20:17 nk joined #salt
20:19 jaybocc2 joined #salt
20:20 sgargan joined #salt
20:27 thayne joined #salt
20:29 dthom91 joined #salt
20:32 sgargan joined #salt
20:32 Antiarc joined #salt
20:41 sgargan joined #salt
20:43 babilen orion: {% if ... is defined %}
20:43 babilen (cf. http://jinja.pocoo.org/docs/dev/templates/ )
20:47 supersheep joined #salt
20:47 goldbuick__ joined #salt
20:49 orion babilen: Thank you. Do you know the current best way for two pillar values to reference a third value (so I don't have to repeat myself)?
20:56 pravka joined #salt
20:59 pravka joined #salt
20:59 cberndt joined #salt
21:00 babilen orion: I'd set it in the SLS file with {% set foo = ... %} and then just reference that throughout the SLS file. You can also import that into others ...
21:01 orion babilen: It's a huge TLS certificate.
21:01 babilen Pillars can't really be self-referential, but you might want to look into https://github.com/bbinet/pillarstack
21:04 babilen I'm off, you might want to look into loading it from file(s) in either jinja or with Python (there is also an external pillar file roots pillar, but I don't *really* like it as it conflates targeting and file storage)
21:04 babilen I typically write those pillars in Python and read the certificates from a defined location
21:05 babilen (Pillars really are nothing but Python dictionaries)
21:08 jaybocc2 joined #salt
21:24 jeadre joined #salt
21:25 timoguin joined #salt
21:26 dthom91 joined #salt
21:27 dopesong joined #salt
21:31 stanchan joined #salt
21:32 johtso joined #salt
21:36 dthom91 joined #salt
21:41 cachedout joined #salt
21:46 timoguin joined #salt
21:59 sgargan joined #salt
22:01 dthom91 joined #salt
22:04 timoguin joined #salt
22:05 sgargan joined #salt
22:07 sgargan joined #salt
22:10 edrocks joined #salt
22:19 jaybocc2 joined #salt
22:19 Tony_ joined #salt
22:22 aqua^c joined #salt
22:22 supersheep joined #salt
22:28 sgargan joined #salt
22:32 ajw0100 joined #salt
22:40 dthom91 joined #salt
22:41 Ztyx joined #salt
22:50 cachedout joined #salt
22:52 thehaven_ joined #salt
23:05 thayne joined #salt
23:08 opensource_ninja joined #salt
23:17 dthom91 joined #salt
23:22 zwi joined #salt
23:22 catpig joined #salt
23:25 jeadre joined #salt
23:26 wendall911 joined #salt
23:26 scooby2 joined #salt
23:28 dopesong joined #salt
23:28 ronrib joined #salt
23:30 stickmack joined #salt
23:38 RandyT_ joined #salt
23:39 linjan joined #salt
23:43 jaybocc2 joined #salt
23:43 amcorreia joined #salt
23:51 edrocks joined #salt
23:52 aqua^c joined #salt
23:52 dthom91 joined #salt
23:54 orion How can I specify multiple nodes from command line? "salt 'foo01,foo02'" doesn't seem to work.
23:56 womble orion: Tried space-separating them?
23:57 orion womble: I just figured it out. I was missing `-L'.

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