Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2018-03-30

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

All times shown according to UTC.

Time Nick Message
00:04 farcaller_ joined #salt
00:04 coredumb1 joined #salt
00:04 rcvu joined #salt
00:04 hillna_ joined #salt
00:05 linovia_ joined #salt
00:05 SteamWells_ joined #salt
00:05 djural_ joined #salt
00:05 jhill_ joined #salt
00:05 qman joined #salt
00:05 pmcg_ joined #salt
00:05 czchen__ joined #salt
00:05 rcvu joined #salt
00:06 mmidgett joined #salt
00:06 jpsharp_ joined #salt
00:07 Ted____ joined #salt
00:07 doubletwist- joined #salt
00:08 rcvu joined #salt
00:10 esteban joined #salt
00:11 vaelen_ joined #salt
00:11 ksa_ joined #salt
00:11 pocketprotector- joined #salt
00:12 whiteing_ joined #salt
00:12 hax404 joined #salt
00:13 davedash joined #salt
00:13 Boulet joined #salt
00:13 dlloyd_ joined #salt
00:13 chutzpah joined #salt
00:13 dynamicudpate joined #salt
00:13 gmoro joined #salt
00:13 StolenToast joined #salt
00:13 armyriad joined #salt
00:13 _xor joined #salt
00:13 valkyr2e joined #salt
00:13 Arendtse1 joined #salt
00:13 irated joined #salt
00:13 andi- joined #salt
00:13 inetpro joined #salt
00:13 Tucky joined #salt
00:13 k1412 joined #salt
00:13 eseyman joined #salt
00:13 Zachary_DuBois joined #salt
00:13 chesty joined #salt
00:13 iggy_ joined #salt
00:13 matti joined #salt
00:13 cliluw joined #salt
00:13 dkehn joined #salt
00:13 jesusaur joined #salt
00:13 tvinson joined #salt
00:13 djinni` joined #salt
00:13 stewgoin joined #salt
00:13 marcinkuzminski joined #salt
00:13 legreffier joined #salt
00:13 hatifnatt joined #salt
00:13 turambar joined #salt
00:13 dh joined #salt
00:13 LeProvokateur joined #salt
00:13 lionel joined #salt
00:13 vexati0n joined #salt
00:13 jab416171 joined #salt
00:13 Neighbour joined #salt
00:13 bryguy joined #salt
00:13 dwfreed joined #salt
00:13 jacksontj joined #salt
00:13 __number5__ joined #salt
00:13 wryfi joined #salt
00:13 UForgotten_ joined #salt
00:13 xer0x joined #salt
00:13 Shirkdog joined #salt
00:13 jxs1 joined #salt
00:13 joshin joined #salt
00:13 NV joined #salt
00:13 coldbrewedbrew joined #salt
00:13 nku joined #salt
00:13 agustafson joined #salt
00:13 darkalia_ joined #salt
00:13 lungaro joined #salt
00:14 esteban joined #salt
00:14 flexd joined #salt
00:14 tzero joined #salt
00:15 Gabemo joined #salt
00:15 dhwt joined #salt
00:15 _dp joined #salt
00:16 Gabemo joined #salt
00:16 _dp joined #salt
00:16 JPaul joined #salt
00:16 xMopx joined #salt
00:16 lordcirth_work joined #salt
00:16 TooLmaN joined #salt
00:16 tom29739 joined #salt
00:16 swa_work joined #salt
00:16 izrail joined #salt
00:17 icedev joined #salt
00:17 darix joined #salt
00:17 cofeineSunshine joined #salt
00:17 _KaszpiR_ joined #salt
00:17 emid joined #salt
00:17 nledez joined #salt
00:17 nledez joined #salt
00:17 mr_kyd joined #salt
00:19 asoc joined #salt
00:19 sayyid9000 joined #salt
00:19 lastmikoi joined #salt
00:21 gtmanfred joined #salt
00:21 shakalaka joined #salt
00:22 vaelen joined #salt
00:22 armyriad joined #salt
00:25 zulutango joined #salt
00:32 jas02 joined #salt
00:35 Processus42 joined #salt
00:40 qman__ joined #salt
00:46 tzero joined #salt
00:58 fgimian joined #salt
01:02 justanotheruser joined #salt
01:02 justanotheruser joined #salt
01:03 freelock joined #salt
01:03 rtr63gdh[m] joined #salt
01:03 sxar joined #salt
01:03 benjiale[m] joined #salt
01:03 systeem[m] joined #salt
01:03 alj[m] joined #salt
01:03 benasse joined #salt
01:03 Tenyun[m] joined #salt
01:03 viq[m] joined #salt
01:03 toofoo[m] joined #salt
01:03 hoverbear joined #salt
01:03 gomerus[m] joined #salt
01:03 ThomasJ|m joined #salt
01:03 systeem[m]1 joined #salt
01:03 glock69[m] joined #salt
01:03 gomerus[m]1 joined #salt
01:03 fujexo[m] joined #salt
01:03 aboe[m] joined #salt
01:08 zulutango joined #salt
01:28 jerrykan[m] joined #salt
01:28 Sketch joined #salt
01:28 Deadhand joined #salt
01:28 averell joined #salt
01:28 eekrano joined #salt
01:28 wonko21 joined #salt
01:28 rome_390 joined #salt
01:28 nebuchadnezzar joined #salt
01:28 m0nky joined #salt
01:28 XenophonF joined #salt
01:28 phtes joined #salt
01:28 pcdummy joined #salt
01:28 demize joined #salt
01:28 vhasi joined #salt
01:28 ixs joined #salt
01:28 heaje joined #salt
01:28 magnus1 joined #salt
01:28 ekkelett joined #salt
01:28 rideh joined #salt
01:28 coldbrewedbrew_ joined #salt
01:28 rickflare joined #salt
01:28 babilen joined #salt
01:28 basepi joined #salt
01:28 bd joined #salt
01:28 pcn joined #salt
01:28 sjl_ joined #salt
01:28 jerrykan[m] joined #salt
01:55 ilbot3 joined #salt
01:55 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.9, 2017.7.4 <+> RC for 2018.3.0 is out, please test it! <+> 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
01:57 Processus42 joined #salt
01:59 lkthomas joined #salt
02:11 zerocoolback joined #salt
02:25 sxar joined #salt
02:25 jerrykan[m] joined #salt
02:25 rtr63gdh[m] joined #salt
02:25 freelock joined #salt
02:25 hoverbear joined #salt
02:25 systeem[m] joined #salt
02:25 Tenyun[m] joined #salt
02:25 benjiale[m] joined #salt
02:25 toofoo[m] joined #salt
02:25 viq[m] joined #salt
02:25 gomerus[m] joined #salt
02:25 alj[m] joined #salt
02:25 ThomasJ|m joined #salt
02:25 benasse joined #salt
02:25 glock69[m] joined #salt
02:25 systeem[m]1 joined #salt
02:25 fujexo[m] joined #salt
02:25 gomerus[m]1 joined #salt
02:25 aboe[m] joined #salt
03:15 exarkun joined #salt
03:16 zerocoolback joined #salt
03:16 shiranaihito joined #salt
03:16 zerocoolback joined #salt
03:20 cro joined #salt
03:50 shiranaihito joined #salt
03:56 justanotheruser joined #salt
03:58 shiranaihito joined #salt
04:00 NightMonkey joined #salt
04:04 ProT-0-TypE joined #salt
04:05 ProT-0-TypE was anyone able to make a masterless reactor work?
04:06 ProT-0-TypE on 2017.7.4
04:13 doubletwist joined #salt
04:32 ponyofdeath joined #salt
04:54 exarkun joined #salt
04:56 Hybrid joined #salt
05:01 lkthomas joined #salt
05:09 strobelight joined #salt
05:20 sauvin joined #salt
05:30 strobelight joined #salt
05:36 shakalaka joined #salt
05:44 strobelight joined #salt
05:51 briner_ joined #salt
06:02 mavhq joined #salt
06:08 justan0theruser joined #salt
06:08 indistylo joined #salt
06:10 justan0theruser joined #salt
06:10 jrklein joined #salt
06:34 wongster80_ joined #salt
06:36 evle joined #salt
06:36 tyx joined #salt
06:38 aruns joined #salt
06:42 aldevar joined #salt
07:11 Hybrid joined #salt
07:13 DanyC joined #salt
07:21 shakalaka joined #salt
07:28 DanyC joined #salt
07:29 Guest1201 left #salt
07:31 DanyC joined #salt
07:38 shakalaka joined #salt
07:59 DanyC joined #salt
08:06 DanyC joined #salt
08:29 DanyC joined #salt
08:35 DanyC joined #salt
08:37 DanyC joined #salt
08:47 DanyC joined #salt
08:48 sjorge joined #salt
08:50 xet7 joined #salt
08:55 Ricardo1000 joined #salt
09:38 coredumb joined #salt
10:07 shakalaka joined #salt
10:08 Boulet joined #salt
10:12 xet7 joined #salt
10:28 zerocoolback joined #salt
10:38 xet7 joined #salt
10:39 czchen__ joined #salt
10:40 czchen__ left #salt
11:07 sjorge joined #salt
11:52 v12aml joined #salt
12:29 zerocoolback joined #salt
12:30 DanyC joined #salt
12:33 strobelight joined #salt
12:36 DanyC joined #salt
12:58 edrocks joined #salt
13:04 strobelight_ joined #salt
13:06 Hybrid joined #salt
13:33 karlthane joined #salt
13:34 upb joined #salt
13:48 cgiroua joined #salt
13:58 immune2iocane joined #salt
14:04 shpoont joined #salt
14:18 shpoont joined #salt
14:24 evle joined #salt
14:24 zerocoolback joined #salt
14:40 edrocks joined #salt
14:40 englishm_work joined #salt
14:45 thelocehiliosan joined #salt
14:46 BitBandit joined #salt
14:48 cgiroua joined #salt
14:48 immune2iocane joined #salt
14:50 dezertol joined #salt
14:57 evle1 joined #salt
15:07 tiwula joined #salt
15:14 KyleG joined #salt
15:14 KyleG joined #salt
15:14 sauvin joined #salt
15:19 ExtraCrispy joined #salt
15:33 Hybrid joined #salt
15:33 XenophonF is there a way to do deep dictionary merges via `{% do my_dict.update(updated_dict) %}`?
15:33 XenophonF i'd better look at the dict.update() method signature
15:33 DanyC joined #salt
15:34 XenophonF hm, doesn't look like it
15:34 XenophonF https://docs.python.org/2/library/stdtypes.html#dict.update
15:40 pocketprotector- joined #salt
15:42 babilen XenophonF: defaults.merge
15:43 babilen https://github.com/saltstack-formulas/nfs-formula/blob/master/nfs/map.jinja is a nice example of that in action
15:44 babilen Ah .. they don't use defaults.merge .. should address that! :)
15:45 babilen Hmm .. that wasn't the formula I was thinking of then
15:46 XenophonF I'm going to refactor my formula.
15:47 XenophonF basically, make it flatter
15:47 babilen Ah, no .. it was destroyed in https://github.com/saltstack-formulas/nfs-formula/commit/612e4e1a204875312b28b161d781f82bec123d37
15:47 XenophonF thanks for the pointer!
15:48 XenophonF hm, maybe I'll stick with that
15:48 babilen I'm not sure that change is actually equivalent to the code beforehand
15:48 babilen It's also much harder to extend and you end up with endless nested grains.filter_by calls
15:48 babilen Not happy with it
15:49 babilen Either way: Use defaults.merge for deep merging of datastructures
15:53 XenophonF yeah
15:53 XenophonF I'm going to try that.
15:53 jas02 joined #salt
15:54 XenophonF thanks babilen
15:59 jas02 joined #salt
16:01 xet7 joined #salt
16:04 thelocehiliosan joined #salt
16:07 XenophonF hm, there's something wrong with my call to grains.filter_by
16:13 thelocehiliosan joined #salt
16:21 hoverbear joined #salt
16:21 hoverbear joined #salt
16:32 dezertol joined #salt
16:33 exarkun How do folks manage their minions' environment configuration?
16:34 thelocehiliosan joined #salt
16:35 XenophonF the environ state
16:36 exarkun Sorry, not that environment.
16:36 exarkun The salt environment.  `base`, etc.
16:37 XenophonF oh haha sorry man
16:37 exarkun np, was clearly ambiguous.
16:41 XenophonF I use 1 DTAP phase per environment, documented in my top.sls file - https://github.com/irtnog/salt-states/blob/master/top.sls
16:42 thelocehiliosan joined #salt
16:42 XenophonF Minions get assigned an environment based on their hostname, so maybe that doesn't scale past 1000s of servers.
16:43 Edgan XenophonF: What letsencrypt authentication method do you use?
16:43 XenophonF I'm in the process of migrating to DNS-01.
16:44 XenophonF Route 53
16:44 DanyC_ joined #salt
16:45 Edgan XenophonF: dns-01 or route53? There is a dnsroute53 plugin I just started using.
16:46 XenophonF I have some stuff using HTTP-01 DCV and some stuff using DNS-01 DCV.
16:47 XenophonF The DNS-01 DCV is implemented using the Route 53 DNS plugin.
16:47 Edgan ah
16:47 Edgan I think DNS is the way to go
16:47 Edgan HTTP suffers from a chicken and the egg problem, unless you do multiple rounds
16:47 XenophonF exactly
16:50 Edgan XenophonF: Though one thing I still need to work out is multiple load balancers, only having one letsencrypt, and then sharing the results. Our old HTTP method ran into chicken/egg, multiple actors, the 0001/0002 problem, and in the end too many certs for the same hostname.
16:51 Edgan XenophonF: Whoever coded 0001/0002 should at the very least be yelled at.
16:52 jab416171 joined #salt
16:53 XenophonF Edgan: https://groups.google.com/forum/#!searchin/salt-users/xenophon%7Csort:date/salt-users/5CjNzXRZOcI/PSvhwtveAgAJ
16:53 XenophonF that's what I'm working on.
16:54 Edgan XenophonF: So the salt master does it and delivers it to the minion?
16:55 thelocehiliosan joined #salt
16:55 XenophonF that's the goal
16:55 Edgan XenophonF: Sweet
16:56 XenophonF I really want stateful distribution of keymat
16:56 XenophonF stateful and scalable
16:57 XenophonF stateful and scalable and cross-platform
16:57 XenophonF which certbot frustratingly isn't
16:57 XenophonF (my biggest beef)
16:57 XenophonF ((like wtf does it do all this unix-specific stuff when there are so many windows systems out there))
16:57 XenophonF (((but I digress)))
17:00 XenophonF my other end goal is to issue certs for internal domains
17:00 XenophonF can't really do HTTP-01 from a domain controller or SQL Server instance
17:01 XenophonF fortunately, I planned waaaaaay in advance when doing our initial AD deployments, and we're using real Internet domain names for everything
17:01 XenophonF instead of using .local or .lan or whatever silly advice MVPs were giving people back in the day
17:02 Edgan XenophonF: Good .local is such a bad idea
17:05 jpsharp_ left #salt
17:07 XenophonF omg I'm such an idiot - of course you can't merge dictionaries when the other variable doesn't exist
17:08 edrocks joined #salt
17:08 XenophonF https://github.com/irtnog/satosa-formula/commit/e6e8c963f2a60a013f6f24a966411bf880928f9b
17:08 Edgan XenophonF: can't you with a .get?
17:09 Edgan XenophonF: Ah, just wrong name
17:09 XenophonF yeah
17:09 XenophonF stupidest typo ever
17:09 XenophonF shoulda had a v8
17:10 Edgan XenophonF: My regular mistake, is != or !=
17:10 thelocehiliosan joined #salt
17:29 Miuku Cider == Good.
17:30 Edgan Miuku: ?
17:31 Miuku :-)
17:32 farcaller joined #salt
17:38 infinity_ i'm trying to use salt minion on the mac but i'm having a problem with it causing the system to temporarily hang.
17:38 infinity_ are there known issues with the mac minion?
17:40 Edgan infinity_: Sounds more like a performance problem. SSD or HD?
17:41 infinity_ its not a performance problem. when i run a command from the salt master like 'pkg.install'. the whole machien becomes unresponsive for about 2 minututes. It's happening with both of my two test minions (macs).
17:42 infinity_ the gui 100% hangs and then eventually if i wait awhile it recovers. other than that the computer works fine.
17:43 MTecknology XenophonF: darn you... now I want a v8
17:43 Edgan infinity_: pkg.install means me thing something is calling fsync, which is grinding the disk i/o to a halt, which is causing the gui freeze
17:44 Edgan infinity_: Which form of pkg is it using? brew?
17:44 infinity_ I installed the mac .pkg file on these.
17:45 Freeaqingme joined #salt
17:45 infinity_ i don't see why pkg.install should kill the machine for a few minutes. that doesn't make any sense ...even if it was hitting the disk.
17:45 infinity_ i'm not using raspberry pis here.
17:46 Edgan infinity_: You could try combining a fast dd command and a watch -n1 sync, and try to reproduce it.
17:47 Edgan infinity_: The real tell is that it happens with pkg.install. But in general salt shouldn't be able to halt your gui. It isn't rewriting the kernel. Technically in Linux you can poke /sys and /proc, but I still wouldn't expect those kind of results
17:47 stewgoin joined #salt
17:48 Edgan infinity_: Even on powerful machines, in the past, Linux has had GUI freeze issues during heavy idea. I know this is OSX, but I see no reason OSX can't have a like issue.
17:48 Edgan I meant heavy i/o
17:49 infinity_ i looked in system.log and it's causing spotlight to crash on one machine... checking th
17:49 infinity_ ...cehecking the other.
17:50 Edgan infinity_: I also don't see an open or closed issue about osx and hang/freeze.
17:50 thelocehiliosan joined #salt
17:51 Edgan infinity_: High Sierra?
17:51 infinity_ on the other machine pkg.install wget just errors. "pkg.install is not available. strange.
17:52 infinity_ yea.
17:52 Edgan infinity_: Googling, crashing spotlight seems to be a long running issue. This example from this channel in 2013 is especially funny, https://irclog.perlgeek.de/salt/2013-02-05
17:52 infinity_ high sierra.
17:53 Edgan infinity_: Do you have any non-US dictionaries installed?
17:54 infinity_ there are some crashplan errors in the logfiles. i wonder if its a conflict with crashplan. the other computer doesn't have it.
17:55 infinity_ Edgan: not sure what non-us dicts are. so i guess no.
17:55 Edgan infinity_: As in a chinese dictionary, as mentioned here, https://stackoverflow.com/questions/46780735/spotlight-crashes-in-high-sierra
17:56 Edgan infinity_: There was also a recent indian character that was crashing iMessage
17:56 KyleG joined #salt
17:56 KyleG joined #salt
17:56 Edgan infinity_: Apple stuff has gotten a lot buggier.
17:58 thelocehiliosan joined #salt
17:58 KyleG joined #salt
17:58 KyleG joined #salt
17:58 infinity_ when the hang happens a bunch of services error in system.log. i rm -rf'ed /opt/salt and rebooted. i'm going to see if the errors are still there.
17:59 infinity_ the other mac that was having issues seems to have stabilized. not sure how/why.
18:00 Edgan infinity_: mbp? mb? mac mini? iMac? Mac Pro?
18:00 infinity_ oes a pro and one is air
18:00 infinity_ er one is
18:05 infinity_ Okay, well. I don't see the errors. I'll have to try a few more computers and see if I can figure something out.
18:05 infinity_ thanks for the help.
18:10 exarkun https://gist.github.com/exarkun/6ec057774fe47a85fc8c6127f9353ff2 - why does "start storage" run on every state.apply and "start introducer" doesn't?
18:16 Edgan exarkun: In theory, because file: "configure storage node" changes everytime
18:18 exarkun that would make sense but isn't the case
18:20 exarkun updated including some state.apply output
18:20 Edgan exarkun: Oh, welcome to a little known issue :)
18:20 Edgan - onchange: vs - onchanges:
18:21 Edgan Salt will take typoes silently
18:21 * exarkun closes his eyes.
18:21 exarkun Great.  Thanks.
18:21 Edgan So if you typo an attribute on something like cmd.run, it will silently ignore whatever it doesn't understand
18:21 Edgan This has bitten me many times
18:23 exarkun And I expect this is an intentional decision that will not be "fixed"
18:23 thelocehiliosan joined #salt
18:24 exarkun Yes, fixing the misspelling has fixed the problem.  Thanks again.
18:25 chutzpah joined #salt
18:27 Edgan exarkun: I would love to see it fixed, but it would probably be a major change
18:28 Edgan gtmanfred: Want to weigh in?
18:33 hammer065 joined #salt
18:40 DanyC joined #salt
19:00 schemanic joined #salt
19:07 ymasson joined #salt
19:08 schemanic Hello. is it bad to have jinja statements in pillar?
19:09 schemanic I want to make a pillar value conditional on grains
19:13 MTecknology nope, the first statement isn't bad
19:13 MTecknology the second is, don't trust grains, only id
19:14 schemanic so if I need to say 'the value for this is (.625 * the memory of my server), I shouldn't use grains for that
19:15 MTecknology ah, right.. you use formulas
19:15 schemanic Yes. But what I'm trying to do right now is slightly vexing. for the most part I want to pass static values. I just want to make one list item in a pillar I'm defining contingent on the amount of ram assigned to the machine
19:16 Durkee joined #salt
19:17 schemanic The Salt documentation seems to indicate that this is acceptable
19:18 om2 joined #salt
19:18 sjorge joined #salt
19:21 om3 joined #salt
19:24 hemebond left #salt
19:28 sjorge joined #salt
19:32 xet7bot joined #salt
19:33 xet7bot left #salt
20:03 Durkee left #salt
20:03 Edgan schemanic: It can cause chicken/egg problems, but I don't know of any other way to get secure pillars, and also not having to do raw hostname matching.
20:04 ecdhe joined #salt
20:04 schemanic Thanks Edgan
20:05 xet7 joined #salt
20:05 Edgan schemanic: You can't trust grains for secure matching in pillars, because the minions generate them. With the exception of the id grain, which is the salt-key name, generally fqdn.
20:05 Edgan schemanic: So I then use jinja to slice and dice the id grain, and use if statements in jinja to match.
20:06 justanotheruser joined #salt
20:07 Edgan schemanic: Which then can look something like, https://pastebin.com/i9d62KmZ
20:09 Durkee joined #salt
20:11 Durkee left #salt
20:13 Durkee joined #salt
20:14 schemanic I'm going to call cmd.run through a formula and then use jinja math to slice it properly
20:17 Edgan schemanic: You mean the output of the cmd.run?
20:18 Edgan schemanic: I want to show you something you may already know, but if you don't, makes jinja WAY more powerful. You may also know it, but not have fully grasped it. Which I did for a long time.
20:18 schemanic Please do, that will help
20:19 schemanic I'm learning from gtmanfred that I can use a salt builtin instead of my bash oneliner
20:20 Edgan schemanic: https://pastebin.com/EU7Sa2fi   Python methods work on any jinja variable. It basically brings in a lot of the power of python into jinja.
20:23 Edgan schemanic: I previously had this as a grain, but converted it into a map.jinja
20:24 Edgan schemanic: and this ties into my previous example. I use the map.jinja in it for match.
20:31 cliluw joined #salt
20:32 kline joined #salt
20:35 schemanic so can I use this to say, append one jinja item to a list?
20:38 Edgan schemanic: yes
21:02 rollniak joined #salt
21:02 ddg joined #salt
21:04 dendazen joined #salt
21:04 ddg joined #salt
21:09 Richard joined #salt
21:33 zulutango joined #salt
21:36 euidzero joined #salt
21:46 Trauma joined #salt
21:55 Trauma joined #salt
22:03 cliluw joined #salt
22:06 Trauma joined #salt
22:07 rollniak_ joined #salt
22:29 shpoont joined #salt
22:50 sjorge joined #salt
23:23 strobelight joined #salt
23:24 strobelight_ joined #salt
23:41 johnkeates joined #salt
23:41 _two_ joined #salt

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