Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-12-29

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

All times shown according to UTC.

Time Nick Message
00:00 saltslackbridge joined #salt
00:07 robawt joined #salt
00:28 xet7 joined #salt
00:32 threwahway joined #salt
00:38 zerocool_ joined #salt
00:45 Minernoob joined #salt
00:45 Minernoob left #salt
00:47 kettlewell joined #salt
00:54 rem5_ joined #salt
01:05 inire joined #salt
01:22 rem5_ joined #salt
01:24 vexati0n ok who's a super awesome web developer who wants to help me out by rewriting my salt console in a way that isn't embarrassingly badly coded
01:25 vexati0n for free
01:27 vexati0n left #salt
01:27 vexati0n joined #salt
01:34 threwahway_ joined #salt
01:36 threwahway joined #salt
01:55 simonmcc joined #salt
02:15 threwahway_ joined #salt
02:25 threwahway joined #salt
02:40 nomeed joined #salt
02:58 ilbot3 joined #salt
02:58 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.8, 2017.7.2 <+> 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:58 evle joined #salt
03:00 v12aml joined #salt
03:16 zerocool_ joined #salt
03:17 edrocks joined #salt
03:26 NV joined #salt
03:33 threwahway_ joined #salt
03:35 threwahway__ joined #salt
03:36 Yoda-BZH joined #salt
03:36 Yoda-BZH joined #salt
03:53 fgimian joined #salt
03:55 fgimian joined #salt
04:08 threwahway joined #salt
04:11 threwahway_ joined #salt
04:23 shripadr joined #salt
04:23 hemebond salt console?
04:51 saltslackbridge <randy> what the hell is a salt console. additionally I am not familiar with this currency you call “free”.
04:58 MTecknology I'd be interested, but it doesn't sound like anything I'd ever use.
05:06 Eugene Like, furniture? https://i.imgur.com/7kcRtMQ.jpg
05:06 cire joined #salt
05:28 shiranaihito joined #salt
05:56 LocaMocha joined #salt
06:13 dxiri_ joined #salt
06:16 pppingme joined #salt
06:52 aldevar joined #salt
07:05 saltslackbridge <randy> I’m still caught up on the free. Is that like bitcoins? How much is it worth?
07:17 sh123124213 joined #salt
07:18 saltnoob58 joined #salt
07:35 tom29739 joined #salt
07:35 saltslackbridge joined #salt
07:41 Yoda-BZH joined #salt
07:42 Yoda-BZH joined #salt
07:53 gnomethrower joined #salt
08:07 mavhq joined #salt
08:09 aldevar joined #salt
08:22 kettlewell joined #salt
08:34 Hybrid joined #salt
08:36 threwahway joined #salt
08:55 threwahway_ joined #salt
09:16 Trauma_ joined #salt
09:32 pualj joined #salt
09:37 girishb_ joined #salt
09:39 Garo_ joined #salt
09:44 _KaszpiR_ joined #salt
10:06 girishb joined #salt
10:08 girishb Need help plz  salt-api not able to run https://gist.github.com/girishbin/a0933d13a797dc90caabfe912331c6d2
10:11 evle1 joined #salt
10:19 sayyid9000 joined #salt
10:20 _KaszpiR_ joined #salt
10:21 threwahway joined #salt
10:31 BarBQ joined #salt
10:50 pualj joined #salt
10:51 _KaszpiR_ joined #salt
10:51 threwahway_ joined #salt
10:52 aerbax joined #salt
11:03 willprice joined #salt
11:06 _KaszpiR_ joined #salt
11:07 _KaszpiR_ joined #salt
11:15 saltslackbridge <george.taranis> @gtmanfred thanks! :slightly_smiling_face: I tried it and it works, I didn't know it returns a boolean, in this case True is obsolete and apparently was causing issues because of that.
12:10 Trauma_ joined #salt
12:16 xet7 joined #salt
12:32 pualj joined #salt
12:36 rem5_ joined #salt
12:41 pualj_ joined #salt
12:43 EvaSDK left #salt
12:54 EvaSDK joined #salt
12:54 NightMonkey joined #salt
12:55 EvaSDK joined #salt
13:07 evle2 joined #salt
13:11 Nahual joined #salt
13:18 mikecmpbll joined #salt
13:21 rem5_ joined #salt
13:30 Hybrid joined #salt
13:38 Trauma__ joined #salt
14:09 mikecmpbll joined #salt
14:15 dev_tea joined #salt
14:42 xet7 joined #salt
14:52 hatifnatt Hi, is it possible to pass dictionary as defaults for file.managed?
14:55 Hazelesque joined #salt
14:57 hatifnatt Got it, there was a problem with indentation.
15:18 vps joined #salt
15:27 pualj_ joined #salt
15:44 colegatron joined #salt
15:45 XenophonF hatifnatt: the |yaml filter is your friend
15:53 vps left #salt
16:22 doubletwist joined #salt
16:22 aldevar joined #salt
16:23 ouemt any suggestions on what I did wrong here? https://gist.github.com/clegett/ff65896cbfb13631ca1b2e67575c6d7a
16:26 gtmanfred ouemt: include your state in that gist please
16:27 ouemt gtmanfred: whoops, separate gist here: https://gist.github.com/clegett/55de4eed53e685f03bf03139086da6c5
16:27 nidr0x joined #salt
16:27 gtmanfred why are there two :: on the source line?
16:28 ouemt gtmanfred: because I haven't had my coffee
16:28 ouemt that was the problem, thanks
16:28 gtmanfred that is probably what is causing the error would be my guess
16:28 gtmanfred no problem :)
16:35 tiwula joined #salt
16:36 lastjedi joined #salt
16:40 oida joined #salt
16:47 hatifnatt XenophonF: Thanks, that could be useful, I'm always forget about salt extended Jinja filters.
16:48 XenophonF there are a ton of new ones, too!  I really ought to start reading the release notes ;)
16:55 hatifnatt Yes, a lot of useful filters, unfortunately I'm still on 2016.8.11, but I hope I will drop old hosts soon and upgrade to 2017.
16:57 babilen It's also super easy to add your own with the @jinja_filter(...) decorator now
16:57 babilen (unfortunately totally undocumented)
16:58 babilen PRs that add features shouldn't get accepted without documentation :)
16:59 gtmanfred neat, so you can just add that to anything in `__utils__`?
17:02 Bryson joined #salt
17:08 babilen gtmanfred: Yeah .. let me get the PR
17:08 babilen https://github.com/saltstack/salt/pull/37952
17:09 gtmanfred neat
17:10 babilen This is - IMHO - super awesome and horribly undocumented. Given that we use Jinja so much, it should be well known that you can now easily "mix in" Python via filters
17:10 gtmanfred yes
17:10 gtmanfred I labeled it as documentation, and will try and add docs for it when i get a free moment
17:11 babilen That would be much appreciated
17:11 babilen The PR should have included a paragraph in the renderers doc, but anymow .. I'm still very happy
17:12 babilen (sometimes I wonder how many gems like that are hidden, just waiting for someone to unearth them)
17:12 gtmanfred lots
17:12 gtmanfred i am sure
17:12 gtmanfred i run across one every couple months
17:12 babilen That's my feeling too
17:13 babilen We just have to keep on digging
17:17 XenophonF holy cow that's amazing
17:17 XenophonF I have a queue of docfixes to be written in my Copious Free Time.  I'll definitely add this to my list.
17:17 gtmanfred do it please
17:17 gtmanfred i won't have time until at least after oxygen
17:19 XenophonF the boto_* functions need TLC too
17:19 XenophonF they're at the top of that list
17:27 felskrone joined #salt
17:46 Trauma_ joined #salt
18:03 armyriad joined #salt
18:50 xet7 joined #salt
18:54 nidr0x joined #salt
18:54 onlyanegg joined #salt
19:00 edrocks joined #salt
19:01 ymasson joined #salt
19:25 _val_ joined #salt
19:25 _val_ joined #salt
19:32 xet7 joined #salt
19:34 kettlewell joined #salt
19:39 oida joined #salt
19:44 nidr0x joined #salt
19:48 kettlewell joined #salt
19:49 Hybrid joined #salt
20:12 cyteen_ joined #salt
20:18 JAuz joined #salt
20:20 JawnAuz__ joined #salt
20:29 pualj_ joined #salt
20:35 mikecmpbll joined #salt
20:55 swa_work joined #salt
21:00 Hybrid joined #salt
21:03 fgimian joined #salt
21:04 kettlewell joined #salt
21:05 averell joined #salt
21:29 fgimian joined #salt
21:30 fgimian joined #salt
21:31 fgimian joined #salt
21:32 swa_work joined #salt
21:34 fgimian joined #salt
21:36 fgimian joined #salt
21:42 Aleks3Y joined #salt
22:02 relidy joined #salt
22:02 arif-ali joined #salt
22:03 relidy Can anyone point me in the right direction? I'm trying to get the current unix timestamp (epoch) in a jinja template.
22:04 relidy I don't need a formatted date, just the raw number would be perfect.
22:08 saltslackbridge <gtmanfred> i do not see a salt module for getting epoch, only for getting the system time.
22:08 saltslackbridge <gtmanfred> https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.system.html#salt.modules.system.get_system_date
22:09 relidy Yeah, unless there's a way to convert that back to elapsed seconds, it's not going to help in this specific situation. Thanks for pointing that module out, though, I'd totally missed it.
22:12 saltslackbridge <gtmanfred> i mean, just write a module that returns `time.time()` and distribute it to your minions with https://docs.saltstack.com/en/latest/ref/file_server/dynamic-modules.html
22:13 relidy Haven't tinkered with custom modules yet. Maybe this is a ... simple enough use-case to use as a test case.
22:17 cyteen joined #salt
22:23 whytewolf https://docs.saltstack.com/en/latest/topics/jinja/index.html#strftime
22:24 whytewolf oh wait missed the epoch part
22:26 pcgod which should work with %s ... ;)
22:28 pcgod (The full set of format codes supported varies across platforms, because Python calls the platform C library’s strftime() function, and platform variations are common. To see the full set of format codes supported on your platform, consult the strftime(3) documentation.)
22:30 hemebond joined #salt
22:36 saltslackbridge <gtmanfred> Oh yeah, strftime should work
22:37 nidr0x joined #salt
22:42 cyborg-one joined #salt
22:44 cyborg-one left #salt
23:01 oida joined #salt
23:49 jacksontj joined #salt

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