Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-10-30

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

All times shown according to UTC.

Time Nick Message
00:03 johnj_ joined #salt
00:09 laertus joined #salt
00:11 dxiri joined #salt
00:34 aldevar joined #salt
00:41 ahrs joined #salt
00:47 dxiri joined #salt
01:04 johnj_ joined #salt
01:51 XenophonF I'll be submitting the following proposed talk for saltconf18: recursive Jinja macros---logically avoiding repetition or clearly signaling mental illness? psychologist xenophon fenderson, the carbon(d)ated, weighs in
01:52 XenophonF But I need to finish debugging my recursive Jinja macros first.
02:01 boredatwork joined #salt
02:05 johnj_ joined #salt
02:08 johnkeates it's reported now: https://github.com/saltstack/salt/issues/44330
02:09 johnkeates it's also 4AM here.
02:09 johnkeates time for bed...
02:11 nomeed joined #salt
02:12 whytewolf Have a goodnight
02:15 johnkeates have a good saltconf
02:21 whytewolf XenophonF speaking of Jinja debugging. Did you see I released a new version of my debugging modle that added a yamllint function that takes rendering into account?
02:54 snc joined #salt
02:54 fxhp joined #salt
02:55 ilbot3 joined #salt
02:55 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 <+> We are volunteers and may not have immediate answers
03:01 fracklen joined #salt
03:02 pipps joined #salt
03:06 __number5__ joined #salt
03:06 johnj_ joined #salt
03:32 gnomethrower joined #salt
03:36 XenophonF no I haven't see that!
03:36 XenophonF linky?
03:40 xMopxShell yaa
03:40 xMopxShell oops
03:41 xMopxShell salt is dope too
03:52 JPT joined #salt
03:56 evle joined #salt
03:57 bryan joined #salt
04:07 skinkitten_ joined #salt
04:07 johnj_ joined #salt
04:09 pipps joined #salt
04:41 johnj_ joined #salt
04:43 SkyRocknRoll joined #salt
05:18 pipps joined #salt
05:19 pipps joined #salt
05:26 whytewolf XenophonF: https://github.com/whytewolf/salt-debug/tree/devel/lint
05:33 gladia2r joined #salt
05:34 pipps joined #salt
06:10 XenophonF thanks whytewolf def checking that out in the am
06:23 hoonetorg joined #salt
06:39 johnj_ joined #salt
06:42 pipps joined #salt
07:10 Hybrid joined #salt
07:13 do3meli joined #salt
07:13 do3meli left #salt
07:16 mikecmpbll joined #salt
07:20 aviau joined #salt
07:24 Miouge joined #salt
07:30 mexwzotdya joined #salt
07:33 justanotheruser joined #salt
07:40 johnj joined #salt
07:55 Ricardo1000 joined #salt
07:57 aldevar joined #salt
08:02 omie888777 joined #salt
08:03 pualj joined #salt
08:04 obitech joined #salt
08:08 fracklen joined #salt
08:10 fracklen joined #salt
08:13 fracklen joined #salt
08:21 darioleidi joined #salt
08:26 robman joined #salt
08:47 yuhl joined #salt
08:48 obitech my god I hate Oracle so much. I have to register to download Java SDK wtf is this shit?
08:54 sjorge joined #salt
08:57 _KaszpiR_ joined #salt
09:01 usernkey joined #salt
09:01 fracklen joined #salt
09:03 pbandark joined #salt
09:04 jas02 joined #salt
09:08 mikecmpbll joined #salt
09:10 johnj joined #salt
09:11 SamYaple obitech: thats why i do my best to get openjdk working everywhere
09:20 aldevar joined #salt
09:27 Mattch joined #salt
09:44 fracklen joined #salt
09:44 fracklen joined #salt
10:03 gmoro joined #salt
10:11 johnj joined #salt
10:12 pualj joined #salt
10:15 pualj_ joined #salt
10:27 pualj joined #salt
11:12 johnj joined #salt
11:19 SMuZZ joined #salt
11:32 Shirkdog joined #salt
11:41 XenophonF obitech: there's a header you can send using curl to bypass it
11:41 XenophonF but yeah openjdk ftw
11:42 XenophonF i have yet to run into a situation where i need oracle-specific functionality
11:42 XenophonF plus openjdk == oracle java
11:42 XenophonF it's the same jvm
11:42 XenophonF same code base
11:43 fredvd joined #salt
11:47 fracklen joined #salt
11:57 obitech true XenophonF, however I'm not the one making the decision which JDK to use ;)
11:57 obitech so I have to rant once in a while haha
12:00 XenophonF :D
12:13 johnj joined #salt
12:19 usernkey joined #salt
12:23 Nahual joined #salt
12:29 fracklen joined #salt
12:31 aldevar joined #salt
12:41 cgiroua joined #salt
12:42 daks Hello
12:42 daks I have a pillar with data representing a regex
12:42 daks it looks like retention: '^carbon\.'
12:43 daks and it's *exactly* the data that I want to put in a file
12:43 babilen Oh, you'll have fun with string escapes
12:43 daks but salt/jinja keeps escaping the '\' so my string looks like '^carbon\\.'
12:44 daks yes, I already have (no) fun :(
12:44 babilen I'd pass that data as Python
12:44 daks what do you mean?
12:44 babilen It's a nightmare to get it right for the YAML→Python→msgpack→Python→WHATEVER parsing
12:45 babilen Either write the Pillar in Python or use a Python dictionary in the pillar and reference that
12:45 babilen Maybe s/dictionary/variable/
12:46 daks write the pillar in Python mean writing an execution module in python, I imagine
12:46 babilen Depends on the rest of the pillar, but the bottom line is: Don't use YAML
12:46 daks hum ok...
12:46 daks that sucks
12:46 daks really bad
12:46 babilen Why, shouldn't be too hard
12:46 daks what suck is not really doing it
12:47 daks is needing another way to do i
12:47 daks *it
12:47 daks or changing completely my formula just to handle that
12:47 babilen Feel free to figure out a way to escape all the characters you might want to have in there
12:47 babilen yaml_encode and similar might help
12:47 daks there is not way to just say to salt don't escape anything?
12:48 daks it tried |e, |safe |ỳaml_...
12:48 daks i'll check again
12:48 babilen There are just too many parsers involved .. which is why I simply pass the data from Python
12:48 daks |yaml_encode is better: is converts a single \ in \\\\ :)
12:49 babilen Oh, now you could |replace('\\\\', '\') for all characters that are handled wrong
12:49 daks yes i know
12:49 babilen (but do it in the right order, so you don't mess up '\\\\\\\\\\\\\\\\\\' ;)
12:50 daks so 2 possibilities: a hack with manage special characters, or a Python module
12:50 daks *which
12:51 daks ok thanks babilen
12:51 babilen fwiw, I was thinking of something like http://paste.debian.net/993375/ .. Maybe combine that with yaml_encode in there
12:51 babilen Or write the entire pillar in Python
12:52 daks but can I use this syntax in pillar?
12:52 babilen #!py ... def run(): return {'foo': '^carbon\.' }
12:52 daks and in pillarstack? (not sure)
12:52 daks oh ok
12:53 babilen You can definitely use the above in "normal" pillars ... not sure about pillarstack
12:53 daks I'll go to python exec module I think
12:53 babilen You can literally use any renderer you want .. #!py works well for these cases
12:54 babilen SLS use #!jinja|yaml implicitly (which is a pain in the arse if you want to change the default renderer)
12:55 daks ok I got it!
12:55 babilen https://docs.saltstack.com/en/latest/ref/renderers/ -- mako is quite nice for its in-line Python blocks. Something that's sorely missing from jinja. They really should have used that in lieu of jinja .. but it's too late now with all that code out there that relies on the implicit shebang
13:02 usernkey1 joined #salt
13:03 mchlumsky joined #salt
13:05 SkyRocknRoll joined #salt
13:05 tracphil joined #salt
13:09 numkem joined #salt
13:09 NV joined #salt
13:10 DammitJim joined #salt
13:11 pbandark Hello everyone.. with external pillar, as per example from https://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.stack.html, we can use "*" in stack.cfg. but, i am getting `2017-10-27 20:06:40,917 [salt.loaded.ext.pillar.stack][INFO    ][18735] Ignoring pillar stack template "minions/salt-master.novalocal/*": can't find from root dir "/srv/salt/external.pillar"`
13:11 pbandark https://paste.fedoraproject.org/paste/HPu5rlK9q31KqjovY3hI7Q
13:14 johnj joined #salt
13:14 edrocks joined #salt
13:16 jas02 joined #salt
13:19 jas02_ joined #salt
13:21 gh34 joined #salt
13:27 fracklen joined #salt
13:30 jas02 joined #salt
13:32 jas02 joined #salt
13:32 user-and-abuser joined #salt
13:38 jas02 joined #salt
13:45 Stalky joined #salt
13:45 jas02_ joined #salt
13:45 aldevar joined #salt
13:49 aldevar1 joined #salt
13:50 evle joined #salt
13:55 jas02 joined #salt
14:01 dxiri joined #salt
14:04 cyborg-one joined #salt
14:12 NV joined #salt
14:16 johnj joined #salt
14:17 swills joined #salt
14:17 swills joined #salt
14:19 jas02 joined #salt
14:19 usernkey joined #salt
14:19 jas02 joined #salt
14:20 jas02_ joined #salt
14:22 usernkey1 joined #salt
14:27 racooper joined #salt
14:28 pipps joined #salt
14:33 Guest66150 joined #salt
14:34 pipps joined #salt
14:36 usernkey joined #salt
14:38 Brew joined #salt
14:42 Guest75416 joined #salt
14:43 usernkey joined #salt
14:43 aldevar joined #salt
14:44 lordcirth_work joined #salt
14:47 SkyRocknRoll joined #salt
14:50 cyborg-one joined #salt
15:02 pbandark can anyone help me with above query ^^ ^
15:02 pipps joined #salt
15:06 fracklen joined #salt
15:09 SkyRocknRoll joined #salt
15:10 fracklen_ joined #salt
15:12 XenophonF sorry, don't use pillarstack
15:12 whytewolf well, first. your issue isn't "external pillar" it is the stack external pillar. there are many other external pillars so just saying external pillar is confusing the issue.
15:14 pbandark whytewolf: yes i am using stack external pillar.
15:14 whytewolf i know
15:14 pbandark XenophonF: due to existing architecture i need to stick with stack
15:14 whytewolf and the part you are configureing is pillarstack NOT external pillar
15:14 pbandark ok
15:17 johnj joined #salt
15:18 fracklen_ joined #salt
15:18 XenophonF I'm not telling you to change.
15:18 XenophonF only that I can't help :-/
15:19 pbandark ok :)
15:19 pbandark whytewolf:  any suggestion why its not working ? if i explicitly  specify "file name" in stack.cfg, it works. but not with "*
15:19 pbandark "
15:20 whytewolf you filled a bug about it right?
15:20 pbandark yes. i have raised an issue
15:22 whytewolf look at your bug. there has been an update to it
15:22 pbandark let me check
15:22 Ricardo1000 joined #salt
15:28 jas02 joined #salt
15:40 SkyRocknRoll joined #salt
15:47 SkyRocknRoll_ joined #salt
15:50 fracklen joined #salt
15:51 tiwula joined #salt
15:52 choke joined #salt
15:53 user-and-abuser joined #salt
15:57 jas02 joined #salt
15:59 heaje joined #salt
16:04 SkyRocknRoll joined #salt
16:14 onlyanegg joined #salt
16:14 onlyanegg joined #salt
16:16 edrocks joined #salt
16:17 aldevar joined #salt
16:17 johnj joined #salt
16:20 jas02 joined #salt
16:20 edrocks joined #salt
16:24 bstevenson joined #salt
16:27 nixjdm joined #salt
16:31 cyteen joined #salt
16:35 edrocks joined #salt
16:42 fredvd joined #salt
16:59 hoolio joined #salt
17:00 edrocks joined #salt
17:02 LocaMocha joined #salt
17:03 astronouth7303 my salt master seems to be ignoring the `winrepo_remotes_ng` setting i put in `/etc/salt/master.d/winrepo.conf`
17:03 pipps joined #salt
17:03 astronouth7303 do i need to also explicitly set the non-ng options?
17:03 pipps joined #salt
17:07 RandyT good day all
17:08 RandyT wanted to know if it is possible to pass an s3 bucket resource to a minion for file_roots running masterless?
17:09 RandyT I know I can do this as external pillar (at least I think I can). Curious if there is a way to share salt formulas from an S3 bucket as well
17:15 pipps joined #salt
17:18 johnj_ joined #salt
17:23 whytewolf RandyT: iirc you can use this from a masterless minion https://docs.saltstack.com/en/latest/ref/file_server/all/salt.fileserver.s3fs.html
17:25 RandyT so under file_roots: base:, I can point to an s3:/bucketname/salt  ??
17:31 impi joined #salt
17:33 noobiedubie joined #salt
17:36 davis_ joined #salt
17:38 RandyT actually, as I dig into this a bit more, wondering if salt-ssh might be a better way to provision these masterless minions....
17:40 dxiri joined #salt
17:41 astronouth7303 oh, 1: `winrepo_dir_ng` has to point to somewhere that will resolve to `salt://win/`, 2: I hadn't enabled the right SSH keys for that repo
17:42 RandyT but salt-ssh won't work for minions that are not remotely accessible.. so that is out.
17:42 RandyT goal is to create masterless minion provisioning and avoid mix of git access to state files and s3 access to pillar...
17:43 astronouth7303 RandyT: either move pillar to git or state to s3?
17:43 RandyT astronouth7303: so back to min inital question, how do I put and access state on s3?
17:44 RandyT "put" in the sense of what is the required configuration?
17:44 astronouth7303 https://docs.saltstack.com/en/latest/ref/file_server/all/index.html are your options
17:44 RandyT and do I think point to an s3 bucket in file_roots: ?
17:44 RandyT doesn't seem to fit the model and not finding the doc
17:44 edrocks joined #salt
17:45 astronouth7303 no, it's configured similarly to gitfs
17:45 RandyT I am using s3fs to access software bundles, etc... I am not seeing how it is used for providing the state files to the salt-call
17:45 whytewolf RandyT: it is a fileserver backend . file_roots is ONLY for the local fileserver backend
17:46 astronouth7303 all `salt://` access is through the fileserver system, whether it's bundles, state, orchestrator, etc
17:46 RandyT @whytewolf: so how do I tell the salt-call where to find the state files if they reside on s3?
17:47 astronouth7303 the configuration file, similar to getting gitfs working on masterless configuration
17:47 whytewolf RandyT: by editong your config file
17:47 astronouth7303 but instead of using the gitfs settings, use the s3 ones
17:48 RandyT @whytewolf: :-) that was obvious to me. Not finding an example
17:48 astronouth7303 eg, gitfs uses `gitfs_remotes`, while s3fs uses `s3.buckets`
17:48 whytewolf RandyT: did you actually READ the link? that has the examples of what to edit
17:49 astronouth7303 RandyT: do you mean "Where do master settings go on a masterless configuration?"?
17:50 RandyT @whytewolf: yes, actully read and as I wrote, I am accessing files on s3fs...
17:50 RandyT I am not able to get a salt-call to look on those same s3fs resources for state
17:50 astronouth7303 does `cp.list_master` work on masterless?
17:50 pipps joined #salt
17:51 chowmeined joined #salt
17:51 RandyT astronouth7303: astronouth7303 it does
17:52 astronouth7303 if you disable gitfs, you should be able to see how the fileserver looks to the minion
17:54 whytewolf RandyT: once the configs are in place everything in your bucket should be there as salt://item.in.buckets
17:54 whytewolf you don't access it any differently
17:55 RandyT so does file_roots: base: point to s3://bucketname/salt then?
17:56 whytewolf file_roots: base: doesn't matter
17:56 RandyT so everything pulled in via s3fs is available as state?
17:56 whytewolf yes
17:56 RandyT ah
17:56 astronouth7303 `file_roots` is only for the implied local fs fileserver backend
17:57 RandyT that was what I was struggling with. Thanks for sticking with me folks
17:58 davis_ Hi all. I'm looking to have my master-of-masters have access to mine data on the syndics, so I've set up redis as an external cache (I'm using 2017.7.2 as I understand it's broken before this release). I'm still having an issue accessing the cached mine data on the MoM. When I issue salt-run cache.mine [minion] it returns nothing on the MoM, whereas I get results on the syndic. Has anyone set this up before and can point me in the right
18:00 _JZ_ joined #salt
18:01 astronouth7303 wanted: script to turn github releases into winrepo packages
18:02 pipps joined #salt
18:03 whytewolf wanted: magic script that knows what i want before i want it.
18:06 astronouth7303 that's always implied :P
18:11 Brew_ joined #salt
18:16 Brew_ joined #salt
18:17 user-and-abuser joined #salt
18:17 mikecmpbll joined #salt
18:18 Brew_ joined #salt
18:19 johnj_ joined #salt
18:20 wongster80 joined #salt
18:23 nethershaw joined #salt
18:28 DammitJim joined #salt
18:32 sjorge joined #salt
18:32 sjorge joined #salt
18:34 cyborg-one joined #salt
18:36 user-and-abuser joined #salt
18:43 Hybrid joined #salt
18:53 nixjdm joined #salt
18:55 fracklen joined #salt
18:56 user-and-abuser joined #salt
19:00 aldevar joined #salt
19:14 _KaszpiR_ joined #salt
19:16 cgiroua_ joined #salt
19:20 johnj_ joined #salt
19:22 pipps joined #salt
19:23 RandyT so I am continuing down this s3 salt state store path.... and cannot see any state files.
19:23 RandyT Here is a look at my minion config and what I see on the local minion filesystem
19:23 RandyT https://gist.github.com/rterbush/693bd08fa2b87177688449236b67a5c6
19:24 RandyT files are pulled into local cache on the minion, but nothing is shown in local state files
19:26 astronouth7303 RandyT: how are you testing what's in the "local state files"?
19:27 RandyT the cp.list_master as shown in the comments of the gist
19:28 cgiroua joined #salt
19:30 RandyT I don't have 'base' environment set in the s3 bucket....
19:30 RandyT thought that might be implied if no other, but might not be from comment in the doc... trying that...
19:33 RandyT that is the answer...
19:33 astronouth7303 yeah, there's a specific bucket layout prescribed
19:35 xet7 joined #salt
19:44 stotch joined #salt
19:47 nethershaw joined #salt
19:48 Brew joined #salt
19:52 pipps joined #salt
19:52 pualj joined #salt
19:55 Brew joined #salt
19:56 pipps99 joined #salt
20:03 astronouth7303 is there a way to run a command if a command returns false? I need to run a command if a windows service isn't installed.
20:03 cyborg-one joined #salt
20:03 cgiroua_ joined #salt
20:03 astronouth7303 or: i need a way to tell a service.available state to use a specific command to actually do the installation
20:04 davis_ astronouth7303: check out the onfail requisite
20:04 davis_ https://docs.saltstack.com/en/latest/ref/states/requisites.html#onfail
20:05 nomeed joined #salt
20:06 fracklen joined #salt
20:09 astronouth7303 oh cool
20:12 xet7 joined #salt
20:14 cgiroua joined #salt
20:21 DammitJim joined #salt
20:22 johnj_ joined #salt
20:24 onlyanegg joined #salt
20:27 ChubYann joined #salt
20:41 wongster80 joined #salt
20:45 Brew joined #salt
20:54 onlyanegg joined #salt
20:55 alexfrosa joined #salt
21:01 wongster80 joined #salt
21:02 user-and-abuser joined #salt
21:07 icebal joined #salt
21:09 wongster80 joined #salt
21:20 pipps joined #salt
21:22 onlyanegg joined #salt
21:23 johnj_ joined #salt
21:27 edrocks joined #salt
21:37 jas02 joined #salt
21:40 onlyanegg joined #salt
21:50 onlyanegg joined #salt
21:56 icebal joined #salt
21:59 KingJ joined #salt
22:01 ahrs joined #salt
22:03 icedev joined #salt
22:07 pipps joined #salt
22:07 icebal joined #salt
22:09 tiwula joined #salt
22:10 aldevar left #salt
22:16 jas02 joined #salt
22:23 icedev joined #salt
22:24 johnj_ joined #salt
22:38 pipps joined #salt
22:44 pipps joined #salt
23:00 jas02 joined #salt
23:03 onlyanegg joined #salt
23:23 icebal joined #salt
23:25 johnj_ joined #salt
23:39 icebal joined #salt
23:41 jas02 joined #salt
23:50 laertus joined #salt
23:57 pipps joined #salt

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