Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2018-01-09

| 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:06 jeffspeff joined #salt
00:09 oida joined #salt
00:09 nixjdm joined #salt
00:24 cyteen joined #salt
00:28 ciastek can master restart make some reactors to miss an event?
00:29 ciastek or another way - how to make sure, that it's safe to restart a master?
00:33 pipps joined #salt
00:37 pipps joined #salt
00:46 saltslackbridge joined #salt
00:50 onlyanegg joined #salt
00:59 hemebond ciastek: You'd probably have to have a multi-master setup.
01:02 chesty joined #salt
01:03 saltslackbridge <gtmanfred> ^^ you would need multiple masters running and running in active active mode to be able to restart and gaurantee that no events are missed
01:15 saltslackbridge <samyaple> how... stable is that?
01:16 saltslackbridge <gtmanfred> the problem you will run into is you need to figure out a way to tell the masters that the other master has picked up the job
01:17 saltslackbridge <gtmanfred> i use redis and setnx with the tag from the event that fires with a 5 minute timeout
01:17 saltslackbridge <gtmanfred> other than that, pretty stable
01:26 fag joined #salt
01:46 jhujhiti how are those of you with multimaster setups keeping minion keys in sync?
01:51 saltslackbridge <gtmanfred> i use the autosign file to accept them, and the manage.down runner to delete them
01:57 hemebond Using Redis for what? The event bus or just coordinating jobs?
02:17 whyzgeek joined #salt
02:33 zerocoolback joined #salt
02:33 zerocoolback joined #salt
02:36 fuzzy joined #salt
02:37 simonmcc joined #salt
02:38 nickadam joined #salt
02:39 wonko21 joined #salt
02:39 daemonkeeper joined #salt
02:42 pipps joined #salt
03:02 fuzzy left #salt
03:02 Uni joined #salt
03:02 tiwula joined #salt
03:02 ciastek hemebond: thank you, i've found some linkedin's slide showing  syndicated multi-masters. looks promising.
03:03 ilbot3 joined #salt
03:03 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:08 hemebond Is that functionality built into Salt Master?
03:15 matchaw joined #salt
03:18 Larry joined #salt
03:21 tflo joined #salt
03:25 hoonetorg joined #salt
03:32 saltslackbridge <gtmanfred> it is built into the modules, which you can use in rendering the reactor.
03:57 zerocoolback joined #salt
03:57 zerocoolback joined #salt
04:03 zerocool_ joined #salt
04:47 shiranaihito joined #salt
04:50 ahrs joined #salt
04:50 saltslackbridge <leo> I have a state tree that works fine if executed via sudo from a default Ubuntu system installed via apt repo and the top.sls in "/srv/salt/". When I try to run the same state tree with a custom salt file in a userhome I get the following error:  [DEBUG   ] Could not find file 'salt://top.sls' in saltenv 'base' [DEBUG   ] No contents loaded for env: base [DEBUG   ] No contents found in top file. If this is not expected, verify that the
04:50 saltslackbridge 'file_roots' specified in 'etc/master' are accessible. The 'file_roots' configuration is: {'base': ['states']}
04:51 zerocoolback joined #salt
04:51 saltslackbridge <leo> ~/.salt/Saltfile:  salt-ssh:   config_dir: /home/USERNAME/sysadmin/saltstack
04:53 saltslackbridge <leo> contents of /home/USERNAME/sysadmin/saltstack/master:  root_dir: /home/USERNAME/sysadmin/saltstack cachedir: cache ssh_log_file: logs/master pki_dir: pki pillar_roots:   base:   - pillar file_roots:   base:   - states a
04:55 zerocoolback joined #salt
04:55 saltslackbridge <leo> I would prefer to run this without sudo if possible
05:27 prakx joined #salt
05:37 NightMonkey joined #salt
05:50 Tgrv joined #salt
05:59 hoonetorg joined #salt
06:11 zerocoolback joined #salt
06:15 onlyanegg joined #salt
06:27 fxhp joined #salt
06:31 gmoro joined #salt
06:34 zerocoolback joined #salt
06:57 LocaMocha joined #salt
06:58 fxhp joined #salt
07:00 zerocoolback joined #salt
07:12 hoonetorg joined #salt
07:35 jas02 joined #salt
07:43 jas02 joined #salt
08:00 ek0 joined #salt
08:01 hoonetorg joined #salt
08:09 aldevar joined #salt
08:12 saltslackbridge <haam3r> @leo your `file_roots` statement should be: ``` file_roots:   base:     - /home/USERNAME/sysadmin/saltstack/states ```
08:13 Tucky joined #salt
08:22 Hybrid joined #salt
08:40 Ricardo1000 joined #salt
08:45 zerocoolback joined #salt
08:46 JohnnyRun joined #salt
08:47 zerocoolback joined #salt
08:50 zerocoolback joined #salt
09:00 zerocoolback joined #salt
09:05 zerocoolback joined #salt
09:21 sh123124213 joined #salt
09:22 vaelen joined #salt
09:23 cofeineSunshine joined #salt
09:24 gmoro joined #salt
09:24 c4rc4s joined #salt
09:24 zerocoolback joined #salt
09:31 ciastek joined #salt
09:33 Mattch joined #salt
09:42 mikecmpbll joined #salt
09:49 hoonetorg joined #salt
09:50 FL1SK joined #salt
09:54 tflo joined #salt
09:58 tracphil joined #salt
10:01 pbandark joined #salt
10:02 APLU joined #salt
10:02 tracphil joined #salt
10:05 mikecmpbll joined #salt
10:14 tracphil joined #salt
10:18 Valfor joined #salt
10:18 Valfor joined #salt
10:21 cyteen joined #salt
10:21 Valfor joined #salt
10:21 Valfor joined #salt
10:47 hoonetorg joined #salt
10:52 benner joined #salt
11:00 fxhp joined #salt
11:05 aldevar joined #salt
11:06 ExtraCrispy joined #salt
11:06 kettlewe_ joined #salt
11:08 ExtraCrispy_ joined #salt
11:10 mikecmpbll joined #salt
11:13 ExtraCrispy_ joined #salt
11:14 ExtraCrispy joined #salt
11:24 miruoy joined #salt
11:34 pbandark1 joined #salt
12:30 zerocoolback joined #salt
12:30 yujunz[away] joined #salt
12:33 gtmanfred joined #salt
12:33 jbulger joined #salt
12:34 hoonetorg joined #salt
12:34 whiteinge joined #salt
12:34 whiteinge joined #salt
12:34 tracphil joined #salt
12:53 xet7 joined #salt
13:02 mikecmpbll joined #salt
13:09 Guest73 joined #salt
13:13 Nahual joined #salt
13:17 tracphil joined #salt
13:25 mikecmpbll joined #salt
13:27 cmichel joined #salt
13:27 oida joined #salt
13:34 XenophonF joined #salt
13:41 mchlumsky joined #salt
13:52 edrocks joined #salt
14:03 jdipierro joined #salt
14:03 concerti joined #salt
14:28 racooper joined #salt
14:30 onlyanegg joined #salt
14:31 tapoxi joined #salt
14:33 gh34 joined #salt
14:40 _JZ_ joined #salt
14:48 chadhs joined #salt
14:50 impi joined #salt
14:59 chadhs joined #salt
15:02 yujunz joined #salt
15:03 nixjdm joined #salt
15:04 jacksontj joined #salt
15:16 hoonetorg joined #salt
15:17 chadhs joined #salt
15:19 Tyrant joined #salt
15:19 Tyrant joined #salt
15:27 KennethWilke joined #salt
15:35 mikecmpbll joined #salt
15:38 cgiroua joined #salt
15:41 mikecmpb_ joined #salt
15:43 darioleidi joined #salt
15:43 chadhs joined #salt
15:54 hoonetorg joined #salt
16:04 jas02 joined #salt
16:07 jdipierro joined #salt
16:09 mikecmpbll joined #salt
16:12 hemebond joined #salt
16:13 Puckel_ joined #salt
16:13 tiwula joined #salt
16:14 mikecmpbll joined #salt
16:19 schemanic joined #salt
16:27 pbandark1 joined #salt
16:27 bdrung_work joined #salt
16:28 ahammond_ left #salt
16:28 Yoda-BZH joined #salt
16:28 Yoda-BZH joined #salt
16:31 zerocoolback joined #salt
16:32 jas02 joined #salt
16:41 mikecmpb_ joined #salt
16:45 kojiro joined #salt
16:49 vexati0n hey this is neat. has anyone noticed that "salt-run manage.present" doesn't list Windows minions, no matter how present they are?
16:49 zerocoolback joined #salt
16:50 kojiro heh
16:51 schemanic When running cmd.run can I just pass a jinja variable to the - name: key?
16:52 schemanic so - name: update-alternatives {{ arg1 }} something something;
16:53 saltslackbridge <gtmanfred> yes
16:54 mikecmpbll joined #salt
16:55 schemanic thanks
16:55 schemanic do I need to quote it?
16:55 DammitJim joined #salt
16:56 schemanic like this: https://gist.github.com/
16:56 saltslackbridge <gtmanfred> do you want it to be rendered, or just passed all the way through to the cmd.run module?
16:57 saltslackbridge <gtmanfred> if you want it to be passed through, you will need to wrap that state with `{% raw %}
16:57 saltslackbridge <gtmanfred> otherwise, it depends on what is in arg1, if arg1 needs to be in quotes on the commandline, then yeah i would quote it
16:57 schemanic I want it to be rendered, so that the value ends up being passed to the command
16:58 schemanic I'm setting {{ arg1 }} earlier in the state.
16:58 schemanic or rather in an earlier state
16:58 onlyanegg joined #salt
16:58 saltslackbridge <gtmanfred> if you are setting it in a different file, then you cannot use it, unless you are importing that state with `context` using jinja
16:58 mikecmpbll joined #salt
16:59 schemanic here: https://gist.github.com/anonymous/5ee1534f1aad3a2c9feb946251817440
16:59 schemanic not a different file, in an earlier state in the same sls.
17:01 saltslackbridge <gtmanfred> ahh, then yeah just put it there, it will be used, you could also pass it to - args:
17:04 hammer065 joined #salt
17:09 _JZ__ joined #salt
17:17 onlyanegg joined #salt
17:20 schasi joined #salt
17:32 jas02 joined #salt
17:35 armyriad joined #salt
17:46 RandyT joined #salt
17:46 RandyT joined #salt
17:48 jas02 joined #salt
17:52 pcgod joined #salt
17:52 pipps joined #salt
17:54 pipps joined #salt
17:57 pipps joined #salt
17:58 pipps joined #salt
18:20 Zachary_DuBois joined #salt
18:28 edrocks joined #salt
18:35 doubletwist joined #salt
18:37 Aleks3Y joined #salt
18:38 XenophonF bear in mind the multiple layers of quoting possible
18:38 XenophonF there's arg1's in-memory representation that gets pretty-printed when you do {{ arg1 }}
18:38 inad922 joined #salt
18:39 XenophonF but that could potentially result in invalid YAML
18:39 tom[] joined #salt
18:39 XenophonF likewise, whatever expansion happens when salt-minion/salt-call shells out
18:44 schemanic can anyone help me with an alternatives-based problem? Im setting it with cmd.run, but I'm still not getting what I want and I think its that alternatives isn't being told what I think it is
18:45 schemanic I can't get the alternative for java to set the right version
18:45 jas02 joined #salt
18:46 XenophonF sure
18:47 whytewolf schemanic: have you tried https://docs.saltstack.com/en/latest/ref/states/all/salt.states.alternatives.html instead of cmd.run?
18:48 whytewolf oh nevermind. too busy to actually read
18:50 jas02 joined #salt
18:50 schemanic whytewolf, yeah that's my problem to begin with
18:50 saltslackbridge joined #salt
18:55 ahrs joined #salt
19:05 vexati0n i feel like most of the Windows functions' docs pages should have a big red disclaimer at the top that says "salt only sort of works on windows once in a while" since so many things are broken.
19:06 kettlewell joined #salt
19:18 pipps joined #salt
19:32 saltslackbridge joined #salt
19:33 ymasson joined #salt
19:41 whytewolf vexati0n: that warning should just go on windows " this product only sort of works and we randomly change our minds on how it works"
19:46 jhauser joined #salt
19:52 DammitJim joined #salt
19:52 Guest73 joined #salt
19:58 MTecknology people still use windows?!
19:59 kojiro I like to look out of them
20:00 pipps joined #salt
20:03 edrocks joined #salt
20:04 cgiroua joined #salt
20:05 aldevar joined #salt
20:13 wonko21 joined #salt
20:15 vexati0n i hate windows as much as the next person but it's a necessary evil in corporate america.
20:19 pipps joined #salt
20:21 hoonetorg joined #salt
20:23 pipps99 joined #salt
20:23 MTecknology vexati0n: I'm not sure I believe that statement, but I will agree that it shows up all over the place.
20:30 Hybrid joined #salt
20:31 kojiro I think "necessary" is a sample bias
20:31 kojiro There are no Windows environments where I work
20:35 schemanic Hey, does anyone know if there are problems with file.managed and hash checks? I have a bad check happening but I've confirmed the hash locally. I'm telling file.managed to rename a file while comparing the hash and I'm wondering if that causes a problem, but I've done the same things locally and still get the same hash
20:46 sh123124213 joined #salt
20:49 sh123124213 joined #salt
20:50 pipps joined #salt
20:51 Hybrid joined #salt
20:54 major joined #salt
21:02 schemanic Hi I need help with file.managed's hash checks
21:02 schemanic I'm getting a failed state on a file even though I'm manually verifying the hash
21:02 schemanic ergo something's wrong with salt
21:03 whytewolf that seems like a simple answer then
21:03 whytewolf file a bug report
21:04 schemanic well I don't know if what I'm doing is wrong
21:04 whytewolf or a PR if you can fix the issue in the code
21:04 schemanic I don't want to file a bug report if I'm just using it incrorrectly
21:09 MTecknology schemanic: then show us what you're doing, w/ details, so we can try to help? :)
21:09 MTecknology (dpaste.com is excellent for sharing chunks of stuff, as is gist)
21:11 vexati0n I don't mean Windows is necessary because it's actually needed for anything, it's necessary in that it exists and needs to be worked on by someone.
21:15 ouzo12 joined #salt
21:16 schemanic https://gist.github.com/anonymous/b855e8a5d2a51996e5bf70fbe05d7b44
21:16 schemanic sorry MTecknology  I got buried trying to investigate
21:18 MTecknology does source_hash support downloading a hash file?
21:19 pcgod "This can be one of the following: 1 a source hash string 2 the URI of a file that contains source hash strings"
21:19 pcgod so yes, it should...
21:19 schemanic I don't know, the documentation says you should be able to give it a URL
21:20 MTecknology shiny
21:20 pcgod but the problem might be that the .md5 contains *<file name> which doesn't match the file name you're downloading
21:21 MTecknology too bad that only protects against bit flip, since you're trusting the hash coming from the same server the files are hosted on... :S
21:21 pcgod so might need source_hash_name also
21:24 schemanic pcgod, that is what I was concerned of. I spent an hour in #linux trying to filter out if that could be the cause
21:24 schemanic pcgod, there's a prop called source_hash_name for this issue?
21:26 pipps joined #salt
21:26 pcgod schemanic: according to the docs, source_hash_name can be set to the value to match in the hash file. I'm pretty sure it's trying to do literal matching of the filename and so won't work with the default value
21:27 schemanic pcgod, when you say 'default value' you mean the filename I've told salt to change the downloaded file to yes?
21:29 pcgod schemanic: "By default, Salt will look for the filename being managed"
21:29 tapoxi joined #salt
21:29 Guest73 joined #salt
21:30 schemanic I see. I did not catch that
21:32 Guest73 joined #salt
21:34 schemanic that's interesting though
21:35 schemanic the salt error code is specifying it's getting a different hash value
21:37 schemanic k. trying with the value supplied for the filename along with the hash
21:39 sh123124213 joined #salt
21:39 mikecmpbll joined #salt
21:41 schemanic so source_hash_name isn't working
21:41 schemanic there is an asterisk in front of the name supplied in the hashfile
21:42 MTecknology that mean binary mode
21:42 MTecknology means*
21:42 pcgod and you tried to include the star in the source_hash_name value?
21:43 schemanic I have tried source_hash_name: *mod_jk-1.2.31-httpd-2.2.x.so, source_hash_name: '*mod_jk-1.2.31-httpd-2.2.x.so', and now about to try source_hash_name: '\*mod_jk-1.2.31-httpd-2.2.x.so'
21:44 aldevar left #salt
21:45 schemanic nope
21:47 schemanic MTecknology, what does binary mode mean
21:48 MTecknology It means "md5sum -b"
21:49 tracphil joined #salt
21:50 schemanic lovely
21:50 schemanic is there a way to account for it in here?
21:51 MTecknology you shouldn't really need to... it's just a syntax thing that tells md5sum to verify checksums in binary mode.
21:51 schemanic nothing seems to be working
21:53 schemanic this is what I don't understand - it seems to be GETTING a hash, but it's wrong
21:54 MTecknology wanna gist your output to verify what you're seeing?
21:54 schemanic output of what?
21:54 schemanic local md5sum?
21:54 schemanic I did that
21:54 MTecknology "it seems to be ..."
21:54 schemanic https://gist.github.com/anonymous/b855e8a5d2a51996e5bf70fbe05d7b44
21:57 schemanic I don't know what to do here. I'm hard coding the hashes into the state and its still not working
21:57 MTecknology I guess I was expecting more along the lines of "salt-call -l debug state.[...]"
21:59 pipps joined #salt
22:01 pipps joined #salt
22:01 schemanic It says the state is not available
22:02 saltslackbridge <jesserhoads> the yaml probably isn’t parsing
22:02 saltslackbridge <jesserhoads> or its state.sls statename
22:02 schemanic no because I'm not getting yaml errors from the master
22:02 schemanic I have my states hosted in git repos
22:03 schemanic um state.sls statename was better
22:06 schemanic https://gist.github.com/anonymous/2b0a607a42ff8be8b66e1593ef3c38d7
22:06 schemanic there you go
22:08 MTecknology Are you using formulas too?
22:08 schemanic this state is an addition to the apache formula yes
22:09 schemanic okay, I fucking give up. I changed the filename back to the original and it still doesn't work
22:10 * MTecknology <rant topic="formulas are bad, mkay" />
22:10 MTecknology schemanic: what does 'md5sum /usr/lib64/httpd/modules/mod_jk.so' give you?
22:10 saltslackbridge <jesserhoads> I see in the log Specified md5 checksum for /usr/lib64/httpd/modules/mod_jk.so (1f43c9bd5985493aa5f5941980f20a41) does not match actual checksum (d41d8cd98f00b204e9800998ecf8427e)
22:11 schemanic MTecknology, gives me no such file or directory
22:11 mechleg schemanic: IIRC, the md5sum you are getting references an empty string.  this would appear to be a bug in salt:  md5sum /dev/null
22:11 mechleg so salt is not getting the correct actual checksum
22:11 schemanic it doesn't matter if it's sha1 or md5 though
22:11 schemanic I've changed it all around
22:12 schasi It seems that installing "sysutils/py-salt" on FreeBSD installs "py36-salt". Is that intended?
22:13 pcgod the question would be: what does it try to checksum...
22:14 schemanic I don't understand. I've hardcoded the hashes. It still doesn't work
22:14 schemanic I'm ready to tell salt not to care about the hash
22:14 saltslackbridge <jesserhoads> the log you pasted says the hash it got for mod_jk.so doesnt match
22:14 schasi As a result, bootstrap-salt.sh installs "py36-salt" on FreeBSD (11.1). Shouldn't the default be "py27-salt"?
22:14 saltslackbridge <jesserhoads> so is it actually even downloading the new file or is it just checking the one that’s already there
22:14 Guest73 joined #salt
22:15 schemanic There IS NO FILE THERE
22:16 schemanic IT DOES NOT EXIST
22:17 MTecknology don't do the all-caps thing.
22:18 schemanic MTecknology, apologies
22:19 MTecknology salt will download the file to /var/cache/salt/minion to check the checksum and then move it in place.
22:22 schemanic well, once I hit skip_verify the file arrives, but it indeed has an md5 equal to the one that it says it gets, not the ones i'm providing
22:22 schemanic is this evidence of some kind of attack?
22:24 Guest73 joined #salt
22:30 Guest73 joined #salt
22:30 schemanic no shit, it's a 0 byte file
22:31 whytewolf schemanic: sounds like you are hitting this bug https://github.com/saltstack/salt/issues/44410
22:33 pcgod one way to get it working is to set "backend: requests" in the minion config...
22:33 pcgod looks like it's broken with the default backend (tornado)
22:36 RF joined #salt
22:37 pipps joined #salt
22:38 schemanic I guess I'll stage these assets on s3 then go back once 7.3 hits
22:38 schemanic oh
22:38 schemanic wait
22:38 schemanic pcgod is that all I need to do?
22:39 RF joined #salt
22:39 pcgod schemanic: works for me at least
22:40 schemanic pcgod, is it literally just going into /etc/salt/minion and at the top level saying backend: requests, or does it go into a specific structure?
22:40 pcgod schemanic: I added it at the end of the file
22:40 schemanic okay. I control those files via a formula so I need to know if backend is a subkey of something else
22:42 pcgod you could also try urllib2 if you don't have requests installed... it will probably also work (but requests is a better option. urllib had some problems with ssl stuff, not sure if they ever fixed that)
22:42 RF_ joined #salt
22:43 RF_ left #salt
22:43 RF_ joined #salt
22:44 RF_ left #salt
22:44 schemanic pcgod, requests comes standard with python if I understand
22:44 RF_ joined #salt
22:47 RF_ left #salt
22:47 RF_ joined #salt
22:50 saltslackbridge joined #salt
22:50 cgiroua joined #salt
22:57 RF___ joined #salt
22:58 RF___ left #salt
22:58 schemanic Thank you all for help with diagnosis
22:58 relidy Could someone provide a little feedback on the syntax I'm supposed to be using with the module.run state? I have a state that's generating warnings, but works. The form I *thought* I'm supposed to use don't actually work: https://gist.github.com/rhoths/f991a2941b32f57f2e17a5746ce75205
22:59 RF___ joined #salt
23:01 RF___ joined #salt
23:03 MTecknology relidy: What do the deprecation warnings say with the first version?
23:04 relidy MTecknology: [WARNING ] The function "module.run" is using its deprecated version and will expire in version "Sodium".
23:04 ahrs joined #salt
23:05 RF___ joined #salt
23:05 RF___ Hi
23:06 RF___ does anyone know where I should put the ext_pillar module I wrote in a masterless setup? Thanks!
23:06 RF___ I am running the 2017.7.2 version
23:08 saltslackbridge <gtmanfred> salt://_pillar
23:08 saltslackbridge <gtmanfred> https://docs.saltstack.com/en/latest/ref/file_server/dynamic-modules.html
23:08 saltslackbridge <gtmanfred> https://docs.saltstack.com/en/latest/ref/runners/all/salt.runners.saltutil.html#salt.runners.saltutil.sync_pillar
23:10 RF___ gtmanfred: so it's under /srv/salt/_pillar?
23:10 saltslackbridge <gtmanfred> if you are using file roots yes
23:10 saltslackbridge <gtmanfred> if you use gitfs, it will be different
23:10 pipps joined #salt
23:10 saltslackbridge <gtmanfred> wherever salt://_pillar is for your fileserver
23:11 RF___ so if my files are under /srv/salt/files, this ext_module should go to /srv/salt/files/_pillar?
23:12 saltslackbridge <gtmanfred> yes
23:12 saltslackbridge <gtmanfred> you can see the files in salt-call cp.list_master, if it is at _pillar/whatever.py
23:12 saltslackbridge <gtmanfred> then you did it correctly
23:14 RF___ it's at    - files/_pillar/kms.py when I run cp.list_master
23:15 saltslackbridge <gtmanfred> then that means you put it one level to low in your file_root
23:15 saltslackbridge <gtmanfred> you should be able to run `salt-call cp.get_file_str salt://_pillar/whatever.py`
23:16 RF___ ok. Now I moved it one level up, but I am getting "[ERROR   ] Unable to cache file 'salt://_pillar/kms.py' from saltenv 'base'." when I ran cp.get_file_str
23:17 RF___ I do see _grains, _modules when I ran cp.list_master, but not _pillar
23:17 RF___ the file_roots is set to /srv/salt
23:19 saltslackbridge <gtmanfred> if the file root is /srv/salt, then it should be put in /srv/salt/_pillar/kms.py
23:20 RF___ That's what I just did. Now I do see _pillar/kms.py in the cp_listmaster output. However I am still getting "[CRITICAL] Specified ext_pillar interface kms is unavailable" error.
23:20 RF___ I did run saltutil.sync_all
23:21 saltslackbridge <gtmanfred> did you run `salt-run saltutil.sync_pillar`?
23:21 saltslackbridge <gtmanfred> pillars are rendered on the master
23:22 RF___ this is a masterless setup so I am running this on a minion
23:24 RF___ I ran saltutil.sync_all and can see the file under /var/cache/salt/minion/extmods/pillar/kms.py
23:24 Guest73 joined #salt
23:25 saltslackbridge <gtmanfred> if you run salt-call with -l debug does it give you a traceback?
23:25 RF___ gtmanfred: nope
23:26 saltslackbridge <gtmanfred> then i am out of ideas
23:26 saltslackbridge <gtmanfred> gotta go cook dinner, sorry
23:26 RF___ gtmanfred: thanks for the help!
23:27 saltslackbridge <gtmanfred> np, good luck
23:29 RF___ gtmanfred: I found the issue. It's in my ext_pillar module where __VIRTUAL__ returned False.
23:29 saltslackbridge <gtmanfred> ahh, that would do it
23:29 RF___ I fixed that and all is good now. Thanks so much for the help!
23:32 MTecknology relidy: It's too bad the error doesn't tell you which part is deprecated.  I'd be surprised if kwargs went anywhere, though.  You could skim the source and see where that message is produced and maybe figure it out from there.
23:33 jhauser joined #salt
23:36 cyteen joined #salt
23:40 eightyeight how do you overwrite managed file defaults? i'm getting "Rendering SLS 'base:ssh.server' failed: Conflicting ID" for every variable in the "if" blocks
23:40 eightyeight here is my pastebin: https://ae7.st/pb/?7652133c756ed0b3#E794NcB+LEP2TmS4J9FcEDgYwzVSh0G1D8Az8ZPkdTI=
23:40 eightyeight (and bad quoting on line 29 in the pb- ignore)
23:41 eightyeight i'm struggling with how to set a default jinja variable, and overwrite it based on grain matches
23:43 eightyeight quoting fixed (if it bugs you): https://ae7.st/pb/?e4b5053d9ba32878#r85abISEBDxopcj3xZGFqyBc15Sl64e+vUG+Zv2pyDo=
23:44 yujunz joined #salt
23:47 MTecknology another javascript-required pbin site? :(
23:48 eightyeight MTecknology: https://paste.debian.net/1004365/
23:51 * MTecknology prefers the "file.managed:" form  (not relevant, though
23:51 MTecknology )
23:52 major joined #salt
23:52 tobiasBora joined #salt
23:52 tobiasBora Hello,
23:52 tobiasBora I'd like to know, what is the good way to setup a salt server?
23:52 tobiasBora *a LDAP server on salt
23:53 MTecknology eightyeight: oh.. you want to know how to override what's in -defaults:?
23:53 tobiasBora I saw this: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.ldap.html
23:53 eightyeight MTecknology: yes
23:53 MTecknology - context: {}
23:53 tobiasBora but I'm not sure that this module installs the server. It looks like the installation must be done by the formula
23:53 tobiasBora However I found two formulas : https://github.com/saltstack-formulas/openldap-formula and https://github.com/salt-formulas/salt-formula-openldap
23:54 saltslackbridge <gtmanfred> Relidy look at the release notes for 2017.7.0 the info is in there
23:54 eightyeight MTecknology: ah. perfect. thx.

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