Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-10-12

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

All times shown according to UTC.

Time Nick Message
00:00 nineteen joined #salt
00:01 godber joined #salt
00:01 Mads[m] joined #salt
00:02 shalkie joined #salt
00:02 nickadam joined #salt
00:04 esc\ joined #salt
00:05 daks joined #salt
00:06 rpb joined #salt
00:06 hemebond Uh, I would have thought it would return True (change made) if the package was updated.
00:07 hemebond I don't know if it's actually True but, if it updates I would expect the state to register the change.
00:08 schro it seems to return true as long as it can force the file to be latests, either by it already being the latest, or by upgrading it to that
00:08 nineteen joined #salt
00:08 rpb joined #salt
00:08 schro but I think I'm only triggering the reconfigure command on a CHANGE, which is the desired outcome
00:09 hemebond Really? onchanges is triggered even if the package isn't updated? That seems odd.
00:09 schro onchanges is not triggered at all times
00:09 schro but the pkg.latest state returns true, regardless of whether it had to upgrade, or it didn't
00:09 schro because it executed successfully, I think
00:10 dnull[m] joined #salt
00:10 schro I'm still trying to figure this all out, so I could be a friggen moron, in which case, I applogize
00:10 g3cko joined #salt
00:10 hemebond Oh, yes, Success: True
00:11 xenoxaos joined #salt
00:11 hemebond That's different to a chance.
00:11 hemebond *change
00:11 MTecknology Is there such thing as saltutil.purge_cache_and_stop_making_me_mad ?
00:11 hemebond LOL
00:11 hemebond I don't think I've had many problems with the caching.
00:12 MTecknology It's usually really easy. This is the first time I've had a serious pains with it.
00:14 sp0097 joined #salt
00:15 thejrose1984 joined #salt
00:16 dyasny joined #salt
00:17 thejrose1984 joined #salt
00:17 mikea joined #salt
00:17 McNinja joined #salt
00:20 nineteen joined #salt
00:21 abednarik joined #salt
00:22 flowstate joined #salt
00:24 Ryan_Lane joined #salt
00:24 tmkerr joined #salt
00:24 esharpmajor joined #salt
00:25 OliverMT joined #salt
00:25 gableroux joined #salt
00:26 flowstat_ joined #salt
00:26 WKNiGHT joined #salt
00:27 Mads[m] joined #salt
00:27 nineteen joined #salt
00:30 M-liberdiko joined #salt
00:30 vaelen joined #salt
00:31 freelock[m] joined #salt
00:33 lilvim joined #salt
00:37 evilrob joined #salt
00:38 jor joined #salt
00:38 nineteen joined #salt
00:39 nahkiss joined #salt
00:43 godlike joined #salt
00:43 godlike joined #salt
00:43 M-liberdiko joined #salt
00:43 dnull[m] joined #salt
00:44 basepi joined #salt
00:44 raspado joined #salt
00:45 CeBe1 joined #salt
00:45 Mads[m] joined #salt
00:46 abednarik joined #salt
00:47 nineteen joined #salt
00:52 pipps joined #salt
00:53 al joined #salt
00:56 CeBe1 joined #salt
00:57 dps joined #salt
00:58 nineteen joined #salt
01:03 woodtablet left #salt
01:05 McNinja joined #salt
01:07 cryptolukas joined #salt
01:08 nineteen joined #salt
01:08 dnull[m] joined #salt
01:08 M-MadsRC joined #salt
01:09 catpiggest joined #salt
01:13 Mads[m] joined #salt
01:17 nineteen joined #salt
01:18 s_kunk joined #salt
01:18 s_kunk joined #salt
01:19 skrobul joined #salt
01:21 subsignal joined #salt
01:23 antonw joined #salt
01:24 PerilousApricot joined #salt
01:26 flowstate joined #salt
01:28 nineteen joined #salt
01:28 dendazen joined #salt
01:29 Perilous_ joined #salt
01:31 vaelen joined #salt
01:33 DEger joined #salt
01:36 garthk joined #salt
01:36 iggy service salt-minion stop ; rm -rf /var/cache/salt/ ; service salt-minion start
01:36 iggy that used to be part of my normal "remediation" routine
01:37 iggy granted we were doing really weird stuff with large git trees/etc
01:39 nineteen joined #salt
01:39 M-MadsRC joined #salt
01:42 freelock[m] joined #salt
01:46 sebastian-w joined #salt
01:46 sh123124213 joined #salt
01:48 ilbot3 joined #salt
01:48 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.8.12, 2016.3.3 | 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:56 pipps joined #salt
01:57 nineteen joined #salt
01:58 DEger joined #salt
01:59 subsignal joined #salt
02:02 M-MadsRC joined #salt
02:02 shalkie joined #salt
02:04 edrocks joined #salt
02:05 _workthrick joined #salt
02:07 McNinja joined #salt
02:08 nineteen joined #salt
02:11 sagerdearia joined #salt
02:11 DEger joined #salt
02:18 nineteen joined #salt
02:21 pipps joined #salt
02:26 nineteen joined #salt
02:26 DEger joined #salt
02:28 flowstate joined #salt
02:33 McNinja joined #salt
02:33 Corey joined #salt
02:35 oliver_are joined #salt
02:36 sh123124213 joined #salt
02:37 nineteen joined #salt
02:41 sh123124213 joined #salt
02:42 McNinja joined #salt
02:44 Mads[m] joined #salt
02:47 dyasny joined #salt
02:47 nineteen joined #salt
02:52 dnull[m] joined #salt
02:52 M-MadsRC joined #salt
02:56 CampusD joined #salt
02:58 nineteen joined #salt
03:00 subsignal joined #salt
03:11 netcho joined #salt
03:12 M-liberdiko joined #salt
03:18 Mads[m] joined #salt
03:20 vaelen joined #salt
03:26 flowstate joined #salt
03:37 nineteen joined #salt
03:46 freelock[m] joined #salt
03:50 nineteen joined #salt
03:56 vegasq joined #salt
04:06 edrocks joined #salt
04:06 nineteen joined #salt
04:10 freelock[m] joined #salt
04:12 mpanetta joined #salt
04:16 _aeris_ joined #salt
04:18 nineteen joined #salt
04:25 dandelo joined #salt
04:26 flowstate joined #salt
04:28 nineteen joined #salt
04:29 M-MadsRC joined #salt
04:37 sh123124213 joined #salt
04:41 DEger joined #salt
04:50 nineteen joined #salt
04:51 DEger joined #salt
04:53 M-liberdiko joined #salt
04:57 nineteen joined #salt
04:59 DEger joined #salt
05:08 evle joined #salt
05:08 nineteen joined #salt
05:09 PerilousApricot joined #salt
05:10 DEger joined #salt
05:12 netcho joined #salt
05:14 * robawt is blamed by Heartsbane
05:17 nineteen joined #salt
05:21 DEger joined #salt
05:22 DEger joined #salt
05:26 flowstate joined #salt
05:26 nineteen joined #salt
05:28 felskrone joined #salt
05:29 hemebond joined #salt
05:30 sh123124213 joined #salt
05:33 netcho joined #salt
05:34 mpanetta joined #salt
05:36 fixit26 joined #salt
05:36 impi joined #salt
05:37 watersoul joined #salt
05:37 evle1 joined #salt
05:37 voileux__ joined #salt
05:37 nineteen joined #salt
05:38 SpX joined #salt
05:40 wm-bot4 joined #salt
05:43 haam3r joined #salt
05:46 nineteen joined #salt
05:56 bocaneri joined #salt
05:56 nineteen joined #salt
05:57 mpanetta_ joined #salt
06:01 DEger joined #salt
06:04 ivanjaros joined #salt
06:08 edrocks joined #salt
06:12 nineteen joined #salt
06:14 M-liberdiko joined #salt
06:14 keimlink joined #salt
06:15 oliver_are joined #salt
06:24 _KaszpiR_ joined #salt
06:25 netcho joined #salt
06:26 flowstate joined #salt
06:27 nineteen joined #salt
06:28 DEger joined #salt
06:28 sh123124213 joined #salt
06:32 sgo_ joined #salt
06:37 nineteen joined #salt
06:38 cryptolukas left #salt
06:39 izibi joined #salt
06:40 DEger joined #salt
06:42 jhauser joined #salt
06:46 nineteen joined #salt
06:47 evilrob joined #salt
06:49 DEger joined #salt
06:51 dnull[m] joined #salt
06:56 nineteen joined #salt
07:04 toanju joined #salt
07:05 xenoxaos joined #salt
07:07 nineteen joined #salt
07:10 samodid joined #salt
07:15 Electron^- joined #salt
07:16 nineteen joined #salt
07:22 CeBe joined #salt
07:26 flowstate joined #salt
07:26 mikecmpbll joined #salt
07:27 nineteen joined #salt
07:29 dariusjs joined #salt
07:32 mamalos joined #salt
07:36 nineteen joined #salt
07:38 ronnix joined #salt
07:47 JohnnyRun joined #salt
07:49 m4rx joined #salt
07:49 theblazehen__ joined #salt
07:54 theblazehen_ joined #salt
07:57 mikecmpbll joined #salt
07:58 nineteen joined #salt
08:00 vifon joined #salt
08:02 netcho joined #salt
08:03 M-MadsRC joined #salt
08:04 kihued joined #salt
08:05 M-liberdiko joined #salt
08:06 nineteen joined #salt
08:06 Mads[m] joined #salt
08:09 haam3r joined #salt
08:10 edrocks joined #salt
08:11 sh123124213 joined #salt
08:12 sh123124213 joined #salt
08:12 John_Kang joined #salt
08:14 Rumbles joined #salt
08:14 yuhlw_____ joined #salt
08:16 nineteen joined #salt
08:22 g3cko joined #salt
08:23 geomacy joined #salt
08:26 nineteen joined #salt
08:27 flowstate joined #salt
08:32 jhauser joined #salt
08:33 JohnnyRun hi all.
08:33 JohnnyRun I can do something like "salt['mine.get'](server, 'the_mine_func')" but not "salt['mine.get'](server, 'the_mine_func')['the_key']"
08:34 JohnnyRun is it impossible or I am wrong?
08:35 JohnnyRun "salt backup01\* mine.get \* the_mine_func" returns  correctly the tree
08:37 hemebond JohnnyRun: The mine function likely returns a string, not a dict.
08:37 lero joined #salt
08:38 SaltyVagrant joined #salt
08:38 nineteen joined #salt
08:38 JohnnyRun hmmh.. thanks hemebond.
08:38 haam3r joined #salt
08:40 vifon Hello. Since which Salt version is the ps module available?
08:42 hemebond vifon: At least 2014.1.4 by the looks of it.
08:42 hemebond Very likely much longer.
08:43 s_kunk joined #salt
08:43 vifon I have 2014.1.13 and I cannot use it. '"ps.pgrep" is not available.'
08:44 vifon It works on a machine with 2015.8.8 though.
08:46 hemebond vifon: I see it in the code for 2014.1, though that's every 2014.1 version.
08:47 nineteen joined #salt
08:47 hemebond Wait, there it is in 2014.1.0
08:47 hemebond So, something going wrong on the minion I think.
08:48 vifon Any hint how to diagnose it? I'm pretty new to Salt.
08:48 vifon Actually this minion was created two days ago so it should be pretty vanilla.
08:48 hemebond Does the minion have psutil installed?
08:49 vifon Yes, I just ran 'salt \* pkg.install python-psutil' to be sure.
08:49 hemebond Restarted the minion?
08:49 hemebond Or reloaded the modules somehow?
08:50 vifon Good idea.
08:50 vifon Any way to do it remotely with salt?
08:52 hemebond https://docs.saltstack.com/en/latest/faq.html#linux-unix
08:55 vifon It helped, thanks a lot.
08:55 nineteen joined #salt
08:59 xiaoanyunfei joined #salt
09:02 telx joined #salt
09:04 oida joined #salt
09:06 nineteen joined #salt
09:08 ProT-0-TypE joined #salt
09:08 AirOnSkin joined #salt
09:13 keimlink joined #salt
09:14 haam3r joined #salt
09:14 hemebond vifon: ????
09:16 nineteen joined #salt
09:17 jhauser joined #salt
09:18 M-MadsRC joined #salt
09:18 dariusjs joined #salt
09:22 N-Mi joined #salt
09:22 N-Mi joined #salt
09:25 flowstate joined #salt
09:25 ProT-0-TypE joined #salt
09:35 M-MadsRC joined #salt
09:38 nineteen joined #salt
09:42 infrmnt joined #salt
09:42 kbaikov joined #salt
09:43 McNinja joined #salt
09:46 nineteen joined #salt
09:46 Mads[m] joined #salt
09:48 nidr0x joined #salt
09:51 kbaikov joined #salt
09:52 theblazehen joined #salt
09:57 nineteen joined #salt
10:01 netcho joined #salt
10:03 haam3r joined #salt
10:06 nineteen joined #salt
10:07 M-MadsRC joined #salt
10:07 McNinja joined #salt
10:07 bigjazzsound joined #salt
10:10 bigjazzsound joined #salt
10:11 fannet joined #salt
10:12 edrocks joined #salt
10:13 sh123124213 joined #salt
10:15 mikecmpbll i'm getting "expected <block end>, but found '<scalar>'" for https://gist.github.com/mikecmpbll/9e08776dab790e9df06e441389063e33
10:15 mikecmpbll any ideas?
10:15 hemebond [localhost]
10:15 hemebond You're creating a list.
10:15 AndreasLutro wrap [localhost]:9000 in quotes
10:15 mikecmpbll even though it's quoted?
10:15 hemebond It's not quoted.
10:16 mikecmpbll oops
10:16 mikecmpbll i removed them, crap.
10:16 mikecmpbll it was quoted
10:16 mikecmpbll single quotes
10:16 AndreasLutro eg.sls is your pillar right?
10:16 AndreasLutro show us your state sls as well
10:16 nineteen joined #salt
10:17 mikecmpbll AndreasLutro : one sec
10:18 mikecmpbll updated: https://gist.github.com/mikecmpbll/9e08776dab790e9df06e441389063e33
10:18 AndreasLutro you need to quote this as well https://gist.github.com/mikecmpbll/9e08776dab790e9df06e441389063e33#file-state-sls-L2
10:18 AndreasLutro or do {{ known['host'] | json }}:
10:18 AndreasLutro running something through the json filter tends to ensure that it's always valid yaml
10:20 mikecmpbll AndreasLutro : ah, thanks for the tip!
10:20 mikecmpbll is it important whether it's single or double quotes?
10:20 Brijesh2 joined #salt
10:21 AndreasLutro nope
10:26 flowstate joined #salt
10:26 nineteen joined #salt
10:29 ozux joined #salt
10:33 sgo_ joined #salt
10:35 nineteen joined #salt
10:40 jp47itc joined #salt
10:40 jp47itc just started with salt... love it :D
10:42 hemebond ????
10:42 freelock[m] joined #salt
10:45 nineteen joined #salt
10:51 dariusjs joined #salt
10:54 sgo_ joined #salt
11:02 inad922 joined #salt
11:08 nineteen joined #salt
11:15 sh123124213 joined #salt
11:16 nineteen joined #salt
11:20 sh123124213 joined #salt
11:22 M-liberdiko joined #salt
11:22 sh123124_ joined #salt
11:25 sh123124213 joined #salt
11:25 nineteen joined #salt
11:26 jp47itc i added my first state to my git, this works well... but when i update the file in git the salt master doesn't recognize it... how can i tell the master that he should reload the states in git?
11:27 AndreasLutro are you using gitfs? it will auto-update every 60 seconds
11:28 AndreasLutro if you can't wait, then `salt-run fileserver.update`
11:28 jp47itc just found this, thanks
11:28 jp47itc AndreasLutro: are you sure about the auto-update?
11:28 AndreasLutro yes
11:29 jp47itc ok, thank you
11:30 nicksloan joined #salt
11:33 sh123124213 joined #salt
11:33 cosming joined #salt
11:35 netcho joined #salt
11:36 nineteen joined #salt
11:44 freelock[m] joined #salt
11:48 nineteen joined #salt
11:56 aidin joined #salt
11:56 amontalban joined #salt
11:58 misconfig joined #salt
12:03 N-Mi I want to reuse a set of common parameters in multiple webservers with multiple vhosts, but can't manage to make my jinja import the common config inside each vhost configuration.
12:03 dariusjs joined #salt
12:03 N-Mi here is my pillar config : http://dpaste.com/0FBY6RK
12:03 M-liberdiko joined #salt
12:04 DarkKnightCZ joined #salt
12:05 AndreasLutro your jinja import seems just fine, I'm going to guess that your problem is that you're generating invalid yaml
12:05 N-Mi yes, if I put "- foo: {{ params.conf }}" , it works
12:05 N-Mi but I want the params to be at the same level as the "listen" directive
12:06 DarkKnightCZ joined #salt
12:06 noraatepernos joined #salt
12:06 nineteen joined #salt
12:06 AndreasLutro {% for key, val in params.conf %} - {{ key }}: {{ val }}{% endfor %}
12:07 AndreasLutro + newlines
12:07 sgo_ joined #salt
12:07 N-Mi ah ok, I though there was a way to do this with a one-liner
12:07 DarkKnightCZ Hi, is it possible for Syndic nodes to take minion pillars from the global master? I have topology where there are top masters with mysql ext_pillar and syndic nodes will be on different machines that can interconnect multiple networks, but those nodes won't have access to the pillar database
12:07 DarkKnightCZ any ideas?
12:07 haam3r joined #salt
12:08 netcho joined #salt
12:08 N-Mi I was looking for some sort of "append" function to add all these params to the "server" dictionnary
12:09 N-Mi so I guess I need to define a macro so that I can include the common parameter in one short jinja directive ?
12:09 DarkKnightCZ N-Mi: maybe jinja yaml filter with indent filter? (if i got that correctly)
12:10 DarkKnightCZ {{ params.conf | yaml(False) | indent(X) }}
12:10 DarkKnightCZ where X is number of indentation (8 for example)
12:11 N-Mi hmm... I need to try this, this seems to be what i'm looking for
12:11 cyborg-one joined #salt
12:13 N-Mi DarkKnightCZ: yayyy ! it works ! thanks
12:14 edrocks joined #salt
12:15 nineteen joined #salt
12:18 Mads[m] joined #salt
12:18 numkem joined #salt
12:18 aagbds joined #salt
12:23 vegasq joined #salt
12:25 inad922 joined #salt
12:26 nineteen joined #salt
12:27 armguy joined #salt
12:27 atr joined #salt
12:28 M-MadsRC joined #salt
12:29 atr Is it possible in Salt Stack to filter minions by memory size, but indicating value that the memory size must be greater or less than, rather than equal to? So instead of this: ``salt -G 'mem_total:993' test.ping``. I need somthing like this: ``salt -G 'mem_total > 993' test.ping``
12:31 numkem joined #salt
12:34 misconfig joined #salt
12:34 edrocks joined #salt
12:35 nineteen joined #salt
12:38 M-MadsRC joined #salt
12:45 nineteen joined #salt
12:50 impi joined #salt
12:55 nZac joined #salt
12:55 aidin joined #salt
12:55 nineteen joined #salt
12:56 amcorreia joined #salt
12:56 netcho hi all, on 2015.8.10 (Beryllium) i dont see extmod directory
12:56 CeBe1 joined #salt
12:57 netcho docs say it's in /var/cache/salt/extmods
12:57 netcho but i dont have that
12:57 netcho only cloud nad master there
12:57 cosming joined #salt
12:58 cosming joined #salt
12:58 edrocks netcho: it might be in a newer version, try updating
12:59 netcho https://docs.saltstack.com/en/latest/ref/configuration/master.html#extension-modules
12:59 netcho says newer version is changed
12:59 netcho old one should be there
13:00 edrocks "on most platforms" may be your issue
13:00 netcho ubuntu
13:00 edrocks I would check but I'm on 2016.3.3
13:00 edrocks any reason your not on the latest?
13:02 netcho not rly
13:02 edrocks I'd update and try the new dir
13:02 netcho dunno if any side effects are gonan show
13:02 edrocks well you can't stay on 2015.x forever anyway. Why have to redo this work when you eventually do update?
13:04 _KaszpiR_ joined #salt
13:05 nineteen joined #salt
13:06 racooper joined #salt
13:06 mavhq joined #salt
13:10 Warnock joined #salt
13:12 Brew joined #salt
13:13 aidin left #salt
13:13 aidin joined #salt
13:13 Dan_ joined #salt
13:13 Tanta joined #salt
13:16 netcho caoh boy, no new packaged for ubuntu?
13:16 nineteen joined #salt
13:18 DarkKnightCZ joined #salt
13:18 netcho everythibg should stay the same if i install it from bootstrap script again?
13:22 Cottser joined #salt
13:24 irctc735 joined #salt
13:25 irctc735 how do i manually push changes on the filesystem master to a syndic ?
13:25 nineteen joined #salt
13:25 dariusjs joined #salt
13:25 irctc735 i'm writing a reactor and now there are differences in the reactor files on the master vs the syndics..
13:26 aagbds joined #salt
13:26 abednarik joined #salt
13:29 freelock[m] joined #salt
13:33 vegasq joined #salt
13:33 scoates joined #salt
13:34 flowstate joined #salt
13:35 samodid joined #salt
13:36 nineteen joined #salt
13:37 netcho hm
13:38 netcho i installed 2015-8 from ppa
13:38 netcho whats the easiest way to upgrade?
13:38 promorphus joined #salt
13:41 babilen netcho: Use different repositories, upgrade master then minions.
13:42 netcho i used this
13:42 netcho https://repo.saltstack.com/#ubuntu
13:43 cosming joined #salt
13:43 netcho when i upgrade it says its already the newest version
13:44 nZac joined #salt
13:45 babilen netcho: What does "apt-cache policy salt-master" give you on the master?
13:46 babilen http://paste.debian.net, https://gist.github.com, http://sprunge.us, …
13:46 nineteen joined #salt
13:47 coredumb Hey folks
13:47 netcho babilen: https://paste.debian.net/868797/
13:48 babilen netcho: You are running 2016.3.3 rather than 2015.8.?
13:48 netcho yes
13:48 babilen Wait
13:48 babilen "whereis salt-master" ?
13:48 coredumb Is there a way to list the states that gonna be applied by a minion ?
13:49 netcho salt-master: /usr/bin/salt-master /usr/local/bin/salt-master /usr/share/man/man1/salt-master.1.gz
13:49 babilen coredumb: show_top
13:49 babilen netcho: /usr/bin/salt-master --version ?
13:49 netcho salt-master 2015.8.10 (Beryllium)
13:49 babilen netcho: It looks as if you have a local installation in /usr/local -- does that ring a bell?
13:50 netcho not rly :)
13:50 netcho it wasn;t me
13:50 babilen netcho: Well, it is your box .. it definitely wasn't me
13:50 netcho haha\
13:50 babilen netcho: Does anybody else have access to it?
13:50 netcho yes
13:51 netcho ex coleague installed it
13:51 babilen I would argue that it is likely that somebody installed salt to /usr/local manually and that you are now picking up those Python libraries. If you are lucky (which you won't be) that person used stow to separate the installation ..
13:51 babilen So you will have to remove it from /usr/local and use the one that came with the package
13:52 coredumb babilen: ah thanks!
13:53 babilen coredumb: You are welcome
13:55 Reverend anyone here ever had any problems receiving mail from the same mail you're sending from in office365?
13:55 Reverend I ccan't figure out how to add my servers into the mailgroup postfix equivalent
13:55 Reverend :P
13:56 nineteen joined #salt
13:59 coredumb any idea why when I run state.apply test=True I don't get Result: None as expected per documentation like what "would be applied" but the same output as I have when actually running the state ?
14:02 coredumb basically it does nothing ...
14:02 Cottser joined #salt
14:02 edrocks joined #salt
14:04 geomacy joined #salt
14:05 nineteen joined #salt
14:09 TheMole42 joined #salt
14:10 TheMole42 left #salt
14:10 mapu joined #salt
14:11 Geoff_ joined #salt
14:12 lovecraftian joined #salt
14:12 lovecraftian joined #salt
14:15 DarkKnightCZ joined #salt
14:15 DarkKnightCZ Hi, got disconnected last time, is it possible for Syndic nodes to take minion pillars from the global master? I have topology where there are top masters with mysql ext_pillar and syndic nodes will be on different machines that can interconnect multiple networks, but those nodes won't have access to the pillar database
14:15 bluethundr joined #salt
14:18 Mads[m] joined #salt
14:18 hasues joined #salt
14:18 hasues left #salt
14:18 Cottser joined #salt
14:18 bluethundr hey guys.. I have a state definition that seems to pass online yaml parser checks
14:19 ronnix_ joined #salt
14:19 bluethundr however I'm getting a AttributeError: 'str' object has no attribute 'get' error when I try to apply the state
14:19 bluethundr https://gist.github.com/bluethundr/c7deec6587efe561d1186e42e8383061
14:19 bluethundr can someone take a look at the gist, and tell me what you think?
14:23 nhe33 joined #salt
14:25 nineteen joined #salt
14:26 nhe33 Hello, a state in my orchestrator modifies a pillar. I need to use this value in an other state, but the pillar value is not updated. It works in subsequent orchestrator calls once the pillar is updated.  https://goo.gl/wOjSRB
14:26 jp47itc is it normal that i get Unable to extract external pillar data when my git repo for the pillars is empty?
14:26 bluethundr oh removing the - profile: myprofile gets me past that error
14:28 oznah joined #salt
14:28 M-MadsRC joined #salt
14:30 _JZ_ joined #salt
14:30 Mads[m] joined #salt
14:32 cosming joined #salt
14:35 nineteen joined #salt
14:41 Brijesh1 joined #salt
14:44 Brijesh1 left #salt
14:45 nineteen joined #salt
14:45 M-MadsRC joined #salt
14:48 fxdgear joined #salt
14:51 amontalban joined #salt
14:51 amontalban joined #salt
14:53 nsidhu joined #salt
14:55 nineteen joined #salt
14:58 impi joined #salt
14:58 mdhas joined #salt
15:00 dyasny joined #salt
15:01 bfrog joined #salt
15:02 DEger joined #salt
15:05 nineteen joined #salt
15:06 DEger joined #salt
15:15 bluethundr hey guys...I'm trying to verify a VPC subnet in amazon using the boto_vpc.subnet_present function
15:15 bluethundr but instead of verifying the subnet, I get an error, because it tries to create the subnet
15:15 bluethundr could someone take a look at this stack overflow and let me know why this is happening?
15:15 bluethundr http://stackoverflow.com/questions/40001702/salt-stack-boto-vpc-failed-to-create-subnet-conflicts-with-another-subnet
15:16 bluethundr how can I get the function to verify the subnet instead of trying to create it?
15:16 raspado joined #salt
15:18 ronnix joined #salt
15:19 DammitJim joined #salt
15:19 jdipierro joined #salt
15:23 coval3nce joined #salt
15:26 nineteen joined #salt
15:27 Heartsbane joined #salt
15:27 Heartsbane joined #salt
15:28 sp0097 joined #salt
15:35 Salander27 joined #salt
15:35 nineteen joined #salt
15:35 Rumbles joined #salt
15:38 M-liberdiko joined #salt
15:39 noraatepernos joined #salt
15:41 freelock[m] joined #salt
15:41 M-MadsRC joined #salt
15:41 Mads[m] joined #salt
15:41 dnull[m] joined #salt
15:41 toastedpenguin joined #salt
15:42 toastedpenguin joined #salt
15:42 Rumbles joined #salt
15:43 rherna joined #salt
15:44 tapoxi joined #salt
15:45 nineteen joined #salt
15:48 whytewolf bluethundr: use salt-call boto_vpc.subnet_exists subnet_name=<subnetname> region=<region> key=<key> keyid=<keyid> to make sure that the settings you are providing do actually match up. you might actually want to run all of the boto_vpc on the settings to make sure everything lines up.
15:50 surge_ joined #salt
15:51 DEger joined #salt
15:52 toastedpenguin with a salt-cloud deployment is there any way to get salt to perform decommission like actions when salt-cloud -d minion.id is run?
15:54 surge_ joined #salt
15:54 whytewolf toastedpenguin: well, one could build a orchestration that does some decomm stuff then runs the destroy useing https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.cloud.html#salt.modules.cloud.destroy
15:55 pmcg joined #salt
15:56 nineteen joined #salt
15:56 surge_ joined #salt
15:56 toastedpenguin whytewolf: we have salt adding minions to AD, so we would like to have salt remove the minion from AD and its DNS entry when we destroy it
15:57 whytewolf and how can you not do that with what i sugested?
15:58 surge_ I found a thread in Google Groups from 4 years ago asking if there was a way to get the last minion connection, and the suggestion was to keep the job cache for a longer period of time so that it can be queried by a monitoring tool. Has there been any additions to salt since then that would allow for one to get this data in another manner ?
16:00 toastedpenguin you probably can, my experience with orchestrations thus seemed hacky so I didnt even consider it
16:02 samodid joined #salt
16:05 nineteen joined #salt
16:06 PerilousApricot joined #salt
16:09 Sketch hmm, just updated from 2016.3.2 to 2016.3.3, it seems like state_output is ignored.  anyone know if some default changed?
16:10 Sketch hmm...but it's only on some hosts.  weird.
16:10 beowuff joined #salt
16:14 Sketch i can't find any pattern as to which hosts it works on and which it doesn't
16:15 nineteen joined #salt
16:15 godber joined #salt
16:16 iggy coredumb: the are a few states that really confuse `test=True` (pkgrepo.* being one)
16:17 coredumb babilen: I notice that show_top doesn't follow requires statements, is there a way to list the complete tree of states for a minion ?
16:17 iggy surge_: no... it's kind of outside of the purview of salt really
16:17 coredumb iggy: thanks, actually it was me not really grasping how test is working
16:17 Trauma joined #salt
16:18 iggy coredumb: there are a number of show_* execution module functions
16:18 iggy !salt modules.state
16:18 saltstackbot https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.state.html
16:19 surge_ iggy: I see. I just stumbled upon the “salt-run jobs.list_jobs” command so I’ll probably use that. My thinking is to list jobs past a certain time and then use another command to see which minions haven’t reached out to the master in X amount of time.
16:19 babilen state.show_highstate for example
16:20 woodtablet joined #salt
16:21 coredumb thx babilen and iggy
16:21 coredumb failed to see that
16:21 babilen np
16:23 NotBobDole joined #salt
16:23 NotBobDole hi all. Anyone know anything about a good way of validating saltstack formulas?
16:24 tawm04 joined #salt
16:24 misconfig joined #salt
16:24 nineteen joined #salt
16:24 Sketch it's neither salt minion version or salt minion OS.
16:25 KingOfFools Hey guys. I want to spread same configuration on different servers, but with different parameters, which depend on number of servers and few other things (BGP configuration with different local preference) should I calculate that parameters in pillar and use prepared pillar data in config file template, or prepare that configuration for each server in config file template or some other way? What do you think?
16:26 subsignal joined #salt
16:27 babilen KingOfFools: If you can keep it in pillars then do it there
16:30 KingOfFools babilen: is it ok if i in pillar renderer will go in salt, ask what minions do i have with specific role and do some calculation based on that information?
16:32 babilen Sure
16:33 KingOfFools babilen: alrighty. THanks!
16:33 babilen Or you target different settings to different (groups) of minions and rely on pillar merging for the complete picture
16:33 babilen (or a combination thereof)
16:33 babilen I simply meant: If you can keep your settings in pillars then do that :)
16:34 CeBe joined #salt
16:36 nineteen joined #salt
16:36 Lionel_Debroux_ joined #salt
16:37 KingOfFools left #salt
16:37 KingOfFools joined #salt
16:39 surge_ joined #salt
16:40 onlyanegg joined #salt
16:41 KingOfFools babilen: I'm just wondering would that data be valid, if I get some information from mysql, render it and return different pillar for each minion.
16:41 Tanta if the config is same format, different values, then pillar + jinja is the best bet. if the config is entirely unique in special ways on each box, then you need a different path
16:42 KingOfFools Tanta: configs are similar. Same data but with different priority number.
16:45 nineteen joined #salt
16:47 pipps joined #salt
16:50 aidin joined #salt
16:51 xenoxaos joined #salt
16:54 nineteen joined #salt
16:56 pipps joined #salt
16:57 scoates joined #salt
17:01 scoates joined #salt
17:05 pipps joined #salt
17:06 nineteen joined #salt
17:08 impi joined #salt
17:11 tapoxi joined #salt
17:14 Rumbles joined #salt
17:15 nineteen joined #salt
17:15 samodid joined #salt
17:18 samodid joined #salt
17:18 west575_ joined #salt
17:19 _KaszpiR_ joined #salt
17:24 nZac joined #salt
17:25 nineteen joined #salt
17:26 mattl joined #salt
17:27 Awesomecase joined #salt
17:30 mikecmpbll joined #salt
17:31 fxdgear Is there a listing of all the data in the `data` dict inthe salt reactor?
17:31 fxdgear i'm looking here: https://docs.saltstack.com/en/latest/topics/reactor/
17:32 fxdgear and it references the `data['id']` key. And I was expecting that the `role` would also exist. but it appears that it does not...
17:33 flowstate joined #salt
17:34 Tanta if 'id' is the grain key, then there would also need to be a 'role' grain
17:34 ozux joined #salt
17:34 whytewolf fxdgear: data is dependent on the event in the event bus.
17:35 nineteen joined #salt
17:35 whytewolf use salt-run state.event pretty=True to actaully watch what events are coming in. the event items are what fill data
17:37 barajasfab joined #salt
17:37 fxdgear @whytewolf I found the data in the master log... so I see that `role` is not included.
17:38 whytewolf https://docs.saltstack.com/en/latest/topics/event/master_events.html#event-master-events also has a list of what events have what items for the common events
17:38 fxdgear so let me ask this question. I want to have a reactor behave differenlty if the id is `ucp0` vs `ucpX` where x > 0
17:38 whytewolf data isn't a fixed thing.
17:38 impi joined #salt
17:38 haam3r joined #salt
17:39 flowstate joined #salt
17:39 fxdgear @whytewolf ahh that link will be super helful :)
17:40 skrobul joined #salt
17:41 Guest14254 We are using Salt to insure that our company's internal audit policies are installed on a minion virtual machine that is running the Windows Server 2012 R2 Standard OS. In order for our policies to be installed properly, we must first make sure that 2 particular files (C:\Windows\security\audit\audi.csv and C:\Windows\System32\GroupPolicy\Machine\microsoft\windows nt\Audit\Audit.csv) do not exist on the minion.  To test this init
17:42 Guest14254 Remove security audit file:   file.absent:     - name: 'C:\Windows\security\audit\audit.csv'  Remove group policy audit file:   file.absent:     - name: 'C:\Windows\System32\GroupPolicy\Machine\microsoft\windows nt\Audit\Audit.csv
17:42 Guest14254 Before I apply this state, I verify that both files exist on the minion. When I apply this state to the minion, the output indicates that both files are not present; and when I check back on the minion, I see that the audit.csv file from the C:\Windows\security\audit folder was removed. However, the Audit.csv file still exists in the C:\Windows\System32\GroupPolicy\Machine\microsoft\windows nt\Audit folder.
17:42 Guest14254 My first thought was that there was a problem with the embedded space in the "windows nt" folder name, but after many attempts at finding the correct combination of quotes and escape characters, I realized that is not the issue.  The C:\Windows\System32\GroupPolicy folder contains 2 sub-folders (Machine and User) and 1 config file (gpt.ini). However, it does not appear as though salt can see all of the contents of that folder.
17:42 Guest14254 salt-master$ sudo salt win-minion cmd.run 'dir C:\Windows\System32\GroupPolicy'  win-minion:      Volume in drive C has no label:      Volume Serial Number is 2869-B7E5
17:42 Guest14254 Directory of C:\Windows\System32\GroupPolicy       11/18/2013  04:45 PM   <DIR>             .      11/18/2013  04:45 PM   <DIR>             ..      11/18/2013  04:45 PM                        11 gpt.ini                              1 File(s)                      11 bytes                              2 Dir(s)    96,334,311,424 bytes free
17:42 Guest14254 If I issue the 'dir' command at the command prompt on the minion, I get this:
17:43 Guest14254 C:\>dir C:\Windows\System32\GroupPolicy  Volume in drive C has no label.  Volume Serial Number is 2869-B7E5   Directory of C:\Windows\System32\GroupPolicy
17:43 Guest14254 07/17/2014  05:16 PM                     1,480 gpt.ini 06/27/2014  03:52 PM    <DIR>                Machine 11/18/2013  04:45 PM    <DIR>                User                         1 File(s)                   1,480 bytes                         2 Dir(s)     96,334,303,232 bytes free
17:44 Guest14254 I find it sort of curious that the date/timestamp on the gpt.ini file on the minion is different that what is in the output of the salt command.  I even tried manually creating another empty file in the C:\Windows\System32\GroupPolicy folder, and the command from above produced the exact same results (i.e. it only shows the gpt.ini file in the folder).
17:44 Guest14254 The GroupPolicy folder is a hidden folder. I tried removing the hidden attribute from the folder, but that did not change any of the result listed above.  I also tried testing the path using PowerShell.
17:45 Guest14254 salt-master$ sudo salt win-minion cmd.run 'Test-Path C:\Windows\System32\GroupPolicy' shell=powershell
17:45 Sketch i don't use salt on windows at all, but...does salt have permissions to remove that file? ISTR GPOs may have some special permissions
17:45 Guest14254 win-minion:      True
17:45 Guest14254 salt-master$ sudo salt win-minion cmd.run 'Test-Path C:\Windows\System32\GroupPolicy\Machine' shell=powershell
17:45 Guest14254 it does have the permissions
17:45 Guest14254 win-minion:      False
17:46 Guest14254 A couple final notes... * I made sure that the salt-minion process is running as the Administrator which has full access to the folders and file in question. * As the Administrator, I can access those folders and manually delete the Audit.csv file either from the command prompt or via Windows Explorer
17:46 Sketch rather hacky, but you could just use cmd.run to a bat/ps1 script to delete the file
17:46 lompik joined #salt
17:46 Sketch would be better to find out why it doesn't work as it should, though.
17:46 nineteen joined #salt
17:46 Sketch though that might provide a clue, if salt is unable to remove the file because it's opened by the OS
17:47 scoates joined #salt
17:48 Guest14254 it works on linux boxes fine
17:49 Rumbles joined #salt
17:49 Sketch windows generally won't let you delete files that are in use
17:49 Sketch so if the OS has that file open, salt may not be able to remove it
17:50 flowstate joined #salt
17:51 cliluw joined #salt
17:53 Guest14254 I can delete it manually from cmd and via windows explorer so its not in use
17:54 Tanta try to create a file in the same path
17:54 Tanta if the creation fails, it's a permissions issue
17:54 Guest14254 put the actual delete command in a .bat file and then downloaded and ran that bat file via salt, and I got an error that said that the file path did not exist.
17:55 whytewolf Guest14254: is it possable you have 2 hosts with the same name?
17:55 nineteen joined #salt
17:55 Guest14254 no VMWARE shop and each VM minion has a unique VMUID
17:56 whytewolf that doesn't mean the minion id couln't be the same. if you pre installed salt into a template.
18:03 M-MadsRC joined #salt
18:04 flowstate joined #salt
18:04 nineteen joined #salt
18:06 abednarik joined #salt
18:09 flowstate joined #salt
18:10 beardedeagle joined #salt
18:11 Guest14254 whats the easiest way to check the minion ids
18:11 Guest14254 can I run a cmd from the Master
18:12 beardedeagle joined #salt
18:14 scoates joined #salt
18:14 mohae_ joined #salt
18:15 nineteen joined #salt
18:16 west575 joined #salt
18:17 felskrone joined #salt
18:18 nZac joined #salt
18:20 cosming joined #salt
18:21 west575_ joined #salt
18:22 inad922 joined #salt
18:25 edrocks joined #salt
18:26 nineteen joined #salt
18:27 west575 joined #salt
18:28 PerilousApricot joined #salt
18:30 Guest14254 Changed min ID to something Specific and restarted the service.  Same issue.
18:30 Guest14254 accepted new key etc etc
18:33 Rumbles joined #salt
18:33 pipps joined #salt
18:34 Rumbles joined #salt
18:34 nineteen joined #salt
18:35 PerilousApricot joined #salt
18:35 Rumbles joined #salt
18:36 Rumbles joined #salt
18:40 lero joined #salt
18:42 beardedeagle what is the best way to auto join a master WITHOUT setting `auto_accept` to True?
18:42 whytewolf beardedeagle: pre generate the certs and push them to the minion
18:43 whytewolf [kind of like how salt-cloud does it]
18:43 flowstate joined #salt
18:44 pipps joined #salt
18:45 beardedeagle Thanks
18:45 bad_ip joined #salt
18:46 nineteen joined #salt
18:49 flowstat_ joined #salt
18:53 PerilousApricot joined #salt
18:54 noraatepernos joined #salt
18:54 nineteen joined #salt
18:54 pipps joined #salt
18:56 flowstate joined #salt
19:00 flowstate joined #salt
19:03 CampusD joined #salt
19:04 nineteen joined #salt
19:04 flowstate joined #salt
19:05 pipps joined #salt
19:06 racooper Howdy. I'm trying to set up password managment based on  https://clinta.github.io/random-local-passwords/, but when I try to run the highstate, I get an error.
19:06 racooper Rendering SLS 'root-pw' failed, render error: Jinja variable 'AliasedLoader' object has no attribute 'pwgen.get_pw'
19:06 racooper Anyone have experience with this, or recognize the cause of the error message? I would guess that I'm missing something, but not sure what. Running Salt 2015.5.10 on CentOS 6 (Python 2.6.6) if that matters.
19:09 mike25de joined #salt
19:09 mike25de hi guys... I came up with a problem: using a state I want to create an user with his home dir: /app/user. On centos 7 using  salt version 2016.3. the problem is that the state fails because the home dir /app/user can not be created. I believe is a SELINUX error. I have disabled selinux and rebooted the server and still the same issue.   Any thoughts?
19:10 flowstate joined #salt
19:14 nineteen joined #salt
19:15 knikolov joined #salt
19:17 beakerman joined #salt
19:17 CampusD mike25de: you using https://docs.saltstack.com/en/latest/ref/states/all/salt.states.user.html#module-salt.states.user ?
19:17 beakerman I've got a quick question for the salt gurus out there
19:18 beakerman I'm trying to use some jinja in my salt state like so:
19:18 s_kunk joined #salt
19:18 CampusD mike25de: are you using the option createhome: True?
19:18 toanju joined #salt
19:19 flowstat_ joined #salt
19:19 beakerman set service_names = salt['service.get_all()']
19:20 beakerman then I try to iterate it on the next line
19:20 CampusD mike25de: what if you attempt running the highstate/state in debug mode?  IE  salt-call -l debug state.sls users  test=True
19:20 babilen beakerman: You want service_names = salt['service.get_all']()
19:21 babilen beakerman: The salt['service.get_all'] is a dictionay lookup (in the dictionary named 'salt') that returns a function. You would then call that function.
19:21 babilen Not sure if that's an answer to your question though :)
19:21 beakerman yup on the next line I was doing a
19:22 beakerman if 'servicename' not in service_names
19:22 g_ joined #salt
19:22 beakerman which was saying it was strictundefined
19:22 beakerman I will try your suggestion :)
19:22 mikecmpbll joined #salt
19:22 Guest19441 joined #salt
19:23 babilen salt['service.get_all()'] would try to lookup a function called service.get_all() which doesn't exist
19:24 ozux joined #salt
19:24 nineteen joined #salt
19:25 mike25de CampusD: indeed I am using the createhome option
19:25 pipps joined #salt
19:28 beakerman Sweet all is well in my world again. thanks alot!
19:28 mike25de CampusD: in debug mode I have error 12 can not create home dir /app/soa  - where soa is my user
19:28 mike25de CampusD: this is on EC2 vm.... I am running now on a centos7 digitalocean vm ...
19:29 Rumbles joined #salt
19:29 scoates joined #salt
19:29 whytewolf does /app exist?
19:29 mike25de no it does not exist.
19:30 mike25de but I have the createhome: True
19:30 mike25de which should create it... right?
19:30 whytewolf no
19:30 CampusD not sure about the parent dir
19:30 whytewolf it will create things in it.
19:30 mike25de aaa ok let me test... one sec to create the /app
19:31 mike25de you guys are right
19:31 mike25de the /app needed to exist
19:31 mike25de other Q... is it possible to disable SELINUX? without restarting the centos vm minion?
19:32 whytewolf disable? no, you can set it to permissive mode though
19:32 DammitJim joined #salt
19:32 whytewolf disableing requires a restart though
19:32 mike25de ok whytewolf thanks a lot man
19:33 whytewolf no problem
19:33 mike25de the permissive setting ... is that until next reboot?
19:33 DammitJim ok, I have a silly question about logrotate
19:33 CampusD yep
19:33 DammitJim should I have multiple states for the different log files I want to rotate?
19:33 mike25de CampusD: Thanks
19:33 DammitJim for different servers?
19:33 whytewolf i would set it to permissive, and set the config to disable.
19:34 CampusD it's the same as running the command setenforce 0 I believe
19:34 UtahDave joined #salt
19:34 mike25de whytewolf: set the config to disable... so at a reboot it will be disabled ? correct ?
19:34 whytewolf mike25de: yes
19:34 mike25de CampusD:  I found in the doc... the setenforce 0 command.
19:34 nineteen joined #salt
19:34 mike25de thanks guys! !!!!
19:34 racooper setting selinux to disable is STRONGLY discouraged.
19:35 mike25de racooper: I know :) but all the vms are behind 2 firewalls.. nothing is publicly accessible
19:35 racooper still, set it to permissive instead.
19:36 whytewolf or learn how to write policies and keep at enforcing
19:36 racooper that way if you do decide to re-enable at some point, you won't have to waste time resetting the selinux context on every file on the server.
19:36 CampusD agree with racooper, you could always use setroubleshoot to determine the root cause and write the custom policy, it's not that hard this days
19:36 mike25de racooper: I have to admit I do not know too muych about selinux (I have worked with ubuntu mostly)  so permissive would still allow most things to run?
19:36 pipps joined #salt
19:36 racooper permissive allows everything through with logging.
19:36 racooper https://wiki.centos.org/HowTos/SELinux
19:36 mike25de racooper: thanks man
19:37 ivanjaros joined #salt
19:37 mike25de that´s why I love this community - so many really helpful people around...
19:38 mikecmpbll joined #salt
19:38 whytewolf DammitJim: up to you really. personally depends on the log setup. some things i group together like the typicall core system stuff. but other i put in there own rules. like httpd logs
19:38 DammitJim ok
19:38 fxdgear ls
19:38 fxdgear oops :)
19:38 mike25de is anyone here who uses salt with AWS / EC2 ?  I might have some stupid newbie questions :P
19:39 whytewolf only thing i use on aws right now is route53 :/ everything else i do on my personal openstack setup
19:40 ilbot3 joined #salt
19:40 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.8.12, 2016.3.3 | 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
19:40 mike25de I am starting a project with EC2 ... and I am curious to know what are the... best ways to manage the kickstarting of vms .. and then manage the setup with salt.
19:41 whytewolf if just using ec2 most likely salt-cloud.
19:43 knikolov joined #salt
19:44 edrocks joined #salt
19:44 mike25de I read smth that salt-cloud does not return ... correct info from ec2
19:45 mike25de again.. just info from blogs.
19:45 * whytewolf shrugs
19:45 whytewolf again I don't use ec2 so really cannot comment on that
19:46 whytewolf there is the boto states. but then you have to build your own keying system
19:46 mike25de yeah of course - you helped me a lot already
19:46 mike25de whytewolf:  I am already using flask... to setup the framework... I think I will use boto3 in the end
19:46 pipps joined #salt
19:46 mike25de and I have flask working already with salt-api ... quite well
19:47 whytewolf ahh very nice
19:47 whytewolf then the boto states might be best
19:47 mike25de I use celery workers to queue tasks
19:47 nicksloan joined #salt
19:47 promorphus joined #salt
19:47 mike25de so far... it works... now I have to figure how to do the ec2 instantiating ... but boto seems the reasonable way to go... is official AWS py lib
19:48 whytewolf well thats why i am saying boto states. [actualy salt modules and state modules that work with the boto lib for talking to aws]
19:49 DammitJim did someone say I can use a nodegroup to define pillar data?
19:49 DammitJim like if a server is part of a nodegroup? :D
19:49 ozux joined #salt
19:51 whytewolf DammitJim: yes, match: nodegroup
19:51 DammitJim I didn't mean in the top pillar file
19:51 whytewolf oh you mean in the jinja ...
19:51 DammitJim si, senor
19:52 whytewolf https://docs.saltstack.com/en/latest/topics/targeting/nodegroups.html#using-nodegroups-in-sls-files
19:52 DammitJim something tells me I might need to do grains *sigh*
19:52 whytewolf not sure if that will work ...
19:52 DammitJim what, your link?
19:52 whytewolf yeah.
19:52 DammitJim shoot... that's newer than the version I'm running
19:53 whytewolf what version are you runnin?
19:54 DammitJim like 2015... let me check
19:54 _JZ_ joined #salt
19:54 DammitJim 2015.5.3
19:54 DammitJim and yes, it is in my stuff to do to upgrade
19:54 DammitJim but everything has to be tested
19:54 whytewolf oh ...
19:54 whytewolf yeah might wanna get around to that testing soon
19:54 nineteen joined #salt
19:55 hemebond mike25de: What are you having trouble with?
19:55 whytewolf cause carbon is right around the corner
19:57 pipps joined #salt
19:58 DammitJim wow, enabling pillar_opts puts all the master data in the pillar for the minion!
19:58 whytewolf well yes ...
19:59 whytewolf that is what that setting is for
19:59 pipps99 joined #salt
19:59 DammitJim blah and it didn't even do what I wanted it to do
19:59 whytewolf and also why it is disabled by default
19:59 DammitJim so, I guess I'll go back to defining what the server is running in regular pillar
20:00 whytewolf till you upgrade might be the easier choice
20:00 DammitJim shoot, but that still means that I can't use that pillar data to define other pillar data
20:00 DammitJim oh well
20:00 DammitJim sounds like grains is my only option
20:00 whytewolf ...
20:01 whytewolf or a needle in the eye. which sounds more comfortable to me
20:01 DammitJim wait, what does that mean?
20:02 DammitJim can I manage grains from a master?
20:02 whytewolf using grains for targetting always sits uneasy with me. since they can be over ritten at the minion side
20:02 DammitJim no, I don't want grains for targeting
20:02 DammitJim I want grains to define what a server is supposed to be configured with (make decisions in pillar)
20:03 whytewolf ... that is targetting
20:03 DammitJim for example, if I know this server will be running tomcat7, then I know that I need to do logrotate for tomcat7
20:03 DammitJim oh
20:03 whytewolf different style of targetting but still targetting
20:03 DammitJim gotchae
20:03 DammitJim so, for my example, where I'm saying... I need to have logrotate done for tomcat7 logs vs tomcat6 logs, vs nginx logs
20:03 whytewolf something that the minion has controll over should not be used for logic by the master
20:04 ozux joined #salt
20:04 DammitJim yeah, I understand... have read many of the issues
20:04 DammitJim but at this time it seems I can't use something defined on the master to make a decision to define pillar data
20:04 DammitJim or is this pillar_opts the only way of doing that?
20:04 whytewolf how were you going to use node groups for that?
20:04 nineteen joined #salt
20:05 DammitJim because I have a nodegroup called tomcat7
20:05 DammitJim and I list all the servers that are running tomcat7
20:05 whytewolf how did you define that node group?
20:05 DammitJim a server name at a time
20:06 DammitJim so, like: tomcat7_servers: L@myapps202p.mydomain.com,myapps246test.mydomain.com
20:06 DammitJim kinda like that
20:06 DammitJim make sense?
20:06 whytewolf sooo. why not have a pillar file called tomcat6 with the tomcat6 stuff in it and a tomcat7 pillar with teh tomcat 7 stuff in it. and then use the pillar top to add that to each server?
20:06 ponyofdeath hi, trying to use grains in my top file but salt-call --local bombs out with "Attempting to match with unknown matcher: grains" any ideas why?
20:06 DammitJim what would I say in my tomcat7 pillar file?
20:06 whytewolf you already are calling them out a server at a time
20:06 DammitJim (I already have one)
20:07 DammitJim and in there, I am having to do one server at a time
20:07 DammitJim I guess I'll have to do it in both places?
20:07 whytewolf why are you targetting IN the tomcat7?
20:07 whytewolf what changes depending on server?
20:08 DammitJim because if the server is for 1 client, I use certain info for tomcat7, but if it is for a different client, it uses other info
20:08 whytewolf ahhh. okay. that does change things. how many different types of sets do you have?
20:08 DammitJim sets of what?
20:08 whytewolf data
20:09 whytewolf config.a config.b config.c?
20:09 DammitJim oh gosh
20:09 DammitJim I must have at least 2 dozen
20:09 whytewolf if you split it all out
20:09 UtahDave mike25de: I use salt-cloud with ec2 a lot works great.  People have good success with the boto states and modules, too.
20:10 whytewolf okay, is there anything you can combine?
20:11 whytewolf and how complex is the yaml [not the jinja in the yaml]
20:12 whytewolf are you using formulas?
20:13 DammitJim no, no formulas
20:14 whytewolf are your data sets full of nested pillar data?
20:14 nineteen joined #salt
20:14 DammitJim yeah
20:14 DammitJim and in my states, I loop through that data also
20:15 DammitJim the yaml is not terrible
20:16 DammitJim whytewolf, I appreciate it... it seems like a pretty big fish to catch for now
20:16 lero joined #salt
20:16 DammitJim I'll take some baby steps
20:16 forgan joined #salt
20:16 whytewolf wlel i was wondering if it is something that pillar_source_merging_strategy: recurse
20:16 whytewolf pillar_merge_lists: True
20:16 whytewolf might be able to handle
20:16 DammitJim whoa
20:17 forgan left #salt
20:17 whytewolf cause if you have a core pillar that has the commen settings then split off the nonstandard data into sublets
20:17 lv_ joined #salt
20:17 whytewolf but it can be VERY tricky to get right
20:18 whytewolf i actually use those settings for my pillar roles, i have a bunch of role files that build a single role dict
20:19 DammitJim nice
20:19 sh123124213 joined #salt
20:20 DammitJim there is no way to check that a grain has a string in it, right?
20:20 DammitJim like I actually name my servers sorta by application
20:20 DammitJim even though that is not recommended
20:21 edrocks joined #salt
20:21 clockwrok joined #salt
20:22 tapoxi joined #salt
20:22 whytewolf string ... is a list of chars.
20:22 whytewolf so... kind of ...
20:23 whytewolf if you know exactly where the string you are looking for in a string, you could pull just those chars out. using something like string[5:8]
20:23 PerilousApricot joined #salt
20:24 whytewolf it isn't perfect. but it is betteer then nothing
20:24 nineteen joined #salt
20:25 DammitJim yeah, I've done that. Thanks! It broke down when the server names for the different clients went from 2 characters to 3
20:25 DammitJim LOL
20:26 whytewolf yeah, string length matters ALOT with that
20:26 DammitJim thanks, I think I am going to just work with what I know for now
20:26 DammitJim things gotta get done, ya know?
20:31 systo joined #salt
20:32 jhauser joined #salt
20:36 nineteen joined #salt
20:38 clockwrok is there some way to get service.running: - watch to use stop and start instead of restart?
20:39 clockwrok i'm not having any luck with the googles
20:39 ozux joined #salt
20:40 whytewolf service.dead: prereq: [do something] service.running: listen
20:41 DammitJim service.dead ensures the service doesn't start at boot, right?
20:41 whytewolf Ensure that the named service is dead by stopping the service if it is running
20:41 DammitJim oh, that's all?
20:41 DammitJim man, I'm in trouble
20:42 whytewolf enable: false in service.dead causes it to stay off
20:42 clockwrok thanks whytewolf, looking
20:42 DammitJim yeah, enable: False
20:42 DammitJim I need to review that
20:43 DammitJim OK. Yeah, I have enable: False
20:43 DammitJim what's interesting is that if I update the ubuntu package, this seems to come back
20:44 nineteen joined #salt
20:44 PerilousApricot joined #salt
20:47 Ashald joined #salt
20:47 dyasny joined #salt
20:47 snc joined #salt
20:55 nineteen joined #salt
20:55 esc\ joined #salt
20:56 krymzon joined #salt
20:57 ekristen joined #salt
20:57 DammitJim joined #salt
20:58 pipps joined #salt
20:59 lero joined #salt
21:01 CeBe joined #salt
21:04 nineteen joined #salt
21:05 pipps joined #salt
21:05 pipps99 joined #salt
21:09 west575_ joined #salt
21:10 Arendtse1 joined #salt
21:10 Brew1 joined #salt
21:11 c4t3l_ joined #salt
21:12 cyraxjoe joined #salt
21:12 _KaszpiR__ joined #salt
21:13 baffle joined #salt
21:13 gerhardq1x joined #salt
21:13 ventris_ joined #salt
21:14 wwalker joined #salt
21:14 djural_ joined #salt
21:16 g3cko_ joined #salt
21:17 garthk_ joined #salt
21:17 c4rc4s_ joined #salt
21:17 Perilous_ joined #salt
21:17 flowstate joined #salt
21:18 McNinja_ joined #salt
21:18 esc\\ joined #salt
21:18 John_Kan1 joined #salt
21:18 bofhit joined #salt
21:18 evilrob_ joined #salt
21:18 skr0bul joined #salt
21:18 ajv joined #salt
21:19 vaelen_ joined #salt
21:19 PalTale joined #salt
21:19 UtahDave1 joined #salt
21:19 ThomasJ|d joined #salt
21:19 ksa_ joined #salt
21:19 toabi_ joined #salt
21:19 Mads[m] joined #salt
21:20 J0hnStee- joined #salt
21:20 dyasny_ joined #salt
21:20 M-liberdiko joined #salt
21:20 godber joined #salt
21:20 nineteen joined #salt
21:21 twodayslate joined #salt
21:21 pmcg joined #salt
21:23 MeltedLux joined #salt
21:23 ujjain joined #salt
21:23 ujjain joined #salt
21:24 armguy joined #salt
21:24 ub1quit33 joined #salt
21:24 dnull[m] joined #salt
21:24 debian112 joined #salt
21:25 CeBe joined #salt
21:25 DammitJim joined #salt
21:25 nsidhu joined #salt
21:25 flowstate joined #salt
21:25 demize joined #salt
21:25 M-MadsRC joined #salt
21:25 freelock[m] joined #salt
21:25 Awesomecase joined #salt
21:26 saintaquinas[m] joined #salt
21:28 nickadam joined #salt
21:28 KingJ joined #salt
21:28 whytewolf joined #salt
21:28 kuromagi joined #salt
21:28 Vye joined #salt
21:28 dlloyd joined #salt
21:28 nethershaw joined #salt
21:28 jav joined #salt
21:28 shawnbutts joined #salt
21:28 lkannan joined #salt
21:28 monrad joined #salt
21:28 supermike_ joined #salt
21:28 ramblinpeck joined #salt
21:28 ramblinpeck joined #salt
21:28 monrad joined #salt
21:30 fusionx86 joined #salt
21:31 pipps joined #salt
21:31 NotBobDole joined #salt
21:32 godber joined #salt
21:32 godber left #salt
21:33 futuredale joined #salt
21:34 nineteen joined #salt
21:38 thedukeness joined #salt
21:39 pipps joined #salt
21:42 thedukeness Does anyone have experience with stateconf?  I am trying to import with context from map.jinja but the variables I've defined using stateconf.set are undefined inside of map.jinja
21:43 nineteen joined #salt
21:43 clockwrok left #salt
21:44 hemebond "The stateconf system is intended for use only with the stateconf renderer."
21:44 hemebond I've never used stateconf; I have no idea what it is.
21:44 amontalban joined #salt
21:44 amontalban joined #salt
21:46 thedukeness Its a way for making what Puppet called parameterized classes in Salt Stack.  I have it working inside of init.sls, that part works, but I don't seem to understand how variable scope works within stateconf..
21:46 sp0097 joined #salt
21:47 hemebond Well you said you were having trouble with map.jinja, but you're not using Jinja renderer, right?
21:48 thedukeness So I'm using the stateconf renderer and the import from map.jinja works, those variables are correctly imported.  The problem is that within map.jinja my variables from init.sls that were defined by stateconf are not available.
21:49 mike25de UtahDave1: do you have any ... tutorials to get me started with salt-cloud and ec2?
21:49 hemebond mike25de: https://docs.saltstack.com/en/latest/topics/cloud/index.html
21:50 mike25de hemebond: hey man ... I am trying to start a project with aws and salt... and I need to kickstart the vms and not sure if salt-cloud or boto is the way to go
21:50 mike25de thanks hemebond
21:50 hemebond Salt Cloud is used for creating and managing instances on cloud platforms including AWS.
21:51 mike25de hemebond: do you have 2 min for a private chat? ... I do not want to pollute the channel with stupid questions.
21:51 hemebond Sure
21:52 pipps joined #salt
21:58 nineteen joined #salt
22:02 edrocks joined #salt
22:03 pipps joined #salt
22:06 pipps joined #salt
22:07 mrBen2k2k2k joined #salt
22:08 PerilousApricot joined #salt
22:14 nineteen joined #salt
22:14 lero joined #salt
22:18 mike25de1 joined #salt
22:22 pipps joined #salt
22:24 abednarik joined #salt
22:25 pipps joined #salt
22:25 nineteen joined #salt
22:25 flowstate joined #salt
22:29 sh123124213 joined #salt
22:31 m4rx joined #salt
22:33 nineteen joined #salt
22:33 amontalban joined #salt
22:44 nineteen joined #salt
22:44 nicksloan joined #salt
22:45 knikolov joined #salt
22:49 flowstate joined #salt
22:56 Pulp joined #salt
22:59 pipps joined #salt
23:00 netcho joined #salt
23:01 pipps joined #salt
23:02 pipps99 joined #salt
23:03 edrocks joined #salt
23:04 nineteen joined #salt
23:04 subsignal joined #salt
23:05 sh123124213 When connected with LocalClient and getting events, after restarting salt-master I stop receiving events. Any solution for this ? :)
23:09 abednarik joined #salt
23:09 lero joined #salt
23:11 fusionx8_ joined #salt
23:13 vegasq joined #salt
23:14 nineteen joined #salt
23:17 Rumbles joined #salt
23:18 Rubin i have a group.present rule
23:18 Rubin if i want to require it
23:18 Rubin do i require: \n - group: id?
23:18 Rubin or is it the group name instead of the ID?
23:19 Rubin because i got a weird message while runnig with test=True
23:19 Rubin The following group(s) are not present: w,w,w,-,p,r,o,d
23:21 hemebond Rubin: It should be group: state_id
23:21 Rubin is - invalid in state ids?
23:21 Rubin why is it putting commas between all the letters?
23:22 hemebond Nope, should be fine.
23:22 hemebond Oh... paste your state somewhere.
23:22 hemebond !pastebin
23:22 saltstackbot To paste snippets of code/sls/etc, please use a code paste site, such as: https://gist.github.com or http://refheap.com
23:22 Rubin https://gist.github.com/anonymous/3ccb0dac9fb8e597eee075e9faeed399
23:23 ponyofdeath hi, i have two grains in the top file which should both matcha box but only one does. how can i find out which grains are matching on the box itself?
23:23 hemebond Rubin: - groups: www-prod
23:23 hemebond Looks like it probably wants a list, not a string,.
23:23 Rubin oh plural?
23:23 Rubin er?
23:23 hemebond Which would explain why it's separating into letters.
23:24 hemebond I'm just going by your state.
23:24 hemebond I've not checked the module myself yet.
23:24 nineteen joined #salt
23:24 Rubin so group: (newline) - www-prod-group ?
23:25 haam3r joined #salt
23:25 hemebond In your user.present you have groups
23:25 hemebond I would expect that to require a list, not a string (which is what you have provided)
23:25 Rubin oh. not the require? hmm.
23:25 hemebond so groups:\n  - www-prod
23:25 hemebond Correct.
23:26 hemebond The require looks fine.
23:26 Rubin that might be. let me try
23:26 Rubin yep
23:26 Rubin thanks
23:26 Rubin i was looking at the require, not the groups ;)
23:31 nineteen joined #salt
23:34 tercenya joined #salt
23:34 hemebond
23:37 sh123124_ joined #salt
23:39 sh123124213 joined #salt
23:41 keltim joined #salt
23:41 sh123124213 joined #salt
23:43 nineteen joined #salt
23:49 sh123124213 joined #salt
23:51 lero joined #salt
23:54 nineteen joined #salt

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