Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-11-03

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

All times shown according to UTC.

Time Nick Message
00:05 shortdudey123 joined #salt
00:06 Lenz joined #salt
00:13 robman joined #salt
00:24 rojem joined #salt
00:29 user-and-abuser joined #salt
00:37 dxiri joined #salt
00:45 johnj_ joined #salt
00:51 kellyp joined #salt
00:54 XenophonF I'm getting a `'NoneType' object is not iterable` error with the following code:
00:54 XenophonF `{% for mp in metadata_providers|default([]) %}`
00:54 XenophonF metadata_providers is set to None, that's expected
00:54 XenophonF but shouldn't the default filter change that?
00:55 hemebond "If the value is undefined it will return the passed default value, otherwise the value of the variable"
00:55 hemebond If you've defined it as None then it's defined.
00:56 hemebond Not sure if None evaluates to False.
00:56 hemebond If it did, your code would work.
00:56 hemebond Oh, try `{% for mp in metadata_providers|default([], True) %}`
00:56 hemebond (make that a lowercase true)
00:59 hemebond http://jinja.pocoo.org/docs/2.9/templates/#default
00:59 teratoma joined #salt
00:59 edrocks joined #salt
00:59 chowmeined joined #salt
01:01 XenophonF yeah, metadata_providers is defined as a macro argument with a default value of None
01:06 XenophonF thanks hemebond am trying that now
01:23 XenophonF that did the trick
01:23 XenophonF thanks for the clue
01:24 XenophonF man i'm so close to getting this new config file renderer working
01:25 XenophonF i really wish file.serialize supported xml_badgerfish
01:33 bstevenson joined #salt
01:39 zerocoolback joined #salt
01:42 ponyofdeath joined #salt
01:46 johnj_ joined #salt
01:47 seanz joined #salt
01:49 RandyT joined #salt
01:49 RandyT joined #salt
02:06 nomeed joined #salt
02:13 zerocoolback joined #salt
02:55 johnj_ joined #salt
02:56 ilbot3 joined #salt
02:56 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:04 nomeed joined #salt
03:08 sp0097 joined #salt
03:08 Lenz joined #salt
03:14 XenophonF OMG it might actually have worked!
03:15 XenophonF yeah!
03:15 XenophonF it lives!
03:15 XenophonF now I just need to wire the SP up to my IdP
03:32 kellyp joined #salt
03:47 evle2 joined #salt
03:49 johnj_ joined #salt
04:02 chutzpah joined #salt
04:12 Praematura joined #salt
04:48 SkyRocknRoll joined #salt
04:50 johnj_ joined #salt
05:13 jfelchner joined #salt
05:32 LocaMocha joined #salt
05:51 johnj_ joined #salt
05:53 impi joined #salt
05:55 salt_boon joined #salt
06:04 lastjedi joined #salt
06:05 mikecmpbll joined #salt
06:11 salt_boon hello! does anyone know how to check if state.highstate run successfully when using "startup_state: highstate" in the salt minion? I spin up my salt-minion dynamically and need to find out when the minion is ready for use.
06:25 zerocool_ joined #salt
06:29 aldevar joined #salt
06:33 maestropandy joined #salt
06:41 felskrone joined #salt
06:44 lubyou joined #salt
06:48 maestropandy1 joined #salt
06:52 zerocoolback joined #salt
06:52 johnj_ joined #salt
07:00 cyteen joined #salt
07:19 coredumb salt_boon: not sure if there's a way apart checking the result of the job id on the master
07:24 Miouge joined #salt
07:24 _KaszpiR_ joined #salt
07:26 ntropy salt_boon: maybe you can send an event at the end of highstate?  so you know the node is ready when the event arrives
07:29 jas02 joined #salt
07:30 do3meli joined #salt
07:30 do3meli left #salt
07:32 kellyp joined #salt
07:39 aviau joined #salt
07:50 obitech joined #salt
07:53 johnj joined #salt
07:57 impi joined #salt
08:00 vb29 joined #salt
08:01 vb29 Hi
08:02 vb29 I am trying to run salt-call on a windows machine...does anybody know where is file_root located for windows machine?
08:03 vb29 or will I have to pass it as an argument along with the command?
08:05 obitech vb29 you can pass it along with --file-root=FILE_PATH
08:05 obitech https://docs.saltstack.com/en/latest/ref/cli/salt-call.html
08:05 gareth_ joined #salt
08:07 vb29 obitech: Okay! so I wil have to pass it along the command
08:07 vb29 thanks for the reply
08:07 vb29 :)
08:09 obitech you could also create a config folder with configs in it (similar to the salt-ssh config dir) and pass it with: salt-call --config-dir=CONFIG_DIR
08:10 vb29 ok...I will check that option as well
08:23 Hybrid joined #salt
08:24 Ricardo1000 joined #salt
08:25 kellyp joined #salt
08:33 daks joined #salt
08:38 daks joined #salt
08:41 daks joined #salt
08:45 jas02 joined #salt
08:48 daks joined #salt
08:48 daks joined #salt
08:54 johnj joined #salt
08:56 zer0def joined #salt
09:03 Praematura joined #salt
09:08 robman joined #salt
09:12 mikecmpbll joined #salt
09:14 _KaszpiR_ joined #salt
09:15 jrenner left #salt
09:17 jrenner joined #salt
09:18 pbandark joined #salt
09:22 Naresh joined #salt
09:35 maestropandy joined #salt
09:38 N-Mi joined #salt
09:38 N-Mi joined #salt
09:41 bstevenson joined #salt
09:51 kjelle_ joined #salt
09:55 johnj joined #salt
10:06 hoonetorg joined #salt
10:26 kbaikov joined #salt
10:28 kbaikov[m] joined #salt
10:42 aldevar joined #salt
10:46 Praematura joined #salt
10:52 Praematura joined #salt
10:56 johnj joined #salt
10:58 Tyrant joined #salt
11:25 hammer065 joined #salt
11:29 macfly joined #salt
11:34 lastjedi joined #salt
11:57 johnj joined #salt
12:09 Nahual joined #salt
12:10 sathya joined #salt
12:11 sathya joined #salt
12:14 DammitJim joined #salt
12:16 kellyp joined #salt
12:36 rburkholder joined #salt
12:45 jrenner joined #salt
12:58 johnj joined #salt
13:05 gh34 joined #salt
13:06 aldevar joined #salt
13:09 mrueg joined #salt
13:09 ahrs joined #salt
13:10 mchlumsky joined #salt
13:15 morgana2313 joined #salt
13:15 cgiroua joined #salt
13:28 morgana2313 joined #salt
13:29 morgana2313 hello! The lxd-formula has an execute commando:  salt-call  lxd.container_execute container_name '["date"]' works just fine. How can I execute a statement like this from a state file? {% salt.lxd.container_execute('container_name',"date") %} gives a  Jinja syntax error: Encountered unknown tag 'salt'.
13:30 skinkitten joined #salt
13:31 sathya joined #salt
13:32 sathya joined #salt
13:43 user-and-abuser joined #salt
13:43 yuhl joined #salt
13:46 sp0097 joined #salt
13:53 Praematura joined #salt
13:59 johnj joined #salt
14:00 Mattch joined #salt
14:04 ouemt joined #salt
14:05 usernkey joined #salt
14:06 yuhl joined #salt
14:07 edrocks joined #salt
14:13 threwahway joined #salt
14:13 edrocks joined #salt
14:21 numkem joined #salt
14:21 ccha hello, I updated salt from 2017.7.0 to 2017.7.2 and now salt-api defunct with with error
14:21 ccha salt-api: AttributeError: 'module' object has no attribute 'exposed'
14:25 dRiN joined #salt
14:27 Brew joined #salt
14:28 ccha ok fixed it
14:28 ccha there is an update for python-cherrypy too
14:31 sp0097 joined #salt
14:32 salt_boon thank you core_dumb and ntropy
14:36 Praematura joined #salt
14:38 Guest61169 joined #salt
14:52 fatal_exception joined #salt
14:52 numkem joined #salt
14:54 Ricardo1000 joined #salt
14:56 robman joined #salt
14:58 tapoxi joined #salt
15:00 johnj joined #salt
15:02 mikecmpbll joined #salt
15:03 Ricardo1000 joined #salt
15:06 racooper joined #salt
15:08 XenophonF joined #salt
15:13 bstevenson joined #salt
15:22 tiwula joined #salt
15:23 noobiedubie joined #salt
15:25 sp0097 joined #salt
15:29 pierB joined #salt
15:34 pierB left #salt
15:35 pierB joined #salt
15:35 pierB_ joined #salt
15:37 pierB_ left #salt
15:38 pierB_ joined #salt
15:38 pierB_ hi
15:38 pierB_ I am currently looking for a way to use the smtp returner from within a state file
15:38 pierB_ Is it possible ?
15:39 pierB_ I do not want to set a smtp returner globally, I'd love to be able to use it only to return a specific salt job data
15:40 XenophonF You can't.
15:41 Praematura joined #salt
15:42 threwahway joined #salt
15:51 pierB_ joined #salt
15:52 pierB_ Sorry my laptop just failed  Thanks foir the answer about using returner from within a state
15:52 cyborg-one joined #salt
15:54 Lenz joined #salt
15:55 XenophonF I checked the orchestrate runner, but it doesn't look like you can do it that way, either.
15:57 astronouth7303 morgana2313: use {{ ... }} or {% let var = ... %}
15:58 XenophonF ^ {% set var = ... %}
15:58 astronouth7303 i'm still working on this mornging's coffee :P
15:58 XenophonF :D
16:01 johnj joined #salt
16:03 tapoxi pierB_: I use a runner
16:04 tapoxi the runner kicks off states and returns the results via slack, but you could also return via smtp
16:05 tapoxi er, my runner returns via slack. its basically writing a script in python against the salt api
16:07 pierB_ @tapoxi thanks for the tips ! I doubt i'll be able to do the same, I am not really good in python scripts....
16:08 vexati0n what's the Salt module that makes my boss stop complaining about me showing up later than he'd like in the mornings
16:08 pierB_ I am wondering if a reactor could do this kind of job ....
16:08 skeeved joined #salt
16:09 pierB_ vexati0n: Try the job.change module ;)
16:11 kellyp joined #salt
16:12 astronouth7303 clearly i need to replace my current salt-api environment with chatops
16:13 Lenz joined #salt
16:20 Praematura joined #salt
16:31 Heartsbane joined #salt
16:31 Heartsbane joined #salt
16:32 eightyeight joined #salt
16:44 wongster80 joined #salt
16:47 nixjdm joined #salt
16:51 jdshewey joined #salt
16:57 Praematura joined #salt
16:58 xet7 joined #salt
16:59 aldevar joined #salt
17:02 johnj_ joined #salt
17:04 morgana2313 Hmmmm.. {{ salt.lxd.container_execute("container_name","date")  }} and {% set var = salt.lxd.container_execute("baseL1","date")   %} both seem to work (fails if I use a non-existing container_name), but still gives an error: Jinja error: First argument must be a list
17:09 dxiri joined #salt
17:13 bryan joined #salt
17:18 Praematura joined #salt
17:18 edrocks joined #salt
17:20 jdshewey joined #salt
17:23 jdshewey if I am using a wildcard to apply a list of states in my topfile to all the hosts in my env, how can I set an exclusion for a single state for a single host? I tried using https://docs.saltstack.com/en/latest/ref/states/include.html but it doesn't seem to work.
17:23 pipps joined #salt
17:26 astronouth7303 if morgana comes back, https://github.com/pcdummy/saltstack-lxd-formula/blob/master/_modules/lxd.py#L1804-L1849
17:27 Praematura joined #salt
17:28 vexati0n I don't suppose anyone here has used Salt to activate OSSEC agents before...
17:28 jdshewey @vexati0n: I have.
17:28 jdshewey Well, at least to install the client. We still manually do the keying because the OSSEC server is hosted by another department.
17:29 vexati0n yeah. the install is easy. I need to run manage_agents through cmd
17:29 vexati0n on the client side
17:29 vexati0n when I try echoing "y" at it (or using "stdin" parameter), it just gurgles "Added" followed by "Input too large. Not adding"
17:29 jdshewey I believe if you have the key, you can just stick it in the config file. I think the trick is generating the key. I haven't played around with that.
17:30 vexati0n If I echo it to client.keys, it says "error reading authentication key" and "no remote connection defined"
17:33 DammitJim joined #salt
17:35 jdshewey you can't just straight echo it. client keys has the format: ID# hostname 192.168.1.1 osseckey
17:35 jdshewey and no remote connection defined makes it sound like you didn't use the unattended installer to set the OSSEC server: http://ossec-docs.readthedocs.io/en/latest/manual/installation/install-source-unattended.html
17:37 vexati0n yeah, the keys file is in that format with the exported key from the server. why would it matter whether the server was using an unattended or manual setup? it's running either way
17:38 jdshewey It wouldn't. It just make it sound like it can't find the server - like something is wrong with DNS or ossec.conf
17:39 jdshewey ...or firewalld
17:42 rickflare saltconf has been amazing!
17:43 vexati0n the ossec manager works fine, it's been tested with manually deployed clients.
17:47 jdshewey ¯\_(ツ)_/¯ - this says to make sure you don't haven any extra line returns: https://github.com/wazuh/wazuh-puppet/issues/7
17:47 jdshewey Otherwise, maybe upload the keys file to pastebin?
17:49 vexati0n the keys file is fine. If i delete it and run the manage_agents command, it generates the key file itself
17:49 vexati0n but it still won't start
17:49 mpanetta joined #salt
17:51 jdshewey are you still getting "error reading authentication key?" or just "no remote connection defined"?
18:03 johnj_ joined #salt
18:09 lastjedi joined #salt
18:11 yuhl joined #salt
18:19 edrocks joined #salt
18:22 edrocks joined #salt
18:33 pmcg joined #salt
18:43 cyborg-one joined #salt
18:44 pipps joined #salt
18:58 threwahway joined #salt
19:04 johnj_ joined #salt
19:09 aldevar joined #salt
19:09 jdshewey So, if I apply the salt state on the master, I get "State 'pkg.latest' was not found in SLS 'foo'" but if I do salt-call from the minion, everything works OK with no problem.
19:09 jdshewey anyone ever seen this?
19:13 babilen What are the respective commands?
19:16 jfelchner joined #salt
19:17 jdshewey @babilen: state.apply
19:18 jdshewey sudo salt "hostname*" sat.apply and sudo salt-call state.apply respectively.
19:21 mechleg jdshewey: is the minion somehow possibly configured to use local files instead of connecting to the master?
19:21 jdshewey no
19:22 jdshewey I can ping it from the master and do cmd.run on that minion
19:23 jdshewey I also return identical PYTHONPATH results whether I use salt-call or the master (using cmd.run)
19:26 fenderblender93 joined #salt
19:27 fenderblender93 left #salt
19:27 nomeed joined #salt
19:28 fenderblender joined #salt
19:31 babilen jdshewey: No way to really tell without actual output/logs from the minion -- might want to use salt-call -ldebug
19:32 babilen (and compare that to what the minion is doing if you execute the state from the master)
19:32 babilen Run the minion with "salt-minion -ldebug" too
19:32 cgiroua joined #salt
19:33 ChubYann joined #salt
19:35 edrocks joined #salt
19:35 noobiedubie joined #salt
19:41 whytewolf Jdshewey does test.versions match for both?
19:53 _KaszpiR_ joined #salt
19:56 XenophonF Is there a way to copy files from a minion to the master?
19:56 XenophonF I'd use sftp but it's broken for some unknown reason.
19:57 astronouth7303 minions do cache saltfs stuff
19:57 astronouth7303 whytewolf has an orch file to help with that
19:57 jdshewey That's weird. It works if I restart the service.
19:58 astronouth7303 yeah, sounds like caching problems
19:58 astronouth7303 iirc, the cache expires after 10min
19:58 astronouth7303 https://github.com/whytewolf/salt-phase0-orch/blob/master/orch/sys/salt/update.sls
19:59 astronouth7303 or: `salt '*' saltutil.sync_all`
20:00 astronouth7303 i ran into similar problems when i first got started. it's now a thing that happens whenever i push to the gitfs repo
20:00 NeoXiD joined #salt
20:01 whytewolf Mynorch is a little more then just cache. It is a full minion-master update for syncing after git updates
20:02 lru joined #salt
20:03 whytewolf ;p
20:05 johnj_ joined #salt
20:24 threwahway joined #salt
20:27 sp0097 joined #salt
20:35 pipps joined #salt
20:57 pipps joined #salt
20:59 pipps joined #salt
21:03 pipps joined #salt
21:06 johnj_ joined #salt
21:07 pipps99 joined #salt
21:10 _JZ_ joined #salt
21:11 zulutango joined #salt
21:14 kellyp joined #salt
21:45 pipps joined #salt
21:53 swa_work joined #salt
22:07 johnj_ joined #salt
22:10 snc joined #salt
22:14 pipps joined #salt
22:15 scornelissen joined #salt
22:20 bryan joined #salt
22:26 pipps joined #salt
22:27 threwahway_ joined #salt
22:29 user-and-abuser joined #salt
22:40 N-Mi joined #salt
22:40 N-Mi joined #salt
22:44 pipps joined #salt
22:46 JawnAuz joined #salt
22:48 noobiedubie joined #salt
22:48 zach SaltConf was interesting
22:49 skinkitten joined #salt
22:53 dnull joined #salt
22:57 skullone good, bad?
23:03 pipps99 joined #salt
23:03 mikecmpbll joined #salt
23:08 johnj_ joined #salt
23:28 aldevar left #salt
23:32 dnull joined #salt
23:32 usernkey joined #salt
23:41 dnull joined #salt
23:42 dnull joined #salt
23:43 _JZ_ joined #salt
23:43 pipps joined #salt
23:45 noobiedubie joined #salt
23:53 threwahway joined #salt
23:55 pipps99 joined #salt
23:56 pipps joined #salt

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