Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-05-21

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

All times shown according to UTC.

Time Nick Message
00:08 jenastar left #salt
00:09 hasues joined #salt
00:10 hasues left #salt
00:16 jfindlay hrumph: I'm available now
00:17 edrocks joined #salt
00:19 jfindlay hrumph: you're welcome too PM or ping me whenever
00:24 amcorreia joined #salt
00:37 nmadhok joined #salt
00:50 Bico_Fino joined #salt
00:57 brotatochip joined #salt
00:57 flowstate joined #salt
01:08 kus joined #salt
01:11 subsignal joined #salt
01:16 brianfeister joined #salt
01:17 rgrinberg joined #salt
01:30 racooper joined #salt
01:30 lorengordon joined #salt
01:31 Bico_Fino Trying to setup a state to fire an event, the event is fire(with data) and I’m getting this error on the reactor state -> SaltRenderError: Jinja variable 'dict object' has no attribute 'hostname'
01:34 Bico_Fino Also I get this -> SaltRenderError: Jinja variable 'hostname' is undefined
01:39 lorengordon joined #salt
01:55 ageorgop joined #salt
01:57 catpigger joined #salt
02:02 jalbretsen joined #salt
02:05 subsignal joined #salt
02:19 rem5 joined #salt
02:19 subsignal joined #salt
02:20 nmadhok joined #salt
02:22 nmadhok1 joined #salt
02:25 flowstate joined #salt
02:40 writtenoff joined #salt
02:44 lompik joined #salt
02:50 tristianc joined #salt
02:56 hasues joined #salt
02:56 hasues left #salt
02:56 colegatron joined #salt
03:01 jalbretsen joined #salt
03:02 dezertol joined #salt
03:03 dstokes joined #salt
03:05 brianfeister joined #salt
03:09 JoeJulian joined #salt
03:11 iceyao joined #salt
03:14 iceyao_ joined #salt
03:17 flowstate joined #salt
03:21 edrocks joined #salt
03:28 iceyao joined #salt
03:28 brianfeister joined #salt
03:29 rojem joined #salt
03:30 iceyao joined #salt
03:33 iceyao_ joined #salt
03:35 iceyao_ joined #salt
03:35 iceyao__ joined #salt
03:42 iceyao joined #salt
03:44 iceyao_ joined #salt
03:45 iceyao_ joined #salt
03:59 flowstate joined #salt
04:13 anotherZero joined #salt
04:34 jxm_ joined #salt
04:38 beardedeagle joined #salt
04:58 flowstate joined #salt
05:00 rgrinberg joined #salt
05:17 felskrone joined #salt
05:24 edrocks joined #salt
05:28 dstokes joined #salt
05:32 barmaley joined #salt
05:32 sauvin joined #salt
05:42 dstokes joined #salt
05:44 barmaley joined #salt
05:44 barmaley joined #salt
05:49 dezertol joined #salt
05:57 fracklen joined #salt
05:58 flowstate joined #salt
06:05 ivanjaros joined #salt
06:11 punkoivan joined #salt
06:12 subsignal joined #salt
06:13 LeProvokateur joined #salt
06:13 karlthane joined #salt
06:26 iceyao joined #salt
06:37 tristianc joined #salt
06:44 manji joined #salt
06:53 Miouge joined #salt
06:58 flowstate joined #salt
07:03 rbjorkli1 joined #salt
07:20 Ayo joined #salt
07:21 Miouge joined #salt
07:26 edrocks joined #salt
07:36 oida joined #salt
07:37 garphy joined #salt
07:40 Miouge joined #salt
07:52 subsignal joined #salt
07:54 keimlink joined #salt
07:58 flowstate joined #salt
08:00 Miouge joined #salt
08:00 Miouge joined #salt
08:18 garphy joined #salt
08:23 flowstate joined #salt
08:27 iceyao joined #salt
08:47 avozza joined #salt
08:47 Trauma joined #salt
08:50 lero joined #salt
08:53 pfallenop joined #salt
08:55 jesusaur joined #salt
08:57 GreatSnoopy joined #salt
09:27 ivanjaros joined #salt
09:28 schinken I wrote a salt state to deploy icinga2. I know want to deploy agents to my hosts - but I need to generate a SSL certificate for each host. Is this possible within a salt state?
09:29 edrocks joined #salt
09:30 babilen schinken: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.x509.html
09:32 babilen https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.tls.html menions a dependency on PyOpenSSL Python module (0.10 or later, 0.14 or later for
09:32 babilen X509 extension support)
09:37 oida joined #salt
09:40 devster31 what do the lines in /etc/salt/master.d/peer.conf mean? what does that do?
09:45 krymzon joined #salt
09:50 babilen devster31: What did you put in there?
09:51 devster31 nothing, I was referring to the documentation you linked
09:51 babilen And which lines are you referring to exactly? Could you paste them to one of http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, … ?
09:51 babilen https://docs.saltstack.com/en/latest/ref/peer.html
09:51 devster31 the ones for x509, https://bpaste.net/show/d369c8d95959
09:52 babilen Yes, sure. But given that you are not schinken I simply assumed that you are asking a question yourself.
09:52 av_ joined #salt
09:55 devster31 ok, so it means minions can execute some commands on other minions
09:56 babilen *nod8
09:56 devster31 I'm not quite clear on something, how does salt decide which functions are available for salt-run salt and salt-call, I'm not seeing a pattern
09:57 babilen All runners and functions in execution modules respectively
09:57 lionel joined #salt
09:57 lero joined #salt
09:58 schinken babilen: thx, i'm looking into it
10:03 CeBe joined #salt
10:12 viq joined #salt
10:15 pfallenop joined #salt
10:21 devster31 so runners are for salt-run, both salt.states and salt.modules are for salt (master) and salt-call (minion)
10:24 Elsmorian joined #salt
10:25 iceyao joined #salt
10:27 oida joined #salt
10:34 iggy you don't generally run states, you run execution modules
10:34 iggy (there just happens to be an execution module that can run states)
10:35 babilen devster31: No, you don't run states. You run module functions (such as state.highstate, state.sls, ...) to apply states.
10:36 babilen Hence my reference to functions in exection modules -- https://docs.saltstack.com/en/latest/ref/modules/all/
10:41 devster31 ok, that one I didn't get, so what are the state modules for? for example what's the difference between salt.modules.file and salt.states.file ?
10:45 babilen Execution modules are the part of salt that actually does things, while states are build on top of them and add a layer of logic/tests to check if a certain, well, state has been achieved. If not a state calls execution modules functions to achieve the state.
10:47 babilen So, say you have a state that ensures that a file matches certain requirements (e.g. content, permissions, owners, ....) such as file.managed. The state would then have functionality to check if each of these conditions have been met and will call appropriate functions in the file execution module to make changes where necessary.
10:48 iggy salt.states.* is what goes in highstate
10:53 GreatSnoopy joined #salt
10:57 paolo left #salt
11:07 viq joined #salt
11:32 edrocks joined #salt
11:32 tracphil joined #salt
11:38 lero joined #salt
11:39 theproxy joined #salt
11:56 avozza joined #salt
12:04 joejoba joined #salt
12:05 MadHatter42 joined #salt
12:06 joejoba left #salt
12:10 quasiben joined #salt
12:13 MadHatter42 joined #salt
12:25 devster31 that was a very clear explanation, thank
12:25 devster31 s
12:32 west575 joined #salt
12:55 estahn joined #salt
13:06 sinonick joined #salt
13:09 rgrinberg joined #salt
13:11 dyasny joined #salt
13:16 tracphil joined #salt
13:21 avozza joined #salt
13:28 amcorreia joined #salt
13:34 edrocks joined #salt
13:36 manji joined #salt
13:38 adelcast joined #salt
13:56 Lee_ joined #salt
13:57 zenlot joined #salt
14:00 zzzirk joined #salt
14:01 zzzirk joined #salt
14:14 tracphil joined #salt
14:16 feliks joined #salt
14:22 Biopandemic2 joined #salt
14:30 bluenemo joined #salt
14:56 mapu joined #salt
15:09 fracklen joined #salt
15:09 Fiber^ joined #salt
15:10 sinonick_ joined #salt
15:11 sk_0 joined #salt
15:20 sinonick joined #salt
15:25 sinonick_ joined #salt
15:27 catpig joined #salt
15:37 edrocks joined #salt
15:45 Elsmorian joined #salt
15:52 isntall joined #salt
15:52 isntall joined #salt
15:53 dstokes joined #salt
15:56 ageorgop joined #salt
15:58 ivanjaros joined #salt
16:05 nidr0x joined #salt
16:07 sinonick joined #salt
16:12 krymzon_ joined #salt
16:25 nmadhok joined #salt
16:33 RoGryza joined #salt
16:39 linjan joined #salt
16:43 hax404 joined #salt
16:43 anmol joined #salt
16:45 mowntan joined #salt
16:47 hax404 joined #salt
16:50 subsignal joined #salt
16:51 manji joined #salt
16:53 Ayo joined #salt
16:55 adelcast joined #salt
16:57 shadowbeast joined #salt
17:02 hax404 joined #salt
17:05 hax404 joined #salt
17:07 zenlot6 joined #salt
17:09 hax404 joined #salt
17:09 hasues joined #salt
17:10 netcho joined #salt
17:10 amcorreia joined #salt
17:11 hasues left #salt
17:26 Edgan_ joined #salt
17:39 edrocks joined #salt
17:43 Bico_Fino joined #salt
17:47 squishypebble1 joined #salt
17:56 jenastar joined #salt
18:02 viq joined #salt
18:17 ivanjaros joined #salt
18:29 subsignal joined #salt
18:33 mowntan joined #salt
18:47 fracklen joined #salt
18:50 Ayo_ joined #salt
18:52 devster31 can I control a minion on a private network (minion ip: 10.0.0.5) but with internet access, from a n external master like 11.22.33.44? do I need specific configuration options?
19:05 babilen devster31: You can control any minion the master can speak to. This is a networking issue and has little to do with salt itself.
19:06 jxm_ joined #salt
19:09 devster31 right, sorry, what I meant was, which ports are required, if any, to be open on client/master side to allow communication, but I found the reference: No ports need to be opened on the minion, as it makes outbound connections to the master.
19:10 Eugene The minion needs to reach TCP 4505:4506 on the master.
19:11 Eugene https://docs.saltstack.com/en/latest/topics/tutorials/firewall.html
19:12 GreatSnoopy joined #salt
19:13 devster31 yes, I found that page, but I was worried each minion needed that port open as well
19:13 __vano joined #salt
19:13 Eugene The Note box there debunks that pretty well
19:29 west575 joined #salt
19:31 felskrone joined #salt
19:31 adelcast joined #salt
19:40 dstokes joined #salt
19:41 edrocks joined #salt
19:46 GreatSnoopy joined #salt
19:56 thebwt joined #salt
20:28 lilvim joined #salt
20:28 noraatepernos joined #salt
20:31 punkoivan joined #salt
20:33 dendazen joined #salt
20:39 adelcast joined #salt
20:43 manji joined #salt
20:50 papertigers anyone have a good pointer on how to use states.git with a self signed cert? (aka gitlab).  I think the last time I tried it complained
20:52 viq papertigers: 1) how about letsencrypt? 2) How about the new x509 states? Generally how about making it not self signed, and trusting the CA that signed it?
20:54 Elsmorian joined #salt
20:55 papertigers the x509 looks like it might be useful.  Thanks
20:58 dstokes joined #salt
21:07 punkoivan joined #salt
21:09 josuebrunel joined #salt
21:24 quasiben joined #salt
21:44 edrocks joined #salt
21:47 iggy papertigers: https://github.com/saltstack-formulas/letsencrypt-formula
21:50 rgrinberg joined #salt
21:58 thusoy joined #salt
22:05 GreatSnoopy joined #salt
22:05 lilvim joined #salt
22:06 thusoy G'morning! I'm having some Jinja error messages of the form "[ERROR   ] Template was specified incorrectly: False" on highstate runs. I've tracked it down to happen for each non-master branch on the gitfs backend for the master, but can't seem to exclude these branches through gitfs_env_whitelist (allowing only master ends up logging the message once for each sls included in the highstate from the gitfs). Salt 2015.8.7.
22:06 thusoy Anyone experienced something similar or have any other pointers for how to debug this?
22:09 adelcast joined #salt
22:11 linjan_ joined #salt
22:25 akhter_1 joined #salt
22:38 zenlot joined #salt
23:13 iggy thusoy: seen https://github.com/saltstack/salt/issues/30434 ?
23:13 saltstackbot [#30434]title: highstate doesn't work with multiple environment | my top.sls contains 'base' and 'live'. The base section is the first one. When I run the 'salt-call state.highstate' only 'base' section will be set. The 'salt-call  state.highstate saltenv=live' returns with:...
23:13 keimlink joined #salt
23:22 wryfi joined #salt
23:47 edrocks joined #salt
23:49 thusoy iggy: Read through it, not sure if it's the same issue, i'm not using multiple environments. But will dig further.
23:50 iggy thusoy: at the very least it should give you an idea the kind of info we need to see to help diagnose the problem
23:51 thusoy Sure, thanks for the link, hadn't found it while searching previously.
23:52 thusoy Trying to build a reproducible sample config

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