Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-11-20

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

All times shown according to UTC.

Time Nick Message
00:23 chowmeined joined #salt
00:50 johnj_ joined #salt
00:51 GMAzrael joined #salt
01:06 gnomethrower joined #salt
01:08 dhwt joined #salt
01:26 justanotheruser joined #salt
01:51 johnj_ joined #salt
02:01 ilbot3 joined #salt
02: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
02:05 ciastek XenophonF: incredible. I've ran a testcase `sudo salt-call --local state.single x509.private_key_managed /home/vagrant/some.key bits=2048 mode=600` on my real debian minion and fresh ubuntu 17.10. Both running the Carbon release. On debian it fails, on ubuntu passes. :O
02:11 johnkeates joined #salt
02:14 mosen joined #salt
02:21 johnkeates joined #salt
02:36 ciastek XenophonF: My fault. Had old x509.py into salt/_states directory.
02:53 nomeed 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
02:55 deuscapturus_ joined #salt
02:56 theo__ joined #salt
02:56 deuscapturus_ joined #salt
02:57 deuscapturus joined #salt
03:01 swills joined #salt
03:01 swills joined #salt
03:08 johnkeates joined #salt
03:12 lroe joined #salt
03:12 lroe joined #salt
03:19 johnkeates joined #salt
03:31 XenophonF ah
03:31 XenophonF that's happened to me before
03:31 XenophonF drove me _crazy_ for at least a day
03:39 johnkeates joined #salt
03:45 deuscapturus joined #salt
03:45 lompik joined #salt
03:48 GMAzrael joined #salt
03:51 JPT joined #salt
03:53 johnj_ joined #salt
04:13 johnkeates joined #salt
04:13 tiwula joined #salt
04:21 justanotheruser joined #salt
04:36 rocket joined #salt
04:42 deuscapturus joined #salt
04:43 msn joined #salt
04:52 GMAzrael joined #salt
04:53 prasant joined #salt
04:54 johnj_ joined #salt
05:04 mikecmpbll joined #salt
05:09 msn2 joined #salt
05:11 deuscapturus joined #salt
05:19 johnkeates joined #salt
05:19 msn joined #salt
05:23 msn2 joined #salt
05:24 prasant Hi, I'm new to salt and I'm struggling to answer a basic question. Can the salt-master control salt-minion when the incoming connections to salt-minion are blocked? Salt-minion can connect to salt-master if it desires.
05:24 prasant Any inputs on this will be of help to me.
05:25 coredumb prasant: it's the minion that connects to the master
05:26 coredumb you can have minion on different subnets not accessible by the master but only routed/nated from the minion point of view and it would still work
05:27 coredumb unless you try to use salt-ssh indeed
05:30 prasant coredumb: thanks! so that would mean, If I tell salt-master that I want a 'xyz' salt-minion to be in a particular state and this has happened while the salt-minion is rebooting for some reason then, salt-master can execute the commands only when salt-minion is up & running and connected to the master. Is my understanding right?
05:38 johnj_ joined #salt
05:43 msn joined #salt
05:47 GMAzrael joined #salt
05:57 johnkeates joined #salt
06:13 coredumb prasant: yes if the minion is not ready to accept inputs from the server you'll receive a "no answer" from the minion
06:13 coredumb but you can also work with scheduler to ensure that your minion will apply a highstate after a reboot/minion restart
06:16 ilbot3 joined #salt
06:16 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
06:18 ciastek XenophonF: thank you!
06:25 rocket joined #salt
06:36 prasant joined #salt
06:38 johnkeates joined #salt
06:42 pualj joined #salt
06:46 prasant coredumb: thanks agian! your comment are very helpful.
06:52 GMAzrael joined #salt
06:54 hoonetorg joined #salt
07:04 do3meli joined #salt
07:04 do3meli left #salt
07:09 DarkKnightCZ joined #salt
07:19 zulutango joined #salt
07:22 coredumb prasant: you're welcome
07:34 MTecknology !utils
07:34 darioleidi joined #salt
07:47 yuhl_ joined #salt
07:49 GMAzrael joined #salt
07:49 johnkeates joined #salt
07:58 ccha left #salt
08:12 aanriot joined #salt
08:12 jrenner joined #salt
08:14 rocket joined #salt
08:21 Hybrid joined #salt
08:23 johnkeates joined #salt
08:27 jhauser joined #salt
08:28 Tucky joined #salt
08:29 ircuser-1 joined #salt
08:31 msn joined #salt
08:43 robman is there a salt command to list nodegroups?
08:49 johnkeates joined #salt
08:50 GMAzrael joined #salt
09:04 mikecmpbll joined #salt
09:19 Hybrid1 joined #salt
09:20 Rumbles joined #salt
09:21 Larri joined #salt
09:22 MTecknology whytewolf: I added a _utils dir with a python module and pushed it out to my minions. In a state, I tried to use {% set zones = __utils__['mymod.fun']('foo') %} but got an error about __utils__ not existing.  Any guesses what I might be missing?
09:24 MTecknology I can I can see that the util module made to the minion @ /var/cache/salt/minion/extmods/utils/zones.py
09:26 Larri1 joined #salt
09:33 Naresh joined #salt
09:42 Mattch joined #salt
09:42 toanju joined #salt
09:48 MTecknology It kinda looks like {% salt.utils.modfun() %} should work..
09:51 GMAzrael joined #salt
09:51 alker joined #salt
09:52 alker joined #salt
09:53 MTecknology Heh, I just realized that when someone was asking about version checking in salt, we already have salt.utils.version.version_cmp() (however one accesses it)
09:56 alker1 joined #salt
09:58 alker1 joined #salt
09:58 ccha joined #salt
10:01 Larri1 joined #salt
10:02 rocket joined #salt
10:07 Lenz joined #salt
10:08 alker joined #salt
10:09 Hybrid joined #salt
10:11 aldevar joined #salt
10:14 evle joined #salt
10:18 xist joined #salt
10:19 xist joined #salt
10:31 N-Mi joined #salt
10:31 N-Mi joined #salt
10:35 alker joined #salt
10:39 major joined #salt
10:47 GMAzrael joined #salt
10:53 GrisKo joined #salt
11:11 johnj joined #salt
11:26 Rumbles joined #salt
11:29 7JTACX91O joined #salt
11:41 Rumbles joined #salt
11:50 rocket joined #salt
11:55 GMAzrael joined #salt
12:04 alker joined #salt
12:09 shortdudey123 joined #salt
12:12 johnj joined #salt
12:29 vileni joined #salt
12:35 impi joined #salt
12:36 Rumbles joined #salt
12:52 GMAzrael joined #salt
13:02 alker joined #salt
13:04 Rumbles joined #salt
13:04 SkyRocknRoll_ joined #salt
13:09 Nahual joined #salt
13:11 GMAzrael joined #salt
13:13 johnj joined #salt
13:18 johnkeates joined #salt
13:24 justanotheruser joined #salt
13:27 alker joined #salt
13:27 hatifnatt Hello, I have error "Rendering exception occurred: Jinja variable 'bool object' has no attribute 'system_config'" how can I find wich variable?
13:29 stooj joined #salt
13:35 pualj joined #salt
13:36 toanju joined #salt
13:46 pualj joined #salt
13:59 XenophonF I wonder if it's possible to pass install flags to winrepo packages from the pkg.installed state
14:00 XenophonF hm, maybe via Jinja...
14:00 georgemarshall joined #salt
14:01 edrocks joined #salt
14:02 Rumbles joined #salt
14:02 hatifnatt Nevermind, I found cause of this error. :)
14:04 ahrs joined #salt
14:11 rocket joined #salt
14:14 johnj joined #salt
14:15 johnkeates joined #salt
14:25 pualj joined #salt
14:27 ssolt joined #salt
14:27 Rumbles joined #salt
14:31 darkalia MTecknology: how di you push the custom python modules ? By adding it to /srv/salt/_modules directory ?
14:32 deuscapturus joined #salt
14:33 darkalia anyway, the correct syntax would {% set zones = salt['__utils__.function'](*args, **kw) %}
14:33 darkalia would be*
14:35 Rumbles joined #salt
14:36 englishm_work joined #salt
14:36 profoze joined #salt
14:42 razoredge joined #salt
14:42 rojem joined #salt
14:53 Rumbles joined #salt
14:56 Ricardo1000 joined #salt
14:56 ouemt joined #salt
14:57 ooboyle joined #salt
15:02 user-and-abuser joined #salt
15:06 racooper joined #salt
15:07 alker joined #salt
15:09 alker joined #salt
15:11 cyborg-one joined #salt
15:12 alker joined #salt
15:13 cyborg-one left #salt
15:15 Brew joined #salt
15:15 johnj joined #salt
15:17 alker joined #salt
15:18 csmule joined #salt
15:18 Kax joined #salt
15:22 alker joined #salt
15:23 ooboyle once I issue a command on the master (e.g., salt \* test.ping) how long does it sit in the queue waiting for minions to pick it up?
15:28 mcqueenorama joined #salt
15:37 deuscapturus joined #salt
15:38 DammitJim joined #salt
15:41 aldevar joined #salt
15:46 numkem joined #salt
15:58 hoonetorg joined #salt
15:59 saltslackbridge <gtmanfred> darkalia, if it is in there, it would be {% zones = utils.<modulename>.<functionname>(*args, **kwargs) %}
16:02 deuscapturus_ joined #salt
16:12 deuscapturus joined #salt
16:13 kellyp joined #salt
16:14 eprice joined #salt
16:16 johnj joined #salt
16:17 GMAzrael joined #salt
16:18 GMAzrael joined #salt
16:18 darkalia saltslackbridge: ok, got confused between custom execution modules and https://docs.saltstack.com/en/latest/topics/utils/index.html
16:19 GMAzrael joined #salt
16:21 _JZ_ joined #salt
16:21 GMAzrael joined #salt
16:24 Rumbles joined #salt
16:25 heaje joined #salt
16:28 GMAzrael joined #salt
16:30 Larri joined #salt
16:36 DarkKnightCZ joined #salt
16:42 cro joined #salt
16:43 DarkKnightCZ joined #salt
16:53 whytewolf MTecknology: _utils is for python modules, it isn't accessable through jinja.
16:54 whytewolf also for version checking salt.utils.version.version_cmp is exposed through pkg.version_cmp
16:55 whytewolf wait utils is accessable through utils?
16:57 whytewolf never saw any documentation about that
17:02 Sammichmaker joined #salt
17:06 saltslackbridge <gtmanfred> I didn't say it was, i said if it was it would be available through utils.
17:08 whytewolf ohhh. ok. I thought you were saying a utils dict was already in place in jinja.
17:08 cro joined #salt
17:13 Aikar joined #salt
17:14 MTecknology ah.. I guess I misunderstood. I guess this will just be a module instead.
17:17 johnj joined #salt
17:18 saltslackbridge <gtmanfred> i mean, you could write a salt.utils.call() module that just passes whatever the first argument is to the __utils__ dictionary in modules, that would be super easy
17:19 MTecknology that also sounds easy enough
17:20 vexati0n why is solaris such an awful OS
17:20 vexati0n trying to install salt on it, and even tho all the libraries are in place, salt claims it can't find libstdc++.so.6
17:21 saltslackbridge <gtmanfred> we provide a solaris version with our enterprise product
17:21 vexati0n yes, i know. it's the enterprise installer that won't work.
17:21 vexati0n that's all the information i am allowed to share at this point :
17:21 saltslackbridge <gtmanfred> open an issue with us internally then.
17:21 vexati0n i would if i had a current subscription. sadly, we are cheapos
17:22 saltslackbridge <gtmanfred> then good luck :slightly_smiling_face:
17:22 onlyanegg joined #salt
17:22 whytewolf that makes me sad :(
17:28 vexati0n also, salt-ssh doesn't work with solaris because it doesn't allow you to specify a path for python. i think that's why, anyway.
17:28 vexati0n maybe i can convince someone with bags of money to buy a subscription just for this subset of our infrastructure.
17:30 ooboyle it can't be THAT expensive, can it?
17:32 vexati0n last time I had a current subscription, the going rate was something like $100/host/year which is about twice what any cloud-based solution charges for monitoring, and with salt you're not even paying for someone else's hardware. i know this isn't monitoring, but it's the closest analogue really.
17:32 vexati0n our bill was supposed to be $150,000 but we talked them down quite a ways.
17:42 brd sjorge: ping
17:44 shanth whytewolf did you talk at salt conf?
17:45 whytewolf shanth: i did not.
17:45 shanth i thought you said you would be
17:45 shanth or maybe i have you confused with someone else from in here
17:47 whytewolf I was going to be, however i had to pull out unforchantly. I had no time to work on my talk.
17:47 shanth you could probably have winged it
17:49 whytewolf Eh. for my first talk ever, not sure winging it would have been the best idea.
17:49 ooboyle vexation: ok, not super cheap...
17:49 ooboyle vexati0n: ok, not super cheap...
17:49 shanth i woulda cheered for ya
17:49 shanth i watched a bunch of the salt talks. wish more people would show off actual states they wrote
17:54 shanth anyone using the nagios returner? curious to see what it returns to nagios
17:59 khaije1 How early does Saltstack start considering new talks?
17:59 khaije1 I'd like to start as early as possible :)
18:00 saltslackbridge <gtmanfred> we don’t start considering any of them until after the call for papers is closed
18:00 saltslackbridge <gtmanfred> next years saltconf is in september, so call for papers will probably open sometime in marchish?
18:00 saltslackbridge <gtmanfred> watch the saltstack twitter or home page/blog for information about when it openes
18:01 shanth what kind of papers?
18:01 whytewolf my 2 cents. you could start writing it now. and even if it doesn't get accepted you have a talk in the works for any other con that might have a salty influence.
18:01 MTecknology your talk submission
18:02 MTecknology If you start writing it now, it's quite likely it'll get accepted. :)
18:02 shanth sadly i only use a handful of salt tools to do 99% of our works. the other 1% is a little jinja or python to do something special but thats about it. we just dont need the fancy stuff at this time.
18:03 shanth is salt enterprise charged per minion?
18:03 ooboyle when using service.running in a state file, and with the name: field as the name of a pkg that installs 2 services, do both services get included with the preceding enable: True
18:05 saltslackbridge <gtmanfred> no
18:05 saltslackbridge <gtmanfred> you need the name of the service file
18:05 saltslackbridge <gtmanfred> so if you have two services, you will need to specify both services in names
18:05 saltslackbridge <gtmanfred> https://docs.saltstack.com/en/latest/ref/states/highstate.html#names-declaration
18:06 khaije1 Sounds good gtmanfred, gives me more time for polish :)
18:06 ooboyle ah, got it now. Thanks for the help. My syntax was off
18:13 GMAzrael_ joined #salt
18:14 fatal_exception joined #salt
18:14 AvengerMoJo joined #salt
18:18 vexati0n how do i use lgpo.set to both enable a policy /and/ configure an element inside it?
18:18 johnj_ joined #salt
18:21 impi joined #salt
18:22 mcqueenorama joined #salt
18:27 ooboyle saltslackbridge: Still failing but now with a stack trace. Is it possible that a Windows service set to be Manual will produce a Failed result when enable: True ?
18:28 kellyp joined #salt
18:30 onlyanegg joined #salt
18:33 oida joined #salt
18:33 nixjdm joined #salt
18:35 onlyanegg joined #salt
18:41 DarkKnightCZ joined #salt
18:45 Oida joined #salt
18:45 GMAzrael joined #salt
18:49 wongster80 joined #salt
18:53 fatal_exception joined #salt
18:58 dendazen joined #salt
19:02 IRCNickname joined #salt
19:03 tiwula joined #salt
19:05 Lenz joined #salt
19:05 Lenz joined #salt
19:06 ymasson joined #salt
19:08 pualj joined #salt
19:19 johnj_ joined #salt
19:23 Lenz joined #salt
19:24 edrocks joined #salt
19:25 dendazen joined #salt
19:34 DarkKnightCZ joined #salt
19:34 DarkKnightCZ joined #salt
19:39 saltslackbridge <chris.ruscio> minion config ping_interval (https://docs.saltstack.com/en/latest/ref/configuration/minion.html#ping-interval) is that a tcp ping or a test.ping job?
19:39 cruscio joined #salt
19:39 MTecknology gtmanfred: Would there be any sense in a PR for a utils execution module that handles the magic of calling a _utils module? or would that seem inappropriate?
19:43 MTecknology chris.ruscio: It's a communication thing, in this case zeromq related
19:45 MTecknology that's sorta lying.. You can see the ping happen on the event bus on the master with "salt-run state.event pretty=True"
19:54 XenophonF is it possible to watch the event bus on a minion?
19:54 XenophonF I wonder what the impact of having widely separated minions is on the salt-master
19:59 toanju joined #salt
20:03 cruscio @MTecknology - I removed the pretty=true and added a | grep  minionid (replace minionid with the minion's id) ... I can see events when I restart the minion, but nothing for 10 minutes with ping set to 120
20:04 cruscio ... worth noting I am also experimenting with TCP transport - so if that setting's ZMQ specific, that may be why
20:10 GMAzrael_ joined #salt
20:18 GMAzrael joined #salt
20:19 GMAzrael joined #salt
20:21 johnj_ joined #salt
20:31 Lenz joined #salt
20:35 kellyp joined #salt
20:42 mcqueenorama joined #salt
20:45 mcqueenorama can anyone recommend a salt cloud profile example for virtualbox? I'm getting an error on mine:  There was a profile error: invalid literal for int() with base 10: ''
20:46 mcqueenorama it creates the vm but throws an error
20:51 Lenz joined #salt
20:56 CrummyGummy joined #salt
21:01 mcqueenorama I'm using this as a sample:  https://docs.saltstack.com/en/latest/topics/cloud/virtualbox.html
21:02 mcqueenorama The profile there somehow its throwing a complaint about an base 10 int
21:04 edrocks joined #salt
21:05 saltslackbridge <gtmanfred> mtecknology, i have no strong opinions either way
21:05 saltslackbridge <gtmanfred> XenophonF, yes, use the eventlistener.py in side the tests directory in salt.
21:07 gtmanfred mcqueenorama:can you share your provider and profile in a gist.github.com?
21:22 johnj_ joined #salt
21:32 mcqueenorama @gitmanfred thx:  https://gist.github.com/mz-bmcqueen/528a6afbe94bb0e95c3cf8b4b6587571
21:36 fatal_exception joined #salt
21:37 saltslackbridge <gtmanfred> I don’t see anything obvious that would cause that error
21:42 mcqueenorama saltstackbridge, was that reply meant for me?
21:46 mcqueenorama same error on deleting the vm, though it deletes successfully
21:51 rojem joined #salt
21:53 dfinn joined #salt
21:59 Lenz joined #salt
22:01 onlyanegg joined #salt
22:03 deuscapturus joined #salt
22:13 lionel joined #salt
22:16 rojem joined #salt
22:23 johnj_ joined #salt
22:25 RandyT Greetings
22:26 RandyT is there a clever way to pass a variable from state file to jinja template render?
22:26 RandyT in file.managed
22:26 dlloyd context
22:27 rojem joined #salt
22:28 dlloyd if its a default use the 'defaults' argument, if its a specific override use `context`
22:28 RandyT digging for how I would apply this...
22:29 dlloyd the preamble for states.file (https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html) has some info after the first note block
22:30 gmoro joined #salt
22:31 fuzzy joined #salt
22:31 RandyT so appears I just pass it in defaults:
22:31 RandyT as a var, and that var is available in the template
22:31 gmoro joined #salt
22:32 dlloyd yup
22:32 RandyT thank you
22:33 absolutejam joined #salt
22:40 onlyanegg joined #salt
22:41 deuscapturus joined #salt
23:02 Linuturk joined #salt
23:06 dhwt__ joined #salt
23:07 dhwt__ joined #salt
23:09 dhwt joined #salt
23:15 jerichowasahoax left #salt
23:20 kellyp joined #salt
23:20 Aikar joined #salt
23:20 Aikar joined #salt
23:23 johnj_ joined #salt
23:28 packeteer joined #salt
23:34 mikecmpbll joined #salt
23:53 deuscapturus_ joined #salt

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