Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-12-12

| 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:02 londo joined #salt
00:02 rideh joined #salt
00:02 McNinja joined #salt
00:02 nomeed joined #salt
00:02 PFault joined #salt
00:02 aarontc joined #salt
00:02 shalkie joined #salt
00:04 linovia joined #salt
00:05 onlyanegg joined #salt
00:08 pipps joined #salt
00:08 simonmcc joined #salt
00:09 packeteer joined #salt
00:10 chutzpah joined #salt
00:11 rylnd joined #salt
00:12 dragon788 joined #salt
00:13 cyteen_ joined #salt
00:14 pipps joined #salt
00:19 pipps joined #salt
00:22 pipps99 joined #salt
00:31 zerocoo__ joined #salt
00:38 zerocoolback joined #salt
00:44 Elizabeth joined #salt
00:46 llua` left #salt
01:01 kettlewell joined #salt
01:21 darix joined #salt
01:35 wevanscfi joined #salt
01:43 mschiff joined #salt
01:43 mschiff joined #salt
01:57 flaviozavier joined #salt
01:58 monokrome joined #salt
02:01 bigjazzsound1 joined #salt
02:01 monokrome joined #salt
02:07 monokrome joined #salt
02:27 threwahway joined #salt
02:31 pipps joined #salt
02:31 threwahway_ joined #salt
02:33 pipps99 joined #salt
02:57 ilbot3 joined #salt
02:57 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
03:00 nomeed joined #salt
03:03 akar joined #salt
03:08 zerocoolback joined #salt
03:17 pipps joined #salt
03:17 evle2 joined #salt
03:24 noobiedubie joined #salt
03:32 onlyanegg joined #salt
03:33 aphor Question: why do the Mac LaunchDaemon plist files run a one-line bash script that only execs a salt daemon? Why not just put the command in the plist?
04:25 akar joined #salt
04:29 tiwula joined #salt
04:33 zerocoolback joined #salt
04:34 zerocoolback joined #salt
04:37 zerocoolback joined #salt
04:47 pppingme joined #salt
04:51 shiranaihito joined #salt
04:52 zerocoolback joined #salt
04:54 onlyaneg1 joined #salt
05:05 shripadr joined #salt
05:18 felskrone joined #salt
05:24 mk-fg joined #salt
05:24 mk-fg joined #salt
05:39 threwahway joined #salt
05:42 threwahway_ joined #salt
05:54 zerocoolback joined #salt
06:01 AssPirate joined #salt
06:28 indistylo joined #salt
06:33 akar joined #salt
06:39 mavhq joined #salt
06:54 threwahway joined #salt
06:55 Ricardo1000 joined #salt
06:57 DanyC joined #salt
07:01 onlyanegg joined #salt
07:06 ECDHE_RSA_AES256 joined #salt
07:07 pualj joined #salt
07:08 Oida joined #salt
07:09 threwahway_ joined #salt
07:34 Yoda-BZH joined #salt
07:34 Yoda-BZH joined #salt
07:36 do3meli joined #salt
07:36 do3meli left #salt
07:47 monokrome joined #salt
07:54 aldevar joined #salt
07:57 Tucky joined #salt
08:00 aldevar1 joined #salt
08:07 onlyanegg joined #salt
08:07 k_sze[work] joined #salt
08:08 toanju joined #salt
08:15 seano joined #salt
08:15 Hybrid1 joined #salt
08:17 seano joined #salt
08:19 hoonetorg joined #salt
08:20 yuhl joined #salt
08:28 seano joined #salt
08:37 robman joined #salt
08:44 Gareth joined #salt
08:46 supermike___ joined #salt
08:46 m0nky joined #salt
09:01 Manor joined #salt
09:02 Manor_ joined #salt
09:08 xist joined #salt
09:17 netcho :Dmoin all
09:26 DanyC joined #salt
09:28 Manor joined #salt
09:31 Manor__ joined #salt
09:34 Mattch joined #salt
09:35 felskrone joined #salt
09:35 xist joined #salt
09:36 akar moin2
09:40 netcho joined #salt
09:40 netcho joined #salt
09:40 xist joined #salt
09:41 sol7 joined #salt
09:44 toanju joined #salt
09:45 pbandark joined #salt
09:48 aidin joined #salt
09:48 _KaszpiR_ joined #salt
09:51 mbologna joined #salt
09:58 oida joined #salt
10:02 onlyanegg joined #salt
10:05 dmadrisan joined #salt
10:08 dmadrisan joined #salt
10:29 _KaszpiR_ joined #salt
10:41 aldevar joined #salt
10:54 mikecmpbll joined #salt
10:59 wonko21 joined #salt
11:00 _KaszpiR_ joined #salt
11:01 akar left #salt
11:01 threwahway joined #salt
11:11 aidin joined #salt
11:14 robman joined #salt
11:23 aidin joined #salt
11:24 Manor joined #salt
11:32 shripadr_ joined #salt
11:43 Manor_ joined #salt
11:53 zerocoolback joined #salt
11:54 zerocoolback joined #salt
11:54 _KaszpiR_ joined #salt
12:03 onlyanegg joined #salt
12:11 kettlewell joined #salt
12:30 robman joined #salt
12:32 _KaszpiR_ joined #salt
12:44 robman joined #salt
13:04 Moromete joined #salt
13:11 GrisKo joined #salt
13:38 saltslackbridge <james> Can an outputter alter the `ERROR: Minions returned with non-zero exit code` text?
13:39 RandyT joined #salt
13:39 RandyT joined #salt
13:49 pcn Good question.  Have you tried?
13:50 gh34 joined #salt
14:01 aphor https://github.com/saltstack/salt/blob/28e1160c41ab7b2b0865265b1c199477165cb896/salt/cli/salt.py#L210 <-- "Minions returned with non-zero exit code"
14:04 onlyanegg joined #salt
14:05 robman joined #salt
14:06 wonko21 joined #salt
14:15 justanotheruser joined #salt
14:18 justanotheruser joined #salt
14:23 darioleidi joined #salt
14:26 v12aml joined #salt
14:43 edrocks joined #salt
14:44 user-and-abuser joined #salt
14:45 cgiroua joined #salt
14:49 cgiroua joined #salt
14:53 Hybrid1 joined #salt
15:00 jeremytiki joined #salt
15:02 promorphus_home joined #salt
15:02 netcho_ joined #salt
15:06 jeremytiki Good morning everyone. I was hoping someone could help me figure out what is causing this issue: https://gist.github.com/anonymous/34cc6dccf6afd39b17d50af5d793ab32
15:06 ouemt joined #salt
15:07 jeremytiki In the gist, the first set of output is from a state.apply on one of my minions. As you can see the output comes out distinctly different than the default settings (shown in the second example "Expected ouput example") and I'm not sure why.
15:08 cgiroua joined #salt
15:09 Manor joined #salt
15:15 aphor @jeremytiki python-prod1.frostburg.edu has a state asigned to it via top.sls "cmd_|-Development Tools_|-yum groupinstall 'Development Tools' -y_|-run"
15:16 aphor so when you state.apply, it tries to do that.
15:16 _KaszpiR_ joined #salt
15:17 aphor if you "salt python-prod1.frostburg.edu test.ping" what happens?
15:18 jeremytiki @aphor right I understand that what is happening in both instances,  that's not the issue. My question is about the *way* the information is outputting.
15:20 jeremytiki @aphor this might be a better example: https://gist.github.com/jeremytiki/713a067fdcd293d6068b6f9064806634
15:21 aphor what do you get if you use --out=json or --out=raw ?
15:22 saltslackbridge <james> I don't know how to access it pcn
15:23 saltslackbridge <james> It doesn't look like it's passed to the outputter
15:23 jeremytiki @aphor using —out=raw or —out=json does as expected
15:23 jeremytiki left #salt
15:24 jeremytiki joined #salt
15:25 aphor @jeremytiki: if raw/json out is good, then I'de expect you found quirks in the nested outputter. Try running the salt command on one minion with --log-level=trace and see if that provides some clues.
15:26 aphor https://github.com/saltstack/salt/blob/28e1160c41ab7b2b0865265b1c199477165cb896/salt/output/nested.py
15:27 xet7 joined #salt
15:29 seano joined #salt
15:35 mikecmpb_ joined #salt
15:41 cgiroua joined #salt
15:43 robman joined #salt
15:45 aidin joined #salt
15:51 cgiroua joined #salt
15:52 stefan____ joined #salt
15:53 slow joined #salt
15:56 datamaan joined #salt
15:57 wevanscfi joined #salt
15:57 datamaan Hi everyone. Is there a way to trigger a one-time command on a set of minions in a way that it gets executed even on hosts which are currently offline (they should execute it when they get back online)?
15:58 robman joined #salt
16:05 onlyanegg joined #salt
16:06 aldevar left #salt
16:07 aldevar1 joined #salt
16:08 pseudonymous joined #salt
16:08 Manor joined #salt
16:08 akar_ joined #salt
16:09 pipps joined #salt
16:13 JawnAuz joined #salt
16:14 netcho joined #salt
16:14 netcho joined #salt
16:15 pipps joined #salt
16:16 Manor_ joined #salt
16:16 pipps joined #salt
16:24 aldevar joined #salt
16:26 astronouth7303 so i'm trying to stand up a salt master/minion/api in travis, and for some reason, salt-api is spinning up but never listens to the configured port. https://travis-ci.org/astronouth7303/travis-salt/jobs/315076947
16:26 astronouth7303 (i probably just typoed a configuration option or something....
16:27 inetpro joined #salt
16:29 lordcirth_work datamaan, you can schedule stuff for a certain time, if you know the minions will all be online then.  other than that, I'm not aware of a built-in function
16:29 scbunn joined #salt
16:33 aphor @astronouth7303 salt-api reads its config from the master config. https://docs.saltstack.com/en/latest/ref/netapi/all/salt.netapi.rest_cherrypy.html#a-rest-api-for-salt
16:34 datamaan lordcirth_work: thats what I anticipated. handling that with normal states is probably the better option anyways. thanks
16:37 astronouth7303 aphor: yes, https://github.com/astronouth7303/travis-salt/blob/99fefab2fee4aadb357a943474ef1e4b9d610eba/states/master.sls#L15-L19
16:37 dev_tea datamaan: I think you can configure salt minions to run states on startup
16:38 dev_tea Yeah, here it is https://docs.saltstack.com/en/latest/ref/states/startup.html
16:38 dev_tea might not be perfect for your situation though
16:44 datamaan dev_tea: thanks. yes that is not perfect, but it is good enough to get the job done
16:48 aphor @astronouth7303 at the time you do "sudo netstat -ltp" also do a "lsof -p$( cat /var/run/salt-api.pid )"
16:49 tiwula joined #salt
16:49 aphor ... see what rest_cherrypy python is actually trying to bind, if anything.
16:50 * astronouth7303 waits on travis to build
16:55 jeremytiki joined #salt
16:55 akar___ joined #salt
17:03 mikecmpbll joined #salt
17:03 astronouth7303 aphor: not seeing anything in https://travis-ci.org/astronouth7303/travis-salt/jobs/315454547, double checking what salt actually produced for the master configuration
17:04 aphor I looked in the raw log, and what's there seemed OK.
17:06 akar joined #salt
17:09 astronouth7303 nope, the generated master config looks ok to me? https://travis-ci.org/astronouth7303/travis-salt/jobs/315460692
17:09 astronouth7303 (comparing it to my production config)
17:10 astronouth7303 unless salt-api has hard-coded silent security checks that get triggered by this configuration?
17:10 astronouth7303 oh, https://travis-ci.org/astronouth7303/travis-salt/jobs/315460692#L2895 is more direct
17:11 akar left #salt
17:14 onlyanegg joined #salt
17:21 Trauma_ joined #salt
17:27 zerocoolback joined #salt
17:29 seano joined #salt
17:30 seano joined #salt
17:32 DanyC joined #salt
17:34 DanyC_ joined #salt
17:39 miruoy joined #salt
17:40 jeremytiki joined #salt
17:41 Lionel_Debroux_ joined #salt
17:42 toanju joined #salt
17:43 pcn We're building an engine that reacts to AWS launching an instance via an autoscale group.
17:44 pcn We're finding that the job tracking doesn't seem to give us a clear signal that a highstate is running, or has run succesfully, etc.
17:48 oida joined #salt
17:59 mikecmpbll joined #salt
18:05 pierB joined #salt
18:05 pierB_ joined #salt
18:08 xet7 joined #salt
18:08 _JZ_ joined #salt
18:13 pierB_ Hi, I am looking for a way to use pillar data from inside a rochestrate state, anyone has a clue ?
18:14 pierB_ So far i've tried this but with no luck :
18:14 pierB_ - tgt: '{{ salt['pillar.get']('dns_name') }}'
18:14 saltslackbridge <gtmanfred> you would have to pass in the dns_name when the orchestrate is called
18:14 saltslackbridge <gtmanfred> salt-run state.orch deploy pillar=‘{“dns_name”: “whatever”}’
18:14 saltslackbridge <gtmanfred> orchestrate is rendered on the master, which you can’t assign pillars to
18:15 pierB_ OK that's what I thought
18:15 pierB_ I'll dig this track
18:16 pierB_ thanks a lot gtmanfred
18:16 saltslackbridge <gtmanfred> np
18:17 pierB_ So as an example, i am using the above described technique (by yourself :) ) to get the target container name as :
18:17 pierB_ runner.state.orchestrate:     - mods: orch.acd     - pillar:                                                                                                                                 vm_name: {{ data.name }}
18:17 pierB_ Do I have to use this kind of syntax :
18:18 pierB_ - pillar: '{{ salt['pillar.get']('dns_name') }}'
18:18 pierB_ Will this work ?
18:18 pierB_ (haven't tried yet cause my orch state is quite long to run ....)
18:23 saltslackbridge <gtmanfred> no
18:23 saltslackbridge <gtmanfred> the first one should be correct
18:24 pierB_ Soory, the first one you're talking about is "vm_name: {{ data.name }}" ?
18:24 pierB_ but I need to get data from my pillar
18:25 pierB_ My master is also a minion which has access to this specific pillar (dns_name)
18:26 pierB_ I am using this "vm_name: {{ data.name }}" now so I know it to be working but I do not know how to get data from an actual pillar
18:29 wenzel62 joined #salt
18:32 rburkholder joined #salt
18:35 wenzel62 left #salt
18:36 saltslackbridge <gtmanfred> but the format is correct, it needs to be on a newline with a thing that it is assigned to in the dictionary
18:37 saltslackbridge <gtmanfred> otherwise, your second example would just be - pillar: whatever
18:38 DanyC joined #salt
18:40 DanyC joined #salt
18:43 wongster80 joined #salt
18:47 cgiroua joined #salt
18:48 edrocks joined #salt
18:49 edrocks joined #salt
18:57 ymasson joined #salt
18:58 Nazca joined #salt
19:03 revellion Anyone here familiar with the mongo master_tops module?, i'm curious if it's able to handle multiple saltenvironments or just a single one?
19:07 aviau joined #salt
19:12 KevinAn2757 joined #salt
19:20 jeremytiki joined #salt
19:29 k_sze[work] joined #salt
19:31 colabeer joined #salt
19:31 aldevar joined #salt
19:34 saltslackbridge <james> How do I pass args to an outputtet?
19:34 saltslackbridge <james> Outputter too
19:36 saltslackbridge <gtmanfred> you could use `display_output` directly? https://github.com/saltstack/salt/blob/2017.7/salt/output/__init__.py#L86
19:36 saltslackbridge <gtmanfred> https://github.com/saltstack/salt/issues/44574
19:40 saltslackbridge <james> Is that not something that can be done at the CLI?
19:47 tom[] can an orchestration sls write status messages to the term the salt-run state.orch as it progresses?
19:48 masuberu joined #salt
19:48 tom[] i have a daily task started by systemd that takes a couple of hours and i'd like to write something to the journal as it progresses
19:49 cgiroua joined #salt
19:51 klaas joined #salt
19:51 hemebond1 joined #salt
20:09 ecdhe joined #salt
20:20 pipps joined #salt
20:21 pualj joined #salt
20:26 Trauma_ joined #salt
20:30 pcgod_ left #salt
20:30 pcgod joined #salt
20:32 pipps99 joined #salt
20:33 Xenophon1 joined #salt
20:33 aphor_ joined #salt
20:34 Arendtse1 joined #salt
20:34 Trauma_ joined #salt
20:36 ahrs joined #salt
20:36 sol7 joined #salt
20:36 stotch joined #salt
20:37 cswang joined #salt
20:37 nku joined #salt
20:37 Trauma_ joined #salt
20:37 esharpmajor joined #salt
20:37 elektrix joined #salt
20:37 __number5__ joined #salt
20:38 astronouth7303 if i'm writing a custom state module, and i can express it in terms of other states, should I implement it against its execution module or as the composed states?
20:38 RandyT joined #salt
20:38 RandyT joined #salt
20:39 KennethWilke joined #salt
20:39 saltslackbridge <gtmanfred> it depends on the end goal, but either one works
20:39 packeteer joined #salt
20:39 NV joined #salt
20:39 vaelen joined #salt
20:39 c4rc4s joined #salt
20:39 astronouth7303 i'm basically managing data in a specific schema i happen to be storing in the grains (but i consider that fact to be more of an internal detail)
20:39 mr_kyd joined #salt
20:40 wryfi joined #salt
20:40 hemebond joined #salt
20:40 nomeed joined #salt
20:40 twiedenbein joined #salt
20:40 Processus42 joined #salt
20:40 eac joined #salt
20:40 dmaphy joined #salt
20:40 nixjdm joined #salt
20:40 rtr63gdh[m] joined #salt
20:40 brent joined #salt
20:40 shortdudey123 joined #salt
20:40 ponyofdeath joined #salt
20:40 astronouth7303 (it's basically a form of discovery)
20:40 chesty joined #salt
20:40 saltslackbridge <gtmanfred> Yeah, i would use the states if possible, but using the modules is fine
20:40 cyteen_ joined #salt
20:41 chutzpah joined #salt
20:41 hackel joined #salt
20:42 APLU joined #salt
20:42 dnull joined #salt
20:43 astronouth7303 # spam.registered
20:43 astronouth7303 "spam:{{data.name}}":
20:43 astronouth7303 grains.present:
20:43 astronouth7303 - value: {{data.eggs}}
20:43 astronouth7303 ---
20:43 astronouth7303 # spam.deregistered
20:43 shortdudey123 joined #salt
20:43 Trauma_ joined #salt
20:44 astronouth7303 oops, that was supposed to be a text snippet, and it wasn't done :/
20:44 oida joined #salt
20:45 astronouth7303 is there a way to call other states? Or do I just do python imports?
20:45 leev joined #salt
20:45 nkuttler joined #salt
20:45 daks joined #salt
20:45 Kax joined #salt
20:45 sybix joined #salt
20:45 fleaz joined #salt
20:45 robinsmidsrod joined #salt
20:46 Manor joined #salt
20:46 dograt joined #salt
20:46 georgemarshall joined #salt
20:46 pipps joined #salt
20:47 astronouth7303 (i've already written the execution module for this)
20:47 pipps joined #salt
20:47 kiorky joined #salt
20:50 jeremytiki joined #salt
20:51 saltslackbridge <james> __salt__['mod.foo']*(args)
20:51 saltslackbridge <james> Bad position on the  *
20:51 saltslackbridge <james> But that should do it if typed correctly
20:51 saltslackbridge <james> Damn my big thumbs
20:52 k1412 joined #salt
20:53 astronouth7303 got it, it's __states__
20:53 astronouth7303 james: __salt__ is execution modules
20:54 saltslackbridge <james> Sorry, I misread
20:54 saltslackbridge <james> But that's good to know!
20:54 saltslackbridge <james> __states__ I mean
20:55 astronouth7303 yeah, i've got it sorted. not happy with the lack of DRY, but it's <75LOC between both the state and execution modules, so I'm not going to stress myself about it
21:03 RandyT joined #salt
21:03 RandyT joined #salt
21:06 yujunz joined #salt
21:07 ksa joined #salt
21:07 Akkarin joined #salt
21:07 J0hnSteel joined #salt
21:07 ThomasJ|d joined #salt
21:08 joshin joined #salt
21:08 joshin joined #salt
21:08 Diaoul joined #salt
21:11 yujunz joined #salt
21:15 yujunz joined #salt
21:17 Manor joined #salt
21:23 edrocks joined #salt
21:24 DammitJim joined #salt
21:26 Manor joined #salt
21:31 dagb joined #salt
21:39 NV joined #salt
21:41 dagb joined #salt
21:44 saltslackbridge <james> Is the `duration` in a state output in seconds or milliseconds?
21:44 saltslackbridge <james> I'm guessing ms...
21:44 saltslackbridge <gtmanfred> doesn’t it say ms next to it?
21:44 saltslackbridge <gtmanfred> i just saw one this morning that did
21:45 saltslackbridge <james> oh yeah, I'm being dumb
21:45 saltslackbridge <james> I'm writing an outputter so I just saw `['duration']` but didn't think of running the state with the normal outputter
21:45 saltslackbridge <james> It's late.
21:53 seanorama joined #salt
21:54 Nazca joined #salt
22:02 edrocks joined #salt
22:04 _KaszpiR_ joined #salt
22:04 aldevar left #salt
22:18 seano joined #salt
22:24 xet7 joined #salt
22:31 Manor joined #salt
22:45 stickyfingaz joined #salt
22:53 pipps joined #salt
22:58 pipps joined #salt
23:04 rem5_ joined #salt
23:19 om2 joined #salt
23:32 Nahual joined #salt
23:33 pipps joined #salt
23:40 aerbax joined #salt

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