Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-03-25

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

All times shown according to UTC.

Time Nick Message
00:01 flowstate joined #salt
00:02 edrocks joined #salt
00:04 justanotheruser joined #salt
00:06 rem5 joined #salt
00:07 rory joined #salt
00:08 adrienr joined #salt
00:09 dober joined #salt
00:09 dober joined #salt
00:14 RandyT_ joined #salt
00:16 rory joined #salt
00:20 quasiben joined #salt
00:25 mosu_ joined #salt
00:26 hemebond LostSoul: Yes
00:30 LostSoul hemebond: So why it's giving me error: Specified SLS '.network' in environment 'base' is not available on the salt master
00:30 LostSoul When I used nagios.network it worked fine
00:30 LostSoul I'm curious if it's supppose to work like states
00:30 hemebond Can you paste your directory structure?
00:30 hemebond Hmm, pillars....
00:30 hemebond Lemme check, I'm not that familiar with includes.
00:31 hemebond According to the docs include should work. I need you to paste your directory structure.
00:32 hemebond e.g., tree
00:32 quasiben1 joined #salt
00:34 edrocks_ joined #salt
00:36 rem5 joined #salt
00:39 nZac joined #salt
00:42 quasiben joined #salt
00:44 ronnix_ joined #salt
00:44 justanotheruser joined #salt
00:45 lero joined #salt
00:46 quasiben2 joined #salt
00:52 quasiben joined #salt
01:00 flowstate joined #salt
01:05 edrocks joined #salt
01:08 ronnix joined #salt
01:09 RobertChen117 joined #salt
01:15 akhter joined #salt
01:18 LostSoul hemebond: You still around?
01:18 hemebond yip
01:20 LostSoul Sorry got busy, copying it now
01:22 LostSoul salt-pillars/nagios   in this folder I have init + 3 other pillar files
01:23 LostSoul I used .name1 .name2 .name3 in init.sls with include: - .nameX
01:23 hemebond Can you not paste the output of `tree` somewhere?
01:24 LostSoul sure
01:25 akhter joined #salt
01:25 LostSoul hemebond: http://paste.debian.net/hidden/aeba8a73/
01:26 hemebond And init.sls just includes network, cron and nagios?
01:27 LostSoul yes
01:29 LostSoul I did it the same way I did with states
01:29 hemebond I don't see any issue there.
01:29 LostSoul On states it worked
01:29 LostSoul Here I needed nagios.network to make it work
01:29 hemebond Except putting a nagios.sls inside a nagios directory. Seems odd.
01:29 brianfeister joined #salt
01:29 hemebond hmm
01:32 LostSoul Maybe :P
01:32 LostSoul But those are pillar for nagios machines and nagios inside is connected directly with nagios3 :)
01:32 LostSoul But it didn't work with even only .network inside
01:36 hemebond Yeah, looks like the dot notation doesn't work in pillars.
01:36 LostSoul Hehe :)
01:36 LostSoul Good to know
01:37 LostSoul So it wasn't my fault
01:37 hemebond Looks like it was added purely for states.
01:38 hemebond By the looks of it, so that formulas could access their internal stuff in a relative way.
01:38 hemebond That's why that documentation is under states.
01:44 ronnix joined #salt
01:46 edrocks joined #salt
01:46 kliquori joined #salt
01:47 keimlink joined #salt
01:49 quix joined #salt
01:49 hightekvagabond joined #salt
01:52 writtenoff joined #salt
01:55 quasiben joined #salt
01:56 polyidus joined #salt
01:58 LostSoul I see, it's clear now, thanks
01:59 joe_n joined #salt
01:59 akhter joined #salt
02:01 flowstate joined #salt
02:13 rhodgin joined #salt
02:17 RobertChen117 joined #salt
02:22 polyidus joined #salt
02:22 edrocks joined #salt
02:25 quasiben joined #salt
02:27 LostSoul hemebond: I've got hard time installing Comment: The following packages failed to install/update: megacli
02:28 LostSoul When I'm doing it from cmd line it's going fine
02:28 hemebond What do you mean by cmd line? Are you still using Salt?
02:29 LostSoul I imported gpg key and even tried with option   - pkg_verify: False
02:29 LostSoul But cmd I mean manually type apt-get install
02:29 hemebond Ah.
02:31 hemebond What if you use Salt execution module instead of a state module?
02:31 hemebond e.g.:
02:32 hemebond salt 'minion' pkg.install megacli
02:32 racooper joined #salt
02:32 ronnix joined #salt
02:35 kliquori joined #salt
02:37 catpig joined #salt
02:38 quasiben joined #salt
02:43 evle joined #salt
02:46 quasiben joined #salt
02:50 LostSoul Trying now
02:52 LostSoul nagios: ----------
02:53 aqua^c joined #salt
02:53 edrocks_ joined #salt
02:56 ninjada joined #salt
03:01 flowstate joined #salt
03:05 bfrog joined #salt
03:07 joe_n joined #salt
03:08 pfallenop joined #salt
03:08 pfallenop joined #salt
03:08 flowstate joined #salt
03:09 evle joined #salt
03:11 RobertChen117 joined #salt
03:18 brianfeister joined #salt
03:24 inire joined #salt
03:33 beardedeagle joined #salt
03:33 sauvin joined #salt
03:36 ronnix_ joined #salt
03:37 inire joined #salt
03:41 om joined #salt
03:41 brianfeister joined #salt
03:49 nZac joined #salt
03:55 beardedeagle Anyone know when tickets for saltconf have to be purchased by?
04:00 akhter joined #salt
04:02 edrocks joined #salt
04:02 whytewolf don't they go all the way up to opening day? or till they run out of tickets
04:03 whytewolf [just getting more expensive as time goes one]
04:05 whytewolf I also hate chicken and egg problems. I need to transfer a couple of files around. in order to setup the system that i will be using for transfering files between servers :/
04:08 rhodgin joined #salt
04:21 ronnix joined #salt
04:24 rhodgin joined #salt
04:29 iceyao joined #salt
04:31 beardedeagle @whytewolf: I hope that is the case, I have to apply for a corp card to pay for the conference. takes time.
04:37 kliquori joined #salt
04:38 hasues joined #salt
04:38 hasues left #salt
04:42 edrocks joined #salt
04:44 keimlink joined #salt
04:48 RobertChen117 joined #salt
04:53 favadi joined #salt
04:55 joe_n joined #salt
04:58 aboe joined #salt
04:59 Nazar joined #salt
05:09 ronnix joined #salt
05:14 aqua^c joined #salt
05:19 joe_n joined #salt
05:19 RobertChen117 joined #salt
05:23 kliquori joined #salt
05:23 7GHAALV13 joined #salt
05:27 NineInchNazara_1 joined #salt
05:27 garphy joined #salt
05:28 NineInchNazara_5 joined #salt
05:30 NineInchNazara joined #salt
05:40 justanotheruser joined #salt
05:41 hightekvagabond joined #salt
05:46 edrocks_ joined #salt
05:50 nZac joined #salt
05:53 NineInchNazara joined #salt
05:54 ronnix joined #salt
06:03 flowstate anyone have a fix for the "NameError: name 'ntsecuritycon' is not defined" issue on 2015.8.8?
06:03 flowstate trying to beachhead saltstack for all our stuff, this is really... well, really really slowing it down
06:06 TTimo joined #salt
06:07 flowstate oh. I see now that it's just log noise
06:19 stanchan joined #salt
06:25 kliquori joined #salt
06:27 mpanetta joined #salt
06:35 kshlm joined #salt
06:42 kshlm joined #salt
06:43 nidr0x joined #salt
06:47 NineInchNazara joined #salt
07:00 JohnnyRun joined #salt
07:00 nZac joined #salt
07:01 edrocks joined #salt
07:02 beardedeagle Has anyone else had issues when using reactors where an event will just get 'stuck' and not return anything. the master keeps firing off find_job's for it but the job is literally just stalled it looks like.
07:04 RobertChen117 joined #salt
07:16 cpowell joined #salt
07:23 flowstate joined #salt
07:25 harkx joined #salt
07:27 beardedeagle actually it looks like it keeps firing off the last state in my orchestration, but never actually running it
07:28 ronnix_ joined #salt
07:37 akhter joined #salt
07:52 mavhq joined #salt
07:58 ninjada joined #salt
07:59 flowstate joined #salt
08:05 edrocks_ joined #salt
08:07 punkoivan joined #salt
08:11 kliquori joined #salt
08:20 esharpmajor joined #salt
08:22 KermitTheFragger joined #salt
08:25 lero joined #salt
08:27 lero joined #salt
08:31 joe_n joined #salt
08:41 ninjada joined #salt
08:48 colegatron_ joined #salt
08:49 RobertChen117 joined #salt
08:50 edrocks joined #salt
08:54 iceyao joined #salt
08:57 lero joined #salt
09:01 mavhq joined #salt
09:01 josuebrunel joined #salt
09:04 flowstate joined #salt
09:06 flowstate joined #salt
09:12 cberndt joined #salt
09:12 kliquori joined #salt
09:13 s_kunk joined #salt
09:13 s_kunk joined #salt
09:16 morissette joined #salt
09:18 garphy joined #salt
09:20 ronnix joined #salt
09:25 ronnix joined #salt
09:26 akhter joined #salt
09:28 Rumbles joined #salt
09:35 ajw0100 joined #salt
09:35 GreatSnoopy joined #salt
09:36 joe_n joined #salt
09:38 jnials_ joined #salt
09:39 lynxman_ joined #salt
09:40 zenlot joined #salt
09:40 writtenoff joined #salt
09:40 nomad_fr joined #salt
09:40 elektrix joined #salt
09:41 adrienr joined #salt
09:43 ecdhe joined #salt
09:44 JohnnyRun joined #salt
09:45 oida joined #salt
09:51 Nazzy joined #salt
09:52 MTecknology joined #salt
09:53 kawa2014 joined #salt
09:53 eightyeight joined #salt
09:54 MadHatter42 joined #salt
09:55 N-Mi joined #salt
09:59 joe_n joined #salt
10:02 edrocks joined #salt
10:06 slav0nic joined #salt
10:09 wm-bot4 joined #salt
10:12 _sourpickle_ joined #salt
10:13 shiriru joined #salt
10:14 kliquori joined #salt
10:21 RobertChen117 joined #salt
10:29 mpanetta joined #salt
10:31 ninjada joined #salt
10:33 joe_n joined #salt
10:38 edrocks joined #salt
10:38 mavhq joined #salt
10:47 ronnix joined #salt
10:51 inire joined #salt
10:59 kliquori joined #salt
11:03 nZac joined #salt
11:03 Rebus joined #salt
11:15 WildPikachu joined #salt
11:16 edrocks joined #salt
11:16 dmaiocchi joined #salt
11:17 WildPikachu I am trying to reference a dictionary item using jinja {{ if tinc_host[shorewall_dir] is defined }} , tinc_host is my dict, and shorewall_dir is the name of the key, can someone point me to an example of how to do this?
11:17 WildPikachu *shorewall_dir contains the name of the key
11:17 mr_chris joined #salt
11:22 babilen tinc_host.shorewall_dir is defined
11:22 WildPikachu even though shorewall_dir is a variable?
11:22 babilen no
11:22 babilen Not in that case
11:23 babilen You could access it and check it later, you could use 'shorewall_dir' in tinc_host or just test for specific values/collection membership
11:23 WildPikachu as far as I read   abc['def'] is the same as abc.def  , my problem is the value of 'def' is in a variable
11:24 babilen I'm not sure that foo['bar'] is defined works ..
11:24 WildPikachu yep, works 100% :)
11:24 sfxandy joined #salt
11:24 babilen ah, great
11:24 WildPikachu http://jinja.pocoo.org/docs/dev/templates/#notes-on-subscriptions
11:24 babilen err, shorewall_dir in tinc_host naturally..
11:25 babilen Or has_key
11:25 WildPikachu ok, then how would I actually use the value of that dict in the template, thats the other problem :)   I currently have   {{  dict[key_variable]   }}  , let me try again
11:26 babilen You could also just iterate over k,v in that dictionary and use the data that is there
11:35 WildPikachu babilen, my bad, it works how I had it, I just had {{  }}  instead of {%  %}  :(
11:35 iceyao joined #salt
11:40 ninjada joined #salt
11:47 quasiben joined #salt
11:55 akhter joined #salt
11:56 edrocks joined #salt
12:06 quasiben joined #salt
12:07 metalseargolid joined #salt
12:09 mowntan joined #salt
12:09 mowntan joined #salt
12:10 mowntan joined #salt
12:18 _JZ_ joined #salt
12:27 evle1 joined #salt
12:30 kliquori joined #salt
12:42 punkoivan joined #salt
12:55 akhter joined #salt
12:59 edrocks_ joined #salt
13:02 ronnix joined #salt
13:05 subsignal joined #salt
13:05 subsignal joined #salt
13:07 mr_chris Using salt-cloud with Linode. Just upgrade from 2015.8.7 to 2015.8.8. Now the minion no longer gets installed on new nodes.
13:09 mr_chris Begin rant: I love salt and contribute back where I can, but these kinds of things are happening far too often. It has me considering alternatives.
13:09 mr_chris end rant
13:09 subsigna_ joined #salt
13:09 kliquori joined #salt
13:12 AndreasLutro I think a lot of people will agree with that
13:12 amcorreia joined #salt
13:14 mr_chris I've had two breakages in salt-cloud in the past 3 months.
13:14 akhter joined #salt
13:14 quasiben when executing a custom module, and targeting all minions, is it possible to get the hostname inside the function being executed ?
13:15 quasiben __pub_something ?
13:15 AndreasLutro __grains__['id'] ?
13:15 AndreasLutro or nodename if you want the hostname I guess
13:16 AndreasLutro mr_chris: I think salt-cloud is a bit easier to run off a git clone than salt master/minions, so you could try that in order to pick up bugs before they make it into releases
13:16 AndreasLutro I do that with salt-ssh
13:17 quasiben Thanks AndreasLutro!
13:18 mr_chris AndreasLutro, This is true. Unfortunately this is on what's considered the "stable" repo for CentOS. These problems are making it into releases. I can't count on being able to update safely.
13:18 AndreasLutro oh absolutely, I set up my own salt debian mirror so I can control which is actually the latest stable version myself
13:19 mr_chris AndreasLutro, That's what I do with CentOS in my home environment, but how do you do that with salt-cloud when it just slaps in the main repo and installs that latest from there?
13:21 AndreasLutro mmmm not sure what you mean, if 2015.8.8 has a bug in salt-cloud you'd just keep whatever machine(s) are running salt-cloud at 2015.8.7?
13:24 flowstate joined #salt
13:25 rhodgin joined #salt
13:25 mr_chris Say you are running salt-cloud 2015.8.7 on the master. When you provision a new node, salt cloud automatically installs and runs the salt bootstrap script.
13:25 mr_chris That installs the salt repo on the new minion and installs whatever the latest version of the salt minion is from that repo.
13:26 mr_chris That leaves you in a situation where the minion is newer than the master.
13:26 AndreasLutro right... which is why I don't use the official bootstrap script
13:26 mr_chris But salt-cloud does.
13:27 mr_chris It does not seem to give you a choice.
13:27 mr_chris Unless I'm missing something.
13:27 AndreasLutro I haven't used salt-cloud but https://docs.saltstack.com/en/latest/topics/cloud/misc.html mentions a script arg
13:27 AndreasLutro which I assume you can override to... something
13:32 linjan__ joined #salt
13:32 treaki joined #salt
13:32 akhter joined #salt
13:34 losh joined #salt
13:34 perfectsine joined #salt
13:37 mr_chris Oh good! New features of salt 2015.8.8 include new warnings and syntax errors! http://dpaste.com/2J4SNDC
13:37 bluenemo joined #salt
13:38 spankalish joined #salt
13:38 antpa joined #salt
13:40 spankalish Hi. If I do up an sls that is running a cmd.run on one of my minions. Is there any way I can run one of the commands on another minion from the same sls file?
13:40 mavhq joined #salt
13:40 cpowell joined #salt
13:40 cpowell joined #salt
13:41 metalseargolid joined #salt
13:41 spankalish Hi. If I do up an sls that is running a cmd.run on one of my minions. Is there any way I can run one of the commands on another minion from the same cmd.run sls file?
13:45 quasiben joined #salt
13:50 akhter joined #salt
13:50 jinkyu joined #salt
13:54 catpig joined #salt
13:54 akhter joined #salt
13:57 teryx510 joined #salt
13:57 jerredbell joined #salt
13:58 nZac joined #salt
14:00 jerredbell joined #salt
14:00 rhodgin joined #salt
14:02 edrocks joined #salt
14:02 cpowell joined #salt
14:05 quix joined #salt
14:05 Tanta joined #salt
14:11 garphy joined #salt
14:12 ronnix joined #salt
14:13 dumol joined #salt
14:14 dumol hi all… anyone else having problems with the latest sle 12 package from https://docs.saltstack.com/en/latest/topics/installation/suse.html? thanks
14:14 mavhq joined #salt
14:16 nZac joined #salt
14:16 andrew_v joined #salt
14:17 nZac joined #salt
14:19 punkoivan joined #salt
14:19 flowstate joined #salt
14:22 cpowell joined #salt
14:22 punkoivan joined #salt
14:25 mapu joined #salt
14:25 cpowell joined #salt
14:26 flowstate joined #salt
14:27 Rumbles joined #salt
14:29 antpa joined #salt
14:30 anthpa joined #salt
14:32 mpanetta joined #salt
14:34 dimeshake it seems salt-call makes no use of fileserver cache for gitfs states - any way to enable it?
14:34 perfectsine_ joined #salt
14:35 Netwizard joined #salt
14:41 rhodgin left #salt
14:44 metalseargolid joined #salt
14:49 akhter joined #salt
14:53 jerredbell joined #salt
14:55 timoguin joined #salt
15:00 west575 I found "salt sandbox". Loved the idea but hacked at it to make it useable/easy. I now have https://github.com/westes/salt-sandbox. Could salt officially link it in some manner?
15:06 akhter joined #salt
15:06 cpowell joined #salt
15:09 gtmanfred west575: looks intresting, i dropped it into our internal slack stuff to see what we can do.
15:10 quasiben joined #salt
15:11 hightekvagabond joined #salt
15:11 mr_chris left #salt
15:11 west575 gtmanfred: thanks!
15:15 akhter joined #salt
15:19 mohae joined #salt
15:19 berserk joined #salt
15:20 eseyman joined #salt
15:24 Brew joined #salt
15:25 spankalish How can I remove balanced node from haproxy using saltstack
15:26 babilen spankalish: The same way you add them -- https://docs.saltstack.com/en/latest/topics/reactor/#passing-event-data-to-minions-or-orchestrate-as-pillar -- Or gather their addresses with the mine and trigger highstate/state runs. Or combine both.
15:26 mavhq joined #salt
15:29 mapu joined #salt
15:30 spankalish babilen: Thanks, but I think I didn't really explain what I meant very well, I usually disable the server with something like this echo "disable server yourbackendname/yourservername" | socat stdio /etc/haproxy/haproxysock
15:31 spankalish babilen: But this would require finding the minion id placing it into the "yoursevername" and then running the command on the haproxy load balancer
15:32 babilen You could do that with a reactor also. You might even want to react to presence events and fire of the command whenever a minion goes away.
15:32 spankalish babilen: I'm unsure how to do this or if it would be the best way to accomplish what I want
15:32 babilen reactor with a suitable cmd.run that uses the minion id (i.e. yourservername)
15:33 spankalish babilen: Ok thanks, I better go read up about the reactor so :)
15:35 babilen I mean .. you don't have to do this with a reactor if you don't want it to happen automatically. You could just use "salt 'yourhaproxyminion' cmd.run "echo "disable server yourbackendname/yourservername" | socat stdio /etc/haproxy/haproxysock"" manually
15:36 Rumbles joined #salt
15:36 babilen It's just that you can automate calling that command
15:38 spankalish babilen: no I want it to run automagically! Doing it manually would defeat the purpose
15:39 babilen I figured as much
15:39 spankalish I've got this far I'll figure the reactor out too.
15:40 spankalish Thanks again
15:40 dumol the latest upstream salt-minion for sle12 refuses to start with the simplest config that only contains the "master:" line
15:41 babilen dumol: What happens instead?
15:43 dumol it keeps restarting itself
15:44 dumol 2016-03-25 17:43:49,547 [salt.minion      ][DEBUG   ][6453] Minion 'bs1i-lnx-sles12-x64-42' trying to tune in
15:44 dumol 2016-03-25 17:43:50,012 [salt.cli.daemons ][INFO    ][6453] The salt minion is shut down
15:44 dumol 2016-03-25 17:43:50,012 [salt.scripts     ][ERROR   ][6453] Minion failed to start
15:44 dumol 2016-03-25 17:43:50,013 [salt.scripts     ][WARNING ][6453] ** Restarting minion **
15:45 dumol for this log, the debug option was added
15:46 babilen No traceback or anything like that?
15:46 babilen (and nothing weird in the minion config like stray whitespace ...)
15:47 dumol the minion config is served through salt, has worked for years, no problem on other os'es, including sles11sp3
15:48 tkharju joined #salt
15:48 babilen ack
15:48 jfindlay what happens if you remove/disable all minion config files?
15:48 babilen That isn't really much to work with. Could you remove the ... ^^^
15:49 jfindlay same for minion `/etc/salt/pki`
15:50 dumol if i remove /etc/salt, if keeps restarting, but with less stuff in the log, as the debugging mode is not enabled
15:50 gtmanfred also maybe /var/cache/salt
15:50 gtmanfred salt-minion -l debug
15:50 babilen dumol: So it restarts regardless of the content of the minion config?
15:50 gtmanfred how did you install salt?
15:51 gtmanfred i wonder if there are old .pyc files in the site-packages directory
15:51 dumol the same after removing for /var/cache/salt
15:52 dumol hhmmm, -l debug shows more than the debugging log:
15:52 babilen → http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, …
15:52 jfindlay does `salt-minion -l trace` show any more?
15:52 dumol [DEBUG   ] Minion 'bs1i-lnx-sles12-x64-42' trying to tune in
15:52 dumol /usr/lib64/python2.7/site-packages/pygit2/__pycache__/pygit2_cffi_ccb73b72x5470904.c:2:20: fatal error: Python.h: No such file or directory
15:52 dumol #include <Python.h>
15:52 dumol ^
15:52 dumol compilation terminated.
15:52 dumol [INFO    ] The salt minion is shut down
15:52 babilen Please paste to one of http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, …
15:53 dumol "-l trace" gives the same fatal error
15:53 gtmanfred install python-devel?
15:53 babilen How was that minion installed?
15:53 gtmanfred it sounded like he was using the sles12 repo on the docs page
15:54 flowstate joined #salt
15:54 babilen Maybe, but then I wonder why the packaging requires Python.h for pygit compilation
15:54 gtmanfred well, it looks like pygit2 is using cffi, which compiles the c stuff at runtime
15:54 gtmanfred cffi is magic
15:55 garphy joined #salt
15:56 dumol i used the sle12 repo from https://docs.saltstack.com/en/latest/topics/installation/suse.html
15:56 dumol there is no python-devel rpm to be found by zypper, the only match is libroot-bindings-python-devel
15:57 babilen python-dev ?
15:57 gtmanfred whatever python package provides the python headers in suse
15:57 gtmanfred i don't actually know
15:58 nethershaw joined #salt
15:59 jfindlay dumol: you installed from here: http://repo.saltstack.com/#suse?
16:00 jfindlay see step 4 on that page
16:03 nZac joined #salt
16:04 gtmanfred interesting
16:04 gtmanfred silly cffi stuff
16:04 dmaiocchi joined #salt
16:04 punkoivan joined #salt
16:05 nZac joined #salt
16:06 dumol thanks, i'm focusing on installing python-devel now, i think for sles i have to use the install dvd's
16:07 cpowell joined #salt
16:07 murrdoc joined #salt
16:08 murrdoc any ideas on installing an ubuntu task
16:09 dumol found it on the third dvd
16:09 dumol and the sles12 minion is up and running now
16:09 babilen murrdoc: Such as?
16:09 dumol thanks a lot!
16:10 dumol perhaps the dependency list for the rpm needs updating?
16:10 murrdoc babilen: like install the 'ubuntu-server' task
16:10 murrdoc similar to https://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html#salt.states.pkg.group_installed
16:11 dumol jfindlay: nope, i used https://docs.saltstack.com/en/latest/topics/installation/suse.html
16:12 babilen murrdoc: Is it listed by "tasksel --list-tasks" ?
16:12 murrdoc yeah
16:13 dumol i'll keep in mind to use http://repo.saltstack.com/ from now on
16:13 babilen Then "tasksel install ubuntu-server" should install it. Maybe there's a package for it .. check "apt-cache search ubuntu-server"
16:13 murrdoc sorry
16:13 murrdoc ubuntu-standard
16:13 murrdoc and openssh-server
16:14 murrdoc linux-generic
16:14 babilen Wait, so you don't want ubuntu-server ? (couldn't find a trace of that anywhere)
16:14 hasues joined #salt
16:14 hasues left #salt
16:14 murrdoc yeah, i meant ubuntu-standard
16:14 babilen Just "pkg.install ubuntu-standard"
16:16 dumol i see you have up-to-date versions for debian too on repo.saltstack.com, was wondering why debian was left behind :-]
16:17 babilen dumol: Debian has 2015.8.7+ds-1
16:18 babilen (and i'm currently working on .8)
16:19 kliquori joined #salt
16:19 ALLmightySPIFF joined #salt
16:19 dumol good to know, we are still using the repos from https://docs.saltstack.com/en/latest/topics/installation/debian.html and are on 2015.5.3 currently
16:19 lungaro can I rant a little bit here about the fqdn grain?
16:20 lungaro why in the world would it use the "longest" name when trying to get the systems fqdn when a value is already returned?
16:20 lungaro (in the event of multiple records existing) ?
16:21 ALLmight_ joined #salt
16:21 babilen dumol: I'd recommend to switch to repo.saltstack.com or wait for new versions to hit jessie-backports. That will happen soon when python-systemd becomes available for jessie.
16:22 dumol i'll switch next week, thanks
16:22 onlyanegg joined #salt
16:22 dumol we are only testing the oldstable debian though
16:30 edrocks joined #salt
16:33 akhter joined #salt
16:34 akhter_1 joined #salt
16:36 akhter_1 joined #salt
16:37 aharvey joined #salt
16:42 sfxandy joined #salt
16:44 flowstate joined #salt
16:48 Rumbles joined #salt
16:48 antpa joined #salt
16:48 bhosmer_ joined #salt
16:52 beardedeagle *sigh* day two of trying to figure out why reactor jobs are stalling
16:52 anthpa joined #salt
16:57 spankalish babilen: you here?
17:00 beardedeagle anyone know how to no-op in the top.sls? I mean I need the file but I dont want it to do or impact anything
17:00 ageorgop joined #salt
17:02 edrocks_ joined #salt
17:03 spankalish beardedeagle: Don't really know what you mean, If you don't want it to do or impact anything why do you need it?
17:03 beardedeagle base:
17:03 beardedeagle '*':
17:03 beardedeagle []
17:03 beardedeagle doesnt work
17:03 beardedeagle but basically what I am looking for
17:07 babilen beardedeagle: Why do you need the file?
17:07 babilen And, if you don't target any SLSs you get the "no foo found" error on highstate
17:08 mavhq joined #salt
17:08 spankalish beardedeagle: What babilen said
17:10 quix joined #salt
17:10 spankalish babilen: would I need a jinga template to achieve what I was on about earlier. I mean I need to use a variable for the servername in echo "disable server yourbackendname/servername" | socat stdio /etc/haproxy/haproxysock
17:10 mavhq joined #salt
17:12 spankalish babilen: and that need to be the minion name that is being configured when highstate is ran, but the sls file needs to be ran on the haproxy sever
17:12 babilen spankalish: You want to construct the argument to the cmd.run with the minion name, yeah .. A simply string concatenation or formatting should suffice for that.
17:13 babilen data['id'] should be the id of the minion in question. A simply "disable server yourbackendname/%s | socat stdio /etc/haproxy/haproxysock"|format(data['id']) is what I am referring to more or less
17:14 babilen (depending on the event you react to, adjust as necessary)
17:14 babilen You might want to watch the event bus a little to get a feeling for the events you can react to. Have you enabled presence events already?
17:15 spankalish babilen: No
17:15 oscar__ joined #salt
17:15 babilen Which event are you using now?
17:15 spankalish babilen: I was going all out bash with it like https://gist.github.com/Spankalish/04b97cc99b0cd827e310
17:15 babilen yeah, that doesn't work
17:16 spankalish But I don't know how I would run that on the LB
17:16 spankalish Ok
17:16 babilen You want to refer to data in the 'data' dictionary that is part of the event you work with
17:16 babilen data['id'] is the id of the minion that fired the event
17:17 oscar__ Hi! When executing highstate on minions I see lots of "An error was encountered while installing package(s): E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)" messages in the minion log. It's like several processes were trying to 'apt-get install' at the same time.
17:17 spankalish When you refer to events you mean the name for the event that is run in the sls file?
17:18 spankalish or the name of the sls file itself?
17:18 babilen spankalish: I am referring to the event itself (i.e. what is being fired by https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.event.html#salt.modules.event.fire_master and handled on the master)
17:19 Topic for #salt is now Welcome to #salt! | Latest Version: 2015.8.8 | SaltConf16: http://saltconf.com/register/ | Paid support available: https://www.saltstack.com/support/ | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | See also: #salt-devel, #salt-offtopic | Ask with patience as we are volunteers and may not have immediate answers
17:22 oscar__ Is any way to avoid concurrent 'apt-get install' in a minion provisioning?
17:25 nZac joined #salt
17:25 iggy oscar__: salt shouldn't call it concurrently
17:25 spankalish babilen: I'm not 100% sure I understand that to be honest. The events are what drives the reactor. When a reactor see's an even it fired it runs what ever is configured for that event?
17:26 iggy (It's not designed that way, and I've never seen it happen, and it would obvioulsy break in the case of dpkg)
17:27 iggy oscar__: I would guess that something else on your system (not salt) is installing something
17:27 babilen spankalish: Yes and part of that event is a dictionary (data) that you can refer to in the SLS that "handles" the event.
17:27 babilen oscar__: Do you have an apt* process running on the minion? Do you get the same error when you run the command manually on the minion or does this only happen during the highstate run?
17:28 Tanta salt is not a parallel executor, it should only fire 1 apt-get at a time unless you do something stupid like cmd.run('apt-get install pkg &')
17:28 iggy it's only parallel across minions, not within the same minion
17:29 babilen And I have *never* seen that problem
17:29 spankalish babilen: So in the part of an sls file that you want the reactor to kick in you just place in the event fired tag and have the reactor sls file have that tag to react to?
17:29 babilen spankalish: Could you paraphrase that question?
17:29 babilen (or be more specific)
17:30 Tanta you could make apt-get barf if you did cmd.run('apt-get install pkg1 & apt-get install pkg2 & apt-get update') or something but you'd have to opt-in to that
17:30 spankalish babilen: Well it has me confused so trying to make since of how to ask it is confusing :)
17:31 babilen spankalish: You essentially have the master configuration (where you say: "If this event is being received, run FOO sls") and the SLS itself that is being used to "handle" the event. In that SLS you can refer to data['id'] to get the ID of the minion that fired the event.
17:31 oscar__ iggy: this is a highstate being triggered after an AWS EC2 instance is created. It's provisioning it's being handled by ec2-autoscale-reactor https://github.com/saltstack-formulas/ec2-autoscale-reactor/. I will try to check process list while this happens.
17:31 oscar__ babilen: will check those things
17:31 babilen cool
17:33 iggy oscar__: yeah, make sure something in cloud-init isn't installing packages or whatever
17:34 iggy should be able to see it in the instance console log
17:37 edrocks joined #salt
17:38 oscar__ iggy: I guess that's exactly the issue. cloud-init is still installing stuff when the highstate triggers
17:39 spankalish babilen: Oh.....so lets say in a state.highstate where I install nginx, do I put in an event fired here with a tag and then query for that event in the reactor using the data['id'] so I know what minion fired the event?
17:39 aw110f joined #salt
17:43 babilen spankalish: Which event(s) do you want to react to? My feeling is that you are looking for presence events (i.e. events that are being fired when a minion becomes available or unavailable). I'd recommend to enable them on the master (presence_events: True in the master config -- https://docs.saltstack.com/en/latest/ref/configuration/master.html#presence-events) and watch the event bus with "salt-run state.ev
17:43 babilen ent pretty=True"
17:43 babilen Also take a look at https://docs.saltstack.com/en/latest/topics/event/master_events.html
17:44 babilen You can, naturally, fire your own events during state runs, but .. well .. I'm not sure what you want to achieve exactly. It sounded as if you want to reconfigure haproxy whenever minions become available or go away ..
17:44 murrdoc or
17:44 murrdoc you can fire the event on the 'success' of a state
17:44 babilen sure
17:45 mowntan joined #salt
17:45 mowntan joined #salt
17:48 spankalish babilen: I have a 6 webserver set up, with a LB. If I am updating the webservers web content I don't want users access the webserver so I want the connection between the LB and the webserver to go down while maintenance is being done. But I want this happening in a rolling fashion. eg: update minion1, so take down that connection, once update is down, being the connection back up and move onto minion2 and minion3 and so on. Through
17:49 babilen And you are writing "maintenance" states?
17:49 spankalish *update is done, not done
17:49 spankalish babilen: don't even know what they are
17:50 babilen A state that does whatever is needed for "updating the webservers"
17:50 babilen fwiw .. health checks in haproxy should cover that, shouldn't they?
17:50 babilen https://www.haproxy.com/doc/aloha/7.0/haproxy/healthchecks.html
17:50 babilen When a backend goes away it will no longer be included
17:52 Tanta I have a bash script that does exactly that with an ELB
17:53 Tanta except rather than a 1-by-1 rolling update, it splits the entire set into two halves and operates on them one at a time
17:53 spankalish Tanta: so it takes down 2 at a time?
17:54 Tanta if you have 4 nodes, sure, but it's X/2 at a time
17:54 spankalish Oh so with 6 it would be 3
17:54 babilen indeed
17:54 babilen You could even do that with salt's batch processing
17:55 spankalish Jesus so many different ways.
17:55 Tanta yep, if you're using mine or reactor you could do it all with Salt
17:56 babilen "salt 'foo-web*' -b 50% state.sls maintenance.20160325.webservers"
17:56 spankalish I have salt mine set up with internal ips. I could easily add in more
17:56 Tanta my bash script is just a wrapper to GNU parallel with a 'sudo salt-call state.sls' via ssh
17:56 babilen (assuming maintenance.20160325.webservers is the state that does "the thing that is needed for updating"). In that state you could fire an event that takes them out of the rotation.
17:56 Tanta the deployment is handled locally by each minion using a specific Salt state
17:57 Tanta but I am running masterless, so my orchestration is a little more finicky than if you had one central master
17:57 spankalish Yea. I have done this with Ansible, but now I'm trying out salt
17:58 spankalish They're simiar, but also totally different
17:58 babilen spankalish: Why don't you get a reactor working that adds or removes webservers whenever they become available or go away. At that point it should be trivial for you to adapt that to react to a custom event that you can use in your "maintenance" state which you use to do all the work that is needed for "updating the webservers" (e.g. package upgrade, clearing of caches, pre-cuddling of kittens, ...)
17:58 aharvey Looking at https://github.com/saltstack-formulas/salt-formula if I set the pillar so master is the vagrant assigned IP address - the highstate run flunks out due to {{ slspath }}.  How is this to be reconciled?  out of the box is not very intuitive for this formula
17:58 Tanta all you need is a way to get a dynamic listing of servers with your master
17:58 Fiber^ joined #salt
17:59 spankalish bebilen: pre-cuddling of kittens?? Please expand!
17:59 babilen (it was a joke)
17:59 spankalish I know
18:00 spankalish I'm Irish, we invented jokes!
18:00 babilen Pre-cuddles kittens are generally more loving, so I tend to try to include that during kitten provisioning
18:01 babilen I'm heading out for a bit...
18:02 spankalish No probs babilen Thanks for the help. Pointing me in the right direction anyway
18:02 Rumbles joined #salt
18:05 babilen spankalish: There simply are many powerful systems and it really depends on what you want to do exactly ...
18:07 flowstate joined #salt
18:08 rmnuvg joined #salt
18:09 sxar joined #salt
18:10 patrek joined #salt
18:18 nZac joined #salt
18:20 |Fiber^| joined #salt
18:21 cilkay joined #salt
18:21 edrocks joined #salt
18:22 Ashald Are there any particular reasons why we don't have sdb.delete in Salt?
18:23 Ashald If no I'd be glad to contribute a pull-request
18:25 aw110f Hi, does anyone know what variable type is the mem_total grain?
18:28 timoguin_ joined #salt
18:28 beardedeagle I feel like: 'IMPORTANT: Do not use {h_type} hashing algorithm! Please set "hash_type" to SHA256 in Salt {d_name} config!' could be misleading to new salt users, as they might literally put "SHA256" in their config and break things.
18:30 aw110f in my salt state i want to do a conditional if the size of mem_total grain is less than a threshold, then do something
18:31 jfindlay Ashald: go for it, but be sure to ping techhat
18:33 forrest joined #salt
18:36 GreatSnoopy joined #salt
18:37 eseyman joined #salt
18:39 hightekvagabond joined #salt
18:40 Fiber^ joined #salt
18:42 akhter joined #salt
18:45 |Fiber^| joined #salt
18:45 polyidus joined #salt
18:46 _Fiber^_ joined #salt
18:46 dimeshake i want to extend the node-formula to rhel/centos/amazon linux - these distros don't have nodejs in their base repositories, so node_pkg and npm_pkg would be blank. I've got it working with install_from_binary, as that's probably the only way that will work on these distros, but can anyone advise on a better way to extend?
18:46 dimeshake https://github.com/forumone/node-formula/commit/f2749dd76c27bc8963ea39493c242acd561bd311
18:47 dimeshake there's what i've done so far just to get it working immediately
18:47 |Fiber^| joined #salt
18:47 dimeshake i think that might actually be all that's necessary, but i should test install_from_source too, i guess
18:48 sxar joined #salt
18:48 dimeshake mm i'd need to update the build from source state to lookup build deps by OS too
18:52 forrest Is anyone in here looking for remote people to run their Salt infrastructure?
18:52 beardedeagle god I wish
18:53 forrest Me too ;)
18:53 beardedeagle I am the only person here who does salt, we need another
18:53 beardedeagle but we have no budget to hire
18:53 beardedeagle yet
18:53 Guest5213 joined #salt
18:54 Guest5213 Cheers all and happy Friday!
18:54 forrest That's always fun
18:54 beardedeagle everyone else here is googoo for masterless puppet
18:54 forrest Puppet is so bleh though :(
18:54 beardedeagle wanna see something terrible?
18:54 forrest It kept me from applying to Mozilla, I just can't deal with Puppet's nonsense again
18:54 forrest No I have had enough puppet for a lifetime
18:54 beardedeagle https://github.com/beardedeagle/puppet-salt
18:55 beardedeagle They made me write a masterless puppet module to install salt
18:55 beardedeagle ...
18:55 forrest Hah
18:55 beardedeagle made my face hurt
18:55 s_kunk joined #salt
18:56 hightekvagabond joined #salt
18:56 beardedeagle Would be cool though if saltstack did something similar to django
18:56 beardedeagle where they had a specific part of the site dedicated to workers looking for work or employers looking for workers
18:57 beardedeagle but I think that would defeat the point of paid support?
18:58 forrest Without a doubt
18:58 sxar joined #salt
19:02 jmcadden joined #salt
19:04 ajw0100 joined #salt
19:06 hightekvagabond joined #salt
19:09 sxar joined #salt
19:09 sxar joined #salt
19:10 flowstate joined #salt
19:12 jmcadden hello everyone, question for you: given a salt state that depends on another state, what is the correct way to 'skip' applying the dependency state without causing the dependent state to fail? For example,
19:12 beardedeagle unless? onlyif?
19:13 mavhq yeah, that's a bit tricky socially, worth asking anyway though, if they don't want to, set up as a independant site
19:13 forrest mavhq, I built a remote jobs site earlier this year but it hasn't been doing great. Maybe I'll rework it for salt.
19:13 beardedeagle @mavhq: Don't want to step on the salt dev's toes though
19:13 beardedeagle it's a great product
19:14 jfindlay beardedeagle, forrest: I'll ping our marketing guy again on that
19:14 jmcadden I have a state which starts a process and listens on a particular device, and another state that will setup the device. Currently the device setup will execute "unless" the device already exists, however this causes the initial state to fail
19:14 forrest jfindlay, The job site thing? I doubt they would go for it since it's directly competing with them.
19:14 beardedeagle agreed, the follow up is awesome though
19:15 jfindlay not necessarily
19:15 forrest Cool
19:16 beardedeagle sweet
19:16 jmcadden Basically, hitting an 'unless' case in a 'required' dependency will cause the dependant state to fail, which I don't want
19:16 beardedeagle I knew there was a reason I liked you @jfindlay
19:17 jfindlay beardedeagle: it helps to be working for a great company :-)
19:17 beardedeagle so why do you need the required if you can just do a onlyif
19:18 forrest jfindlay, On that note http://saltstack.com/careers/ is down.
19:18 forrest jfindlay, Sigh nevermind, 502 just stopped
19:18 * forrest shrugs
19:19 jmcadden @beardedeagle the required is on the dependency state (start the server), the unless is on the state 'required' by the dependancy (setup the interface) . It's unclear which one should have the onlyif
19:20 jfindlay wha
19:20 jfindlay forrest: works4me
19:20 forrest jfindlay, It works for me now as well
19:21 jmcadden @beardedeagle, if "start the server" requires "setup interface", and "setup interface" will run "onlyif" interface-is-not-setup. How do I ensure "start the server" runs even if the "onlyif" case is false
19:27 aharvey joined #salt
19:29 alexs__ joined #salt
19:30 jmcadden It seems that salt requisites is missing a "require only if" dependency
19:31 jaybocc2 joined #salt
19:31 ajw0100 joined #salt
19:33 beardedeagle hmm
19:33 beardedeagle maybe https://docs.saltstack.com/en/latest/ref/states/requisites.html#prereq ?
19:35 tkharju joined #salt
19:37 morissette joined #salt
19:38 jmcadden Yeah, I looked at prereq, and I am pretty sure I will the same case. i.e., "start the server" will only execute if the "setup the network" state is good-to-execute, and not if the "setup the network" hit an unless or if-only condition
19:38 jmcadden ^ this with "setup network" being a prereq of "start the server"
19:39 beardedeagle well. yay chicken and egg situations
19:39 mavhq joined #salt
19:40 jmcadden well, not really chicken-or-egg, because setup-the-network could be a requirement of many states. If the 'start-the-server" is being applied at a later time, I want to make sure the network-setup state already been applied, and, if not, apply it
19:40 Rumbles joined #salt
19:41 babilen jmcadden: Why don't you forego the requisites at all and simply use a "unless: interface-is-not-setup" ?
19:41 cilkay Hello. I have a masterless minion configuration with 50+ states. I created a very simple Django application to generate the YAML configuration file that the states use and I have a shell script that is watching that config file for changes. When it detects the change via inotify, it executes highstate.
19:41 beardedeagle I asked that, but he/she seems to need the required
19:41 cilkay I'd like to display the progress of the states via Django. Where can I tap into to see progress through the states?
19:42 jmcadden hah, "he"  is right
19:42 babilen Also .. the underlying problem is that "setup the network" is wrong in salt. You want "network_up" which simply "does the right thing" and is true if it worked.
19:43 jmcadden @babilen, yeah I figure something about my plan is "wrong in salt" just not sure which... but if I remove the require and the network isnt setup, I'd want to set-it-up then
19:43 babilen s/if it worked/if it is not up/
19:43 cilkay I've thought of doing "touch somefile" and using inotify to watch the directory containing "somefile" but that seems like an ugly hack given that there must be a way to do this cleanly in Salt.
19:44 cilkay All the methods I've read about so far assume a master/minion configuration.
19:45 jmcadden hmm.. network_up which "do the right thing" and true if any case works.. I'm imagining a bash script executed with the logic within. A bit ugly but that seems like a possibility
19:45 heaje joined #salt
19:46 subsignal joined #salt
19:46 jmcadden ^^ would be nice to do it clean within salt. "require X if Y"
19:46 babilen I mean, in the end, you want a proper state for this. You could write a state module that uses suitable functions in the corresponding execution modul.
19:46 babilen *module
19:47 jaybocc2 joined #salt
19:47 babilen Still not entirely sure why prereq isn't working for you
19:47 babilen Or what happens that you don't want happening
19:48 supermike I've got a heck of a dependency tree i'm trying to make sense of and would love suggestions:  I need to purge package ntp, remove a cache file and restart apparmor once, then install openntpd.
19:48 supermike Trying to avoid "just write a shell script..." :)
19:49 jmcadden basically, I am applying two independant states that both "require" (or have a prereq of) that a 3rd network-config state is applied
19:50 jmcadden What is happening is the network-config state will fail if it is applied twice, causing the state that 'require' network-config to also fail
19:51 jmcadden network-config will fail because it will be applied "only-if" the network isn't already configured
19:52 kliquori joined #salt
19:52 babilen So, make sure that network-config doesn't fail
19:52 babilen That's the underlying issue
19:52 jmcadden Yeah, I agree
19:53 jmcadden I was surprised that "unless" caused it to fail
19:54 babilen *nod*
19:54 jmcadden right now the network state is "-run.cmd: ip link add mydev -unless: ip link show mydev"
19:56 cilkay On my masterless minion, when I do "salt-call --local state.highstate", is there a way that I can track which of the states is currently executed? Can I add my own custom messages in the states and capture those?
19:57 cilkay *is being currently executed*
19:58 viq joined #salt
19:59 flowstate joined #salt
19:59 Rumbles joined #salt
20:00 cyborg-one joined #salt
20:01 jmcadden although a work-around is simple in my case, I am surprised that a salt state requisites is not expressive enough to handle this (seemingly common) case. Like a "skip-and-pass" condition
20:02 babilen jmcadden: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.network.html ?
20:02 jmcadden i.e., skip applying a state but still consider the state successfully applied
20:03 babilen anyway .. time off now. All the best!
20:11 beardedeagle I do have a real chicken and egg situation: https://gist.github.com/beardedeagle/5197df0c78f731be7da9#file-syndic_state-sls-L82-L90
20:11 guanophobic joined #salt
20:12 jmcadden babilen: thanks again for your help! thinking in the "salt" way is half the battle :)
20:15 AndreasLutro beardedeagle: just replace the onlyif with a test -f ?
20:16 ALLmightySPIFF joined #salt
20:16 beardedeagle yeah I just changed it to [ -f /home/sltcldadm/.ssh/id_rsa.pub ]
20:19 beardedeagle @AndreasLutro: just updated gist https://gist.github.com/beardedeagle/5197df0c78f731be7da9#file-syndic_state-sls-L90
20:19 beardedeagle Rendering SLS 'base:cppv3.syndic_stage' failed: mapping values are not allowed here; line 90
20:19 PeterO joined #salt
20:19 AndreasLutro line 90 in the yaml is not necessarily line 90 in the sls
20:20 beardedeagle that is def the line it is complaining about
20:20 beardedeagle basically it is failing to do the idrsakey
20:21 lero joined #salt
20:22 beardedeagle funny thing is, if I put this in a seperate state it will work
20:22 beardedeagle or did
20:22 AndreasLutro I suspect the error is somewhere in the data you've redacted
20:22 AndreasLutro it's messing up the yaml rendering somehow
20:22 AndreasLutro or possibly the {{ idrsakey }}
20:24 beardedeagle yeah I am thinking it is the {{ idrsakey }} too. something about that it is not liking
20:26 beardedeagle yeah it is my set $VAR's that it is hating
20:26 beardedeagle both of them
20:27 lero joined #salt
20:32 heaje joined #salt
20:36 Rumbles joined #salt
20:37 timoguin joined #salt
20:37 west575 joined #salt
20:56 hightekvagabond joined #salt
21:00 flowstate joined #salt
21:04 brianfeister joined #salt
21:05 teatime - [ -f /home/{{ pillar['makemaster-secrets']['nova-credentials']['os_username'] }}/.ssh/id_rsa.pub ]
21:05 teatime that makes a yaml array, right?
21:12 beardedeagle the test part is fine
21:12 beardedeagle it is complaining about the - repl below it
21:12 beardedeagle it is not interpreting the pillar
21:13 teatime I was just wondering
21:13 teatime so yaml sees that as a string, then?
21:13 beardedeagle so the cat is failing
21:13 beardedeagle the test?
21:13 beardedeagle or the repl
21:14 punkoivan joined #salt
21:14 punkoivan left #salt
21:17 teatime the test
21:17 teatime yaml.safe_load def. sees that as an array here
21:17 teatime note: I am not saying it's your problem, it's a totally separate curiosity of mine.
21:18 teatime >>> y = "test:\n  - [ -f /home/.ssh/id_rsa.pub ]"
21:18 teatime >>> import yaml
21:18 teatime >>> yaml.safe_load(y)
21:18 teatime {'test': [['-f /home/.ssh/id_rsa.pub']]}
21:27 beardedeagle you are right teatime, I am wrong
21:27 beardedeagle been talking in pocoo to the jinja gods
21:27 beardedeagle seems I don't know squat about jinja
21:28 teatime [] makes an array, {} makes a dict, like python.
21:28 beardedeagle sorry I am talking about this:
21:28 beardedeagle {% set saltkeyname = salt.cmd.run('hostname --short') + '-' + pillar['makemaster-secrets']['nova-credentials']['os_tenant_name'] + '-' + salt.cmd.run('cat /dev/urandom | tr -dc a-zA-Z0-9 | fold -w 10 | head -n 1') %}
21:28 beardedeagle they were helping me with that one
21:30 aharvey joined #salt
21:30 * beardedeagle feels dumb
21:31 ninjada joined #salt
21:32 tvinson beardedeagle: with jinja i don't think you can use an expression inside a statement
21:32 beardedeagle are you refering to my setkeyname?
21:33 tvinson beardedeagle: yeah on set idrsakey you've got {{}} inside {% %}
21:33 beardedeagle oh yeah
21:33 beardedeagle that was part of what they had told me, havent updated the gist
21:34 ajw0100 joined #salt
21:34 berserk joined #salt
21:35 dtsar joined #salt
21:36 dmaiocchi joined #salt
21:38 Rumbles joined #salt
21:41 LostSoul hemebond: Hi
21:41 LostSoul Are you online today? :)
21:43 rem5 joined #salt
21:46 bhosmer_ joined #salt
21:46 mTeK Is there a way to speed up my master? It takes awhile for it to return the first command.
21:49 nZac joined #salt
21:51 onlyanegg joined #salt
21:52 forrest mTeK, By command do you mean the command to a minion?
21:53 brianfeister joined #salt
21:57 LostSoul Did anyone meet - pkg.verify not implemented
21:58 onlyanegg joined #salt
21:59 flowstate joined #salt
22:03 flowstate joined #salt
22:05 onlyanegg Does anyone here have experience with hashicorp's terraform? What are some differences/pros/cons between terraform and salt-cloud? Any articles/blogs/email-chains you have read? Thanks!
22:05 beardedeagle updated the gist: https://gist.github.com/beardedeagle/5197df0c78f731be7da9
22:05 iggy LostSoul: it's only on some pkg modules
22:06 beardedeagle problem is I run that and it just gets stuck
22:06 beardedeagle logged into the minion and cat, fold, and tr are pegging out at 98% cpu
22:07 Ashald jfindlay thanks
22:14 LostSoul iggy: Thanks
22:14 LostSoul iggy: By modules what do you mean?
22:15 LostSoul I'm having problem to install megacli from hwraid
22:16 LostSoul I'm getting: The following packages failed to install/update: megaide-spyd, megacli, megaclisas-status, megactl, megaraid-status, megamgr
22:16 LostSoul I tried pkg_verify: False but it didn't help much
22:17 iggy LostSoul: I unfortunately don't use any RH distros, so I'm not quite sure about the errors you are seeing
22:19 kliquori joined #salt
22:23 subsignal joined #salt
22:25 LostSoul iggy: I'm using Ubuntu
22:25 LostSoul http://hwraid.le-vert.net/
22:31 iggy pkg.verify is definitely not in apt based distros
22:36 hightekvagabond joined #salt
22:38 tvinson beardedeagle: is there some reason you're grabbing part of saltkeyname out of the minion's urandom? there's probably an easier way to generate a random string.
22:40 zenlot6 joined #salt
22:40 subsignal joined #salt
22:56 nZac joined #salt
22:58 hemebond Dangit. Looks like Jenkins uses a different lint configuration to what's in the Salt source.
22:58 flowstate joined #salt
23:01 iggy there's a jinja random thing I think
23:02 esharpmajor joined #salt
23:03 amcorreia joined #salt
23:06 mTeK yes forrest, seems like it takes awhile to get going once i send the command
23:06 snicers-work2 joined #salt
23:06 wilf1rst joined #salt
23:06 mTeK I didn't give the master much resources so that may or may not be the problem.
23:07 snicers-work2 I am having a memory issue (high usage) on my salt minions, how would I investigate the root cause?
23:07 LostSoul iggy: LOL, then I got it wrong, thanks iggy
23:08 LostSoul iggy: skip_veryfy worked like a charm
23:08 LostSoul But tell me, why it didn't got gpg key? I tried to set url, and even keyserver but it didn't work
23:17 iggy would have to see more of your states to tell
23:18 mavhq joined #salt
23:18 jaybocc2 joined #salt
23:30 hightekvagabond joined #salt
23:44 berserk joined #salt
23:44 subsignal joined #salt
23:49 subsignal joined #salt
23:53 rem5 joined #salt
23:57 nZac joined #salt
23:59 subsignal joined #salt
23:59 ageorgop joined #salt
23:59 flowstate joined #salt

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