Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-03-19

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

All times shown according to UTC.

Time Nick Message
00:17 onlyanegg joined #salt
00:20 bytebeas1 joined #salt
00:39 shoemonkey joined #salt
01:11 catpig joined #salt
01:12 Nahual joined #salt
01:12 onlyanegg joined #salt
01:13 nikdatrix joined #salt
01:25 onlyanegg joined #salt
02:08 onlyanegg joined #salt
02:13 catpigger joined #salt
02:20 thebinary joined #salt
02:24 onlyanegg joined #salt
02:32 cyborg-one joined #salt
02:35 stooj joined #salt
02:41 jdipierro joined #salt
02:48 ilbot3 joined #salt
02:48 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.5, 2016.11.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
03:07 armyriad joined #salt
03:12 Praematura joined #salt
03:15 nikdatrix joined #salt
03:25 onlyanegg joined #salt
03:41 feld joined #salt
04:04 sp0097 joined #salt
04:26 Klaus_D1eter_ joined #salt
04:27 stooj joined #salt
04:39 stooj joined #salt
05:04 evle joined #salt
05:06 Praematura joined #salt
05:11 mk-fg joined #salt
05:11 mk-fg joined #salt
05:16 nikdatrix joined #salt
05:26 onlyanegg joined #salt
05:30 stooj joined #salt
05:52 stooj joined #salt
06:27 onlyanegg joined #salt
06:42 jdipierro joined #salt
06:46 mk-fg joined #salt
06:46 mk-fg joined #salt
07:04 juntalis joined #salt
07:07 nikdatrix joined #salt
07:17 nikdatrix joined #salt
07:21 sp0097 joined #salt
07:26 Praematura joined #salt
07:52 alexzel joined #salt
07:53 alexzel hello, I've configured a gitfs backend for saltmaster, but the salt reactor is throwing error, how can I point the reactor to sls file in a gif backend?
08:02 preludedrew joined #salt
08:12 onlyanegg joined #salt
08:41 mk-fg joined #salt
08:41 mk-fg joined #salt
08:42 fracklen joined #salt
08:51 eldad joined #salt
09:14 Praematura joined #salt
09:19 nikdatrix joined #salt
09:29 cryptolukas joined #salt
09:35 mk-fg joined #salt
09:35 mk-fg joined #salt
09:39 onlyanegg joined #salt
09:57 aldevar joined #salt
09:57 aldevar left #salt
10:06 mk-fg joined #salt
10:06 mk-fg joined #salt
10:10 kjsaihs joined #salt
10:34 HRH_H_Crab joined #salt
10:37 kjsaihs salt is generating key names based on FQDN. When working in one domain it isnt very comportablle. Thats why was wondering - how can force usage of hostname instead FQDN as key names.
10:38 kjsaihs And without using minion_id - is it possible?
10:38 verdurin joined #salt
10:56 alexzel joined #salt
10:57 alexzel hello, could some time explain how i can run this from the command line "salt.pillar.git_pillar.ext_pillar(minion_id, repo, pillar_dirs)"
10:57 alexzel someone*
11:02 kjsaihs i doubt that its what you need but: salt minion_id pillar.get salt:pillar:git_pillar:ext_pillar
11:03 Praematura joined #salt
11:11 alexzel my pillars are not including other sls files, so i'm trying to figure out why
11:20 nikdatrix joined #salt
11:24 alexzel do external pillar get rendered? that is if there's jinja in the sls file
11:26 alexzel my pillar top.sls looks like this https://gist.github.com/alex-zel/42478ca59cb5c24f3892c408e6aa8371 and it was working fine before i moved it to a git backend
11:26 antpa joined #salt
11:33 rpb joined #salt
11:40 onlyanegg joined #salt
11:41 paant joined #salt
11:41 alexzel anyone?
11:43 Dereckson alexzel: did you try a `salt '*' saltutil.refresh_pillar`?
11:43 alexzel yes
11:43 Dereckson so, normally, your minions now should have received your pillar data
11:44 alexzel they do receive pillar data, only if it's not rendered by jinja
11:44 alexzel so the top part of the file is ok, everything that has to do with jinja just doesn't seem to work
11:59 evle2 joined #salt
12:11 NV joined #salt
12:22 kittikit joined #salt
12:23 alexzel no one?
12:35 muxdaemon joined #salt
12:43 shoemonkey joined #salt
12:45 jdipierro joined #salt
12:51 Praematura joined #salt
12:51 muxdaemon joined #salt
12:52 muxdaemon joined #salt
13:00 theblazehen joined #salt
13:01 Trauma joined #salt
13:01 cmarzullo your sls is bad.
13:02 cmarzullo get rid of lines 5,6,8
13:03 cmarzullo line 7 just do - hosts.{{ grains['minion_id'] }}
13:12 cryptolukas alexzel: I had the same problem yesterday ;)
13:17 oaken_chris joined #salt
13:20 muxdaemon joined #salt
13:21 kjsaihs i have a variable (var1) and would like to use it inside pillar get function - {{ pillar['foo']['{{ var1 }}']['bar'] }}
13:21 kjsaihs is it possible?
13:21 muxdaemon joined #salt
13:22 muxdaemon joined #salt
13:22 nikdatrix joined #salt
13:22 muxdaemon joined #salt
13:23 muxdaemon joined #salt
13:24 muxdaemon joined #salt
13:25 muxdaemon joined #salt
13:25 izibi {{ pillar['foo'][var1]['bar'] }} should do
13:26 onlyanegg joined #salt
13:27 antpa joined #salt
13:28 kjsaihs izibi: so easy... thank you!
13:28 theblazehen joined #salt
13:29 XenophonF joined #salt
13:31 muxdaemon joined #salt
13:33 shoemonkey joined #salt
13:41 rpb joined #salt
13:43 mavhq joined #salt
13:53 shoemonkey joined #salt
13:59 ricardo1011 joined #salt
14:01 ricardo1011 joined #salt
14:03 eprice joined #salt
14:12 fracklen joined #salt
14:22 dendazen joined #salt
14:27 fracklen joined #salt
14:41 Armageddon I'm trying to figure out how to do dependencies between states/formulas but I think I'm getting confused by the difference between formulas and states, I'm guessing what I'm looking for is formula dependency on another formula
14:53 cyborg-one joined #salt
14:54 Annihitek joined #salt
14:57 scsinutz joined #salt
15:02 bytebeas1 joined #salt
15:12 catpig joined #salt
15:23 nikdatrix joined #salt
15:25 stooj joined #salt
15:26 onlyanegg joined #salt
15:32 stooj joined #salt
15:36 brakkisath joined #salt
15:41 stooj joined #salt
15:42 brakkisa_ joined #salt
15:43 scsinutz joined #salt
15:47 cmarzullo a formula is just a collection of states. So in your other formula you can use any of the state ids in your global requesits
15:51 Armageddon cmarzullo, can I use an sls as a prerequisite ?
15:51 Armageddon like a whole thing
15:52 Armageddon so an sls file is made up of multiple states ? or is an sls a state by itself ?
15:54 bfoxwell joined #salt
15:55 vegasq joined #salt
15:59 cmarzullo you can use an sls as a requisiet
16:00 cmarzullo you can also include them.
16:00 cmarzullo the first line of every state is the state_id
16:01 cmarzullo https://docs.saltstack.com/en/latest/ref/states/requisites.html#require-an-entire-sls-file
16:02 Armageddon cmarzullo, thank you !
16:04 stooj joined #salt
16:05 johnkeates joined #salt
16:08 sp0097 joined #salt
16:08 sp0097 joined #salt
16:09 Tanta joined #salt
16:09 sp0097 joined #salt
16:10 sp0097 joined #salt
16:11 sp0097 joined #salt
16:12 sp0097 joined #salt
16:13 sp0097 joined #salt
16:13 brakkisath joined #salt
16:22 XenophonF Armageddon: I almost never, ever allow formulas to depend on one another.
16:23 XenophonF in the rare cases I want that, I craft special glue states that add the necessary dependencies
16:23 XenophonF for example, take two of my formulas, https://github.com/irtnog/shibboleth-formula and https://github.com/irtnog/tomcat-formula
16:24 XenophonF technically, Tomcat hosts the Shibboleth IdP web app, so any changes to the IdP configuration need to trigger a Tomcat restart/reload
16:25 XenophonF however, the IdP can be hosted by other containers (i.e., Jetty), so I can just pepper the states in my shibboleth.idp module with `sls: tomcat` or `service: tomcat` requisites
16:25 XenophonF and I'd rather manage the container separately than as part of shibboleth-formula
16:26 XenophonF given these constrains, I wrote a separate glue SLS that includes both the shibboleth.idp and tomcat SLSes
16:26 XenophonF https://github.com/irtnog/tomcat-formula/blob/master/tomcat/shibboleth-idp.sls
16:26 XenophonF and then extends states in both as appropriate
16:26 stooj joined #salt
16:26 XenophonF that way I can run 'salt-call state.apply shibboleth.idp' or 'salt-call state.apply tomcat' or 'salt-call state.apply tomcat.shibboleth-idp'
16:27 XenophonF and each SLS works on its own or together as appropriate
16:28 XenophonF conceptually, this lets me treat individual service components composably
16:30 XenophonF I admit that it is far simpler to perform an IdP deployment in a single SLS ID, and in fact that's how I'm teaching my colleagues how to use Salt (where there's a single top-level SLS ID of `idp` that handles the IdP, J2EE container, and WAF deployments)
16:31 * XenophonF shrugs
16:32 XenophonF I dunno if my more complicated approach is better.
16:40 stooj joined #salt
16:54 catpig joined #salt
17:00 bytebeas1 joined #salt
17:11 bytebeas1 joined #salt
17:11 pipps joined #salt
17:25 nikdatrix joined #salt
17:30 shoemonkey joined #salt
17:39 bytebeas1 joined #salt
17:43 fracklen joined #salt
18:04 joeto joined #salt
18:08 Armageddon XenophonF, I mean it makes sense, you are taking the approach of creating wrappers in the world of Chef if I understand it correctly\
18:08 pipps joined #salt
18:08 Armageddon XenophonF, and to be honest, being new to Salt, this is giving me a good insight on what other people are doing and how they are using it
18:09 Armageddon XenophonF, in my application, I'm doing something a bit different, I'm creating my own bootstrap salt dotfile framework sort of, to install and configure new machines the way I like them to be configured :)
18:09 theblazehen joined #salt
18:10 Armageddon XenophonF, so my requirement of dependencie is to make sure that for example my shell has been installed before I start appending to the rc file
18:25 debian1121 joined #salt
18:26 cmarzullo Armageddon: checkout kitchen-salt if you are used to chef. You can build out your formulas there.
18:30 cyborg-one joined #salt
18:34 Armageddon cmarzullo, why would I want to use chef for anything ? I'm using salt for a good reason ;) keeping my sanity
18:36 cemmurphy joined #salt
18:37 Armageddon cmarzullo, but a kitchen salt is a cool idea =)
18:37 Armageddon thanks
18:43 cmarzullo http://unicolet.blogspot.it/2016/05/a-not-so-short-guide-to-tdd-saltstack.html
18:44 Armageddon cmarzullo, I try to stay away from ruby generally
18:44 Armageddon but I can'd deny kitchen is a great tool in one's arsenal
18:45 brakkisath joined #salt
18:45 Armageddon cmarzullo, I think I would be looking for something that uses docker instead of vagrant, simply because it's a bit faster usually
18:47 jdipierro joined #salt
18:54 brakkisa_ joined #salt
18:55 cmarzullo The ruby involved is minimal and can be avoided by using test infra.
18:55 cmarzullo The problem with docker is there's too much where you have to figure with docker.
18:55 cmarzullo But it depends on the application.
18:56 Armageddon cmarzullo, that is true on both accounts
18:57 brakkisath joined #salt
19:01 brakkisa_ joined #salt
19:03 brakkisath joined #salt
19:07 brakkisath joined #salt
19:12 cwright joined #salt
19:17 MTecknology I'm getting "Unable to manage file: Jinja variable 'lastseq' is undefined" from this chunk - http://dpaste.com/219YXER   It used to work just fine and I'm not sure when it stopped working. :(
19:18 eprice joined #salt
19:22 cmarzullo first time through lastseq isn't defined?
19:23 MTecknology That's why I have {% if not loop.first %}
19:24 cmarzullo hmmm I wonder if it's wierd jinja replacement thiny. what if the if is on it's own line?
19:26 MTecknology that'd be a heck of a weird regression
19:26 cmarzullo yeah it would.
19:27 nikdatrix joined #salt
19:27 joeto left #salt
19:28 MTecknology I tried it anyway, no change
19:29 cmarzullo yeah It looks like it should work to me.
19:35 fracklen joined #salt
19:39 aldevar joined #salt
19:39 aldevar left #salt
19:43 MTecknology I just made sure loop.depth is 1, not because I expected it not to be, but just because I have no effing clue what's up
19:46 shoemonkey joined #salt
19:48 colegatron joined #salt
19:48 colegatron_origi joined #salt
19:50 bluenemo joined #salt
19:53 eprice joined #salt
19:56 maletin joined #salt
20:03 tyler-baker joined #salt
20:04 MTecknology Armageddon: My opinion is that using formulas for anything other than reference and playground is a very bad idea. I have no isues with states depending on states, but I make sure to keep very shallow dependency trees that are easy to follow. sys.files.webdata, sys.pkgs.gitea, and sys.pkgs.kibana have some dependencies from sys.pkgs.nginx (namely, -watch_in: service:nginx), and nginx includes itself in f
20:04 MTecknology erm (firewall) and that's as complicated as I let things get.
20:09 cmarzullo How many people work on your salt code MTecknology
20:15 MTecknology I think a more important question is, how many different groups and projects
20:29 fracklen joined #salt
20:46 swills_ joined #salt
21:18 fracklen joined #salt
21:19 fracklen joined #salt
21:25 edrocks joined #salt
21:28 nikdatrix joined #salt
21:30 edrocks joined #salt
21:51 blu_ joined #salt
21:52 blu__ joined #salt
21:56 bluenemo joined #salt
22:06 shoemonkey joined #salt
22:09 djgerm joined #salt
22:16 bluenemo joined #salt
22:17 xet7 joined #salt
22:23 edrocks joined #salt
22:30 oida joined #salt
22:34 hemebond Does Salt use some sort of strict Jinja parsing?
22:34 hemebond "Jinja variable the inline if-expression on line 308 evaluated to false and no else section was defined."
22:35 oida joined #salt
22:39 Tanta joined #salt
22:41 hemebond But it works in Jinja proper.
22:43 bytebeas1 joined #salt
22:44 hemebond Oh well, long-form it is.
22:47 johnkeates joined #salt
22:49 jdipierro joined #salt
22:55 ssplatt joined #salt
23:02 Whissi joined #salt
23:21 mrueg joined #salt
23:28 shoemonkey joined #salt
23:30 bytebeas1 joined #salt
23:30 nikdatrix joined #salt
23:33 onlyanegg joined #salt
23:47 mrueg joined #salt
23:48 prg3 joined #salt
23:48 andi- Is there some kind of API to get information about running salt jobs and their results? I'd like to build some live reporting into our internal irc channel (with a gist/pastebin/.. of the result log etc..)
23:48 hemebond andi-: The jobs salt runner
23:48 hemebond salt-run jobs.lookup_jid 11223344
23:49 hemebond (why it isn't just jobs.get I'll never know)
23:49 andi- well the issue is, if I want to have a bot monitor salt It isn't reall practical to poll for new jobs :/
23:49 hemebond Then listen to events.
23:50 andi- mhmm, true I must have used the wrong google foo
23:50 andi- searched for hooks and stuff but neve tried event

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