Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-11-24

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

All times shown according to UTC.

Time Nick Message
00:00 alexlist joined #salt
00:00 saltslackbridge joined #salt
00:19 Manor joined #salt
00:40 threwahway_ joined #salt
00:45 threwahway__ joined #salt
00:46 threwahway__ joined #salt
00:46 threwahway__ joined #salt
01:02 GMAzrael joined #salt
01:27 bloodycock joined #salt
01:49 Manor joined #salt
02:03 GMAzrael joined #salt
02:07 notCalle joined #salt
02:09 nomeed joined #salt
02:17 Lenz joined #salt
02:25 threwahway_ joined #salt
02:37 oida joined #salt
02:55 ilbot3 joined #salt
02:55 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:04 nomeed joined #salt
03:15 Lenz joined #salt
03:18 tacoboy joined #salt
03:19 tacoboy joined #salt
03:21 evle joined #salt
03:35 deuscapturus joined #salt
03:45 simonlm joined #salt
03:53 threwahway__ joined #salt
04:03 SkyRocknRoll_ joined #salt
04:03 GMAzrael joined #salt
04:07 threwahway_ joined #salt
04:08 cswang joined #salt
04:09 bloodycock joined #salt
04:12 lompik joined #salt
04:15 bluenemo joined #salt
04:16 q1x joined #salt
04:17 threwahway__ joined #salt
04:20 SkyRocknRoll_ joined #salt
04:20 Manor joined #salt
04:35 hemebond left #salt
05:00 gmacon joined #salt
05:02 GMAzrael joined #salt
05:08 bloodycock joined #salt
05:14 syd_salt2 joined #salt
05:16 felskrone joined #salt
05:54 GMAzrael joined #salt
05:57 threwahway_ joined #salt
06:00 bloodycock joined #salt
06:36 vodik joined #salt
06:51 CrummyGummy joined #salt
06:59 justan0theruser joined #salt
07:06 Manor joined #salt
07:07 Ricardo1000 joined #salt
07:21 pualj joined #salt
07:24 wonko21 joined #salt
07:24 Ricardo1000 joined #salt
07:25 colegatron joined #salt
07:42 wonko21 joined #salt
07:45 Manor_ joined #salt
07:54 do3meli joined #salt
07:54 do3meli left #salt
07:55 GMAzrael joined #salt
08:00 Tucky joined #salt
08:06 Manor joined #salt
08:12 aldevar joined #salt
08:21 StolenToast joined #salt
08:32 Guest66432 joined #salt
08:39 jrenner joined #salt
08:39 dcpc007 hi, is it possible to change the master ? i have a test server installed, and want to add minions on it, but after, i'll need to switch to the real master server
08:53 nku sure, just update the minion config. you might have to throw away the master key though, not sure
08:53 nku (or you could use the tmp master as a syndic)
08:54 dagb dcpc007: how seamless do you need the change to be? accepting keys on the new master is simple enough. If you specified the master with a FQDN, you could do the change with a simple DNS update.
08:55 dagb no need to touch the minions at all. Hopefully.
08:55 Elsmorian joined #salt
08:57 GMAzrael joined #salt
09:01 dcpc007 ok cool. currently i'll specifiy the real test master hostname,
09:01 dcpc007 to switch at the end i'll only have to modify the minion coinfig file to point to "master" (i'll make an alias to the final server)
09:02 dcpc007 i need to change, because at the end i'll have the 2 servers online
09:08 dcpc007 in first step i try to install only to make queries
09:11 babilen "i need to change, because at the end i'll have the 2 servers online" don't quite understand that
09:11 babilen You can also configure multiple masters
09:16 dcpc007 yes but my test server will be uninstalled at the end (revert snapshot)
09:16 Elsmorian joined #salt
09:16 dcpc007 i test, when ok, i'll configure the real server
09:21 _KaszpiR_ joined #salt
09:24 mikecmpbll joined #salt
09:27 sh123124213 joined #salt
09:29 dcpc007 can i get the number of cores with status.cpuinfo ?
09:29 dcpc007 i work with VM, and output seems strange
09:30 dcpc007 cpu_cores : 1 but i have 2 cores on the vm
09:54 shripadr joined #salt
09:55 mr_kyd joined #salt
09:59 Naresh joined #salt
09:59 dnull joined #salt
10:01 Hybrid joined #salt
10:01 GMAzrael joined #salt
10:18 syd_salt joined #salt
10:49 DanyC joined #salt
10:50 saltslackbridge <haam3r> Trying to use the influxdb execution module and for the life of me I cannot figure out how to tell it to use ssl. Seems I need to pass in client_args to be passed down to the influxdb python module? How would one go about doing that?
10:55 evle joined #salt
10:57 babilen saltslackbridge: That should be by keywork argument foo=bar
11:01 GMAzrael joined #salt
11:02 haam3r_ babilen: yeah...all I'm getting is 'requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine('\x15\x03\x01\x00\x02\x02\n',))'
11:03 babilen When you do what?
11:03 haam3r_ salt 'influx.server.example' influxdb.list_dbs host='influx.server.example' ssl=True
11:09 Elsmorian joined #salt
11:11 haam3r_ babilen: Can it be because the client_args are not passed to the influxdb module here: https://github.com/saltstack/salt/blob/2017.7.2/salt/modules/influx.py#L67
11:12 stooj joined #salt
11:18 babilen haam3r_: yes
11:18 babilen That's it
11:18 babilen Sorry for that
11:19 babilen Try adding it to a module "fork" and place the influxdb.py in _modules, sync them and check if that solved the issue
11:22 haam3r_ babilen: Seems to error out, quite possibly because I'm doing it wrong :D https://gist.github.com/haam3r/6adab6db158a8deb3be047123c82c128
11:30 babilen You could add ssl to the options handed to the function: https://github.com/influxdata/influxdb-python/blob/master/influxdb/client.py#L44
11:33 babilen Another way would be to clean client_args to only contain supported ones .. not sure right now where __pub_pid is coming from
11:34 babilen A simple dict comprehension might work (but wouldn't be compatible with Python 2.6)
11:35 babilen dict((k, v) for k, v in points.items() if k in [supported1, supported2, ..) otherwhise
11:35 babilen Or something along those lines
11:40 haam3r_ yeah adding ssl worked.
11:40 haam3r_ I'll see what I can do about getting this to work properly
11:41 babilen In a way __pub_pid shouldn't be in **client_args .. that must be a saltstack idiosyncrasy that finds its way in there at one point
11:41 babilen The correct way would be to pass **client_args as you have done
11:42 babilen That way we don't have to maintain the list of all "optional" keyword arguments in the InfluxDB execution module (that gets annoying fast)
11:42 babilen Which is also bad if the underlying library changes
11:42 haam3r_ yeah I'm also seeing '__pub_user' also get passed in
11:42 haam3r_ I would imagine so
11:43 babilen Maybe filter the dict and remove all __ (dunder) k: v pairs?
11:43 Elsmorian joined #salt
11:43 yidhra joined #salt
11:43 babilen https://github.com/saltstack/salt/blob/develop/salt/state.py#L89 -- we might have to filter those STATE_RUNTIME_KEYWORDS
11:44 babilen Not sure *why* they are in there though
11:51 justan0theruser joined #salt
11:52 babilen https://github.com/saltstack/salt/blob/3b81c37a531c48ff54a2332c4ea9c0d108ce0e74/salt/states/nftables.py#L239 -- example from nftables
11:53 babilen I'd probably run a similar filter in there
11:57 pualj joined #salt
11:57 GMAzrael joined #salt
12:01 pualj_ joined #salt
12:03 Kelsar joined #salt
12:06 haam3r_ got it
12:07 pualj_ joined #salt
12:13 haam3r_ babilen: yep the nftables example made it work
12:15 Lenz joined #salt
12:47 haam3r_ babilen: Should I make a PR as well?
12:54 colegatron joined #salt
12:55 babilen haam3r_: Sounds like a wonderful idea!
12:55 babilen And: Yay!
12:56 GMAzrael joined #salt
12:59 haam3r_ :D
12:59 haam3r_ babilen: develop branch?
13:00 babilen aye
13:01 babilen We don't use Influx at the moment, which is why I don't use those modules/states anymore ..
13:07 shripadr joined #salt
13:17 Elsmorian joined #salt
13:34 Kax joined #salt
13:48 cswang joined #salt
13:58 cswang joined #salt
14:04 GMAzrael joined #salt
14:04 pualj joined #salt
14:07 haam3r_ Understood. I'm fairly new to influx myself. But here's a PR: https://github.com/saltstack/salt/pull/44675
14:09 cswang joined #salt
14:20 Manor joined #salt
14:23 Manor joined #salt
14:24 Manor_ joined #salt
14:27 cswang joined #salt
14:28 babilen haam3r_: Cheers!
14:33 cwright joined #salt
14:37 cswang joined #salt
14:41 impi joined #salt
14:43 Manor joined #salt
14:47 cswang joined #salt
15:03 GMAzrael joined #salt
15:06 pualj joined #salt
15:08 cswang joined #salt
15:33 pualj_ joined #salt
15:38 shripadr_ joined #salt
15:42 Cheguacamole joined #salt
15:57 pualj_ joined #salt
15:59 GMAzrael joined #salt
16:05 pualj joined #salt
16:10 jrenner joined #salt
16:16 bloodycock joined #salt
16:21 pualj joined #salt
16:38 user-and-abuser joined #salt
16:57 GMAzrael joined #salt
16:58 aldevar left #salt
17:00 Manor joined #salt
17:06 impi joined #salt
17:09 tiwula joined #salt
17:13 armyriad joined #salt
17:35 pualj joined #salt
17:36 Larri joined #salt
17:59 mikecmpbll joined #salt
18:00 frots joined #salt
18:01 GMAzrael joined #salt
18:10 frots joined #salt
18:10 Elsmorian joined #salt
18:18 Trauma_ joined #salt
18:35 CampusD joined #salt
18:40 pualj joined #salt
18:47 _KaszpiR_ joined #salt
19:00 GMAzrael joined #salt
19:04 Larri joined #salt
19:17 cswang joined #salt
19:32 Larri joined #salt
19:33 tiwula joined #salt
19:34 tiwula joined #salt
19:35 tiwula joined #salt
19:44 ymasson joined #salt
19:58 GMAzrael joined #salt
20:00 cyborg-one joined #salt
20:02 cyborg-one left #salt
20:14 cswang joined #salt
20:19 hoonetorg joined #salt
20:27 cyteen joined #salt
20:32 Oida joined #salt
21:09 Manor joined #salt
21:10 _dp joined #salt
21:15 cswang joined #salt
21:15 lastjedi joined #salt
21:28 cswang joined #salt
21:28 GMAzrael joined #salt
21:31 Manor_ joined #salt
21:35 justan0theruser joined #salt
21:36 Manor joined #salt
21:41 cswang joined #salt
21:50 bloodycock joined #salt
22:00 Larri joined #salt
22:02 swa_work joined #salt
22:13 cswang joined #salt
22:35 cswang joined #salt
22:43 hemebond joined #salt
22:52 cswang joined #salt
22:59 GMAzrael joined #salt
23:10 deuscapturus joined #salt
23:28 bloodycock joined #salt
23:28 Antiarc joined #salt
23:29 bloodycock joined #salt
23:43 cswang joined #salt
23:56 GMAzrael joined #salt

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