Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-03-26

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

All times shown according to UTC.

Time Nick Message
00:03 jerredbell joined #salt
00:04 ageorgop joined #salt
00:11 hasues joined #salt
00:13 hemebond zomg, the lint test finally passed.
00:14 hemebond Only took me two attempts.
00:20 kliquori joined #salt
00:21 onlyanegg joined #salt
00:22 mavhq joined #salt
00:24 mosu_ joined #salt
00:28 mavhq joined #salt
00:29 rem5 joined #salt
00:37 joe_n joined #salt
00:38 quasiben joined #salt
01:01 amcorreia joined #salt
01:01 flowstate joined #salt
01:05 flowstate joined #salt
01:07 mavhq joined #salt
01:09 kliquori joined #salt
01:10 DammitJim joined #salt
01:11 DammitJim is there a way that I can define a pillar that uses information from another pillar?
01:11 DammitJim like I want to define a set of variables
01:11 DammitJim and use them as a group in a dictionary or something to pass to a state
01:16 iceyao joined #salt
01:26 quix joined #salt
01:35 aphor Is  v2016.3 release imminent?
01:36 beardedeagle @tvinson: good point
01:36 beardedeagle honestly I should just change to mako though
01:39 hemebond DammitJim: No, a pillar can't use another pillar.
01:39 hemebond But you can work around it by having Jinja import the yaml and then use Jinja to put values in.
01:39 aphor .. "Yo Dawg: ..."
01:40 hemebond Pillar variable interpolation would be great but it's not in yet.
01:40 DammitJim I'm alright with that
01:40 DammitJim I was just reading about import_yaml
01:40 DammitJim is that what you are talking about hemebond ?
01:40 hemebond That's what I'm using.
01:40 DammitJim do you have examples?
01:41 DammitJim I basically have multiple connection pools that have different values
01:42 DammitJim and I want to be able to define like: database, jndi name, db server, username
01:42 aphor I've been really racking my brain to avoid another level of config abstraction, but ..
01:43 DammitJim should I do this with a yaml array?
01:43 DammitJim I guess I'm not that familiar with yaml
01:43 beardedeagle The function "state.sls" is running as PID 2887 and was started at 2016, Mar 25 15:03:34.417337 with jid 20160325150334417337
01:43 beardedeagle seriosuly
01:44 aphor YAML seems to provide arcane powers that aren't commonly used.
01:44 beardedeagle it's been running 5 hours
01:46 aphor beardedeagle: cmd.run 'tail -100 /var/log/salt/minion'
01:48 beardedeagle https://gist.github.com/beardedeagle/5197df0c78f731be7da9
01:50 aphor http://yaml.org/spec/1.2/spec.html#id2782090 <-- YAML tag directives.. get a little meta
01:54 jeffspeff joined #salt
01:56 aqua^c joined #salt
01:58 flowstate joined #salt
02:10 kliquori joined #salt
02:13 quasiben joined #salt
02:19 quasiben joined #salt
02:28 ageorgop joined #salt
02:33 catpigger joined #salt
02:40 brianfeister joined #salt
02:40 subsignal joined #salt
02:47 iceyao joined #salt
02:53 bet0x joined #salt
02:53 nethershaw joined #salt
02:54 whytewolf joined #salt
02:54 hasues left #salt
02:56 mavhq joined #salt
03:01 flowstate joined #salt
03:13 _beardedeagle joined #salt
03:14 beardedeagle joined #salt
03:30 Vivek joined #salt
03:33 sk_0 joined #salt
03:34 nZac joined #salt
03:34 bfrog joined #salt
03:34 sk_0 i'm trying to write a salt state that sets up a virtualenv on arch linux box but i want python2 in the venv
03:36 PeterO joined #salt
03:48 jeffspeff joined #salt
03:50 racooper joined #salt
03:55 ageorgop joined #salt
03:58 kliquori joined #salt
04:00 flowstate joined #salt
04:02 PeterO_ joined #salt
04:19 treaki_ joined #salt
04:23 hemebond sk_0: You can specify the version, no?
04:28 brianfeister joined #salt
04:30 sk_0 salt?
04:30 sk_0 salt-minion 2015.8.7
04:31 sk_0 salt-master 2014.1.10
04:36 ninjada joined #salt
04:38 beardedeagle Is there a way to put a pillar in the middle of a salt.cmd.run() ?
04:41 beardedeagle for instance (I know this does not work):
04:41 beardedeagle {{ salt.cmd.run('cat /home/' + pillar['makemaster-secrets']['nova-credentials"]['os_username'] + '/.ssh/id_rsa.pub') }}
04:41 rem5 joined #salt
04:42 subsignal joined #salt
04:45 hemebond beardedeagle: What about putting your command (by concatenating a string) into a Jinja variable and passing that variable to cmd.run?
04:45 hemebond sk_0: I meant, can't you specify the Python version you want for the virtualenv in the state?
04:46 hemebond sk_0: I think you'll find other people with the same question if you Google. It sounds familiar.
04:46 beardedeagle you mean with |format() ?
04:46 hemebond beardedeagle: Not sure. I think you can concatenate strings just using + no?
04:46 beardedeagle ahh
04:46 beardedeagle I know what you mean
04:46 beardedeagle I think I have tried that? let me go at it again.
04:48 beardedeagle ARGH
04:49 * beardedeagle so angry I became a pirate
04:49 beardedeagle As I was going back through it you will notice the ONE `"` behind nova-credentials
04:51 brianfeister joined #salt
04:56 mavhq joined #salt
04:59 flowstate joined #salt
04:59 ninjada_ joined #salt
05:09 subsignal joined #salt
05:13 ninjada joined #salt
05:15 iceyao joined #salt
05:33 jeffspeff joined #salt
05:59 flowstate joined #salt
05:59 kliquori joined #salt
06:05 evle1 joined #salt
06:19 ninjada_ joined #salt
06:21 ninjada__ joined #salt
06:42 mavhq joined #salt
06:46 iceyao joined #salt
06:46 kliquori joined #salt
06:54 beardedeagle ugh, finally everything is working
07:00 flowstate joined #salt
07:02 punkoivan joined #salt
07:04 punkoivan joined #salt
07:06 mavhq joined #salt
07:07 hemebond joined #salt
07:08 ninjada joined #salt
07:12 mavhq joined #salt
07:16 mavhq joined #salt
07:18 mavhq joined #salt
07:24 mavhq joined #salt
07:36 mavhq joined #salt
07:40 josuebrunel joined #salt
07:42 ninjada joined #salt
07:47 kliquori joined #salt
07:55 ajw0100 joined #salt
07:58 flowstate joined #salt
07:59 mavhq joined #salt
07:59 ninjada joined #salt
08:06 mavhq joined #salt
08:08 mavhq joined #salt
08:14 viq joined #salt
08:21 mavhq joined #salt
08:25 punkoivan joined #salt
08:27 punkoivan joined #salt
08:39 beardedeagle for tracking purposes, I think it might almost be better to post to LowDataAdapter to run a state which kicks off a webhook, all so you can do it via runner client and have a jid returned to you rather than just {u'success': True}
08:49 subsignal joined #salt
08:50 martoss joined #salt
08:55 Rumbles joined #salt
08:56 mavhq joined #salt
08:59 flowstate joined #salt
09:10 mavhq joined #salt
09:20 mavhq joined #salt
09:22 mavhq joined #salt
09:34 Rumbles joined #salt
09:34 kliquori joined #salt
09:35 dmaiocchi joined #salt
09:59 flowstate joined #salt
10:01 rory joined #salt
10:02 mavhq joined #salt
10:05 ninjada joined #salt
10:05 rory joined #salt
10:06 mavhq joined #salt
10:21 iceyao joined #salt
10:23 mavhq joined #salt
10:36 mavhq joined #salt
10:52 subsignal joined #salt
11:00 flowstate joined #salt
11:00 mavhq joined #salt
11:02 mavhq joined #salt
11:36 kliquori joined #salt
11:37 nZac joined #salt
11:40 amcorreia joined #salt
11:41 mavhq joined #salt
11:45 mavhq joined #salt
11:53 subsignal joined #salt
12:00 flowstate joined #salt
12:07 ninjada joined #salt
12:09 Rumbles joined #salt
12:15 quasiben joined #salt
12:21 mavhq joined #salt
12:23 kliquori joined #salt
12:23 ninjada joined #salt
12:24 Mate joined #salt
12:32 hasues joined #salt
12:32 hasues left #salt
12:33 mavhq joined #salt
12:38 nZac joined #salt
12:44 mavhq joined #salt
12:47 mavhq joined #salt
12:53 mavhq joined #salt
12:58 flowstate joined #salt
13:04 Rumbles joined #salt
13:15 quasiben joined #salt
13:16 mavhq joined #salt
13:16 rem5 joined #salt
13:17 mavhq joined #salt
13:21 mowntan joined #salt
13:24 kliquori joined #salt
13:31 mavhq joined #salt
13:38 mavhq joined #salt
13:53 amcorreia joined #salt
13:57 iceyao joined #salt
14:05 rem5 joined #salt
14:12 punkoivan joined #salt
14:19 Rumbles joined #salt
14:23 rem5 joined #salt
14:23 flowstate joined #salt
14:24 ronnix joined #salt
14:24 kliquori joined #salt
14:28 slav0nic joined #salt
14:34 ninjada joined #salt
14:38 nZac joined #salt
14:41 jjasinski_ joined #salt
14:42 mavhq joined #salt
14:55 subsignal joined #salt
14:59 mavhq joined #salt
15:01 MadHatter42 joined #salt
15:03 mavhq joined #salt
15:11 kliquori joined #salt
15:16 ageorgop joined #salt
15:27 mavhq joined #salt
15:29 quasiben joined #salt
15:33 amcorreia joined #salt
15:39 nZac joined #salt
15:47 calculon1 joined #salt
15:48 nZac joined #salt
15:49 mavhq joined #salt
15:50 cedwards joined #salt
15:51 subsignal joined #salt
15:58 flowstate joined #salt
15:58 hightekvagabond joined #salt
16:03 quasiben joined #salt
16:03 flowstate joined #salt
16:05 mavhq joined #salt
16:06 quasiben joined #salt
16:09 quasiben joined #salt
16:11 jeffspeff joined #salt
16:12 jeffspeff joined #salt
16:13 punkoivan joined #salt
16:24 jeffspeff joined #salt
16:35 ninjada joined #salt
16:39 quasiben joined #salt
16:43 mavhq joined #salt
16:46 mavhq joined #salt
16:49 nZac joined #salt
16:58 flowstate joined #salt
17:06 euidzero joined #salt
17:12 aharvey joined #salt
17:13 kliquori joined #salt
17:14 amcorreia joined #salt
17:18 ageorgop joined #salt
17:19 mavhq joined #salt
17:22 MadHatter42 joined #salt
17:30 snc joined #salt
17:31 mavhq joined #salt
17:41 Netwizard joined #salt
17:41 orion joined #salt
17:42 orion Hi. Right now I don't use Salt formulas at all, and I strictly rely on pillar and my own states. Is this bad practice?
17:43 teatime nah, I don't think so.
17:46 ajw0100 joined #salt
17:50 nZac joined #salt
17:55 Trauma joined #salt
17:59 flowstate joined #salt
18:00 kliquori joined #salt
18:03 aphor orion: I'm feeling some strain trying to use formulas for everything. They fail the convention over configuration design principle, which requires me to jump through some extra hoops.
18:04 aphor I need to code my conventions in map.jinja files, for example, so that they can be expressed in pillars that conform to the configuration requrements of the formulas.
18:04 Rumbles joined #salt
18:10 orion How do people typically manage the growth of the number and size of pillars and states?
18:11 teatime haven't really dealt with it yet, but decomposition into files like anything else.
18:12 jaybocc2 joined #salt
18:12 teatime I don't really feel like formulas gives me much over carefully-chosen file/directory names/hierarchies.
18:12 teatime (except when publishing for others to use.)
18:15 Eureka703 joined #salt
18:17 quix joined #salt
18:18 darvon joined #salt
18:19 Eureka703 joined #salt
18:29 jaybocc2 joined #salt
18:29 fracklen joined #salt
18:32 yidhra_ joined #salt
18:32 quasiben joined #salt
18:33 mavhq As a beginner trying to set up general purpose servers and desktops I like formulas
18:34 teatime oh, definitely make use of stuff that already exists and helps you
18:34 teatime I was talking about creating formulas
18:35 teatime salt formulas, like puppet modules, and every similar component from every CM system, generally have to be forked/customized, as they're rarely generic enough to meet all of your needs.
18:37 mavhq Same with most things in programming, after you do it about three times it's time to make a general version
18:40 bluenemo joined #salt
18:48 ageorgop joined #salt
18:51 punkoivan joined #salt
18:54 iceyao joined #salt
18:56 fracklen joined #salt
18:57 flowstate joined #salt
19:01 mavhq joined #salt
19:02 cyborg-one joined #salt
19:06 nZac joined #salt
19:06 tampakrap joined #salt
19:17 mavhq joined #salt
19:23 jaybocc2 joined #salt
19:27 catpig joined #salt
19:30 quasiben joined #salt
19:36 jaybocc2 joined #salt
19:38 bluenemo hi guys. I just cant seem to get environments set up: http://paste.debian.net/418965/ I'm getting No matching sls found for 'test' in env 'base'
19:43 fracklen joined #salt
19:52 Rumbles joined #salt
19:53 bluenemo oh for christ sake. this has been this hacky since years.
19:53 bluenemo in master debug output it shows me that it loads the top files. ah whatever, off for today. happy easter ;)
19:54 mavhq joined #salt
19:57 flowstate joined #salt
20:02 mavhq joined #salt
20:02 kliquori joined #salt
20:02 jaybocc2 joined #salt
20:06 nZac joined #salt
20:07 devtea joined #salt
20:15 majikman joined #salt
20:16 Rumbles joined #salt
20:16 sfz- joined #salt
20:16 mavhq joined #salt
20:17 fracklen joined #salt
20:25 cpowell joined #salt
20:26 Nazca__ joined #salt
20:29 jaybocc2 joined #salt
20:32 Nazca__ joined #salt
20:32 timoguin joined #salt
20:44 ronnix joined #salt
20:50 berserk joined #salt
20:51 ronnix joined #salt
20:51 kliquori joined #salt
20:53 Nazca joined #salt
20:57 Nazzy joined #salt
20:58 cilkay joined #salt
20:59 flowstate joined #salt
21:00 Rumbles joined #salt
21:01 cpowell joined #salt
21:03 timoguin joined #salt
21:19 cpowell joined #salt
21:40 jaybocc2 joined #salt
21:51 Rumbles joined #salt
21:54 ronnix joined #salt
21:58 flowstate joined #salt
22:04 jaybocc2 joined #salt
22:07 nZac joined #salt
22:35 nethershaw joined #salt
22:39 zenlot joined #salt
22:42 orion What are some common changes people make to their Salt repos when they refactor them?
22:43 ronnix_ joined #salt
22:47 systeem joined #salt
22:53 kliquori joined #salt
22:58 Rumbles joined #salt
22:58 flowstate joined #salt
23:12 amcorreia joined #salt
23:13 Rumbles joined #salt
23:20 cpowell joined #salt
23:21 Rumbles joined #salt
23:28 brianfeister joined #salt
23:38 joe_n joined #salt
23:42 kliquori joined #salt
23:51 londo joined #salt
23:59 flowstate joined #salt

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