Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-06-03

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

All times shown according to UTC.

Time Nick Message
00:00 majikman joined #salt
00:00 mbrgm joined #salt
00:01 ninjada joined #salt
00:02 ajw0100_ joined #salt
00:04 om2 anyone?
00:04 om2 how about clearing out things in /var/cache/salt/master  ?
00:06 abednarik joined #salt
00:11 amcorreia joined #salt
00:13 iggy om2: you cleared /var/cache/salt/ on the minion or master?
00:14 om2 cleared it on the minion
00:14 om2 didn't touch it on the master yet
00:14 om2 https://github.com/saltstack/salt/issues/30434
00:14 saltstackbot [#30434]title: highstate doesn't work with multiple environment | my top.sls contains 'base' and 'live'. The base section is the first one. When I run the 'salt-call state.highstate' only 'base' section will be set. The 'salt-call  state.highstate saltenv=live' returns with:...
00:14 om2 this issue seems similar
00:14 om2 Could not find file from saltenv 'base', u'salt://top.sls
00:17 om2 the only top.sls is inside /srv/salt/base/top.sls
00:17 om2 weird, this was working before
00:17 om2 perhaps it needs to be in /srv/salt/top.sls ?
00:17 iggy no, it needs to be in file_roots
00:17 tawm04 joined #salt
00:18 iggy what problem are you trying to solve with environments?
00:20 om2 can't find top.sls right now
00:20 om2 this was working
00:21 om2 maybe someone committed something wrong :p
00:21 iggy salt-call cp.list_master | grep top.sls
00:21 om2 yep that's it
00:22 iggy most people avoid using salt's environments
00:22 om2 the problem was jr admin made a mess of the files
00:22 om2 gosh
00:22 om2 sorry for the bother
00:22 om2 thanks for help iggy
00:23 dyasny joined #salt
00:25 om2 - top.sls
00:25 om2 from:   /srv/salt/states/base# salt-call cp.list_master | grep top.sls
00:31 racooper joined #salt
00:33 om2 finally fixed.  there were 2 top.sls files for base environment
00:33 om2 the correct one:\
00:34 ajw0100 joined #salt
00:34 om2 /srv/salt/states/base/top.sls
00:34 om2 the incorrect one:
00:34 om2 /srv/salt/base/top.sls
00:34 om2 embarrassing
00:35 om2 thanks for the help!
00:35 om2 much appreciated iggy!
00:39 rem5 joined #salt
00:43 edrocks joined #salt
00:53 Ayo joined #salt
00:58 flowstate joined #salt
01:04 mrud joined #salt
01:04 mrud joined #salt
01:11 catpigger joined #salt
01:18 ageorgop joined #salt
01:32 nmadhok joined #salt
01:38 Mowens hey, in SLS files for reactors- is there a way to access the first key in the data field?
01:38 Mowens (from the eventbus)
01:46 radhac joined #salt
01:48 ilbot3 joined #salt
01:48 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.5.10, 2015.8.10, 2016.3.0 | Support: 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
01:51 Andrew joined #salt
01:58 flowstate joined #salt
02:13 radhac joined #salt
02:14 Dis joined #salt
02:16 lempa joined #salt
02:20 nmadhok joined #salt
02:24 spiksius joined #salt
02:25 jenastar joined #salt
02:26 jenastar left #salt
02:31 nmadhok joined #salt
02:32 rem5 joined #salt
02:50 tuxx joined #salt
02:57 flowstate joined #salt
03:13 ninjada joined #salt
03:19 lilvim joined #salt
03:20 nmadhok joined #salt
03:21 ajw0100 joined #salt
03:34 hasues joined #salt
03:35 hasues left #salt
03:35 krymzon joined #salt
03:36 flowstate joined #salt
03:40 nmadhok joined #salt
03:46 edrocks joined #salt
03:51 jerematic joined #salt
03:51 oyvindmo joined #salt
03:56 nmadhok1 joined #salt
03:56 favadi joined #salt
03:59 flowstate joined #salt
04:00 SheetiS joined #salt
04:15 nmadhok joined #salt
04:19 cmek joined #salt
04:25 SpX joined #salt
04:30 ajw0100 joined #salt
04:35 DanSlimmon joined #salt
04:39 krymzon joined #salt
04:43 felskrone joined #salt
04:48 stanchan joined #salt
04:53 tristianc_ joined #salt
04:59 flowstate joined #salt
05:17 DEger joined #salt
05:21 favadi joined #salt
05:21 onlyanegg joined #salt
05:23 manji joined #salt
05:28 sauvin joined #salt
05:29 rdas joined #salt
05:29 garphy joined #salt
05:30 jhauser joined #salt
05:38 Miouge joined #salt
05:49 edrocks joined #salt
05:52 favadi joined #salt
05:54 jerematic joined #salt
05:54 DEger joined #salt
05:57 flowstate joined #salt
06:05 ivanjaros joined #salt
06:07 Shirkdog joined #salt
06:15 dmaiocchi joined #salt
06:15 roadgear joined #salt
06:21 evle joined #salt
06:23 dmaiocchi joined #salt
06:26 mjimenez joined #salt
06:26 mjimenez Hello! I've some problems with grains and jinja. This line says that is missing the end of the block. {% if grains['fqdn'] == 'backend01.testing.com' OR grains['fqdn'] == 'backend02.testing.com' OR grains['fqdn'] == 'frontend01.testing.com' OR grains['fqdn'] == 'frontend02.testing.com' %}
06:27 mjimenez how can I write down this ORs?
06:28 DEger joined #salt
06:28 AndreasLutro missing end of block sounds like a yaml indentation error, not a jinja error, show the full sls file
06:29 favadi joined #salt
06:30 iggy mjimenez: did you literally write OR? (i.e. upper case?)
06:31 iggy also post more of your file to gist.github.com for better help
06:31 mjimenez Yes, literally OR
06:31 iggy it should be lower case... this isn't SQL
06:32 mjimenez OMG! I'm stupid!
06:34 mjimenez iggy: was that, now it's work
06:34 yuhlw_ joined #salt
06:38 DEger joined #salt
06:39 zoski joined #salt
06:40 iggy \o/ easy fix
06:41 krymzon joined #salt
06:47 fracklen joined #salt
06:51 fracklen joined #salt
06:52 rem5 joined #salt
06:57 slav0nic joined #salt
06:57 punkoivan joined #salt
06:58 punkoivan joined #salt
06:59 ninjada_ joined #salt
07:01 jerematic joined #salt
07:04 deniszh joined #salt
07:09 DEger joined #salt
07:10 fracklen joined #salt
07:12 fracklen joined #salt
07:14 ivanjaros3916 joined #salt
07:19 zoski hello, I trying stuff with saltvirt, I noticed when I : salt-call virt.is_hyper
07:19 DEger joined #salt
07:19 dgutu joined #salt
07:19 zoski on the host, which is a kvm hypervisor that the answer is "local : False"
07:21 favadi joined #salt
07:21 toanju joined #salt
07:27 manji joined #salt
07:29 DEger joined #salt
07:29 keimlink joined #salt
07:30 manji joined #salt
07:35 mbrgm joined #salt
07:41 DEger joined #salt
07:41 favadi joined #salt
07:47 gquentin joined #salt
07:48 joshin joined #salt
07:49 DEger joined #salt
07:50 impi joined #salt
07:51 edrocks joined #salt
07:53 watersoul joined #salt
07:54 ssplatt joined #salt
07:57 babilen zoski: What does "grep kvm /proc/modules" give you? What about "ps aux|grep libvirtd" ?
07:57 flowstate joined #salt
07:57 garphy joined #salt
07:59 zoski grep kvm /proc/module : i don't have this file
07:59 zoski ps aux|grep libvirtd
07:59 zoski root      9887  0.0  0.0 983716 22188 ?        Ssl  mai30   2:30 /usr/sbin/libvirtd
07:59 zoski root     23955  0.0  0.0  13232   992 pts/0    S+   09:58   0:00 grep libvirtd
07:59 babilen zoski: It's /proc/modules rather than /proc/module
07:59 krymzon joined #salt
07:59 favadi joined #salt
08:00 ssplatt lsmod
08:00 DEger joined #salt
08:00 babilen No, not lsmod .. what does the *exact* command "grep kvm /proc/modules" return?
08:00 zoski same babilen I don't have this file
08:00 zoski grep: /proc/modules: Aucun fichier ou dossier de ce type
08:00 babilen Okay, that would be the reason. Is this some kind of "strange" system ?
08:01 zoski it's a debian 8 :-/
08:01 babilen That should have /proc/modules
08:01 babilen What does "uname -a" give you?
08:02 jerematic joined #salt
08:02 babilen Is this a VM ?
08:02 zoski Linux kvmhost.mycompany.eu 3.14.32-xxxx-grs-ipv6-64 #7 SMP Wed Jan 27 18:05:09 CET 2016 x86_64 GNU/Linux
08:03 zoski not it's not a vm babilen
08:03 babilen That's not a stock kernel, but something weird
08:03 babilen OVH?
08:03 zoski yes OVH
08:04 babilen Okay, they do weird shit and the salt virt module expects /proc/modules to be available
08:05 zoski what kind of things should be in that file ?
08:05 babilen The list of loaded modules
08:06 babilen I would suggest to use a standard kernel rather than the one provided by OVH
08:06 lero joined #salt
08:06 zoski :-/ ok
08:06 josuebrunel joined #salt
08:08 permalac joined #salt
08:08 zoski is saltvirt using the answer to "salt-call virt.is_hyper" to do stuff ?
08:09 dgutu joined #salt
08:09 DEger joined #salt
08:15 gquentin joined #salt
08:16 JohnnyRun joined #salt
08:17 KermitTheFragger joined #salt
08:17 N-Mi joined #salt
08:22 DEger joined #salt
08:25 babilen zoski: Not at the moment. I would still recommend to use a standard Debian kernel though
08:25 babilen Other software will rely on "normal" behaviour and who knows what else OVH changed that will break things in subtle ways
08:26 zoski thanks for your help
08:26 zoski I'll look into that
08:27 zoski I got an other question about saltvirt neworks. Is saltvirt creating also a network on the libvirt side ?
08:28 favadi joined #salt
08:28 zoski previously I was working without saltvirt and I had to create a mynetwork.xlm to configure network for my vms. Is saltvirt capable of doing it ?
08:29 gquentin hi. when using 2 pillar roots (-path1, -path2) on salt master local filesystem, only the first one which contains a top.sls is used: the other is ignored. But when i use gitfs filesystem, the 2 paths and their top.sls are used. Do you know why?
08:29 DEger joined #salt
08:29 dgutu joined #salt
08:34 Arendtse1 joined #salt
08:36 lempa joined #salt
08:36 wiqd_ joined #salt
08:36 kutenai_ joined #salt
08:36 akitada_ joined #salt
08:37 s_kunk joined #salt
08:37 adrienr_ joined #salt
08:37 ssplatt joined #salt
08:38 cswang_ joined #salt
08:38 rubenb_ joined #salt
08:38 SteamWells_ joined #salt
08:38 Ch3LL_ joined #salt
08:38 alxchk_ joined #salt
08:38 scarcry_ joined #salt
08:38 nihe_ joined #salt
08:38 eseyman_ joined #salt
08:39 armguy_ joined #salt
08:39 Kelsar joined #salt
08:39 Kelsar joined #salt
08:39 garphy joined #salt
08:39 sjorge joined #salt
08:39 AndreasLutro joined #salt
08:39 impi joined #salt
08:39 LordOfLA joined #salt
08:48 johtso joined #salt
08:49 DEger joined #salt
08:52 mikepea joined #salt
08:54 fracklen joined #salt
08:54 fracklen_ joined #salt
08:55 AndrewPashkin joined #salt
08:57 flowstate joined #salt
08:58 hhkid joined #salt
08:59 DEger joined #salt
09:01 s_kunk joined #salt
09:01 s_kunk joined #salt
09:02 AndrewPashkin joined #salt
09:02 jerematic joined #salt
09:02 ssplatt joined #salt
09:03 smakar joined #salt
09:04 hhkid Hello. I try to use saltstack to provision some windows minions. I would like to install some own software. I try to use pkg module. I wrote some sls files for installing some software and it works fine, but i have some troubles with creating sls file for copy deployment packages.
09:07 hhkid for uninstalling the package i use cmd.run with rmdir command, but if i try to uninstall the package it fails. The minion says: package not installed.
09:07 akhter joined #salt
09:08 arnaud joined #salt
09:08 DEger joined #salt
09:08 manji has anybody here had any issues with salt-api on debian jessie?
09:08 manji I get a from cherrypy.lib import cpstats
09:08 arnaud Hello! is there a better way to get a full summary ? https://gist.github.com/JustinCarmony/e1f764bc650999ac872e
09:09 manji it appears that python-cherrypy from  http://repo.saltstack.com jessie/main might be broken
09:10 hhkid Does somebody have some tips for me how to manage copy deployment packages on windows with saltstack?
09:11 Ryan_Lane joined #salt
09:12 ssplatt manji: i’ve found that i need to install cherrypy from pip mainly to get ssl to work
09:12 ssplatt on debian jessie
09:12 manji ssplatt, I read that ssl won't work and I was ok with that for now
09:13 manji but the cpstats module is missing either way
09:13 dmaiocchi joined #salt
09:14 Electron^- joined #salt
09:14 CeBe1 joined #salt
09:15 manji ssplatt, hmm it doesn't need cpstats.py without ssl, I'd expect to fail elsewhere :p
09:15 manji many thanks mate
09:16 liviudm joined #salt
09:17 impi joined #salt
09:18 DEger joined #salt
09:25 babilen manji: Which version of cherrypy does it need and how is the one from repo.saltstack.com broken?
09:25 manji salt-api                         2016.3.0+ds-1
09:25 manji python-cherrypy                  2.3.0-4
09:26 manji I keep getting  ImportError: cannot import name cpstats
09:27 manji and my salt-master is    2016.3.0+ds-1
09:28 DEger joined #salt
09:28 babilen Did you try installing python-cherrypy3 ?
09:28 babilen jessie has 3.5.0-1 and it seems to be the recommended version anyway
09:29 manji hmm to be honest it gave me the impression tha this is for python3
09:29 manji will try that then
09:29 babilen No, that would be python3-cherrypy
09:30 babilen The package in Debian lists that as Recommends and I'm sure that the saltstack packages do too
09:30 manji maybe I missed that detail  indeed
09:31 babilen All packages in Debian for Python 3 follow the pattern "python3-$something", while versioned packages in Debian append the respective version at the end (e.g. "python2.7", "python-cherrypy3", ...)
09:31 dgutu joined #salt
09:32 babilen Conversely there is python3-cherrypy3 :)
09:33 manji I am used to ignoring whatever has "3" and "python" when I am running apt-cache search :p
09:33 babilen You shouldn't (for various reasons, least of it is that Python 3 is great)
09:33 manji this is a battle for a different channel :p
09:34 * babilen chuckles
09:38 babilen So, did that help?
09:39 manji I am fixing it now
09:40 DEger joined #salt
09:40 zoski May I ask again : previously I was working without saltvirt and I had to create a mynetwork.xlm to configure network for my vms (kvm). Is saltvirt capable of doing it ?
09:42 manji babilen, yes it is listening to port 8000 now, so I'd say that is an improvent :)
09:45 manji many thanks
09:46 babilen np :)
09:50 DEger joined #salt
09:53 garphy joined #salt
09:53 edrocks joined #salt
09:57 flowstate joined #salt
09:57 klaas_ joined #salt
09:57 mbrgm joined #salt
10:01 sauvin_ joined #salt
10:01 mbrgm hey! is it possible to use the contents of a file from the file roots ('salt://') in a template variable? I want to pipe the contents of a file to cmdmod.run using the stdin parameter...
10:02 alias joined #salt
10:02 DEger joined #salt
10:03 jerematic joined #salt
10:06 Bucciarati joined #salt
10:06 leev joined #salt
10:07 mschiff joined #salt
10:07 mschiff joined #salt
10:09 darix- joined #salt
10:09 johtso joined #salt
10:10 jcastle_ joined #salt
10:10 punkoivan joined #salt
10:11 devster31 how does the kitchen testing work for this formula: https://github.com/saltstack-formulas/apt-formula ? I'd like to use it for mine
10:12 DEger joined #salt
10:13 mikepea joined #salt
10:13 ujjain joined #salt
10:13 ujjain joined #salt
10:13 babilen I would expect it to work for that formula like it works for everything else. Did you read its documentation?
10:13 Jarus joined #salt
10:13 babilen mbrgm: You can use cp.get_file_str
10:13 Miouge joined #salt
10:14 devster31 well, no, I can't find it on the salt docs
10:14 babilen mbrgm: But why don't you pass the file as an argument to your command to begin with?
10:16 babilen devster31: kitchen-salt wouldn't be documented in the salt docs though, but on its own website, wouldn't it? Did you check its GitHub page?
10:17 impi joined #salt
10:21 dgutu joined #salt
10:23 devster31 I didn't understand it was a separate tool, I thought it was a component of salt, I'll look on the github page, thank you
10:23 punkoivan joined #salt
10:24 favadi joined #salt
10:24 v1dlak joined #salt
10:25 __alex joined #salt
10:26 mschiff joined #salt
10:27 Jarus joined #salt
10:27 smakar joined #salt
10:29 v1dlak hi all. at minion i have file with variables define by jinja a grains. is possible call some state or module from master which replace the variables by values define on master?
10:30 v1dlak like this
10:30 v1dlak minion:~ # head -n 2 /etc/mysql/my.cnf
10:30 v1dlak [client]
10:30 v1dlak password= {{ pillar['pass.mysql'] }}
10:31 v1dlak and after some call from master it will replace pillar
10:31 DEger joined #salt
10:33 v1dlak in my mind is workaround via modul cp.push from minion to master and send it back. but it is horible
10:35 Ryan_Lane joined #salt
10:37 stooj_ joined #salt
10:40 dgutu joined #salt
10:40 babilen v1dlak: Are you looking for file.managed ?
10:40 DEger joined #salt
10:40 liviudm joined #salt
10:40 babilen v1dlak: I'd also like to make you aware of https://github.com/saltstack-formulas/mysql-formula which installs mysql and lets you configure it entirely in pillars (see https://github.com/saltstack-formulas/mysql-formula/blob/master/pillar.example for an example)
10:44 v1dlak but file.managed have source file from master. i want source file from minion
10:45 inad922 joined #salt
10:45 permalac joined #salt
10:49 DEger joined #salt
10:49 dgutu joined #salt
10:49 dabb joined #salt
10:49 krymzon joined #salt
10:49 oyvindmo joined #salt
10:49 linjan__ joined #salt
10:49 madpenguin joined #salt
10:49 LeProvokateur joined #salt
10:49 monokrome joined #salt
10:49 Edur joined #salt
10:49 ntr0py joined #salt
10:49 inire joined #salt
10:49 Antiarc joined #salt
10:49 M-liberdiko joined #salt
10:49 Yoda-BZH joined #salt
10:49 hypnosb joined #salt
10:50 monokrome joined #salt
10:52 punkoivan joined #salt
10:53 punkoivan joined #salt
10:56 fracklen joined #salt
10:57 fracklen joined #salt
10:58 flowstate joined #salt
10:58 yidhra joined #salt
10:59 dgutu joined #salt
11:01 linjan joined #salt
11:04 jerematic joined #salt
11:04 N-Mi joined #salt
11:05 DEger joined #salt
11:09 LordOfLA joined #salt
11:11 DEger joined #salt
11:18 amcorreia joined #salt
11:21 DEger joined #salt
11:30 DEger joined #salt
11:33 mbrgm babilen: I don't understand what you mean by passing as an argument. the file is on the salt master and I want to avoid copying it to the minion if you mean that?
11:34 babilen That's what I mean, yeah .. I thought the file is available on the minion already
11:34 mbrgm nope. but I guess get_file_str will do what I want
11:34 mbrgm judging by the docs. have to try though
11:36 jespada joined #salt
11:43 abednarik joined #salt
11:43 DEger joined #salt
11:49 DEger joined #salt
11:56 edrocks joined #salt
11:58 flowstate joined #salt
11:58 DEger joined #salt
12:04 Eureka703 joined #salt
12:05 jerematic joined #salt
12:06 MadHatter42 joined #salt
12:08 DEger joined #salt
12:12 DanSlimmon joined #salt
12:13 abednarik joined #salt
12:18 dgutu joined #salt
12:19 DEger joined #salt
12:27 bastiandg joined #salt
12:28 akhter joined #salt
12:32 DEger joined #salt
12:32 akhter joined #salt
12:36 edrocks joined #salt
12:37 fredvd joined #salt
12:42 DEger joined #salt
12:46 akhter joined #salt
12:49 DEger joined #salt
12:50 Tyrm joined #salt
12:54 akhter joined #salt
12:54 TooLmaN joined #salt
12:55 punkoivan joined #salt
12:58 flowstate joined #salt
12:59 DEger joined #salt
13:00 zoski Hello again. How do I create a virtual network with saltvirt ?
13:00 komputes joined #salt
13:01 babilen Can you?
13:03 zoski I tried using virt.nic in a config on the host but it's seems it don't create the virtual network (the libvirt way)
13:04 zoski The defined network in nic.virt are not listed via : virsh net-list --all
13:05 lorengordon joined #salt
13:05 jerematic joined #salt
13:09 akhter joined #salt
13:10 mapu joined #salt
13:11 subsignal joined #salt
13:11 DEger joined #salt
13:18 impi joined #salt
13:18 subsigna_ joined #salt
13:21 DEger joined #salt
13:23 ssplatt joined #salt
13:26 nmadhok joined #salt
13:28 DEger joined #salt
13:30 perfectsine joined #salt
13:32 rgrinberg joined #salt
13:33 rgrinberg joined #salt
13:37 akhter joined #salt
13:40 DEger joined #salt
13:41 jerematic joined #salt
13:41 blw0rm joined #salt
13:43 racooper joined #salt
13:44 rem5 joined #salt
13:44 komputes joined #salt
13:45 menglish joined #salt
13:46 tapoxi joined #salt
13:47 tapoxi is there a recording of that tom hatch q&a from yesterday?
13:48 DEger joined #salt
13:50 Miouge joined #salt
13:52 flowstate joined #salt
13:54 TyrfingMjolnir joined #salt
13:57 fracklen joined #salt
14:02 jerredbell joined #salt
14:05 mpanetta joined #salt
14:06 blw0rm joined #salt
14:09 DEger joined #salt
14:10 ivanjaros joined #salt
14:16 dmaiocchi joined #salt
14:19 _JZ_ joined #salt
14:19 DEger joined #salt
14:21 ajw0100 joined #salt
14:21 renaissancedev joined #salt
14:21 dmaiocchi joined #salt
14:25 abednarik joined #salt
14:26 knine joined #salt
14:26 edrocks joined #salt
14:29 DEger joined #salt
14:32 dfinn joined #salt
14:35 DanSlimmon joined #salt
14:38 DEger joined #salt
14:38 akhter joined #salt
14:40 deus_ex joined #salt
14:45 fullstop left #salt
14:52 DEger joined #salt
14:52 shiriru joined #salt
14:53 flowstate joined #salt
14:56 akhter joined #salt
14:57 brew joined #salt
14:57 ZiLi0n joined #salt
14:58 DEger joined #salt
14:59 SheetiS joined #salt
15:00 ZiLi0n Hello everyone, Is it possible to enable a repo with pkg.installed in 2016.3? I had - enablerepo option under pkg.intalled and it worked no problem, now with 2016.3 it does not work anymore. I have tried - fromrepo but it looks like that disables all repos and only enables the one specified. What I am looking for is to enable one during a pkg.installed (the repos enabled should stay enabled during the pkg installed as well)
15:01 perfectsine_ joined #salt
15:02 Andrew joined #salt
15:03 edrocks joined #salt
15:03 edrocks joined #salt
15:05 nmadhok joined #salt
15:07 jerredbell left #salt
15:07 _JZ__ joined #salt
15:08 av_ joined #salt
15:08 abednarik joined #salt
15:10 DEger joined #salt
15:10 dfinn joined #salt
15:12 jenastar joined #salt
15:13 teryx510 joined #salt
15:13 spuder joined #salt
15:19 akhter joined #salt
15:22 DEger joined #salt
15:26 hasues joined #salt
15:26 hasues left #salt
15:27 komputes joined #salt
15:32 DEger joined #salt
15:38 sjorge joined #salt
15:41 Shirkdog joined #salt
15:41 Shirkdog joined #salt
15:41 DEger joined #salt
15:41 abednarik joined #salt
15:44 ageorgop joined #salt
15:45 cyborg-one joined #salt
15:46 menglish joined #salt
15:48 DEger joined #salt
15:50 garphy joined #salt
15:57 akhter joined #salt
15:58 DEger joined #salt
16:00 Ayo joined #salt
16:04 spuder_ joined #salt
16:05 ahammond what is the recommended way to clone the repo.saltstack.com for use on our internal system? Is there an rsync endpoint?
16:09 SpX joined #salt
16:09 teryx510 joined #salt
16:11 teryx5101 joined #salt
16:11 rmmatm02 joined #salt
16:12 iggy ahammond: We use aptly to mirror it (I think)
16:12 ahammond iggy we have a script that runs wget, but... yuck. :)
16:13 iggy wait are you using .deb based or .rpm based distro?
16:13 onlyanegg joined #salt
16:15 ahammond iggy we have a mix, but mostly centos
16:17 izaki joined #salt
16:19 flowstate erm, this seems like something really easy to find, but I haven't been able to find it so far
16:19 flowstate is there a setting I can use on minions such that if I try to run a job when another is running, it will wait for some time
16:19 flowstate instead of immediately failing?
16:20 Fiber^ joined #salt
16:20 flowstate though, now that I think about it, the master would have to know and not time out the request ... hmm
16:20 flowstate that's funky
16:22 iggy ahammond: oh, then aptly probably won't work for you (yet)
16:23 iggy flowstate: sadly no, I'm sure it's a something a couple people have solved in various different ways (I know we have)
16:24 flowstate basically, I'm in a situation where Jenkins wants to run multiple deploy jobs, and every one after the first fails because there's already a job running on the minion
16:24 flowstate like you said, it's fairly unbelievable that no one else has run into / solved this
16:24 flowstate would you mind giving me the high-level of your solution?
16:25 flowstate the only thing I can think of is scripting a retry
16:25 flowstate either in bash or in salt-run
16:25 flowstate which I'm still unfamiliar with
16:25 iggy we setup a queue on the master
16:25 rmmatm02 I am trying to deploy a pkg file on mac minions using the mac_pkgutil module (salt 'whatever' pkgutil.install source=/path/to/file.pkg package_id=com.blah...).  Used every iteration I can think of for /source= but every time i get an error: "file not found: file.pkg"  What am I doing wrong?
16:26 flowstate but using bash around my salt makes me feel dirty... like the goal should be that salt should render bash administration obsolete
16:26 flowstate ahh
16:26 flowstate gotcha
16:26 iggy I'm not entirely sure how it works though (I didn't do it personally)
16:26 flowstate ahh
16:26 punkoivan joined #salt
16:26 iggy ask murrdoc if you ever see him around
16:26 flowstate do you know what the tech was? bash/salt/python, something else?
16:26 flowstate k, will do
16:27 iggy I could think of a way
16:27 iggy (maybe)
16:27 flowstate just knowing that there isn't some idiomatic salt way to do it is enough of an answer for now
16:27 flowstate so thanks for that
16:27 flowstate I thought I just wasn't searching well enough
16:27 iggy catch job failures and see if the reason was because "already running"
16:27 flowstate yep
16:27 iggy if so, schedule another try in X amount of time
16:28 flowstate basically wrap an exponential fallback loop around the job
16:28 flowstate and allow "good failures" like 'already running' to advance the retry
16:28 iggy right
16:28 punkoivan joined #salt
16:28 flowstate have you messed with salt-run orchestration at all?
16:28 iggy that might be how we did it (that's how some of our other stuff works-ish)
16:28 flowstate I've been doing the quick-and-dirty bash thing, hoping that I can use salt-run eventually to do it 'right'
16:29 flowstate yeah, I've got something like that for doing deployments to our prod boxes
16:29 iggy shouldn't jenkins wait until the first job is done?
16:29 flowstate only if they're fully daisy-chained
16:29 flowstate but in this case, my build job wants to then kick off multiple deploys
16:29 iggy ahh, gotcha
16:29 flowstate ... I could just daisy chain them.
16:29 punkoivan joined #salt
16:30 iggy sounds like a bit of rework on one end or the other :/
16:30 flowstate haha, moving to devops from dev.. I really need to get used to the idea that all realistic solutions are going to feel at least a bit dirty
16:30 flowstate the dark side, seductive it is
16:31 iggy I'm totally stealing that
16:31 punkoivan joined #salt
16:31 flowstate hahaha
16:31 iggy and making a giant f'ing poster to hang in my pod
16:31 flowstate I fully approve
16:31 iggy (we have a few perfectionists...)
16:31 flowstate ahh, yeah
16:31 flowstate we've got the opposite
16:31 iggy we have a few of those too
16:32 iggy I'll put it on the wall behind them so they can't see it
16:32 flowstate I'm at a startup, and our attitude is well summed-up by the "f*** it, ship it" poster on our wall
16:32 flowstate nice
16:32 punkoivan joined #salt
16:32 iggy https://media.giphy.com/media/143vPc6b08locw/giphy.gif
16:32 iggy that gets used in our slack a lot
16:33 stanchan joined #salt
16:33 punkoivan joined #salt
16:34 punkoivan1 joined #salt
16:34 punkoivan1 left #salt
16:35 punkoivan joined #salt
16:35 flowstate that is phenomenal
16:36 flowstate I am stealing that
16:36 flowstate deploying to slack
16:38 flowstate my team approves
16:38 flowstate though they asked if that was made for my new salt deployments. >_>
16:39 writtenoff joined #salt
16:39 ahammond flowstate you want an orchestration.
16:39 abednarik joined #salt
16:40 flowstate ahammond yeah, I've been putting off getting into that, since I'm single-handedly rolling salt out across our whole infrastructure, but it's getting harder and harder to ignore
16:40 adelcast joined #salt
16:40 ahammond flowstate they're pretty sweet.
16:41 flowstate nice! I might dig into that this weekend
16:41 flowstate could solve quite a few problems
16:41 DEger joined #salt
16:44 ahammond the way (one of) our CD solutions works is that buildbot finishes a build and uploads it to rpm repo, then uses salt-call to publish an event to salt. Reactor sees that event and uses things like branch and project to generate the name of a nodegroup for targeting. then it runs a state.sls on all those nodegroups to execute the upgrade / install.
16:47 akhter joined #salt
16:51 akhter joined #salt
16:52 mapu joined #salt
16:56 rmmatm02 so installing a pkg file via salt-call on minion works...
16:57 codewaffle joined #salt
17:00 teryx510 joined #salt
17:03 edrocks joined #salt
17:04 rgrinberg joined #salt
17:06 Mowens When doing a reactor to the service beacon, how do you pull the service name from the event data in the SLS file?
17:06 abednarik joined #salt
17:07 impi joined #salt
17:08 jfindlay Mowens: what have you tried so far?
17:08 jfindlay ahammond: there is an issue for making the repo easier to clone, but I can't find it
17:10 jfindlay rmmatm02: if the package file is on the master, you should source it with `source=salt://path/to/file.pkg`, where `salt://` is relative to the `file_roots` config
17:10 Mowens We have tried to understand import re, but think we are overcomplicating it, we are not sure if we should right a custom beacon per service. Currently, we are trying to simply echo {{data}} and Echo data, and we get the entire event spit back at us. I will upload the files in a minute. (getting them)
17:10 Mowens *write
17:10 jfindlay rmmatm02: the reason for this is that minions cannot access arbitrary paths on the master
17:14 jb1498 joined #salt
17:15 ageorgop joined #salt
17:15 josuebrunel joined #salt
17:18 edrocks joined #salt
17:19 rmmatm02 jfindlay: tried that too (salt 'os_x*' pkgutil.install source=salt://path/to/file.pkg package_id=).  It gives the following error:  ERROR executing 'pkgutil.install': Unsupported scheme for source uri: salt
17:20 tiadobatima joined #salt
17:21 jfindlay rmmatm02: are you working with a solaris minion?
17:22 rmmatm02 negative.  os x
17:22 jfindlay from what I can see, pkgutil is specific to Solaris, but I guess it could work for other unixen?
17:23 rmmatm02 assuming the examples are correct - https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.mac_pkgutil.html#module-salt.modules.mac_pkgutil
17:24 murkey left #salt
17:24 jfindlay basically, for some sets of modules, there is a virtual module name that chooses the proper module based on platform information.  In this case, it would be pkg
17:24 rmmatm02 and running the same via salt-call on the minion works
17:24 rmmatm02 ah
17:26 rgrinberg joined #salt
17:26 tapoxi joined #salt
17:26 drk_ joined #salt
17:26 jfindlay so in this case, the virtualname is pkgutil
17:26 function07 joined #salt
17:27 jfindlay I guess because the pkg provider is something like brew/macports
17:28 jfindlay rmmatm02: if the file is supposed to be installed with pkgutil rather than brew/macports, then it seems the problem is that pkgutil doesn't support salt://
17:30 function07 hey all, I recently reinstalled salt master using the latest version but am having trouble my reactor config now, it won't pick up the custom grain I created in the minion, minion is also up to date, Has this functionality changed?
17:31 function07 This was working prior to salt-master 2016.3.0 (Boron)
17:31 function07 but I can't seem to locate and change logs about custom grains
17:32 komputes joined #salt
17:35 rmmatm02 jfindlay: ...and unfortunetly it doesn't seem to like absolute paths either.  thanks for the help.  appreciate it
17:36 jfindlay rmmatm02: you are welcome to file a feature request to add salt:// support to the pkgutil module
17:36 rmmatm02 will do.  thanks again
17:36 jfindlay but your workaround seems like it would be best in this case
17:39 tapoxi thoughts, feelings, general feedback on salt-cloud?
17:41 menglish joined #salt
17:41 tapoxi just interested in people's opinions on it while I compare it to alternatives (namely hashicorp terraform)
17:44 ahammond tapoxi depends what you want to do
17:44 ahammond tapoxi if you're going a more traditional route, salt-cloud is a no-brainer.
17:45 ahammond if you want to do something like coreos running k8s, well, getting salt running on coreos is going to be a challenge.
17:45 perfectsine joined #salt
17:45 ahammond or at least I haven't figured it out yet, but I haven't put much time into it
17:46 ahammond we went salt-cloud because we're salt, and salt-cloud can pass a cloud-config.yaml to openstack providers, so that's the direction I'm planning to go with coreos stuff
17:46 dmaiocchi joined #salt
17:46 ahammond not the prettiest solution, but seems... doable.
17:46 nZac joined #salt
17:49 tapoxi ahammond no, pretty traditional, but I will keep that in mind if I ever need to go down the coreos route here. hows the k8s integration with coreos these days? last time I used it it only shipped with fleet installed
17:55 thayne joined #salt
17:59 amcorreia joined #salt
18:00 nmadhok joined #salt
18:04 ahammond tapoxi looks like it still comes with fleet, but there seems to be a decent body of knowledge for getting k8s running on it. I'll know more next week... since I'll be doing it.
18:05 abednarik joined #salt
18:12 Mowens jfindlay: https://gist.github.com/anonymous/389cadcf66af08d4f7c7e0ada10899e9
18:13 Mowens jfindlay: I have the reactor working with this, however, I want to make one SLS file work for all services. So, I was hoping instead of having to type rasman in the SLS, I could call data and get it
18:13 ZiLi0n hello, is it possible to have regular expressions in jinja?
18:14 nebuchadnezzar joined #salt
18:15 jfindlay ZiLi0n: I'm not sure.  What are you trying to do?  Usually python's string methods are easier and simpler unless you need advanced regex
18:16 ZiLi0n jfindlay thank you, I am trying to use jinja to select dependencies of packages (config files, etc) per their version
18:16 ZiLi0n grains.filter_by does not allow the use of regular expressions as keys in the dictionary. At least I haven't figure out how the keys could be regular expression
18:18 ZiLi0n then I though that maybe I could make it work using the default parameter of grains.filter_by, so that if I have a version of a package in a variable of the pillar, example 1.0.0-bug123, then match in a regular expression to version 1.0.0 (as 1.0.0-bug123 package uses essentially the same config files as the mayor version 1.0.0)
18:19 ZiLi0n I am looking at string|replace, but I don't know how to remove the "-bug123" substring from 1.0.0-bug123 so that it matches 1.0.0
18:20 ZiLi0n jfindlay, not sure If it makes sense what I explained!
18:22 jenastar joined #salt
18:22 rem5 joined #salt
18:31 jfindlay Mowens: I commented.  It is not as elegant as I would have wanted, but it should work
18:33 jfindlay Mowens: actually that does not look like it will work.  It seems you will have to have a list of known services somehow
18:34 ahammond ZiLi0n dependencies of packages are usually handled directly by the packaging system. Are you managing a repo or something?
18:34 ahammond ZiLi0n anyway, check out execution modules if you need "more than Jinja"
18:35 lorengordon joined #salt
18:36 DEger joined #salt
18:36 ajw0100 joined #salt
18:36 noraatepernos joined #salt
18:37 beardedeagle joined #salt
18:38 evle1 joined #salt
18:39 jfindlay Mowens: can you paste the event itself?
18:40 Mowens Sure. In here, one moment.
18:44 rgrinberg joined #salt
18:48 Mowens jfindlay: https://gist.github.com/anonymous/0d1114bcb73105e3a5ecb11a6ec9ac7c
18:50 mpanetta_ joined #salt
18:52 akhter joined #salt
18:58 function07 does anyone know how to get custom grains to be seen in a reactor config, mainly in a jinja template ...  grains['custom_grain'] doesn't seem to be working
19:04 norii as far as vpc/subnet/sec-group wiring in aws goes, should i be using terraform to manage that templating over salt-stack?
19:05 norii salt-cloud rather
19:07 jfindlay Mowens: commented
19:10 Mowens Thanks! You said it is kind of a hack, is there a best practice for using Salt to monitor multiple services across an entire infrastructure? Every example I have found shows only one service.
19:16 ajw0100 joined #salt
19:16 jfindlay Mowens: my knowledge coverage is incomplete on the set of all of those things, so I can't say for sure.  It's really not that bad of a hack, but you could also try the mailing list
19:16 edrocks joined #salt
19:18 Mowens no I like it. Thank you so much. If you ever make it to Columbus, Ohio, I will buy you a beer.
19:18 jfindlay cool, thanks! :)
19:24 tapoxi joined #salt
19:25 tapoxi hi everyone, anyone using a zsh completion plugin for salt 2016.3.0?
19:26 garphy joined #salt
19:27 AndrewPashkin joined #salt
19:30 Tyrm_ joined #salt
19:34 ZiLi0n ahhamond thank you! let me check those
19:36 toanju joined #salt
19:38 deniszh joined #salt
19:38 abednarik joined #salt
19:40 deniszh joined #salt
19:42 morissette joined #salt
19:44 rgrinberg joined #salt
19:47 DEger joined #salt
19:48 Tyrm_ joined #salt
19:48 renaissancedev joined #salt
19:50 fracklen joined #salt
19:51 tapoxi joined #salt
19:54 DEger joined #salt
19:56 akhter joined #salt
19:56 Tyrm joined #salt
19:56 ecrane joined #salt
19:59 AndrewPashkin joined #salt
20:01 Tyrm joined #salt
20:02 deniszh joined #salt
20:03 teryx510 joined #salt
20:04 ahammond I remember something about updating the salt-ssh payload, but google isn't helping me find it... What's the command?
20:05 ahammond or... maybe it was the salt-cloud bootstrap update and I'm confusing it.
20:05 jfindlay ahammond: `salt-ssh --wipe`?
20:05 ahammond jfindlay yeah, that's it. Thanks! :)
20:05 jfindlay found with `salt-ssh --help` :-)
20:06 Tyrm joined #salt
20:06 Tyrm joined #salt
20:07 ahammond jfindlay I... uh... *blush*
20:08 jfindlay not trying to be critical, but I may have given you a fishing pole :)
20:08 Ayo joined #salt
20:15 mpanetta joined #salt
20:15 ahammond jfindlay it's Friday. Apparently I'm a little Fried.
20:18 ahammond jfindlay we just upgraded to 2016.3 and now I'm seeing two salt-minion processes and getting "Failed to authenticate!" messages.
20:18 ahammond the pids are sequential.
20:19 Mowens jfindlay: Still no go. Was playing with it a little bit trying to make it work, but I failed. :( I tried both options, it appears service isn't being populated. https://gist.github.com/anonymous/7328708ef1b317e9a725d42b6313efb7
20:19 ahammond hmmm, maybe issue it on the master?
20:20 babilen ahammond: Anything interesting in "systemctl status salt-master.service" (if you are on systemd) or the master logs?
20:21 Miouge joined #salt
20:21 noraatepernos How can I require that cmd.run “curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -“ has completed before pkg.installed for nodejs?
20:21 menglish joined #salt
20:22 ahammond babilen plenty of Bad load from minion: AuthenticationError: message authentication failed
20:22 jfindlay ahammond: have all the minion daemons been cycled?
20:22 ahammond this is going from 2015.8.8.2 to 2016.3 (repo.saltstack.com)
20:22 ahammond jfindlay: service salt-minion stop; sleep 2; killall -9 python2.6; rm -rf /var/cache/salt/*; find /usr/lib/python2.6 -name '*.pyc' -delete; service salt-minion start
20:24 jfindlay ahammond: I think others have seen similar/the same problem.  You could check the issues
20:24 ahammond ok, will do.
20:24 jfindlay I haven't been doing that lately, so I don't know anything immediately related
20:25 jfindlay other than a minion restart
20:26 jb1498 joined #salt
20:27 jfindlay Mowens: do you have any handle on what kinds of events that reactor is getting applied to?
20:27 jfindlay it's hard for me to determine what may be going on without more context.  If you get stuck, could you try sharing a more complete working example?
20:28 jfindlay you can also ask on the mailing list
20:28 babilen noraatepernos: use the "require" requisite on a cmd.run state that runs that command. https://github.com/saltstack-formulas/node-formula/ might be useful
20:29 babilen ahammond: https://github.com/saltstack/salt/issues/33201 might be it
20:29 saltstackbot [#33201]title: 2016.3.0 AuthenticationError: message authentication failed until master becomes unresponsive. | ### Description of Issue/Question...
20:29 noraatepernos babilen: Thanks.  I saw that formula but wanted to use the nodesource.com setup.
20:30 babilen ahammond: Not that there is much content in there
20:30 ahammond babilen yeah, we're trying the tcp transport. now. in production. Grumble. :)
20:30 babilen noraatepernos: aye
20:30 babilen ahammond: Yeah .. I wonder what it is that triggers this. I haven't seen this at all, but the tornado tcp transport should™ be better anyway
20:31 ahammond babilen well, there's always salt-ssh
20:31 ahammond horray.
20:31 deniszh joined #salt
20:33 * babilen chuckles
20:33 noraatepernos babilen: Ok you’ve quickly shamed me into using the formula on github :)
20:35 ahammond so... with tcp transport, do I have to re-add all my minions or do the keys go with?
20:36 jfindlay I don't think the transport should affect the keys
20:36 abednarik joined #salt
20:37 rem5 joined #salt
20:37 babilen ahammond: https://docs.saltstack.com/en/latest/ref/roster/all/salt.roster.cache.html might come in handy
20:38 Mowens jfindlay: Sure! Sorry. :( I really think I am stuck on something super basic. :) We built a dev salt environment to test service monitoring (with the service beacon in the minion) so it is currently triggered in the reactor.conf by any tag that is 'salt/beacon/*/service/' In this test, we are monitoring the RasMan service. When the RasMan service is shut down, the reactor is triggered by the alert. We are trying to keep a single SLS f
20:38 Mowens n create base and custom responses depending on the service. The other option seems to be to create a reactor for every system and simply apply high state reguardless of the service that is down, which we want to avoid.
20:38 ahammond babilen that's pretty slick. I already have roster management. From our cmdb. And... I'm thinking that looks about a billion times cleaner. :)
20:40 ZiLi0n Hello everyone, I have some jinja logic that depends on grains. I am running 2016.3 and rendering fails because it says that variables (the grain) does not exists (does not have an atrtribute I am chceking). If I am not wrong, I didn't have this problem with previous versions of salt master and minion
20:40 ZiLi0n how can I solve it? why the minion is not evaluating the grains as first task?
20:41 obimod joined #salt
20:42 jfindlay Mowens: no problem, reactors can be difficult to learn.  I don't think I'm fully proficient yet :)
20:42 * viq ponders when Arch will get 2016.3
20:42 obimod hey all -- i have a couple questions regarding using raw dockerng vs docker-formula... trying to decide whether to use the formula or the raw dockerng state... i like how the formula implements the docker compose but it seems that it's not using the dockerng states?
20:42 jfindlay viq: ping gtmanfred :)
20:42 gtmanfred yo
20:42 viq gtmanfred: 2016.3 on Arch! ;)
20:43 gtmanfred i don't package for arch anymore
20:43 gtmanfred i retired as a TU
20:43 gtmanfred bug seblu
20:43 jfindlay that's right, I should have remembered
20:43 gtmanfred :)
20:43 obimod <3 arch docs
20:43 viq Yeah, his whois says he's been idle 12 days now ;)
20:43 gtmanfred his email is published on the tu page
20:43 viq Right, I guess I'll try that
20:44 gtmanfred https://www.archlinux.org/people/trusted-users/#seblu
20:44 jfindlay obimod: dockerng state is much better, if that helps
20:44 mgresser joined #salt
20:44 jfindlay dockerio is deprecated
20:45 obimod cool, that sounds good. i'm guessing you'd also recommend that vs. using docker compose? i'd prefer it that way (feels like i have more control).
20:46 obimod i'm not a huge fan of docker endorsing blindly copying images from their repo when they're not validated/verified secure
20:46 jfindlay Mowens: the error you're getting suggests that the reactor is getting applied to an event that doesn't have data in the formation `data['data']['service_name']`, so I would inspect the events that the reactor get applied to and maybe either skip the reaction if it is not found or do something else that makes sense in the context
20:46 obimod but that's another conversation i suppose
20:46 gtmanfred there are many plays to try and replace docker-compose :)
20:46 jfindlay obimod: you could also checkout https://github.com/gravyboat/docka-docka-docka
20:46 gtmanfred ^^
20:46 obimod haha <3 the name
20:46 DanSlimmon ZiLi0n What grain is missing? Is it missing from the output of `salt MINIONNAME grains.items`?
20:46 jfindlay I haven't ever used compose or anything like it
20:47 jfindlay but that is from Forrest, so I'm sure it's good :)
20:47 ZiLi0n DanSlimmon, yes, one of the custom grains I created
20:47 obimod that looks intriguing...
20:47 gtmanfred i like docker-compose, but there are a couple things i would like added to it
20:48 obimod like what?
20:48 DanSlimmon ZiLi0n Supposed to be populated from a script in `/srv/salt/_grains`? That kind of custom grain?
20:48 cliluw joined #salt
20:51 obimod i guess it looks like aspect hooks are to be desired
20:55 izaki joined #salt
20:56 nmadhok joined #salt
20:57 gtmanfred uhh, i forget, there was something specific back when i was playing with it 2 months ago that had been added to docker, that wasn't passible by docker-compose yet
20:58 gtmanfred obimod: i would really like to be able to specify when a service has started
20:58 gtmanfred like... i don't want my keystone docker container to start until the postgres one is accepting connections
20:58 gtmanfred possibly my favorite thing added to systemd, the Type=notify stuff
20:59 babilen +1
21:05 noraatepernos joined #salt
21:09 ElasticApps joined #salt
21:10 rem5 joined #salt
21:11 ahammond So... in the process of an unplanned switch to tcp transport, I'm getting a lot of stuff attempting to connect via 0mq still (minions that haven't updated yet).
21:14 viq "unplanned switch" ?
21:16 teryx510 joined #salt
21:17 nZac_ joined #salt
21:18 babilen gtmanfred: Too bad the salt-master packages in repo.s.c ship with "Type=simple" (at least on jessie)
21:20 ahammond viq, upgraded to 2016.3 and started getting "Failed to authenticate" messages.
21:20 ahammond the upgrade story for salt has not been a happy story for me. Every single upgrade has been a shit-show.
21:20 Mowens jfindlay: Thanks for looking at it for me!
21:21 jfindlay Mowens: sure.  I hope you are able to get it figured out
21:21 ahammond once it's stabilized and out... awesome.  but upgrades: ouch.
21:21 babilen Just don't switch to .0 ;)
21:22 ahammond babilen yeah, that was my intention, but then I showed some folks Thorium and now we're for sure gonna play with that. :)
21:24 babilen ahammond: That was a little more tongue in cheek than I intended it .. I will, however, wait for .1 before I roll it out now.
21:25 babilen gtmanfred: I guess I should poke dmurphy about this again now that we have python-systemd in jessie-backports
21:25 beardedeagle I have noticed several reoccurring issues with 2016.3.0 myself, but nothing that is a deal breaker.
21:25 ahammond "Failed to authenticate!" is a massive problem.
21:26 ahammond at least for me. The salt master is effectively dead.
21:27 babilen Were you able to complete the switch to the tcp transport?
21:29 ahammond babilen in the process now.
21:33 rgrinberg joined #salt
21:39 ninjada joined #salt
21:40 punkoivan joined #salt
21:41 ahammond so... cleaning up those last few minions that are running 0mq is gonna be a challenge.
21:42 subsignal joined #salt
21:42 nmadhok joined #salt
21:44 macheck left #salt
21:45 nmadhok joined #salt
21:46 macheck joined #salt
21:48 derelm joined #salt
21:53 jfindlay ugh, sorry about that, ahammond
21:54 ahammond jfindlay ah well, cost of doing business.
21:54 ahammond I upgraded chef once. Still have the scars.
21:57 obimod i'll be using dockerng for container distribution, i'm familiar with docker and <3 python.. any reason for the massive spike in additions/deletions? https://goo.gl/6HwKKT
21:57 flowstate joined #salt
21:57 nmadhok1 joined #salt
21:57 obimod or salt, rather, just getting used to docker as opposed to pure salt
21:57 obimod thanks for the links and thoughts @jfindlay
22:03 Muchoz joined #salt
22:05 edrocks joined #salt
22:06 menglish joined #salt
22:08 nmadhok joined #salt
22:09 teryx510 joined #salt
22:11 nmadhok1 joined #salt
22:11 DEger joined #salt
22:11 jenastar joined #salt
22:21 rgrinberg joined #salt
22:22 nmadhok joined #salt
22:22 DEger joined #salt
22:24 nmadhok1 joined #salt
22:27 teryx510 joined #salt
22:37 scottcrooks joined #salt
22:37 madhadron joined #salt
22:37 madhadron Does anyone know how to get salt-cloud to install salt-cloud when it's creating a new master?
22:39 jfindlay madhadron: how are you bootstrapping the VM?
22:40 madhadron jfindlay, From salt running on a workstation, with configuration to create instances in an AWS VPC
22:40 jfindlay madhadron: if you install a master, it should include salt-cloud from what I would expect
22:41 onlyanegg joined #salt
22:41 madhadron That's what I thought, too
22:42 jfindlay how did you tell salt-cloud to install a master?
22:42 madhadron In the profile in /etc/salt/cloud.profiles.d/, I added the line make_master: True
22:43 jfindlay can you see what salt packages have been installed?
22:43 madhadron This is on ubuntu using the git cloning method
22:44 madhadron The bootstrap script installs git-core and salt-minion (the latter to get dependencies, I assume), then clones the repo and builds
22:44 jfindlay well, that's more confusing, because if you do a git install, it should do a full install
22:45 flowstate joined #salt
22:45 jfindlay it's possible the bootstrap script does some extra things to disable what you explicitly enable with script_args, though
22:45 madhadron Oh, actually, I take that back.
22:45 madhadron I was looking at an old script
22:45 jfindlay s/what/everything but/
22:45 madhadron Let me check what packages are installed
22:46 DEger_ joined #salt
22:46 madhadron Ah, it didn't install salt-cloud.
22:46 madhadron Yup, that was it.
22:47 jfindlay I wonder if we need to add a flag to bootstrap to install all the packages
22:49 madhadron I'm a little puzzled since I got salt-cloud on another machine that I bootstrapped on.
22:49 madhadron I'd better go iron this out before bothering anyone
22:49 madhadron or bothering them anymore... (:
22:49 ahammond ok, I've got almost all my minions switched over to 2016.3 + tcp. And... that tcp transport is good stuff.
22:49 jfindlay madhadron: no problem, glad to help
22:50 jfindlay ahammond: nice
22:50 ahammond couple of strange issues. FC24 boxes don't seem to be detecting the new version of salt. They're running against repo.saltstack.com
22:50 cro joined #salt
22:51 ahammond hmm... does salt have a way I can query the last time a box connected to the master? That'd be mighty handy.
22:52 ahammond oh, sorry, that's FC23 for those boxes.
22:52 jfindlay ahammond: you can check the master job cache
22:53 ahammond jfindlay hmm, I think I did that once a while back. Good idea. :)
22:53 jfindlay if you have some sort of event database setup
22:53 jfindlay would make it easier
22:54 ahammond oh, you mean an external job cache?
22:54 ahammond database or some such?
22:54 jfindlay yeah
22:55 ahammond you know, I've been putting that off in hopes of getting SaltStack Enterprise.
22:55 jfindlay I think there are utils to query the default cache, let me see
22:56 ahammond if i start doing stuff like that, it's a harder for me to sell the boss types on SS Enterprise. Hmm. I just noticed that there's a startrek joke to be had there.
22:56 jfindlay in saltutil
22:56 Muchoz joined #salt
22:56 jfindlay ahammond: limited beta going out this month from what I remember
22:56 pppingme joined #salt
22:57 ahammond @jfindlay ok, so... what do I have to do to get us on that list?
22:57 jfindlay you can contact sales@saltstack.com
22:58 ahammond jfindlay dude, I've emailed them, I've had my manager email them and had his manager email them too. I've bugged Keith T a couple of times and no love.
22:58 jfindlay hmm, I'll talk to Keith
22:58 jfindlay how long ago?
22:58 ahammond thanks man!
22:59 jfindlay sure
22:59 ahammond also, totally unrelated to enterprise, one of our co-founders wants me to put him in touch with Marc but I lost his business card. Can you pm me his email?
23:00 jfindlay sure
23:02 ninjada joined #salt
23:03 DEger joined #salt
23:04 madhadron Okay, I have confirmed that if you run the bootstrap script on a clean install, you get salt-cloud. The deploy script that salt-cloud puts on a new instance does not install salt-cloud even when it installs a master.
23:05 jfindlay madhadron: can you compare the command lines in each case?  Do you have an outdated bootstrap script?
23:05 madhadron Considering I just curled the script, I don't think so. Let me try to get the command line from the salt-cloud command.
23:05 jfindlay it should be in the debug output
23:06 nmadhok joined #salt
23:07 madhadron Yes, but I have to redo it capturing that because my scroll back in this terminal is inadequate
23:07 * madhadron twiddles his thumbs and watches the text scroll by.
23:07 jfindlay it might be info level.  You can check /var/log/salt
23:08 jfindlay hm, I don't have a cloud log there
23:08 madhadron 'Rendering deploy script: /usr/lib/python2.7/dist-packages/salt/cloud/deploy/bootstrap-salt.sh
23:08 madhadron '
23:09 madhadron So doesn't look like any options, but maybe something will show up in the debug
23:11 jfindlay I think bootstrap itself prints out its command line, I'm trying to find it
23:11 madhadron Ah, here's the command.
23:11 madhadron deploy.sh -- Version 2016.05.11
23:11 madhadron with /tmp/.saltcloud-.../ in front
23:11 madhadron Actually, I'm going to switch to an irc client on the same machine
23:12 madhadron brb
23:12 madhadron joined #salt
23:13 madhadron Anyway, the command seems to be:
23:13 madhadron /bin/sh /tmp/.saltcloud-558d1794-9326-4d63-9dc9-298cf64ec912/deploy.sh -- Version 2016.05.11
23:14 jfindlay so I wonder if make_master uses some other means to install the master
23:15 madhadron It's rendering a script, but I'm trying to track from where
23:15 Lee- joined #salt
23:15 madhadron it comes from a temporary file before it's uploaded
23:16 jfindlay because if you run the bootstrap script manually and you get salt-cloud installed, you can put the arguments you used into your cloud profile config under `script_args: '-M'`, for example
23:17 rem5 joined #salt
23:19 madhadron I'm trying to convince myself it's the same script at the moment
23:19 madhadron Trying again with -K in script_args to see what the script actually looks like
23:20 madhadron Oh rats, I have to leave to catch a ferry. I'll file a bug if I figure out what's going on and can't work around it.
23:24 DEger joined #salt
23:27 cableninja joined #salt
23:30 sc250024 joined #salt
23:32 spuder joined #salt
23:33 cableninja afternoon all, I'm getting 2 messages in master logs that I'm having problems resolving. http://pastie.org/10863605 | the cherrypy one, the ssl_cert and _key are defined, but still failing. The dmidecode one, I only found one entry that mentioned permissions on minion.d folder, but everything appears fine there
23:34 writtenoff joined #salt
23:37 rem5 joined #salt
23:38 DEger joined #salt
23:39 cableninja found the cause of the dmidecode, its because /dev/mem doesnt exist
23:39 DanSlimmon joined #salt
23:40 ninjada joined #salt
23:41 cableninja I did however only find that after looking at code though
23:47 nmadhok1 joined #salt
23:50 Lee- joined #salt
23:59 robinsmidsrod joined #salt

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