Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-01-07

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

All times shown according to UTC.

Time Nick Message
00:01 hemebond Hmm, looks fine to me. Can't see any reason you can't use all three of those mine functions.
00:01 tharkun_ joined #salt
00:01 Kelsar last 2 work, if i issue salt-run, just not in the state
00:02 hemebond What if you do...
00:02 hemebond salt 'minion' network.ip_addrs
00:03 edrocks joined #salt
00:03 Kelsar hemebond: gives nothing, but the interface does not exist, could be the reason
00:03 hemebond That should list all interface IP addresses.
00:03 Kelsar in the state it gives the same weird stuff
00:03 hemebond salt 'minion' network.ip_addrs interface=enp2s0
00:03 hemebond That should like just the IP for that one interface.
00:03 Kelsar oh, yes, it does
00:05 johnkeates joined #salt
00:05 hemebond That's all the mine_function does, is call the same execution module.
00:05 hemebond If the minion doesn't have the interface then yeah, it'll return nothing.
00:06 hemebond So you'll have to catch that in your Jinja somehow.
00:06 nickabbey joined #salt
00:07 Kelsar always get the fun_args stuff instead of the wanted mine data *gnarf*
00:08 hemebond You're calling it wrong somehow.
00:08 hemebond It's like you're getting the help text error message back.
00:08 hemebond (the one that explains how to call the execution module function)
00:09 hemebond Wait...
00:09 Kelsar yes, looks like that
00:09 hemebond The second paste is in your Pillar data still, correct?
00:09 Kelsar kind of
00:09 hemebond ?
00:09 Kelsar {%- for id, ips in salt.saltutil.runner('mine.get', tgt='*', fun='test.ping').items() %}
00:12 amontalban joined #salt
00:12 amontalban joined #salt
00:12 hemebond That's in the pillar for a minion?
00:13 rpb joined #salt
00:14 Kelsar yes
00:15 hemebond That's odd. It's copied directly from my Pillar data.
00:15 hemebond Wait.
00:15 Kelsar yeah
00:15 hemebond Does that particular call work?
00:15 hemebond I thought it was the network.ip_addrs that wasn't working.
00:16 Kelsar https://paste.pound-python.org/show/Nufv8zpzKiaheKF19W5C/
00:16 Kelsar hemebond: none works there
00:16 hemebond none?
00:16 Kelsar i always get the fun stuff as output
00:16 Kelsar in the state
00:17 hemebond For what? The test.ping?
00:17 Kelsar all mine_functions i have declared
00:17 Kelsar they all work in the shell now
00:17 hemebond But fail in the state?
00:17 Kelsar yes
00:18 Kelsar or, back to start, can't i do this in pillar?
00:18 hemebond You can. That's where I use the code I pasted.
00:18 Kelsar well
00:19 Kelsar such a simple goal, one user per minion should be created...
00:19 hemebond Uh.
00:19 hemebond Oh, on every minion, right.
00:20 Kelsar no, on one
00:20 Kelsar backup targets
00:20 hemebond gotcha
00:21 Kelsar but now i wanna really know why this doesn't work...
00:22 hemebond Try doing something like https://paste.pound-python.org/show/3f1KbsM5wdjpHQiOfoxz/
00:22 hemebond And then paste the pillar.get 'test' result.
00:23 Kelsar uh need to remember that
00:24 ivanjaros joined #salt
00:26 Kelsar hemebond: pillar render error
00:27 Kelsar incomplete... it is too late ^^
00:27 hemebond incomplete?
00:28 hemebond I think what I pasted is just wrong. One second.
00:28 Kelsar https://paste.pound-python.org/show/nkI4c1to0ZEx1CpTaY4n/
00:28 hemebond Ooooooh, I see what you're getting now.
00:28 hemebond What version of Salt are you on?
00:29 Kelsar interesting look at this, its user --- ips https://paste.pound-python.org/show/fUjh9Tguul7m0mC2i1V5/
00:29 Kelsar salt 2016.11.0
00:30 hemebond You're getting the full job return structure, not just the data.
00:30 hemebond So you need to reference the "return" object.
00:31 hemebond {% for user, ips in salt.saltutil.runner('mine.get', tgt='*', fun='ip_list').return.items()|sort %}
00:32 Kelsar with 2016.3.4 it is like expected.
00:33 Kelsar Question: is that change intended?
00:33 hemebond No idea, I'd have to search some tickets/pull-requests.
00:35 jimklo joined #salt
00:36 Kelsar atleast it was not me beeing stupid ^^
00:37 onlyanegg joined #salt
00:42 Kelsar hemebond: which runner i could test?
00:42 hemebond What do you mean?
00:43 Kelsar i want to test if it is just the mine giving strange things or the "runner" doing it wrong
00:44 hemebond There appears to have benn some refactoring around the mine runner
00:50 Kelsar git master behaves like 2016.11.0
00:50 hemebond Yeah, everything from 2016.11 has been merged into develop
00:52 ssplatt joined #salt
00:53 Kelsar guess i make it static for now
00:56 cachedout joined #salt
00:58 hemebond I can't figure out where or when the change was made.
00:58 hemebond You could just use a test in the Jinja.
00:58 hemebond If there is a "return" property, use that, otherwise you have a flat object.
00:58 ssplatt joined #salt
01:01 Kelsar i could do that indeed
01:01 Kelsar will sleep about it
01:01 Kelsar ty for your help
01:01 hemebond ????
01:01 Kelsar got some salt emerge bugs on my list... but who has the time ;)
01:04 spuder joined #salt
01:04 jimklo_ joined #salt
01:14 amontalban joined #salt
01:14 amontalban joined #salt
01:23 aarontc joined #salt
01:39 sh123124213 joined #salt
01:42 sh123124213 joined #salt
01:49 chowmeined joined #salt
01:57 fracklen joined #salt
02:00 oida joined #salt
02:03 edrocks joined #salt
02:06 Lionel_Debroux_ joined #salt
02:11 spuder joined #salt
02:11 mavhq joined #salt
02:29 catpigger joined #salt
02:39 shoemonkey joined #salt
02:40 fracklen joined #salt
02:48 ilbot3 joined #salt
02:48 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.4, 2016.11.1 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ (please don't multiline paste into channel) <+> See also: #salt-devel, #salt-offtopic <+> Ask with patience as we are volunteers and may not have immediate answers
02:52 evle3 joined #salt
02:56 anotherzero joined #salt
03:01 prg3 joined #salt
03:04 edrocks joined #salt
03:05 tpaul joined #salt
03:05 aarontc joined #salt
03:06 cliluw joined #salt
03:15 scoates joined #salt
03:15 amontalban joined #salt
03:15 amontalban joined #salt
03:35 bastiand1 joined #salt
03:37 stooj joined #salt
03:49 oida joined #salt
04:10 Tanta joined #salt
04:24 mavhq joined #salt
04:25 eprice joined #salt
04:28 iggy MTecknology: thought about using an engine?
04:30 MTecknology I never really understood what an engine is for
04:31 hemebond e.g., the SQS engine watches an AWS SQS queue for events.
04:35 MTecknology ah, so a git engine watching for git pushes instead of the git server creating events for the master?
04:36 rem5 joined #salt
04:40 mavhq joined #salt
04:41 NV joined #salt
04:57 spuder joined #salt
05:02 darthzen joined #salt
05:06 edrocks joined #salt
05:15 drags joined #salt
05:32 debian112 joined #salt
05:39 swills joined #salt
05:40 Lionel_Debroux joined #salt
06:02 J0hnSteel joined #salt
06:18 amontalban joined #salt
06:18 amontalban joined #salt
06:27 swills joined #salt
06:29 DEger joined #salt
06:31 DEger joined #salt
06:53 samodid joined #salt
06:56 cprior joined #salt
07:03 mavhq joined #salt
07:08 preludedrew joined #salt
07:13 cyborg-one joined #salt
07:17 fracklen joined #salt
07:21 chowmein__ joined #salt
07:21 fracklen joined #salt
07:23 fracklen joined #salt
07:25 onlyanegg joined #salt
07:25 fracklen joined #salt
07:27 eprice joined #salt
07:32 sh123124213 joined #salt
07:37 chowmeined joined #salt
07:41 bocaneri joined #salt
07:49 inad922 joined #salt
08:06 systemexit joined #salt
08:14 fracklen joined #salt
08:21 mavhq joined #salt
08:26 onlyanegg joined #salt
08:27 mavhq joined #salt
08:29 bltmiller joined #salt
08:44 Dinnerbone1 joined #salt
08:59 mavhq joined #salt
09:09 edrocks joined #salt
09:10 Miouge joined #salt
09:18 Trauma joined #salt
09:20 amontalban joined #salt
09:20 amontalban joined #salt
09:33 debian112 joined #salt
09:40 mavhq joined #salt
09:51 debian112 joined #salt
10:01 mavhq joined #salt
10:03 mikecmpbll joined #salt
10:04 Miouge joined #salt
10:11 ronnix joined #salt
10:17 systemexit left #salt
10:26 onlyanegg joined #salt
10:27 fracklen joined #salt
10:33 ivanjaros joined #salt
10:33 mavhq joined #salt
10:40 mavhq joined #salt
10:47 mavhq joined #salt
10:53 mavhq joined #salt
11:09 chowmeined joined #salt
11:10 DEger joined #salt
11:16 Miouge joined #salt
11:16 mavhq joined #salt
11:23 catpig joined #salt
11:31 eprice joined #salt
11:34 cprior joined #salt
11:35 mavhq joined #salt
11:51 mavhq joined #salt
11:52 cprior When I install with bootstrap like this:
11:53 cprior sh bootstrap-salt.sh -J '{"fileserver_backend":["roots","git"],"log_level":"warning"}' -j '{"pillar_opts":"True"}' -M
11:53 cprior then I get the rather unorthodox config file without leading spaces!?!
11:54 cprior fileserver_backend:
11:54 cprior - roots
11:54 cprior - git
11:55 mavhq joined #salt
11:55 cprior When I look in the sourcecode it seems at https://github.com/saltstack/salt/blob/develop/salt/config/__init__.py#L1744 the config files are read with yaml.safe_load(...
11:56 cprior If I make tests with PyYAML it seems that the syntax of fileserver_backend with the "dashed list" without leading spaces is read in corrctly.
11:57 cprior But I would like to double/check with you if that is reall syntactically correct? I have so far always used YAML with indentation in the - lists, only in Markdown I am used to "un-indented dashed lists"
11:58 cprior I only found online descriptions on how others used the bootstrap option -J with "flat" key-value pairs.
11:59 cprior Can anybody assure me I do not shoot myself into the foor with bootstrap-salt.sh -J '{"fileserver_backend":["roots","git"],"log_level":"warning"}' ... ?
12:00 cprior (It seems to work, that's not the problem. I am just afraid... *g*)
12:05 moeyebus9 joined #salt
12:06 cliluw joined #salt
12:08 samodid joined #salt
12:10 amontalban joined #salt
12:10 amontalban joined #salt
12:11 edrocks joined #salt
12:12 mavhq joined #salt
12:18 mavhq joined #salt
12:18 cyteen joined #salt
12:20 Lionel_Debroux_ joined #salt
12:23 mikecmpbll joined #salt
12:27 onlyanegg joined #salt
12:31 mavhq joined #salt
12:34 ronnix_ joined #salt
12:34 sh123124213 joined #salt
12:52 shoemonkey joined #salt
12:58 lompik joined #salt
12:59 tapoxi joined #salt
13:09 debian112 joined #salt
13:10 DEger joined #salt
13:11 mavhq joined #salt
13:15 fracklen joined #salt
13:17 sh123124213 joined #salt
13:22 DEger joined #salt
13:29 debian112 joined #salt
13:46 sh123124213 joined #salt
13:51 mavhq joined #salt
13:53 sh123124213 joined #salt
13:56 sh123124213 joined #salt
14:06 mikecmpbll joined #salt
14:11 sh123124213 joined #salt
14:13 edrocks joined #salt
14:16 abednarik joined #salt
14:19 mavhq joined #salt
14:28 onlyanegg joined #salt
14:28 debian112 joined #salt
14:30 patrek joined #salt
14:33 sh123124213 joined #salt
14:33 eprice joined #salt
14:34 kjsaihs joined #salt
14:37 moy joined #salt
14:37 ToeSnacks joined #salt
14:47 Kelsar joined #salt
14:54 Kelsar joined #salt
14:55 hoonetorg joined #salt
14:55 debian112 joined #salt
15:10 nidr0x joined #salt
15:12 mavhq joined #salt
15:14 rem5 joined #salt
15:15 mavhq joined #salt
15:17 candyman88 joined #salt
15:18 Kelsar can i use pillar data in jinja inside the pillar?
15:19 hosttor joined #salt
15:20 mavhq joined #salt
15:21 AndreasLutro no
15:22 Kelsar thought so
15:23 nidr0x joined #salt
15:24 chowmein__ joined #salt
15:25 cyteen joined #salt
15:34 mavhq joined #salt
15:40 mavhq joined #salt
15:43 cachedout joined #salt
15:44 onlyanegg joined #salt
15:49 mavhq joined #salt
15:57 shoemonkey joined #salt
16:01 DEger joined #salt
16:02 scoates joined #salt
16:22 cachedout joined #salt
16:25 sjorge joined #salt
16:25 sjorge joined #salt
16:32 Kelsar i don't get it, how do i turn "ssh.user_keys user=root pubfile=/root/.ssh/id_ecdsa-sha2-nistp256.pub prvfile=False" into a proper mine_function?
16:41 Kelsar got it, nvm
16:42 mavhq joined #salt
16:47 chowmeined joined #salt
16:59 onlyanegg joined #salt
17:00 arif-ali joined #salt
17:01 mavhq joined #salt
17:07 mavhq joined #salt
17:07 cachedout joined #salt
17:11 ssplatt joined #salt
17:15 shoemonkey joined #salt
17:15 amcorreia joined #salt
17:15 edrocks joined #salt
17:17 onlyanegg joined #salt
17:18 mavhq joined #salt
17:23 heyimawesome joined #salt
17:32 mavhq joined #salt
17:34 amcorreia joined #salt
17:36 eprice joined #salt
17:44 evle1 joined #salt
17:53 * iggy smashes a cake in MTecknology's face
17:55 iggy cprior: it should be okay... if the version of pyyaml supports that correctly (i.e. if it's working it's going to continue to work)
17:56 iggy only older versions of pyyaml didn't
17:59 onlyanegg joined #salt
18:03 sarlalian joined #salt
18:10 DEger joined #salt
18:14 Tanta joined #salt
18:17 one joined #salt
18:20 Nahual joined #salt
18:25 nledez joined #salt
18:25 nledez joined #salt
18:30 johnkeates joined #salt
18:32 cyborg-one joined #salt
18:38 cyteen joined #salt
18:39 Miouge joined #salt
18:39 Miouge left #salt
18:54 mavhq joined #salt
18:56 pipps joined #salt
19:02 onlyanegg joined #salt
19:09 PatrolDoom joined #salt
19:14 mavhq joined #salt
19:20 Miouge joined #salt
19:22 mavhq joined #salt
19:25 sh123124213 joined #salt
19:31 ssplatt joined #salt
19:32 mavhq joined #salt
19:34 onlyanegg joined #salt
19:36 Straphka joined #salt
19:37 anthonyshaw joined #salt
19:37 abednarik joined #salt
19:40 eprice joined #salt
19:44 ivanjaros joined #salt
20:08 abednarik joined #salt
20:08 prg3 joined #salt
20:08 Miouge joined #salt
20:10 shoemonkey joined #salt
20:20 necronian joined #salt
20:21 nikogonzo joined #salt
20:22 mavhq joined #salt
20:37 austin_ joined #salt
21:02 Miouge joined #salt
21:06 mavhq joined #salt
21:12 mavhq joined #salt
21:19 edrocks joined #salt
21:21 ronnix joined #salt
21:21 hoonetorg joined #salt
21:26 PatrolDoom joined #salt
21:27 ilbot3 joined #salt
21:27 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.4, 2016.11.1 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ (please don't multiline paste into channel) <+> See also: #salt-devel, #salt-offtopic <+> Ask with patience as we are volunteers and may not have immediate answers
21:30 ronnix_ joined #salt
21:32 abednarik joined #salt
21:40 mavhq joined #salt
21:42 vodik joined #salt
21:44 kuromagi joined #salt
21:50 fracklen joined #salt
21:56 rem5 joined #salt
21:57 cyteen joined #salt
22:01 abednarik joined #salt
22:05 ronnix joined #salt
22:06 mavhq joined #salt
22:08 ronnix_ joined #salt
22:14 mavhq joined #salt
22:17 infrmnt joined #salt
22:20 robawt joined #salt
22:28 Miouge joined #salt
22:29 Miouge joined #salt
22:37 fracklen joined #salt
22:50 cyborg-one joined #salt
23:09 MTecknology iggy: Thanks! :D
23:17 ronnix joined #salt
23:17 nethershaw joined #salt
23:17 rem5_ joined #salt
23:18 Miouge joined #salt
23:26 sh123124213 joined #salt
23:33 cyteen joined #salt
23:34 rem5 joined #salt
23:37 nethershaw joined #salt
23:38 spuder joined #salt
23:39 Klas joined #salt
23:41 rem5 joined #salt
23:43 eprice joined #salt
23:45 rem5 joined #salt
23:48 Miouge joined #salt
23:52 rem5 joined #salt
23:53 rem5 joined #salt

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