Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2018-05-14

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

All times shown according to UTC.

Time Nick Message
00:00 onslack joined #salt
00:03 masber joined #salt
00:03 masber joined #salt
00:04 masber joined #salt
00:06 masber joined #salt
00:08 masber joined #salt
00:14 orichards joined #salt
00:15 mechleg left #salt
00:26 zerocoolback joined #salt
00:32 noobiedubie joined #salt
00:47 eseyman joined #salt
00:49 zerocoolback joined #salt
01:12 noobiedubie joined #salt
01:22 noobiedu1ie joined #salt
01:56 ilbot3 joined #salt
01:56 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2017.7.5, 2018.3.0 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic, and https://saltstackcommunity.herokuapp.com (for slack) <+> We are volunteers and may not have immediate answers
02:01 DanyC joined #salt
02:09 oida joined #salt
02:23 zerocoolback joined #salt
02:47 JPT joined #salt
02:52 zerocoolback joined #salt
03:01 DanyC joined #salt
03:27 ddg joined #salt
03:28 exarkun joined #salt
03:36 justanotheruser joined #salt
03:46 chowmeined joined #salt
04:02 DanyC joined #salt
04:35 dxiri joined #salt
04:38 hiroshi- joined #salt
04:38 hoonetorg joined #salt
04:46 miruoy joined #salt
04:49 noobiedubie joined #salt
04:58 dmaphy joined #salt
05:01 Pjusur joined #salt
05:02 DanyC joined #salt
05:56 darioleidi joined #salt
06:14 DanyC joined #salt
06:43 armyriad joined #salt
06:45 cbosdonnat joined #salt
06:45 cbosdonnat joined #salt
06:48 exarkun joined #salt
07:01 briner joined #salt
07:11 copec joined #salt
07:12 whytewolf joined #salt
07:15 Hybrid joined #salt
07:18 whytewolf joined #salt
07:19 awerner joined #salt
07:23 briner joined #salt
07:34 orichards joined #salt
07:39 DanyC joined #salt
07:47 rollniak joined #salt
07:49 jrenner joined #salt
07:52 mikecmpbll joined #salt
07:55 Tucky joined #salt
08:02 mikecmpbll joined #salt
08:05 Ricardo1000 joined #salt
08:33 briner joined #salt
08:34 Mattch joined #salt
08:46 zerocoolback joined #salt
08:52 Neighb0ur left #salt
08:53 Neighbour joined #salt
08:59 Tucky joined #salt
09:05 darvon joined #salt
09:06 gmoro joined #salt
09:24 zulutango joined #salt
09:34 zerocoolback joined #salt
10:12 wongster80 joined #salt
10:22 awerner_ joined #salt
10:36 xet7 joined #salt
10:48 megamaced joined #salt
10:55 Kelsar joined #salt
11:13 crux-capacitor joined #salt
11:14 briner joined #salt
11:27 crux-capacitor joined #salt
11:28 noobiedubie joined #salt
11:30 crux-capacitor joined #salt
11:33 crux-capacitor joined #salt
11:33 rollniak joined #salt
11:35 Pjusur joined #salt
11:50 dendazen joined #salt
11:54 zerocoolback joined #salt
11:56 zerocoolback joined #salt
12:15 zerocoolback joined #salt
12:45 zerocoolback joined #salt
12:52 cgiroua joined #salt
13:03 Nahual joined #salt
13:06 XenophonF joined #salt
13:18 Naresh joined #salt
13:25 Hybrid joined #salt
13:28 mikecmpb_ joined #salt
13:29 edrocks joined #salt
13:30 zerocoolback joined #salt
13:38 daxroc joined #salt
13:42 cswang joined #salt
13:53 Lbee joined #salt
13:55 Lbbot joined #salt
13:59 dxiri joined #salt
14:06 gmoro joined #salt
14:17 noobiedubie joined #salt
14:23 cbosdonnat joined #salt
14:23 cbosdonnat joined #salt
14:38 Lbuipp joined #salt
14:44 racooper joined #salt
15:02 briner joined #salt
15:12 edrocks joined #salt
15:47 edrocks joined #salt
15:48 druonysus joined #salt
15:54 snath joined #salt
16:32 csmule joined #salt
16:32 csmule How the heck can I decrease the minion time out, so dead minions don't hang my commands forever
16:47 nixjdm joined #salt
16:50 viq -t
16:51 viq And I'd expect there to be a setting as well
17:04 DanyC joined #salt
17:06 zerocoolback joined #salt
17:16 NEOhidra joined #salt
17:17 Edgan Psi-Jack: yes, I don't see the point of defaults.yaml, so I put it in the map.jinja. Which gives me the power of jinja for the defaults.
17:17 Edgan Psi-Jack: http://cygnusx-1.org/formula.txt
17:19 Edgan XenophonF: I got it working for wildcards. I also was able to reuse the check code from non-wildcards. Also learned that certbot auto updates by default in the process. So I added --no-self-upgrade.
17:20 Edgan gtmanfred: Thanks. I just backported a patch from develop to my custom build to fix a rabbitmq management bug.
17:29 rcvu Hey I'm running `salt '*' grain.ls` and all my minions are coming back with "'grain.ls' is not available."
17:30 rcvu test.ping comes back true for all my minions
17:30 rcvu and not seeing anything show up when I google this issue
17:30 FL1SK joined #salt
17:31 rcvu hahah Im dumb its grains.ls
17:31 edrocks joined #salt
17:31 Nahual rcvu: Because it is grains.ls.
17:32 Nahual rcvu: For your reference. https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.grains.html#module-salt.modules.grains
17:50 ProT-0-TypE joined #salt
17:50 ddg joined #salt
17:51 rcvu Thank you Nahual
17:53 nixjdm joined #salt
17:58 ymasson joined #salt
17:59 rojem joined #salt
18:20 tiwula joined #salt
18:26 mianosm rcvu: dont feel too badly, I kept on going for grains.list or something like that until it got stuck in my head.
18:29 exarkun joined #salt
18:31 Edgan It would help if they had been consistent. pillars.items and grains.items instead of pillar.items and grains.items
18:31 exarkun heh.  consistency.
18:45 briner joined #salt
18:46 DanyC joined #salt
18:46 DanyC_ joined #salt
19:07 onovy joined #salt
19:15 pcn Is there any reason that in 2018.3 it would take about 8 seconds to get pillar data from a file?  I mean are there any delay or splay settings or anything like that which may have ben introduced?
19:17 Edgan pcn: I haven't seen it be that slow.
19:17 Edgan pcn: salt on the master? salt-call on the minion?
19:18 Edgan pcn: salt-ssh? salt-call masterless?
19:41 Garo_ joined #salt
19:41 sjl_ joined #salt
19:56 pcn salt-call on master's minion, salt-call on minions, salt on master reaching out to minions.
19:58 pcn Actually, it seems like 'salt <minion> pillar.get <foo>' is faster now
19:58 pcn So mainly salt-call now.
20:02 Trauma joined #salt
20:06 rollniak joined #salt
20:07 Edgan pcn: I mostly use salt. Salt-call spews too much noise.
20:10 edrocks joined #salt
20:11 pcn you ever try state_output=mixed?
20:19 rmelero joined #salt
20:31 Edgan pcn: yeah, it is what I use for salt, and I prefer to have targeting
20:44 pcn OK, I'm not sure how that became the topic of conversation, but I respect your preference.
21:05 FL1SK joined #salt
21:12 pentabular joined #salt
21:14 rollniak joined #salt
21:21 jbirdman joined #salt
21:23 rcvu Hey I am trying to use grains in my sls file
21:23 rcvu Is there a special way that I need to call the sls file so it will be formatted correctly before it is run?
21:24 Edgan rcvu: show code. There are many ways to "use" grains.
21:25 rcvu https://paste.fedoraproject.org/paste/epm83T5T9pbkehWTYxejJA
21:25 rcvu That's what I have added to the sls file taht was working before
21:25 rcvu Now when I run it locally with salt-call --local it run fine
21:26 Edgan rcvu: should work, but there is a better way
21:26 rcvu How?
21:28 rcvu I was looking for the "salt" way to do this and this seemed to be the concensus
21:29 Edgan https://pastebin.com/AeExjqiJ  https://pastebin.com/ry7VUvRF
21:29 Edgan Not a perfect example, but I think you can figure it out
21:29 Edgan openssh is just the example of a place where I do a case statement like matching
21:29 Edgan Replace openssh with whatever the name of your state/formula is
21:31 Edgan rcvu: The idea is to pre-process the grains and make the variables match, and then you can use one variable name. Plus skip all the if statements.
21:33 Edgan rcvu: {% set os_map_addition = salt['grains.filter_by'](os_specific, grain='os', merge=defaults) %} becomes {% set os_map_addition = salt['grains.filter_by'](os_specific, grain='osmajorrelease', merge=defaults) %}
21:33 Edgan rcvu: To match on CentOS 6 or 7
21:34 Edgan You can also search replace os_specific to osmajorrelease_specific
21:36 Edgan rcvu: make sense?
21:39 rcvu Yes I think so. I was hoping to not have to create a custom grain (which I think is what you are suggesting)
21:39 rcvu I will try that way if I can't get the if/else logic working in the state file
21:39 whytewolf rcvu: it is not custom grains.
21:41 rcvu whytewolf: I don't think I understand then. Pretty new to salt
21:42 Edgan rcvu: It is a map.jinja that you import into sls.
21:42 Edgan rcvu: It will use your existing osmajorrelease grain
21:44 Edgan rcvu: You shouldn't fear using custom grains, but that isn't what this is
21:47 rcvu Okay I read up on the jinja/salt thing so I think I get it. I'll give it a shot. Thanks!
21:49 Edgan rcvu: Here is a example formula that is the same idea, https://github.com/salt-formulas/salt-formula-openssh  . Mine is just the more advanced form. Here is my example, http://cygnusx-1.org/formula.txt
22:18 mavhq joined #salt
22:23 mikecmpbll joined #salt
22:34 dxiri_ joined #salt
23:13 zerocoolback joined #salt
23:21 jbirdman joined #salt
23:28 jab416171 joined #salt
23:29 exarkun joined #salt
23:39 tiwula joined #salt

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