Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-01-08

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

All times shown according to UTC.

Time Nick Message
00:12 spuder joined #salt
00:21 edrocks joined #salt
00:25 tpaul joined #salt
00:33 necronian joined #salt
00:41 Kelsar joined #salt
00:48 Klas joined #salt
01:00 rem5 joined #salt
01:39 DEger joined #salt
01:45 eprice joined #salt
01:46 mavhq joined #salt
01:49 cyteen joined #salt
02:05 darix joined #salt
02:06 nidr0x joined #salt
02:08 mavhq joined #salt
02:14 s_kunk joined #salt
02:17 shoemonkey joined #salt
02:20 jrklein joined #salt
02:21 emattiza joined #salt
02:24 edrocks joined #salt
02:27 catpigger joined #salt
02:28 Derailed joined #salt
02:31 robawt joined #salt
03:02 mavhq joined #salt
03:08 Cottser joined #salt
03:20 wangofett Is there a slick way to use the os grain but then fall back to os_family, specifically when it comes to a map.jinja file?
03:21 wangofett I'm asking because Raspbian falls under Debian but I need to build a thing from source on Raspian
03:27 sh123124213 joined #salt
03:34 bastiandg joined #salt
03:37 mavhq joined #salt
03:40 fracklen joined #salt
03:55 justanotheruser joined #salt
04:06 rem5 joined #salt
04:13 writtenoff joined #salt
04:25 Karunamon joined #salt
05:11 ponyofdeath joined #salt
05:24 cyteen joined #salt
05:25 edrocks joined #salt
05:30 samodid joined #salt
05:47 eprice joined #salt
05:51 DEger joined #salt
05:52 DEger joined #salt
05:58 DEger joined #salt
06:00 uglylun joined #salt
06:09 PatrolDoom joined #salt
06:29 sh123124213 joined #salt
06:33 armguy joined #salt
06:41 elh9 joined #salt
06:41 DEger joined #salt
06:46 Dev0n joined #salt
07:28 edrocks joined #salt
07:38 candyman88 joined #salt
07:43 mavhq joined #salt
07:50 J0hnSteel joined #salt
07:51 cyborg-one joined #salt
07:53 preludedrew joined #salt
08:07 anthonyshaw joined #salt
08:58 keimlink joined #salt
09:04 ronnix joined #salt
09:10 moeyebus9 joined #salt
09:13 meocs joined #salt
09:29 edrocks joined #salt
09:41 ivanjaros joined #salt
09:58 Kelsar joined #salt
10:01 necronian joined #salt
10:03 chowmein__ joined #salt
10:04 mavhq joined #salt
10:09 armyriad joined #salt
10:21 mavhq joined #salt
10:30 mavhq joined #salt
10:30 sh123124213 joined #salt
10:38 fracklen joined #salt
10:39 zer0def joined #salt
10:48 spuder joined #salt
10:57 mavhq joined #salt
10:59 keimlink joined #salt
11:18 DEger joined #salt
11:19 infrmnt joined #salt
11:37 rylnd joined #salt
11:42 infrmnt left #salt
11:43 mavhq joined #salt
11:53 eprice joined #salt
12:01 bastiandg joined #salt
12:03 cyteen joined #salt
12:08 shoemonkey joined #salt
12:08 Miouge joined #salt
12:20 spuder joined #salt
12:20 Miouge joined #salt
12:25 mavhq joined #salt
12:30 Miouge joined #salt
12:31 edrocks joined #salt
12:37 tercenya joined #salt
12:49 Miouge joined #salt
12:52 inad922 joined #salt
12:58 Miouge joined #salt
13:10 mavhq joined #salt
13:17 cyteen joined #salt
13:19 DEger joined #salt
13:22 mavhq joined #salt
13:25 mavhq joined #salt
13:28 elh9 joined #salt
13:40 elh9 joined #salt
13:40 harkx joined #salt
13:45 mavhq joined #salt
13:50 spuder joined #salt
13:59 shoemonkey joined #salt
14:09 keimlink joined #salt
14:14 inad922 joined #salt
14:14 swalladge joined #salt
14:22 cyborg-one joined #salt
14:33 sh123124213 joined #salt
14:33 edrocks joined #salt
14:55 eprice joined #salt
15:01 kjsaihs joined #salt
15:19 DEger joined #salt
15:20 spuder joined #salt
15:41 rem5 joined #salt
15:41 kjsaihs joined #salt
15:48 spuder_ joined #salt
15:49 amcorreia joined #salt
16:05 stooj joined #salt
16:09 Trauma joined #salt
16:11 mavhq joined #salt
16:17 rml joined #salt
16:35 edrocks joined #salt
16:54 PatrolDoom joined #salt
16:55 PatrolDoom joined #salt
16:56 eprice joined #salt
17:00 ivanjaros joined #salt
17:20 DEger joined #salt
17:25 mavhq joined #salt
17:26 teclator joined #salt
17:28 stooj joined #salt
17:29 Savemech joined #salt
17:29 Savemech hi there! guys how i could create multiple direcories at once?
17:31 mavhq joined #salt
17:33 Trauma joined #salt
17:36 honestly Savemech: recursively?
17:36 honestly I mean you could always use file.recurse
17:39 teclator joined #salt
17:41 mavhq joined #salt
17:41 jonher joined #salt
17:47 justanotheruser joined #salt
17:49 Miouge joined #salt
17:51 mavhq joined #salt
17:53 CeBe joined #salt
17:54 mavhq joined #salt
18:00 Kelsar joined #salt
18:02 teclator joined #salt
18:04 viq Savemech: or a {% for %} loop
18:04 honestly that's what I was going to mention next
18:05 sh123124213 joined #salt
18:05 honestly you can do {% for dir in ['/foo/bar', '/xyz', '/tmp/bz'] %}
18:11 spuder joined #salt
18:19 DEger joined #salt
18:24 rem5 joined #salt
18:34 rml joined #salt
18:37 johnkeates joined #salt
18:41 jonher joined #salt
18:41 mavhq joined #salt
18:45 jonher_ joined #salt
18:46 rem5 joined #salt
18:55 jonher_ left #salt
18:59 eprice joined #salt
19:05 mavhq joined #salt
19:14 cyteen joined #salt
19:18 mavhq joined #salt
19:25 Savemech honestly, oh thanks!
19:27 Savemech does this possible do to like this: {% for dir in ['bin','conf','var']%} like i did mkdir -p /opt/somesoft/{bin,conf,var}
19:27 Savemech just to remove that unecessary(i think) mention of /opt/somesoft in this declaration
19:35 ProT-0-TypE joined #salt
19:37 mavhq joined #salt
19:50 Tanta joined #salt
19:53 mavhq joined #salt
19:56 Savemech huh i figure it out, anyway thanks!
20:06 onlyanegg joined #salt
20:11 onlyanegg joined #salt
20:19 vodik joined #salt
20:27 mavhq joined #salt
20:39 edrocks joined #salt
20:40 stooj joined #salt
20:43 ssplatt joined #salt
20:44 bekks joined #salt
20:51 om2 joined #salt
20:54 hemebond joined #salt
20:56 stooj joined #salt
20:59 prg3 joined #salt
21:01 om2 joined #salt
21:03 om2 joined #salt
21:08 guelosk joined #salt
21:11 mavhq joined #salt
21:11 keimlink joined #salt
21:12 pipps joined #salt
21:14 ekristen joined #salt
21:15 stooj joined #salt
21:17 PatrolDoom joined #salt
21:35 pipps joined #salt
21:44 pipps joined #salt
21:46 iggy wangofett: probably look at how some of the formulas handle osmap and codenamemap
21:49 codeape joined #salt
21:52 al joined #salt
21:57 al joined #salt
21:58 al joined #salt
22:01 al joined #salt
22:02 bayindirh joined #salt
22:03 eprice joined #salt
22:04 pipps joined #salt
22:06 TylerJWhit joined #salt
22:06 sh123124213 joined #salt
22:07 onlyanegg joined #salt
22:07 TylerJWhit Having a problem getting my states to apply via custom grains. Need some insight. Posting my config in a minute
22:09 TylerJWhit https://gist.github.com/TylerJWhit/055cd71886ccd75f4914d0b9c5c88161
22:09 TylerJWhit The Salt minion doesn't try to install apache at all
22:09 al joined #salt
22:09 hemebond Is the grain a list?
22:10 TylerJWhit Right now there's only one role listed
22:10 hemebond Sure, but it looks like a list.
22:11 hemebond Whereas I think your grain targeting is trying to match a string.
22:11 hemebond Not sure how the targeting handles lists.
22:11 cyteen joined #salt
22:11 hemebond Though it looks like other people can target it just fine.
22:12 teclator joined #salt
22:13 TylerJWhit I'm new to Salt, so forgive me for my ignorance. Are you drawing a distinction between a grain item with one value, vs multiple values?
22:13 hemebond Yes.
22:13 hemebond I've not used this kind of targeting before.
22:13 TylerJWhit How would you do it?
22:13 hemebond So I'm learning as I read your code.
22:13 hemebond I use the top file to apply roles.
22:13 hemebond I don't rely on grains.
22:14 TylerJWhit I'll eventually add more roles later on
22:14 pipps joined #salt
22:14 hemebond Are you on 2016.11?
22:15 TylerJWhit I am
22:15 TylerJWhit How are you specifying roles on the top file?
22:15 hemebond Well our hostnames have a role in the name.
22:15 hemebond And the top file applies the pillars and states required for that "role".
22:16 hemebond So I target primarily on the hostname/minion ID.
22:16 amcorreia joined #salt
22:16 TylerJWhit That's what I'm used to doing
22:17 TylerJWhit I use forms of globing, but I need a way to tackle situations where minion id's do not match every role
22:18 hemebond In that case I would probably use pillar data.
22:20 TylerJWhit Specifying per minion?
22:21 stooj joined #salt
22:21 hemebond Yeah
22:21 sh123124213 joined #salt
22:21 hemebond I take it you're editing the minion config to set these grains?
22:21 TylerJWhit I want to simpy add roles as needed and then apply the settings based off of that role
22:21 TylerJWhit Yes.
22:22 hemebond I suspect you're going to have to use a Jinja test to match the roles.
22:22 hemebond e.g., {% if 'webserver' in salt['grains.get']('roles', []) %}
22:23 TylerJWhit Wow, I don't know why I didn't think of that.
22:23 hemebond The regular targeting looks like it should work though.
22:25 TylerJWhit I think it's something to do with not refreshing the salt minion. Going to try that. The Jinja if statement didn't work either.
22:25 al joined #salt
22:26 rpb joined #salt
22:27 TylerJWhit That didn't work either. Do I need to make a statement in the states top file as well?
22:27 hemebond What do you mean?
22:28 hemebond What you've got will apply some pillar data.
22:28 TylerJWhit Yes, but all it's doing is downloading the data, but not applying the settings like state does right?
22:28 hemebond If you want to apply some states then you need to do something similar in the state top.sls file.
22:28 hemebond No, pillars make no changes to the minion.
22:28 hemebond They just provide data.
22:29 TylerJWhit Hmmm...
22:36 al joined #salt
22:36 TylerJWhit Yeah, still completely ignores my grain
22:37 hemebond Show your state top.sls
22:40 TylerJWhit Got it! I'll upload my top.sls just so you know
22:41 Tgrv joined #salt
22:41 TylerJWhit https://gist.github.com/TylerJWhit/03bc6fd36c078f72c8bd16125d93cf1d#file-salt_top-sls
22:41 TylerJWhit When I moved it over to my salt state, I forgot the match: grain
22:42 TylerJWhit Thanks for helping.
22:43 hemebond Ah ????
22:44 mavhq joined #salt
22:55 onlyanegg joined #salt
23:17 pipps joined #salt
23:34 teclator_ joined #salt
23:38 anthonyshaw joined #salt
23:41 edrocks joined #salt
23:46 teclator joined #salt

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