Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-02-21

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

All times shown according to UTC.

Time Nick Message
00:03 spuder joined #salt
00:05 jaybocc2 joined #salt
00:12 bhosmer joined #salt
00:15 nyx_ joined #salt
00:16 rem5 joined #salt
00:18 eodgooch joined #salt
00:20 eodgooch_ joined #salt
00:22 bucky joined #salt
00:22 bucky joined #salt
00:29 bucky joined #salt
00:29 bucky joined #salt
00:30 tampakrap joined #salt
00:33 hightekvagabond joined #salt
00:35 tampakrap joined #salt
00:36 bucky joined #salt
00:36 bucky joined #salt
00:36 eodgooch joined #salt
00:37 VSpike_ joined #salt
00:41 rhand joined #salt
00:47 nidr0x joined #salt
00:47 spuder joined #salt
00:50 nidr0x joined #salt
00:53 jeffspeff joined #salt
00:54 ALLmightySPIFF joined #salt
00:56 rome_390 joined #salt
01:01 ageorgop joined #salt
01:06 bhosmer joined #salt
01:07 joe_n joined #salt
01:10 mrrc joined #salt
01:11 bhosmer joined #salt
01:15 mrrc Can someone give help me out? I'm trying to install docker like this https://docs.docker.com/engine/installation/linux/ubuntulinux/ This is what I have this https://gist.github.com/anonymous/1588d262b48eed5fe181 , it doesn't seem to be getting the key
01:23 hightekvagabond joined #salt
01:31 eodgooch joined #salt
01:38 bucky joined #salt
01:39 iceyao joined #salt
01:50 watersoul joined #salt
01:50 bucky joined #salt
01:52 XenophonF mrrc: have you seen https://github.com/saltstack-formulas/docker-formula/ ?
01:52 XenophonF you don't have to use it.
01:52 XenophonF just reading it might give you inspiration
01:52 XenophonF that said, i successfully used docker-formula to install docker on ubuntu 14.04
01:58 mrrc thanks, it works beautifully
01:59 fracklen joined #salt
01:59 ALLmightySPIFF joined #salt
02:05 hoonetorg joined #salt
02:06 bucky joined #salt
02:11 amcorreia joined #salt
02:15 edrocks joined #salt
02:16 iggy mrbobbytables: no, you're not the first person to ask for that
02:17 mrbobbytables iggy: thanks for letting me know.
02:18 mrbobbytables I worked around it just by replicating how everything merged together in there
02:18 joe_n joined #salt
02:20 michelangelo joined #salt
02:20 amcorreia joined #salt
02:22 iggy my previous suggestion was do it the yaml way like some of the newer formulas do and then use that
02:25 mrbobbytables I have most of it in an external yaml file, just had logic in the map :) made it pretty easy to replicate.
02:26 iggy good thinking ;)
02:27 hightekvagabond joined #salt
02:29 tweakism iggy: would it be a lot to ask, for you to show me an example of that?
02:29 tweakism iggy: you mean instead of map.jinja you can put that into yaml?  into pillar data, I assume?
02:31 iggy no, you put the maps into yaml files
02:31 iggy postfix formula I think
02:32 iggy postgres formula
02:33 hightekvagabond left #salt
02:35 racooper joined #salt
02:37 tweakism aha, perfection, thank you.
02:47 ilbot3 joined #salt
02:47 Topic for #salt is now Welcome to #salt! | Latest Version: 2015.8.7 | Register for SaltConf16: http://saltconf.com/register/ | Paid support available for open source Salt! https://www.saltstack.com/support/ | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | Ask with patience as we are volunteers and may not have immediate answers
02:49 bucky joined #salt
02:52 catpigger joined #salt
02:55 fracklen joined #salt
02:57 terratoma joined #salt
03:00 bucky joined #salt
03:05 bucky joined #salt
03:06 anmol joined #salt
03:07 bucky joined #salt
03:07 malinoff joined #salt
03:09 hightekvagabond joined #salt
03:12 bhosmer joined #salt
03:15 joe_n joined #salt
03:16 hightekvagabond joined #salt
03:25 malinoff joined #salt
03:32 joe_n joined #salt
03:33 eodgooch joined #salt
03:37 iceyao joined #salt
03:37 StevenGFX- joined #salt
03:44 StevenGFX joined #salt
03:49 cberndt joined #salt
03:53 rem5 joined #salt
04:06 bhosmer joined #salt
04:12 bucky joined #salt
04:31 anmol joined #salt
04:34 djgerm joined #salt
04:42 tercenya_ joined #salt
04:43 fracklen joined #salt
04:45 bucky joined #salt
04:47 bucky joined #salt
04:49 bucky joined #salt
04:50 bucky joined #salt
04:51 eodgooch joined #salt
04:53 bucky joined #salt
04:54 bucky joined #salt
04:55 Vye joined #salt
04:55 berto- joined #salt
04:56 thraxil joined #salt
04:56 tweakism joined #salt
04:56 bucky joined #salt
04:56 jav joined #salt
04:56 treaki joined #salt
04:58 rem5 joined #salt
04:59 fullstop joined #salt
04:59 bucky joined #salt
04:59 viq joined #salt
05:00 g3cko joined #salt
05:00 carmony joined #salt
05:01 bhosmer joined #salt
05:08 hasues joined #salt
05:09 hasues left #salt
05:10 justanotheruser joined #salt
05:20 Raj_ joined #salt
05:38 fracklen joined #salt
05:48 fracklen joined #salt
05:55 bhosmer joined #salt
05:56 rem5_ joined #salt
05:57 ageorgop joined #salt
06:01 malinoff joined #salt
06:01 malinoff joined #salt
06:04 krymzon joined #salt
06:14 catpig joined #salt
06:18 kawa2014 joined #salt
06:29 kawa2014 joined #salt
06:41 relicanth joined #salt
06:44 ahammond joined #salt
06:45 swa_work joined #salt
06:49 bhosmer joined #salt
06:55 zer0def joined #salt
06:56 relicanth joined #salt
06:59 relicanth joined #salt
07:07 joe_n joined #salt
07:24 joe_n joined #salt
07:24 rem5 joined #salt
07:31 eodgooch joined #salt
07:33 slav0nic joined #salt
07:36 fracklen joined #salt
07:37 martoss joined #salt
07:43 bhosmer joined #salt
08:05 hamsham joined #salt
08:07 krymzon joined #salt
08:17 kim0 joined #salt
08:17 kim0 joined #salt
08:18 eodgooch joined #salt
08:38 bhosmer joined #salt
08:41 martoss joined #salt
08:47 joe_n joined #salt
08:50 bucky joined #salt
08:53 nidr0x joined #salt
08:56 ffredrikk joined #salt
09:02 nidr0x joined #salt
09:21 orion joined #salt
09:21 orion Hi. What's the difference between {%- %} and {%- -%} ?
09:25 cberndt joined #salt
09:25 fracklen joined #salt
09:26 wwwbukolaycom joined #salt
09:32 bhosmer joined #salt
09:33 wych joined #salt
09:34 viq orion: http://jinja.pocoo.org/docs/dev/templates/#whitespace-control
09:34 orion Thanks!
09:36 martoss joined #salt
09:41 joe_n joined #salt
09:47 orion left #salt
09:53 chiui joined #salt
09:54 bucky joined #salt
09:56 kermit joined #salt
10:01 martoss joined #salt
10:09 Rumbles joined #salt
10:26 bhosmer joined #salt
10:32 chiui joined #salt
10:51 martoss joined #salt
10:51 wych joined #salt
10:54 baoboa joined #salt
10:55 CeBe joined #salt
10:59 bucky joined #salt
10:59 orion joined #salt
11:01 orion What's the proper way to do something like, {%- set foo = salt['pillar.get']('foo') -%} {%- foo.x.extend(foo.y) -%} ?
11:02 orion If I attempt this, I get an error, "Encountered unknown tag".
11:03 InAnimaTe joined #salt
11:05 iceyao joined #salt
11:09 orion Ah, I need 'do' syntax.
11:09 orion left #salt
11:14 rotbeard joined #salt
11:19 eodgooch joined #salt
11:26 ronnix joined #salt
11:30 bucky joined #salt
11:35 MadHatter42 joined #salt
11:39 Rumbles joined #salt
11:43 pwalsh joined #salt
11:44 ronnix joined #salt
11:47 wm-bot4 joined #salt
11:54 GreatSnoopy joined #salt
12:10 ronnix joined #salt
12:17 denys joined #salt
12:18 Hybrid1 joined #salt
12:22 nyx_ joined #salt
12:32 bucky joined #salt
12:36 Fiber^ joined #salt
12:37 mapu joined #salt
12:56 garphy joined #salt
12:57 zenlot joined #salt
13:00 malinoff joined #salt
13:02 Lee- joined #salt
13:03 krymzon joined #salt
13:09 andrew_v joined #salt
13:10 fracklen joined #salt
13:11 Lee- I'm new to Salt. I've searched the IRC logs and of course the internets without a clear answer. Basically I'm trying to use the salt-formulas/apache-formula. I'm pretty sure I have it reading my pillar file (copied from the formula pillar.example file) and placed in /srv/salt/pillar/apache_pillar.sls. I have created a top.sls file in /srv/salt/pillar/top.sls with the contents of base: '*': apache_pillar  (I get the same results if i name the pillar file as
13:11 Lee- apache.sls and change the top.sls to match). I'm sure that my apache_pillar.sls file is being read because if I put random text at the top, I get an error. Anyway it doesn't seem that my apache pillar file actually does anything and I'm not sure if this is something I'm doing wrong on my end or if it's a bug in the apache-formula. On the IRC logs for this channel I've seen many references to the apache-formula implying it's not very good, but those references
13:11 Lee- are a bit old. Being that I'm new to salt, it's quite reasonable for me to assume it's a problem on my end, but at this point I'm not so sure that's the case anymore. I'm using vagrant to create my VM based on the box debian/jessie64 v8.3.0. I do see that in the apache-formula files it is checking if os_family == 'Debian' and I verified that salt-call grains.item os_family outputs local: os_family: Debian, so I don't think that's the issue. Any assistance on
13:11 Lee- this would be greatly apprecaited. Thanks
13:12 martoss joined #salt
13:16 GreatSnoopy joined #salt
13:22 AndreasLutro Lee-: by default it's /srv/pillar, not /srv/salt/pillar
13:24 Lee- I understand, but in my minion file I've set pillar_roots: /srv/salt/pillar. Like I said, the file is being read -- if I intentionally put junk on the first line, I get an error. Also if I rename the file without also renaming it in the /srv/salt/pillar/top.sls file, I get an error about it not being found. So I'm pretty sure my /srv/salt/pillar/top.sls is being read as well as the /srv/salt/pillar/apache_pillar.sls. I'll try putting these in
13:24 Lee- /srv/pillar/top.sls|apache_pillar.sls as a test.
13:25 Lee- pillar_roots: base: - /srv/salt/pillar is what is in my minion file
13:26 AndreasLutro pillar_roots should be set in the master config, not minion
13:26 keimlink joined #salt
13:27 AndreasLutro but ok let's just assume your setup actually works
13:27 AndreasLutro do you get any data if you do `salt name-of-minion pillar.get apache`?
13:27 Lee- I have no master. I'm running it as a local. Not sure of correct terminology. Apache does install by the way and my pillar file will generate errors if it's not found or I insert random junk at the top. It's just that it seems that anything I put in the pillar file isn't working.
13:28 Lee- "salt: command not found". If I use "salt-call" I get 'name-of-minion' is not available.
13:28 aboe lee, which state do you call: salt-call state.sls apache or ....
13:28 Lee- oh lol i see
13:29 Lee- abele, salt-call state.highstate
13:29 aboe what is in the top.sls for salt only apache or apache.vhosts?
13:29 Lee- AndreasLutro, if I use this: salt-call --local pillar.get apache I get the following: https://gist.github.com/anonymous/369c516a9035cbd27557
13:30 aboe Lee-, what's in the top.sls in /srv/salt?
13:30 Lee- my /srv/salt/states/top.sls file contains only: base: '*': - apache
13:30 aboe aha, look in the apache-formula you see more states...debian_full is what you want to use.
13:30 aboe so it should look like base: '*" - apache.debian_full
13:31 aboe not just apache, that will only install and start the apache daemon
13:31 AndreasLutro it's possible you need to copy over more stuff from the example pillar as well
13:31 AndreasLutro but I don't use formulas so that's just me guessing
13:31 aboe you are use only apache, which will run init.sls only
13:32 aboe the apache-formula has been split up to allow different configurations, it's not puppet...
13:32 Lee- I had started using the entire pillar.example, but the pillar.example actually references a template file that doesn't exist, so once it didn't work by default, I tried removing the section that referenced it and just kept stripping it down until it was doing nothing more than enabling a module. sounds like from what aboe says I probably need to add apache.mod_enable as well
13:32 Lee- err
13:32 Lee- apache.modules
13:32 aboe or just use debian_full, look into the file and you see it includes more than only apache.
13:33 aboe and if you want to enable modules use apache.modules with the same formula.
13:34 aboe the pillar example is only a refence not a working config....
13:38 Lee- aboe, tyvm, I misunderstood what these states meant on the apache-formula readme. I thought these were items I could put in my pillar file, but I see if I put them in my /srv/salt/states/top.sls that now my list of modules in my apache_pillars.sls file is having an impact.
13:38 aboe lee, hopefully it works.
13:38 Lee- adding only apache.debian_full did not allow the modules enabled in my pillar to function, but once I added apache.modules to /srv/salt/states/top.sls it worked as expected.
13:48 Ravenclaw joined #salt
13:49 dmaiocchi joined #salt
13:50 Lee- this is great. it's working as expected. can create vhosts, control module enable/disable. works beautifully. will probably need to add a couple extra templates and some minor changes and this will be perfect. Thanks again!
13:51 aboe If you want, you can add your information to the readme so others will benefit.
13:52 martoss joined #salt
13:53 Lee- I think a better place is the official documentation. There is a document that describes formulas and such, but the most difficult part for me was that when it would show code, it wouldn't actually show the file name (or path) for that code. Furthermore, it didn't stick with a specific formulas as an example, it kept jumping around, which made it very difficult for a newcomer to follow. I'm referring to: https://docs.saltstack.com/en/latest/topics/development/
13:53 Lee- conventions/formulas.html
13:53 aboe yes that's more geared towards creating formulas
13:53 Lee- Probably half of the time I spent trying to get Salt simply installing Apache was spent trying to understand exactly what code goes in to what file. Sure the docs list the code, but they aren't clear as to the file name or path.
13:54 Lee- And with respect to the apache-formula in specific, it lists these states, which of course I read in other documents, but these seemed to match the format in the pillar.example, so I just thought those were a listing of what I could use in my own pillar. I misunderstood that those are what go in my state file (separate from the pillar)
13:55 aboe yes that good be clearer.
13:57 Ravenclaw left #salt
13:58 fracklen joined #salt
14:01 jhauser joined #salt
14:01 bucky joined #salt
14:04 Muchoz joined #salt
14:19 mavhq joined #salt
14:22 mavhq joined #salt
14:26 lompik joined #salt
14:27 mavhq joined #salt
14:31 Nazca joined #salt
14:35 mavhq joined #salt
14:35 anmol joined #salt
14:37 mavhq joined #salt
14:39 mavhq joined #salt
14:41 mavhq joined #salt
14:42 ronnix joined #salt
14:44 GreatSnoopy joined #salt
14:46 chiui joined #salt
14:49 krymzon joined #salt
14:49 ronnix_ joined #salt
14:57 kahiru joined #salt
14:59 fracklen joined #salt
14:59 mavhq joined #salt
15:05 bluenemo joined #salt
15:05 jimcroft joined #salt
15:06 mavhq joined #salt
15:21 eodgooch joined #salt
15:23 fracklen joined #salt
15:24 mavhq joined #salt
15:25 tyler-baker joined #salt
15:31 bucky joined #salt
15:32 krymzon joined #salt
15:33 afics joined #salt
15:33 bluenemo how would I count how many times the character + shows up in a strong "+++foobar" in jinja?
15:33 afics hey guys, when will 2015.8.7 be available for rhel7/f23?
15:34 zeltron joined #salt
15:35 zeltron Hi there
15:35 zeltron first time on this channel
15:35 zeltron Trying to build a saltstack env to manage my PCs at work
15:36 zeltron It works fine, but I just discovered a big security issue
15:36 mavhq joined #salt
15:37 zeltron I'm prioritarly interested in windows PCs management
15:37 zeltron (for Linux, I've got "home made" scripts, that just work fine)
15:38 zeltron I discovered, in fact, that the whole directory c:\salt is accessible (read/write) for simple users
15:39 AndreasLutro if you're only targetting windows machines, salt is a very odd choice
15:39 zeltron They can change conf file, read cache (where you can sometimes find readable passwords, for example)
15:40 zeltron @andreasLutro : why odd ?
15:41 zeltron It's designed for that too, no ?
15:42 AndreasLutro "too", yes, but if you're only targetting windows, a windows-centric tool would probably make more sense?
15:42 kahiru_ joined #salt
15:42 kevinquinnyo1 joined #salt
15:42 zeltron Of course, I've got linux, windows and mac PCs. That's what made me interested in saltstack
15:45 TOoSmOotH joined #salt
15:45 mavhq joined #salt
15:47 zeltron The idea is to finally manage all of them with the same software
15:47 ronnix joined #salt
15:49 zeltron Do you mean it's a a bad idea to use saltstack for that ?
15:54 pwalsh joined #salt
15:57 mavhq joined #salt
16:10 zeltron joined #salt
16:12 zeltron Sorry, I was disconnected (my box sucks !)
16:13 amcorreia joined #salt
16:21 catpig joined #salt
16:23 ALLmightySPIFF joined #salt
16:24 rem5 joined #salt
16:27 jimcroft joined #salt
16:34 xfs joined #salt
16:39 hightekvagabond joined #salt
16:45 bhosmer joined #salt
16:46 martoss joined #salt
16:49 rem5 joined #salt
16:51 ronnix joined #salt
16:54 keimlink joined #salt
17:00 anthpa joined #salt
17:01 pppingme joined #salt
17:02 antpa__ joined #salt
17:02 bucky joined #salt
17:03 mavhq joined #salt
17:13 ronnix joined #salt
17:16 ronnix_ joined #salt
17:22 bucky_ joined #salt
17:23 eodgooch joined #salt
17:28 nyx_ joined #salt
17:34 Hipikat joined #salt
17:39 jimcroft joined #salt
17:40 bhosmer joined #salt
17:45 iggy bluenemo: you can use a number of regular string functions directly in jinja {% if salt['grains.get']('fqdn').startswith('qa') %} f.ex.
17:46 iggy bluenemo: so maybe try {{ '+++foobar'.count('+') }}
17:49 kahiru joined #salt
17:50 Muchoz joined #salt
17:51 ronnix joined #salt
17:54 swa_work joined #salt
17:58 srinivas joined #salt
18:01 cberndt joined #salt
18:02 nethershaw joined #salt
18:05 ffredrikk joined #salt
18:07 ronnix joined #salt
18:41 ilbot3 joined #salt
18:41 Topic for #salt is now Welcome to #salt! | Latest Version: 2015.8.7 | Register for SaltConf16: http://saltconf.com/register/ | Paid support available for open source Salt! https://www.saltstack.com/support/ | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | Ask with patience as we are volunteers and may not have immediate answers
18:46 kaivai Is there anything that I should be doing other than file_roots: base: ['/srv/salt'] for salt to be able to discover my state files?
18:46 kaivai if the state files are located in '/srv/salt/myfile.sls'
18:47 hlub kaivai: you need to have /srv/salt/top.sls afaik
18:48 mavhq joined #salt
18:48 kaivai hlub: Thanks! Do I need that even if I am running just `salt '*' state.apply mystate.sls` ?
18:50 fracklen joined #salt
18:51 hlub I've heard of state.sls, not state.apply. that should be easily tested, just run it. :)
18:54 kaivai hlub: I can't seem toget it to find the top.sls in /srv/salt either. I've definitely done something wrong.
18:55 kaivai hlub: with the command `sudo salt '*' state.highstate`
19:01 hlub kaivai: just asking, did you restart salt-master after changing the configuration?
19:02 kaivai hlub: yeah, unfortunately it still isn't being discovered. I did use the bootstrap script though, I'm going to try installing salt again as from the package repo to see if it makes a difference.
19:03 kaivai hlub: thanks for the suggestions, by the way!
19:05 hlub that part of salt just worked for me. Wish I could help more.
19:08 chrismoos joined #salt
19:08 liskl joined #salt
19:08 Gabemo joined #salt
19:11 bucky joined #salt
19:11 kaivai hlub: thanks very much! I'll get it working eventually, I'm sure I've just done something odd.
19:12 bucky joined #salt
19:16 mavhq joined #salt
19:17 hightekvagabond joined #salt
19:18 pwalsh joined #salt
19:18 mavhq joined #salt
19:25 sfxandy joined #salt
19:27 Muchoz joined #salt
19:28 bhosmer_ joined #salt
19:37 watersoul joined #salt
19:42 mavhq joined #salt
19:43 eodgooch joined #salt
19:45 garphy joined #salt
19:45 rem5 joined #salt
19:47 vincent_vdk left #salt
19:48 rem5_ joined #salt
19:52 ronnix joined #salt
19:55 watersoul joined #salt
19:58 |Fiber^| joined #salt
20:03 colegatron joined #salt
20:06 Muchoz joined #salt
20:09 evidence joined #salt
20:12 fracklen joined #salt
20:19 cyborg-one joined #salt
20:20 bucky joined #salt
20:21 bucky joined #salt
20:22 bucky joined #salt
20:22 djgerm left #salt
20:22 bucky joined #salt
20:23 bhosmer_ joined #salt
20:24 bucky joined #salt
20:25 bucky joined #salt
20:27 aub joined #salt
20:31 nyx_ joined #salt
20:33 martoss joined #salt
20:33 dmaiocchi joined #salt
20:39 Muchoz joined #salt
20:45 pwalsh joined #salt
20:49 shaggy_surfer joined #salt
20:51 TyrfingMjolnir joined #salt
20:56 eodgooch joined #salt
21:01 martoss joined #salt
21:15 keimlink joined #salt
21:16 jaybocc2 joined #salt
21:17 armyriad joined #salt
21:17 bhosmer_ joined #salt
21:17 eodgooch joined #salt
21:25 ajw0100 joined #salt
21:31 eodgooch joined #salt
21:33 jhauser joined #salt
21:36 bucky joined #salt
21:40 bucky joined #salt
21:42 ajw0100 joined #salt
21:46 rem5 joined #salt
21:48 joe_n joined #salt
21:50 eodgooch joined #salt
21:54 andrew_v joined #salt
22:08 ageorgop joined #salt
22:11 bhosmer_ joined #salt
22:17 snc joined #salt
22:17 jaybocc2 joined #salt
22:19 MadHatter42 joined #salt
22:20 bucky joined #salt
22:22 bucky joined #salt
22:24 dmaiocchi joined #salt
22:32 bucky joined #salt
22:34 cpowell joined #salt
22:38 chiui joined #salt
22:39 swa_work joined #salt
22:39 andrew_v joined #salt
22:41 cpowell joined #salt
22:42 zenlot1 joined #salt
22:43 ageorgop joined #salt
22:47 Muchoz joined #salt
22:55 cpowell joined #salt
22:59 kevinquinnyo1 joined #salt
23:05 alinuxninja joined #salt
23:05 bhosmer_ joined #salt
23:06 nidr0x joined #salt
23:08 alinuxninja joined #salt
23:10 rem5 joined #salt
23:14 ageorgop joined #salt
23:20 eodgooch joined #salt
23:25 watersoul_ joined #salt
23:27 cpowell joined #salt
23:28 rem5 joined #salt
23:30 bucky joined #salt
23:31 bucky joined #salt
23:32 jaybocc2 joined #salt
23:33 ronrib joined #salt
23:41 jaybocc2 joined #salt
23:58 cswang_ joined #salt

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