Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2018-01-10

| 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 major joined #salt
00:02 MTecknology eightyeight: I'd also suggest creating an ssh dict via pillar to do selections there and keep logic out of the state, and using the match module to do your id match.. Then you can separate logic from template and merge just pillar tweaks, and ... ya..  http://dpaste.com/2ACDHNA
00:02 eightyeight MTecknology: re: "context", do you mean something like this? https://paste.debian.net/1004367/
00:02 MTecknology yup
00:03 eightyeight hmm. the extra_ssh_port isn't getting set on the match, although the highstate is not erroring at least
00:03 MTecknology eightyeight: even better... you don't actually /need/ to do all that fancy -context: / -defaults: stuff.  You can just use {{ pillar.get('foo', 'default') }} from within the template.
00:03 eightyeight hmm
00:04 relidy gtmanfred: Thanks for the pointer. I don't understand what's going on in the documentation and why module.run is entirely missing from that page (but has docs in the source code). A reference, at least, to the release notes from there would have been really appreciated (and I'd gladly do a PR if I were sure it would actually render on the page).
00:07 MTecknology eightyeight: example:  https://github.com/MTecknology/saltstack-demo/blob/master/data/etc/ssmtp/ssmtp.conf  &&  states/sys/pkgs/ssmtp.sls  &&  pillar/sys/pkgs/acmetool.sls  (because I never provided an ssmpt demo)
00:08 saltslackbridge <gtmanfred> Relidy the docs for it are. On the module.run page
00:09 saltslackbridge <gtmanfred> https://docs.saltstack.com/en/latest/ref/states/all/salt.states.module.html
00:10 relidy That's exactly the page I'm referencing as well. The documentation specific to module.run is missing (show me the method signature section for a start).
00:10 relidy module.wait is listed/shown, as well as the class documentation, but not the run function.
00:15 major joined #salt
00:17 saltslackbridge <gtmanfred> Well I think that is why it was put in the doc string of the module, would you mind opening an issue on github about that? Because that is dumb
00:17 saltslackbridge <gtmanfred> And purely a factor of the way the guy who wrote it did this, and it is dumb
00:18 relidy gtmanfred: I'll open a ticket shortly.
00:18 relidy s/ticket/issue/
00:18 saltslackbridge <gtmanfred> Thanks
00:22 tobiasBora Is there a formula that installs gitfs?
00:23 relidy tobiasBora: https://github.com/saltstack-formulas/salt-formula
00:24 tobiasBora relidy: the idea would be to clone this repo and keep the good folder right?
00:25 relidy tobiasBora: The formula documentation says, "We strongly recommend forking a formula repository into your own GitHub account to avoid unexpected changes to your infrastructure."
00:26 jdipierro joined #salt
00:26 relidy gtmanfred: #45360 if it matters. Let me know if you need anything else on it.
00:26 saltslackbridge <gtmanfred> That is it, I will poke someone tomorrow about it
00:27 tobiasBora relidy: I mean, I can't use "gitfs_remotes" if I don't have install gitfs, so I mean, should I manually clone this repo and copy it in my salt tree so that I can use it to install gitfs without the need to already provide gitfs?
00:27 * relidy thanks gtmanfred
00:28 relidy tobiasBora: Ah, chicken-and-egg situation. Right. Uh, I wouldn't be the best person to ask about that. :)
00:28 whytewolf tobiasBora: install gitfs? you mean install gitpython or install pygit2?
00:28 tobiasBora whytewolf: yes
00:32 pipps joined #salt
00:32 pipps joined #salt
00:35 mikecmpbll joined #salt
00:37 magnus2 joined #salt
00:38 mbologna joined #salt
00:39 sayyid9000 joined #salt
00:40 vaelen joined #salt
00:40 c4rc4s joined #salt
00:40 mschiff joined #salt
00:41 FL1SK joined #salt
00:43 Deliant joined #salt
00:46 XenophonF tobiasBora: here's my bootstrap/DR script for my production Salt masters - https://gist.github.com/xenophonf/d8da7f47ea29d9ad46e7
00:47 XenophonF the idea is to download enough stuff locally to wire the master up to gitfs and the git ext_pillar, then have it complete configuring itself using a normal highstate
00:49 Guest73 joined #salt
00:50 XenophonF and these are the scripts I use to maintain my forks of the saltstack-formulas repos - https://gist.github.com/xenophonf/9df09e47a8629bb789ffbb94c7d17e42
00:51 XenophonF (there might be better ways to do that)
00:51 XenophonF (and if so please clue me in)
00:51 vaelen joined #salt
00:52 mschiff joined #salt
00:55 tobiasBora XenophonF: I don't see where you install pygit2...
00:56 whytewolf he uses gitpython
00:56 pipps joined #salt
00:56 whytewolf https://gist.github.com/xenophonf/d8da7f47ea29d9ad46e7#file-salt-master-bootstrap-sh-L81
00:57 eightyeight MTecknology: no matter what i try, i cannot add an additional "Port" to the sshd_config
00:58 pipps99 joined #salt
01:01 tobiasBora whytewolf: hum indeed. But I thought that neather pygit or gitpython was usable for now if I install them from the official repo (too old version)
01:01 whytewolf are you on centos 6 or something?
01:02 eightyeight MTecknology: pb: https://paste.debian.net/1004370/
01:02 tobiasBora whytewolf: not for now
01:02 tobiasBora "GitPython 2.0.9 and newer is not compatible with Python 2.6. If installing GitPython using pip on a machine running Python 2.6, make sure that a version earlier than 2.0.9 is installed. "
01:03 tobiasBora >> things are way too complicated for a task that simple...
01:03 whytewolf centos7 comes with 1.0.1
01:03 whytewolf and python 2.7
01:03 eightyeight MTecknology: here is salt://ssh/etc/ssh/sshd_config https://paste.debian.net/1004371/
01:04 tobiasBora and the salt formula salt.gitfs.pygit2 fails: https://paste.debian.net/1004372/
01:05 tobiasBora I guess that first the formula should try to install libgit2-24 on debian...
01:05 * tobiasBora is becoming crazy
01:07 aviau joined #salt
01:12 tobiasBora The server does not fail if no gitfs provider is installed?
01:12 whytewolf well, if you are not setting up gitfs why would it?
01:14 tobiasBora whytewolf: well I mean, if I've a "gitfs_remotes" entry
01:14 * whytewolf shrugs, never tried it
01:14 tobiasBora It looks like it does not fail...
01:14 whytewolf did you add git to the fileserver_backends setting?
01:15 whytewolf otherwise gitfs_remotes is just an extra setting that has no meaning
01:15 tobiasBora whytewolf: Hum good point
01:23 tobiasBora whytewolf: hum, it still seems to work even with the backends.
01:24 * whytewolf shrugs
01:27 tobiasBora Hum strange
01:27 tobiasBora wait
01:28 tobiasBora I never installed gitfs by myself, but it seems to be somehow installed... Don't understand how it's possible
01:28 whytewolf gitfs, isn't something that gets installed. only the backends
01:28 tobiasBora so maybe in fact it does not work
01:28 tobiasBora whytewolf: yes sure, I just abreviate it because I never remember the name pygit2
01:29 tobiasBora pygit2-git
01:29 whytewolf git backend ...
01:30 tobiasBora So what's the difference between pygit2-git, libgit2-22, and install-pygit2 ? The formula manage to install pygit2-git, but neather libgit2-22 or install-pygit2
01:31 whytewolf libgit2 is the library that pygit2 uses  and install-pygit2 sounds like a salt state id for installing it
01:31 Guest73 joined #salt
01:32 tobiasBora whytewolf: but pygit2-git does not rely on libgit2 ?
01:32 whytewolf it does
01:32 whytewolf Pygit2 is a set of Python bindings to the libgit2 shared library
01:32 whytewolf http://www.pygit2.org/
01:32 tobiasBora so how can pygit2-git be installed while in the same time libgit2 can't be installed?
01:33 whytewolf you are asking the wrong person
01:33 tobiasBora ok, thanks
01:33 whytewolf also are you sure libgit2 isn't installed?
01:37 tobiasBora whytewolf: apt-cache policy libgit2-24 tell me that it's not installed
01:40 whytewolf ldconfig -v | grep libgit
01:47 major joined #salt
01:47 XenophonF tobiasBora: pygit2==sucks
01:47 XenophonF use GitPython
01:48 whytewolf works well enugh for me but of coarse i hand compile it
01:50 whytewolf anyway, it is late. I'm off
01:51 nethershaw joined #salt
02:02 RF__ joined #salt
02:04 cgiroua joined #salt
02:24 jeblair joined #salt
02:28 jab416171 joined #salt
02:28 pbandark joined #salt
02:35 zerocool_ joined #salt
02:36 jdipierro joined #salt
02:59 godlike joined #salt
02:59 godlike joined #salt
02:59 magnus2 joined #salt
02:59 Tgrv joined #salt
02:59 Deliant joined #salt
03:01 ilbot3 joined #salt
03:01 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:10 jdipierro joined #salt
03:10 jab416171 joined #salt
03:11 onlyanegg joined #salt
03:28 ek0 joined #salt
03:30 cliluw joined #salt
03:39 ksa joined #salt
03:40 jeblair joined #salt
03:42 frots joined #salt
03:44 marcinkuzminski joined #salt
03:50 zerocool_ joined #salt
03:51 J0hnSteel joined #salt
03:53 zerocool_ joined #salt
04:03 onlyaneg1 joined #salt
04:12 jeblair joined #salt
04:24 onlyanegg joined #salt
04:29 zerocool_ joined #salt
04:31 shiranaihito joined #salt
04:58 mikecmpbll joined #salt
05:03 MTecknology eightyeight: sorry, I got distracted... did you learn anything beyond what you said?  I'm just trying to catch up now.
05:03 eightyeight nay
05:04 MTecknology eightyeight: did you try match.glob?
05:05 eightyeight well, right now, i'm just trying to get extra_ssh_port to set, and it's not setting
05:05 eightyeight i can worry about matching servers in a list (i actually just sanitized them, they really don't have anything in common to match)
05:05 onlyanegg joined #salt
05:06 eightyeight but i'm struggling to get "Port 443" to set, in addition to "Port 22" in my sshd_config(5)
05:06 MTecknology I understood that from the comments in the paste. It still has me curious about using match.glob.
05:07 MTecknology You can use -l debug to see the rendered template and see if it really is rendering incorrectly
05:07 MTecknology You can also do # {{ foo }}  to see what a value is during that rendering.
05:09 MTecknology # id: {{ grains['id'] }}
05:10 MTecknology btw- id > fqdn   (if you expect them to typically be equal)
05:10 eightyeight hmm. "-l debug" is a good idea, actually
05:14 hoonetorg joined #salt
05:14 msn joined #salt
05:14 jeblair joined #salt
05:17 eightyeight whelp, i can see it in the OrderedDict output with debugging output, but it's not getting set to the sshd_config(5)
05:21 jeblair joined #salt
05:26 eightyeight in fact, it's set twice in the results of the YAML rendering
05:26 eightyeight and i'm suspecting that it's choosing the "False" value over any other value
05:26 eightyeight correct?
05:27 MTecknology Maybe?
05:29 eightyeight here are the results: https://paste.debian.net/plain/1004392
05:30 MTecknology I am totally not sober enough to process that
05:30 eightyeight "extra_ssh_port" is both "443" and "False" in that outptu
05:30 eightyeight *output
05:31 MTecknology inside different dicts
05:31 MTecknology what's in your template?
05:32 eightyeight {% if extra_ssh_port %}Port {{ extra_ssh_port }} {% endif %}
05:33 MTecknology seems like it should work
05:33 eightyeight agreed. definitely seeing as though everything else seems to get set.
05:34 MTecknology granted.. I still argue the problem goes away with a much cleaner  {% for port in pillar.get('extra_ssh_ports', []) %}\nPort {{ port }}{% endfor %}
05:34 MTecknology and then you get the luxury of merging extra values
05:34 MTecknology and you don't need defaults or context
05:35 eightyeight yeah. our salt config needs cleanup, indeed
05:35 eightyeight maybe i'll just do that tonight
05:35 eightyeight er, tomorrow
05:35 eightyeight but at this point, it's just a matter of pride
05:36 MTecknology You're free to check out my salt demo. About the only thing I've changed is a more "magic" way of defining pillar data.
05:42 MTecknology eightyeight: that wasn't the rendering I was really talking about looking at. With -l debug, you can see the sls file rendered, after jinja is done. You can see that to see the exact value and figure out exactly why it didn't match
05:42 eightyeight i have that also
05:47 eightyeight MTecknology: https://paste.debian.net/1004395/
05:52 MTecknology If you put ''' # {{ grains['fqdn'] }} ''' in your template and run the states, do you get what you expect in the comment?
05:53 * eightyeight checks
05:53 MTecknology ftr- I am not claiming to be sober, nor am I planning to change that any time soon
05:53 onlyanegg joined #salt
05:54 eightyeight yes
05:54 eightyeight heh. no worries. i'm losing coherency the later it gets anyway
05:59 Guest73 joined #salt
06:01 eightyeight hmm
06:01 * eightyeight tries something
06:05 cgiroua joined #salt
06:07 eightyeight dammit
06:07 eightyeight i dunno. i think imma sign out, and try again in the morning
06:07 eightyeight MTecknology: thx for you help
06:08 MTecknology eightyeight: g'luck! I'll be here tomorrow too
06:21 LocaMocha joined #salt
06:37 onlyanegg joined #salt
06:53 yidhra joined #salt
07:23 Guest73 joined #salt
07:36 dvdmuckle joined #salt
07:37 jas02 joined #salt
07:43 golodhrim|work joined #salt
07:43 jas02 joined #salt
07:44 aarontc joined #salt
07:56 xet7 joined #salt
08:03 xet7 joined #salt
08:06 Hybrid joined #salt
08:07 hoonetorg joined #salt
08:07 cgiroua joined #salt
08:07 aldevar joined #salt
08:10 onlyanegg joined #salt
08:12 colegatron joined #salt
08:19 wych Hi, I got some trouble to pass ci with this pull request, https://github.com/saltstack/salt/pull/45269#issuecomment-356525117 Anyone can help?
08:19 aviau joined #salt
08:24 Hybrid joined #salt
08:28 schasi joined #salt
08:31 Neighbour wych: Don't worry, those builds fail usually on the develop branch (unfortunately)
08:32 Ricardo1000 joined #salt
08:39 jas02 joined #salt
08:40 jhauser joined #salt
08:43 APLU joined #salt
08:46 darioleidi joined #salt
08:50 hippysurfer joined #salt
09:01 APLU joined #salt
09:10 onlyanegg joined #salt
09:11 Tucky joined #salt
09:15 mikecmpbll joined #salt
09:15 APLU joined #salt
09:16 zerocool_ joined #salt
09:18 sh123124213 joined #salt
09:19 pbandark joined #salt
09:22 APLU joined #salt
09:25 aldevar1 joined #salt
09:28 Mattch joined #salt
09:31 aldevar joined #salt
09:32 cofeineSunshine joined #salt
09:40 arif-ali joined #salt
09:41 jhauser joined #salt
09:47 zerocool_ joined #salt
10:12 onlyanegg joined #salt
10:17 CrummyGummy joined #salt
10:29 bigjazzsound joined #salt
10:31 yujunz joined #salt
10:36 o1e9 joined #salt
10:37 sh123124213 joined #salt
10:49 c06 joined #salt
10:50 c06 hi all
10:51 c06 how the state sls file are sent to minions any architecture is there. ( to understand the communication while executing the state.apply)
10:54 sergeyt joined #salt
11:03 flagword joined #salt
11:20 Ricardo1000 joined #salt
11:27 sergeyt joined #salt
11:33 fleaz joined #salt
11:35 _JZ_ joined #salt
12:09 cgiroua joined #salt
12:11 tobiasBora Hello,
12:12 kettlewell joined #salt
12:13 tobiasBora I'd like to know, what is the difference becween https://github.com/salt-formulas/ and https://github.com/saltstack-formulas/ ?
12:13 onlyanegg joined #salt
12:13 tobiasBora Sometimes they provide the same formulas (like bind))
12:17 oida joined #salt
12:35 gmoro_ joined #salt
12:39 nona joined #salt
12:41 zerocool_ joined #salt
12:52 nledez joined #salt
13:00 jdipierro joined #salt
13:00 ahrs joined #salt
13:12 Nahual joined #salt
13:17 tracphil joined #salt
13:20 nona joined #salt
13:27 sergeyt joined #salt
13:34 Hybrid joined #salt
13:42 mchlumsky joined #salt
13:53 Deliant joined #salt
13:59 jdipierro joined #salt
14:02 RF_____ joined #salt
14:07 RF__ joined #salt
14:08 cgiroua joined #salt
14:09 kojiro joined #salt
14:09 tapoxi joined #salt
14:10 cgiroua joined #salt
14:13 onlyanegg joined #salt
14:14 saltslackbridge <florian.benscheidt> hello from slack, was this IRC channel on freenode? I forgot
14:15 kojiro It is
14:15 saltslackbridge <martin.paulus> it says so in the channel topic ^
14:16 saltslackbridge <florian.benscheidt> DERP
14:17 Waples_ joined #salt
14:17 Waples_ Hello
14:17 kojiro Hello
14:17 Waples_ its me, florianb) :P
14:21 aldevar joined #salt
14:25 averell joined #salt
14:27 aldevar1 joined #salt
14:28 gh34 joined #salt
14:36 Mattch joined #salt
14:40 aldevar joined #salt
14:41 edrocks joined #salt
14:47 racooper joined #salt
14:49 aldevar1 joined #salt
15:00 pualj joined #salt
15:05 yujunz joined #salt
15:13 pualj joined #salt
15:20 pbandark joined #salt
15:24 DammitJim joined #salt
15:28 pualj_ joined #salt
15:46 oida joined #salt
15:59 onlyanegg joined #salt
16:00 sergeyt joined #salt
16:11 RF__ Is there any way to set a different gpg homedir other than the default /etc/salt/gpgkeys?
16:11 Yoda-BZH joined #salt
16:11 Yoda-BZH joined #salt
16:14 Aleks3Y joined #salt
16:22 zerocool_ joined #salt
16:37 cgiroua joined #salt
16:55 aldevar1 left #salt
17:07 schemanic joined #salt
17:16 tiwula joined #salt
17:24 pfallenop joined #salt
17:24 pualj_ joined #salt
17:26 edrocks joined #salt
17:27 onlyanegg joined #salt
17:31 irated joined #salt
17:31 irated joined #salt
17:35 aldevar joined #salt
17:35 babilen joined #salt
17:37 schemanic_ joined #salt
17:37 schasi joined #salt
17:46 XenophonF RF__: you can change `config_dir` in the master config/on the command line, but that relocates everything
17:48 XenophonF alternatively, you can monkey-patch salt/modules/gpg.py in function _get_user_gnupghome
17:54 onlyanegg joined #salt
18:02 zerocool_ joined #salt
18:05 pipps joined #salt
18:06 Trauma joined #salt
18:12 pipps joined #salt
18:14 whytewolf or, and I'm just putting this out there. you could instead of monkey_patching _get_user_gnughome [man that is a horrible function name] you could add in an option for it and put that in a PR
18:14 pipps joined #salt
18:29 aldevar joined #salt
18:30 arif-ali joined #salt
18:40 heaje joined #salt
18:48 swills joined #salt
18:48 swills joined #salt
18:48 CampusD joined #salt
18:56 GothAck joined #salt
19:02 mk-fg joined #salt
19:02 mk-fg joined #salt
19:08 onlyanegg joined #salt
19:11 pipps joined #salt
19:15 sol7 joined #salt
19:17 pipps joined #salt
19:23 pipps joined #salt
19:27 edrocks joined #salt
19:28 pipps joined #salt
19:32 nomeed joined #salt
19:35 pipps joined #salt
19:35 sh123124213 joined #salt
19:39 mritchie joined #salt
19:44 aldevar joined #salt
19:50 Trauma joined #salt
19:53 major joined #salt
19:57 jpsharp joined #salt
20:00 jpsharp Now that I figured out why salt was saying my systems were ubuntu instead of gentoo, my next question is how to do I get the minions to make emerge use the proper options.  When I do a state apply, emerge uses "emerge --usepkgonly --usepkg --getbinpkgonly --quiet --getbinpkg" options, which keeps it from preferring binaries from binhost over local packages, and I have the EMERGE_DEFAULT_OPTS varaible in make.conf set to "--getbinpkgonly"
20:01 rubenb joined #salt
20:06 Guest73 joined #salt
20:32 lordcirth_work A quick Meltdown test: salt -G 'virtual:physical' cmd.run 'dmesg | grep -q isolation || echo vulnerable'
20:32 ymasson joined #salt
20:34 pipps joined #salt
20:35 pipps joined #salt
20:39 jpsharp A hack:  Just adding a cmd.run to wipe out the /usr/portage/packages/* files before doing the rest of the state apply.
20:45 pipps joined #salt
20:45 onlyanegg joined #salt
20:47 mikecmpbll joined #salt
20:54 pualj joined #salt
21:03 Deliant joined #salt
21:05 nona_ joined #salt
21:14 Hybrid joined #salt
21:18 viq For https://docs.saltstack.com/en/latest/ref/states/all/salt.states.slack.html#module-salt.states.slack what do I need to create in slack, a bot user, or Web API, or something else?
21:21 pualj_ joined #salt
21:23 viq Ah, bot worked, it helps if it's invited into a channel ;)
21:25 pipps joined #salt
21:26 pualj joined #salt
21:29 Guest73 joined #salt
21:32 inad922 joined #salt
21:33 pipps joined #salt
21:34 Hybrid joined #salt
21:36 dave_den joined #salt
21:37 dave_den left #salt
21:39 edrocks joined #salt
21:39 sarlalian joined #salt
21:49 tikedbus left #salt
21:53 JPT joined #salt
22:00 pipps joined #salt
22:02 masber joined #salt
22:03 pipps99 joined #salt
22:09 aldevar left #salt
22:15 Trauma joined #salt
22:22 dvdmuckle joined #salt
22:29 Trauma_ joined #salt
22:31 cgiroua joined #salt
22:34 pipps joined #salt
22:39 mikecmpbll joined #salt
22:44 Trauma joined #salt
22:50 pipps joined #salt
22:54 dave_den joined #salt
22:54 Guest73 joined #salt
22:54 irated joined #salt
22:54 irated joined #salt
22:58 pipps joined #salt
23:13 Trauma joined #salt
23:21 onlyanegg joined #salt
23:24 pipps99 joined #salt
23:26 yujunz joined #salt
23:26 pipps joined #salt
23:37 sh123124213 joined #salt
23:51 JPT joined #salt
23:52 haam3r_ joined #salt
23:54 marcinkuzminski joined #salt

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