Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-08-07

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

All times shown according to UTC.

Time Nick Message
00:00 VR-Jack PredatorVI: out of curiousity, did myapp-processor.conf file get installed? even if not active?
00:00 gcfhvjbkn joined #salt
00:01 gcfhvjbkn joined #salt
00:01 PredatorVI checking...I've been running in test mode.
00:01 gcfhvjbkn joined #salt
00:02 falican joined #salt
00:02 PredatorVI It does
00:03 gcfhvjbkn joined #salt
00:03 PredatorVI Maybe it was just an odd thing with test mode.
00:03 VR-Jack okay, so myapp-rpocessor's require file: install_upstart_script was true, so it could install myapp-processor.jar. if that file exists, then service.running would fire off, even if upstart hadn't loaded the service yet.
00:04 gcfhvjbkn joined #salt
00:04 VR-Jack you required the file be there, not that the cmd run to install the service
00:04 VR-Jack and in test mode, it can't run the command
00:05 gcfhvjbkn joined #salt
00:05 PredatorVI got it...thanks for looking at it.
00:05 gcfhvjbkn joined #salt
00:06 gcfhvjbkn joined #salt
00:06 gcfhvjbkn joined #salt
00:07 gcfhvjbkn joined #salt
00:07 VR-Jack I think you can require the cmd as well.
00:08 gcfhvjbkn joined #salt
00:08 alexeihider joined #salt
00:08 gcfhvjbkn joined #salt
00:09 gcfhvjbkn joined #salt
00:10 gcfhvjbkn joined #salt
00:10 alexeihider Hi, really confused. salt-call test.ping works fine from minion. salt <minion_name> test.ping, from master is failing, any help on how to debug what is going on?
00:10 alexeihider Minion did not return. [Not connected]
00:10 alexeihider Is error message I see
00:10 gcfhvjbkn joined #salt
00:10 napsterX joined #salt
00:11 gcfhvjbkn joined #salt
00:11 gcfhvjbkn joined #salt
00:12 lexual joined #salt
00:12 gcfhvjbkn joined #salt
00:12 VR-Jack alexeihider: salt manage.status on the master
00:13 gcfhvjbkn joined #salt
00:13 alexeihider will do, changing to my @lexual username, not sure what happened with my IRC client.
00:13 alexeihider left #salt
00:13 iggy scbunn: does normal dict lookup work (vs .get)
00:14 gcfhvjbkn joined #salt
00:14 lexual I have working minions, manage.status returns: 'manage' __virtual__ returned False
00:14 lexual This one I’m having problems with is giving:
00:14 lexual Minion did not return. [Not connected]
00:14 lexual to manage.status call
00:14 gcfhvjbkn joined #salt
00:14 iggy manage is a runner
00:15 iggy salt-run manage.status
00:15 lexual I should be running ‘sudo salt <id> manage.status’ from master ?
00:15 lexual ok, sorry
00:15 gcfhvjbkn joined #salt
00:16 gcfhvjbkn joined #salt
00:16 lexual It shows all minions as up, shows the one I’m asking this question about as down
00:16 yomilk joined #salt
00:16 gcfhvjbkn joined #salt
00:16 VR-Jack sorry, my fault
00:17 iggy can you telnet to the master ports from minion to master
00:17 iggy ?
00:17 gcfhvjbkn joined #salt
00:17 VR-Jack ^-- gotta figure out your connectivity issue now
00:18 zmalone joined #salt
00:18 gcfhvjbkn joined #salt
00:18 lexual Running “nc” commands listed here works fine: http://docs.saltstack.com/en/latest/topics/troubleshooting/minion.html#what-ports-does-the-minion-need-open
00:18 lexual nc -v -z master_domain_name 4505
00:19 gcfhvjbkn joined #salt
00:19 lexual nc -v -z master_domain_name 4506
00:19 lexual works fine from minion in question
00:19 scbunn iggy: yes.  I found the issue, for some reason I thought the default value I was providing was the default selection, not the value..
00:19 VR-Jack lexual: have you tried restarting the minion and checking the logfile?
00:20 gcfhvjbkn joined #salt
00:20 lexual nothing spitting out on minion’s log the looks bad
00:20 lexual part of it says ‘Minion is ready to receive requests!'
00:20 gcfhvjbkn joined #salt
00:21 gcfhvjbkn joined #salt
00:21 VR-Jack recheck status on master after that restart?
00:22 gcfhvjbkn joined #salt
00:22 lexual salt-run manage status still shows down.
00:22 lexual from master
00:22 gcfhvjbkn joined #salt
00:23 gcfhvjbkn joined #salt
00:23 gcfhvjbkn joined #salt
00:24 VR-Jack did the minion used to work?
00:25 otter768 joined #salt
00:25 gcfhvjbkn joined #salt
00:25 iggy lexual: do you have multiple minions with the same name
00:25 lexual brand new span up yesterday, no
00:25 gcfhvjbkn joined #salt
00:26 lexual I also deleted key on master, and re-accepted it, didn’t make any diff
00:26 gcfhvjbkn joined #salt
00:27 gcfhvjbkn joined #salt
00:27 gcfhvjbkn joined #salt
00:27 VR-Jack lexual: master and minion versions the same?
00:28 gcfhvjbkn joined #salt
00:28 lexual hmm, appears not, even though I thought i was, will rectify that see if solves
00:28 gcfhvjbkn joined #salt
00:29 gcfhvjbkn joined #salt
00:30 VR-Jack lexual: I think it tends to be worse if minion is > master
00:30 micko joined #salt
00:31 nexus joined #salt
00:31 mapu joined #salt
00:31 lexual Now minion says:
00:31 lexual Invalid keyword 'str' for variable 'master_type'
00:32 lexual ??? that appears correct according to docs: http://docs.saltstack.com/en/latest/ref/configuration/minion.html#master-type
00:32 xDamox joined #salt
00:32 VR-Jack you just switched to 2015.7.x instead of a dev version didn't ya?
00:32 VR-Jack err. 2015.3. heh
00:33 VR-Jack bleh. I can't type. 2015.5.3
00:33 lexual don’t think so. anywa is this a known problem, or can I just comment out master_type line in my config ??
00:33 lexual Buy yes, now on 2015.5.3 I believe
00:34 VR-Jack yeah. master_type is brroken in 2015.5.3
00:34 VR-Jack bug #25335
00:34 VR-Jack https://github.com/saltstack/salt/issues/25335
00:34 saltstackbot [#25335]title: 2015.5.3 master_type: str causes minion to fail to start | Doesn't seem to be OS Specific....
00:35 mosen joined #salt
00:36 lexual OK, commenting out master_type stopped that error with minion start/restart
00:37 lexual salt-call still works from minion, salt-run manage.status from master still says its down
00:37 VR-Jack master also 2015.5.3?
00:37 VR-Jack salt-run manage.versions
00:39 lexual sudo salt —version says 2015.5.3
00:39 dendazen joined #salt
00:39 VR-Jack check your logs. If that doesn't work, you may have to start it in debug
00:39 MatthewsFace joined #salt
00:42 lexual logs here: http://pastebin.com/7cnm9CPb
00:44 VR-Jack what you need is debug logs of the minion startup and connection to master
00:45 lexual from minion side or master side?
00:45 VR-Jack minion most likely, but possibly both
00:45 VR-Jack there's a page on starting it in foreground w/ debug as well, I believe.
00:52 breakingmatter joined #salt
00:56 napsterX joined #salt
00:57 lexual nothing shows up in master’s logs at all on start of minion, minion logs seems to indicate start up fine: http://pastebin.com/29fxNecQ
00:57 lexual apologies wrong pastebin
00:59 lexual http://pastebin.com/ZYHaYapP
01:00 funzo joined #salt
01:00 gcfhvjbkn joined #salt
01:01 gcfhvjbkn joined #salt
01:01 druonysuse joined #salt
01:01 druonysuse joined #salt
01:01 gcfhvjbkn joined #salt
01:02 VR-Jack was that with log_level: debug in the minion config?
01:02 gcfhvjbkn joined #salt
01:03 gcfhvjbkn joined #salt
01:03 gcfhvjbkn joined #salt
01:04 VR-Jack kinda weird. the key showed up, so it did communicate at some level, but host shows down
01:04 gcfhvjbkn joined #salt
01:04 gcfhvjbkn joined #salt
01:05 gcfhvjbkn joined #salt
01:06 gcfhvjbkn joined #salt
01:06 gcfhvjbkn joined #salt
01:07 gcfhvjbkn joined #salt
01:08 gcfhvjbkn joined #salt
01:08 gcfhvjbkn joined #salt
01:09 gcfhvjbkn joined #salt
01:09 gcfhvjbkn joined #salt
01:10 gcfhvjbkn joined #salt
01:11 gcfhvjbkn joined #salt
01:11 gcfhvjbkn joined #salt
01:11 shaggy_surfer joined #salt
01:12 gcfhvjbkn joined #salt
01:12 napsterX joined #salt
01:12 gcfhvjbkn joined #salt
01:13 gcfhvjbkn joined #salt
01:14 gcfhvjbkn joined #salt
01:14 gcfhvjbkn joined #salt
01:15 gcfhvjbkn joined #salt
01:15 omegamike joined #salt
01:16 gcfhvjbkn joined #salt
01:16 gcfhvjbkn joined #salt
01:17 gcfhvjbkn joined #salt
01:17 gcfhvjbkn joined #salt
01:18 gcfhvjbkn joined #salt
01:19 gcfhvjbkn joined #salt
01:19 gcfhvjbkn joined #salt
01:20 gcfhvjbkn joined #salt
01:20 gcfhvjbkn joined #salt
01:21 gcfhvjbkn joined #salt
01:22 gcfhvjbkn joined #salt
01:22 clintberry joined #salt
01:22 gcfhvjbkn joined #salt
01:23 gcfhvjbkn joined #salt
01:24 gcfhvjbkn joined #salt
01:24 gcfhvjbkn joined #salt
01:25 gcfhvjbkn joined #salt
01:25 gcfhvjbkn joined #salt
01:26 gcfhvjbkn joined #salt
01:27 dendazen joined #salt
01:27 gcfhvjbkn joined #salt
01:27 gcfhvjbkn joined #salt
01:28 gcfhvjbkn joined #salt
01:29 gcfhvjbkn joined #salt
01:29 gcfhvjbkn joined #salt
01:30 gcfhvjbkn joined #salt
01:30 g3cko joined #salt
01:30 gcfhvjbkn joined #salt
01:31 gcfhvjbkn joined #salt
01:32 gcfhvjbkn joined #salt
01:32 gcfhvjbkn joined #salt
01:33 gcfhvjbkn joined #salt
01:33 gcfhvjbkn joined #salt
01:34 gcfhvjbkn joined #salt
01:35 gcfhvjbkn joined #salt
01:35 gcfhvjbkn joined #salt
01:36 gcfhvjbkn joined #salt
01:36 gcfhvjbkn joined #salt
01:37 gcfhvjbkn joined #salt
01:38 gcfhvjbkn joined #salt
01:38 lexual hmm, sorry, think I got confused with which terminal/server I was running stuff on, will double-check and make sure its with the one minion that is having issues.
01:38 gcfhvjbkn joined #salt
01:39 gcfhvjbkn joined #salt
01:40 gcfhvjbkn joined #salt
01:40 lexual D’oh!!
01:40 gcfhvjbkn joined #salt
01:40 lexual Think it was just the master_type bug after all, I just confused before and was running stuff on a different minion that I though, seems its fixed.
01:40 lexual Thanks so much for patient help
01:41 gcfhvjbkn joined #salt
01:41 gcfhvjbkn joined #salt
01:42 gcfhvjbkn joined #salt
01:45 gcfhvjbkn joined #salt
01:45 gcfhvjbkn joined #salt
01:45 gcfhvjbkn joined #salt
01:45 gcfhvjbkn joined #salt
01:46 gcfhvjbkn joined #salt
01:46 gcfhvjbkn joined #salt
01:47 gcfhvjbkn joined #salt
01:48 gcfhvjbkn joined #salt
01:48 gcfhvjbkn joined #salt
01:49 gcfhvjbkn joined #salt
01:49 gcfhvjbkn joined #salt
01:50 gcfhvjbkn joined #salt
01:51 VR-Jack lexual: good to hear
01:51 gcfhvjbkn joined #salt
01:51 gcfhvjbkn joined #salt
01:52 gcfhvjbkn joined #salt
01:52 VR-Jack now back to soul eater
01:53 gcfhvjbkn joined #salt
01:53 gcfhvjbkn joined #salt
01:54 breakingmatter joined #salt
01:54 gcfhvjbkn joined #salt
01:54 dendazen joined #salt
01:54 gcfhvjbkn joined #salt
01:55 gcfhvjbkn joined #salt
01:56 gcfhvjbkn joined #salt
01:56 gcfhvjbkn joined #salt
01:57 gcfhvjbkn joined #salt
01:58 gcfhvjbkn joined #salt
01:58 gcfhvjbkn joined #salt
01:59 gcfhvjbkn joined #salt
02:00 gcfhvjbkn joined #salt
02:01 funzo joined #salt
02:01 gcfhvjbkn joined #salt
02:01 gcfhvjbkn joined #salt
02:01 dthom91 joined #salt
02:02 gcfhvjbkn joined #salt
02:02 gcfhvjbkn joined #salt
02:03 gcfhvjbkn joined #salt
02:04 gcfhvjbkn joined #salt
02:04 dthom91 joined #salt
02:04 gcfhvjbkn joined #salt
02:05 gcfhvjbkn joined #salt
02:06 gcfhvjbkn joined #salt
02:06 gcfhvjbkn joined #salt
02:07 gcfhvjbkn joined #salt
02:08 gcfhvjbkn joined #salt
02:08 gcfhvjbkn joined #salt
02:09 gcfhvjbkn joined #salt
02:09 Bryson joined #salt
02:10 gcfhvjbkn joined #salt
02:10 gcfhvjbkn joined #salt
02:11 gcfhvjbkn joined #salt
02:12 gcfhvjbkn joined #salt
02:12 lexual left #salt
02:12 gcfhvjbkn joined #salt
02:13 gcfhvjbkn joined #salt
02:13 gcfhvjbkn joined #salt
02:14 gcfhvjbkn1 joined #salt
02:15 gcfhvjbkn1 joined #salt
02:15 dthom911 joined #salt
02:15 gcfhvjbkn1 joined #salt
02:16 gcfhvjbkn1 joined #salt
02:16 gcfhvjbkn1 joined #salt
02:17 cliluw joined #salt
02:17 nzero joined #salt
02:17 gcfhvjbkn1 joined #salt
02:17 hasues joined #salt
02:17 hasues left #salt
02:18 gcfhvjbkn1 joined #salt
02:18 gcfhvjbkn1 joined #salt
02:19 gcfhvjbkn1 joined #salt
02:20 gcfhvjbkn1 joined #salt
02:20 gcfhvjbkn1 joined #salt
02:21 gcfhvjbkn1 joined #salt
02:21 gcfhvjbkn1 joined #salt
02:22 ajw0100 joined #salt
02:22 gcfhvjbkn1 joined #salt
02:23 gcfhvjbkn1 joined #salt
02:23 gcfhvjbkn1 joined #salt
02:24 gcfhvjbkn1 joined #salt
02:25 gcfhvjbkn1 joined #salt
02:25 herlo left #salt
02:25 gcfhvjbkn1 joined #salt
02:25 otter768 joined #salt
02:26 gcfhvjbkn1 joined #salt
02:26 nexus joined #salt
02:26 gcfhvjbkn1 joined #salt
02:27 gcfhvjbkn1 joined #salt
02:28 gcfhvjbkn1 joined #salt
02:29 gcfhvjbkn joined #salt
02:29 napsterX joined #salt
02:29 gcfhvjbkn joined #salt
02:30 evle joined #salt
02:30 gcfhvjbkn joined #salt
02:31 gcfhvjbkn joined #salt
02:32 gcfhvjbkn1 joined #salt
02:33 gcfhvjbkn1 joined #salt
02:33 gcfhvjbkn1 joined #salt
02:34 gcfhvjbkn1 joined #salt
02:35 gcfhvjbkn1 joined #salt
02:36 gcfhvjbkn1 joined #salt
02:36 gcfhvjbkn joined #salt
02:37 gcfhvjbkn joined #salt
02:37 gcfhvjbkn joined #salt
02:38 gcfhvjbkn joined #salt
02:38 zmalone joined #salt
02:39 gcfhvjbkn joined #salt
02:39 gcfhvjbkn joined #salt
02:40 gcfhvjbkn joined #salt
02:41 gcfhvjbkn joined #salt
02:41 gcfhvjbkn joined #salt
02:42 gcfhvjbkn joined #salt
02:42 gcfhvjbkn joined #salt
02:43 gcfhvjbkn joined #salt
02:44 gcfhvjbkn joined #salt
02:44 gcfhvjbkn joined #salt
02:45 gcfhvjbkn joined #salt
02:45 gcfhvjbkn joined #salt
02:46 gcfhvjbkn joined #salt
02:46 favadi joined #salt
02:47 gcfhvjbkn joined #salt
02:47 gcfhvjbkn joined #salt
02:48 gcfhvjbkn joined #salt
02:49 gcfhvjbkn joined #salt
02:49 gcfhvjbkn joined #salt
02:50 gcfhvjbkn joined #salt
02:50 gcfhvjbkn joined #salt
02:51 gcfhvjbkn joined #salt
02:51 fortitude joined #salt
02:52 gcfhvjbkn joined #salt
02:52 gcfhvjbkn joined #salt
02:53 gcfhvjbkn joined #salt
02:54 gcfhvjbkn joined #salt
02:54 gcfhvjbkn joined #salt
02:55 gcfhvjbkn joined #salt
02:55 gcfhvjbkn joined #salt
02:56 gcfhvjbkn joined #salt
02:56 nexus joined #salt
02:57 gcfhvjbkn joined #salt
02:57 gcfhvjbkn joined #salt
02:58 gcfhvjbkn joined #salt
02:58 rhodgin joined #salt
02:58 gcfhvjbkn joined #salt
02:59 gcfhvjbkn joined #salt
03:00 gcfhvjbkn joined #salt
03:00 gcfhvjbkn joined #salt
03:00 VooDooNOFX joined #salt
03:01 gcfhvjbkn joined #salt
03:01 funzo joined #salt
03:01 gcfhvjbkn joined #salt
03:02 gcfhvjbkn joined #salt
03:03 gcfhvjbkn joined #salt
03:03 clintberry joined #salt
03:03 omegamike joined #salt
03:03 gcfhvjbkn joined #salt
03:04 gcfhvjbkn joined #salt
03:05 gcfhvjbkn joined #salt
03:05 gcfhvjbkn joined #salt
03:06 gcfhvjbkn joined #salt
03:06 gcfhvjbkn joined #salt
03:07 gcfhvjbkn joined #salt
03:08 gcfhvjbkn joined #salt
03:08 gcfhvjbkn joined #salt
03:09 gcfhvjbkn joined #salt
03:10 gcfhvjbkn joined #salt
03:10 gcfhvjbkn joined #salt
03:11 gcfhvjbkn joined #salt
03:11 gcfhvjbkn joined #salt
03:12 gcfhvjbkn joined #salt
03:13 gcfhvjbkn joined #salt
03:13 gcfhvjbkn joined #salt
03:14 gcfhvjbkn joined #salt
03:14 sakaYK joined #salt
03:14 gcfhvjbkn joined #salt
03:15 gcfhvjbkn joined #salt
03:16 gcfhvjbkn joined #salt
03:16 gcfhvjbkn joined #salt
03:17 gcfhvjbkn joined #salt
03:18 gcfhvjbkn joined #salt
03:18 gcfhvjbkn joined #salt
03:19 gcfhvjbkn joined #salt
03:19 writtenoff joined #salt
03:19 gcfhvjbkn joined #salt
03:20 gcfhvjbkn joined #salt
03:21 gcfhvjbkn joined #salt
03:21 dthom911 joined #salt
03:21 gcfhvjbkn joined #salt
03:22 gcfhvjbkn joined #salt
03:23 gcfhvjbkn joined #salt
03:23 gcfhvjbkn joined #salt
03:23 spark_ joined #salt
03:24 gcfhvjbkn joined #salt
03:24 gcfhvjbkn joined #salt
03:25 gcfhvjbkn joined #salt
03:26 gcfhvjbkn joined #salt
03:26 dthom911 joined #salt
03:26 gcfhvjbkn joined #salt
03:27 gcfhvjbkn joined #salt
03:27 gcfhvjbkn joined #salt
03:28 gcfhvjbkn joined #salt
03:29 gcfhvjbkn joined #salt
03:29 gcfhvjbkn joined #salt
03:30 gcfhvjbkn joined #salt
03:31 gcfhvjbkn joined #salt
03:31 nzero joined #salt
03:31 gcfhvjbkn joined #salt
03:32 gcfhvjbkn joined #salt
03:33 gcfhvjbkn joined #salt
03:34 gcfhvjbkn joined #salt
03:34 gcfhvjbkn joined #salt
03:35 gcfhvjbkn joined #salt
03:35 gcfhvjbkn joined #salt
03:36 gcfhvjbkn joined #salt
03:37 gcfhvjbkn joined #salt
03:37 gcfhvjbkn joined #salt
03:38 gcfhvjbkn joined #salt
03:38 zmalone joined #salt
03:39 gcfhvjbkn joined #salt
03:39 dthom911 joined #salt
03:39 yomilk joined #salt
03:39 gcfhvjbkn joined #salt
03:40 gcfhvjbkn joined #salt
03:41 dthom91 joined #salt
03:42 gcfhvjbkn joined #salt
03:42 yomilk_ joined #salt
03:42 gcfhvjbkn joined #salt
03:42 breakingmatter joined #salt
03:43 gcfhvjbkn joined #salt
03:43 gcfhvjbkn joined #salt
03:44 gcfhvjbkn joined #salt
03:45 gcfhvjbkn joined #salt
03:45 gcfhvjbkn joined #salt
03:47 gcfhvjbkn joined #salt
03:47 gcfhvjbkn joined #salt
03:48 gcfhvjbkn joined #salt
03:48 gcfhvjbkn joined #salt
03:49 gcfhvjbkn joined #salt
03:50 gcfhvjbkn joined #salt
03:50 gcfhvjbkn joined #salt
03:52 gcfhvjbkn joined #salt
03:52 gcfhvjbkn joined #salt
03:52 clintberry joined #salt
03:53 gcfhvjbkn joined #salt
03:53 nzero joined #salt
03:53 gcfhvjbkn joined #salt
03:54 capricorn_1 joined #salt
03:54 gcfhvjbkn joined #salt
03:55 gcfhvjbkn joined #salt
03:55 gcfhvjbkn joined #salt
03:56 gcfhvjbkn joined #salt
03:56 gcfhvjbkn joined #salt
03:57 gcfhvjbkn joined #salt
03:58 gcfhvjbkn joined #salt
03:58 gcfhvjbkn joined #salt
03:59 gcfhvjbkn joined #salt
04:00 gcfhvjbkn joined #salt
04:00 gcfhvjbkn joined #salt
04:01 gcfhvjbkn joined #salt
04:01 gcfhvjbkn joined #salt
04:02 gcfhvjbkn joined #salt
04:03 gcfhvjbkn joined #salt
04:03 gcfhvjbkn joined #salt
04:03 scbunn joined #salt
04:04 gcfhvjbkn joined #salt
04:04 gcfhvjbkn joined #salt
04:05 gcfhvjbkn joined #salt
04:06 bfoxwell joined #salt
04:06 gcfhvjbkn joined #salt
04:06 yomilk joined #salt
04:07 gcfhvjbkn joined #salt
04:08 gcfhvjbkn joined #salt
04:08 gcfhvjbkn joined #salt
04:09 gcfhvjbkn joined #salt
04:09 gcfhvjbkn joined #salt
04:10 gcfhvjbkn joined #salt
04:11 gcfhvjbkn joined #salt
04:11 Outlander left #salt
04:11 gcfhvjbkn joined #salt
04:12 gcfhvjbkn joined #salt
04:12 gcfhvjbkn joined #salt
04:13 gcfhvjbkn joined #salt
04:14 gcfhvjbkn joined #salt
04:14 gcfhvjbkn joined #salt
04:15 gcfhvjbkn joined #salt
04:16 gcfhvjbkn joined #salt
04:16 gcfhvjbkn joined #salt
04:17 gcfhvjbkn joined #salt
04:17 funzo joined #salt
04:17 grant joined #salt
04:17 gcfhvjbkn joined #salt
04:18 gcfhvjbkn joined #salt
04:18 grants joined #salt
04:19 gcfhvjbkn joined #salt
04:19 gcfhvjbkn joined #salt
04:20 GrantFS joined #salt
04:20 gcfhvjbkn joined #salt
04:21 gcfhvjbkn joined #salt
04:21 gcfhvjbkn joined #salt
04:22 gcfhvjbkn joined #salt
04:22 gcfhvjbkn joined #salt
04:23 gcfhvjbkn joined #salt
04:23 GrantFS Is there a way to create an array/list on the fly depending on the node groups the minion is a member of?
04:24 gcfhvjbkn joined #salt
04:25 gcfhvjbkn joined #salt
04:25 GrantFS I want to create a file that will contain or not contain lines depending on the groups the minion is a member of.
04:26 gcfhvjbkn joined #salt
04:26 otter768 joined #salt
04:27 gcfhvjbkn joined #salt
04:27 gcfhvjbkn joined #salt
04:28 gcfhvjbkn joined #salt
04:29 gcfhvjbkn joined #salt
04:29 gcfhvjbkn joined #salt
04:30 gcfhvjbkn joined #salt
04:30 gcfhvjbkn joined #salt
04:31 gcfhvjbkn joined #salt
04:32 gcfhvjbkn joined #salt
04:32 gcfhvjbkn joined #salt
04:33 gcfhvjbkn joined #salt
04:33 gcfhvjbkn joined #salt
04:34 gcfhvjbkn joined #salt
04:35 gcfhvjbkn joined #salt
04:36 gcfhvjbkn joined #salt
04:37 gcfhvjbkn joined #salt
04:37 gcfhvjbkn joined #salt
04:38 gcfhvjbkn joined #salt
04:38 gcfhvjbkn joined #salt
04:39 gcfhvjbkn joined #salt
04:40 gcfhvjbkn joined #salt
04:40 gcfhvjbkn joined #salt
04:41 gcfhvjbkn joined #salt
04:41 sakaYK joined #salt
04:41 aparsons joined #salt
04:42 gcfhvjbkn joined #salt
04:42 gcfhvjbkn joined #salt
04:43 gcfhvjbkn joined #salt
04:43 gcfhvjbkn joined #salt
04:44 gcfhvjbkn joined #salt
04:45 gcfhvjbkn joined #salt
04:45 gcfhvjbkn joined #salt
04:46 gcfhvjbkn joined #salt
04:46 gcfhvjbkn joined #salt
04:47 gcfhvjbkn joined #salt
04:47 auzty joined #salt
04:48 gcfhvjbkn joined #salt
04:48 aparsons joined #salt
04:48 gcfhvjbkn joined #salt
04:49 gcfhvjbkn joined #salt
04:49 gcfhvjbkn joined #salt
04:50 MatthewsFace joined #salt
04:50 gcfhvjbkn joined #salt
04:51 gcfhvjbkn joined #salt
04:51 gcfhvjbkn joined #salt
04:52 omegamike joined #salt
04:52 gcfhvjbkn joined #salt
04:53 gcfhvjbkn joined #salt
04:53 gcfhvjbkn joined #salt
04:54 gcfhvjbkn joined #salt
04:54 gcfhvjbkn joined #salt
04:55 gcfhvjbkn joined #salt
04:55 xrt joined #salt
04:56 gcfhvjbkn joined #salt
04:56 gcfhvjbkn joined #salt
04:57 gcfhvjbkn joined #salt
04:57 scbunn joined #salt
04:58 rhodgin joined #salt
04:58 gcfhvjbkn joined #salt
04:58 gcfhvjbkn joined #salt
04:58 xrt left #salt
04:59 gcfhvjbkn joined #salt
04:59 gcfhvjbkn joined #salt
05:00 gcfhvjbkn joined #salt
05:01 gcfhvjbkn joined #salt
05:01 gcfhvjbkn joined #salt
05:02 gcfhvjbkn joined #salt
05:02 gcfhvjbkn joined #salt
05:03 gcfhvjbkn joined #salt
05:04 gcfhvjbkn joined #salt
05:04 gcfhvjbkn joined #salt
05:05 yomilk joined #salt
05:05 gcfhvjbkn joined #salt
05:06 gcfhvjbkn joined #salt
05:06 gcfhvjbkn joined #salt
05:07 gcfhvjbkn joined #salt
05:07 gcfhvjbkn joined #salt
05:08 gcfhvjbkn joined #salt
05:09 gcfhvjbkn joined #salt
05:09 gcfhvjbkn joined #salt
05:10 gcfhvjbkn joined #salt
05:10 gcfhvjbkn joined #salt
05:11 gcfhvjbkn joined #salt
05:11 jY is there a way for salt master to pick just 1 server from a group based on some grain or regex search
05:12 gcfhvjbkn joined #salt
05:12 gcfhvjbkn joined #salt
05:13 gcfhvjbkn joined #salt
05:14 gcfhvjbkn joined #salt
05:14 gcfhvjbkn joined #salt
05:15 gcfhvjbkn joined #salt
05:15 gcfhvjbkn joined #salt
05:16 gcfhvjbkn joined #salt
05:17 gcfhvjbkn joined #salt
05:17 gcfhvjbkn joined #salt
05:18 gcfhvjbkn joined #salt
05:19 gcfhvjbkn joined #salt
05:19 gcfhvjbkn joined #salt
05:20 gcfhvjbkn joined #salt
05:20 gcfhvjbkn joined #salt
05:21 catpiggest joined #salt
05:21 gcfhvjbkn joined #salt
05:22 gcfhvjbkn joined #salt
05:22 gcfhvjbkn joined #salt
05:22 mosen joined #salt
05:23 gcfhvjbkn joined #salt
05:23 xDamox joined #salt
05:23 gcfhvjbkn joined #salt
05:24 gcfhvjbkn joined #salt
05:25 gcfhvjbkn joined #salt
05:25 napsterX joined #salt
05:25 gcfhvjbkn joined #salt
05:26 gcfhvjbkn joined #salt
05:27 gcfhvjbkn joined #salt
05:27 gcfhvjbkn joined #salt
05:28 gcfhvjbkn joined #salt
05:28 calvinh joined #salt
05:29 gcfhvjbkn joined #salt
05:30 gcfhvjbkn joined #salt
05:30 gcfhvjbkn joined #salt
05:32 breakingmatter joined #salt
05:33 scbunn joined #salt
05:49 rdas joined #salt
05:51 gcfhvjbkn joined #salt
06:01 VooDooNOFX joined #salt
06:03 markm joined #salt
06:10 ttrumm joined #salt
06:22 sakaYK joined #salt
06:22 malinoff_ joined #salt
06:27 otter768 joined #salt
06:28 malinoff joined #salt
06:29 dopesong joined #salt
06:30 sirex joined #salt
06:39 kawa2014 joined #salt
06:40 omegamike joined #salt
06:42 KermitTheFragger joined #salt
06:56 saltsa joined #salt
07:00 katyucha joined #salt
07:06 lb1a joined #salt
07:07 Bryson joined #salt
07:15 jhauser joined #salt
07:17 ntropy jY: yes, look at targeting options - https://docs.saltstack.com/en/develop/topics/targeting/index.html
07:18 pi3r6 joined #salt
07:19 ttrumm_ joined #salt
07:27 rhodgin joined #salt
07:31 gcfhvjbkn joined #salt
07:37 linjan_ joined #salt
07:40 shpoont joined #salt
07:51 s_kunk joined #salt
07:51 eseyman joined #salt
07:52 eseyman left #salt
07:52 eseyman joined #salt
07:53 TyrfingMjolnir joined #salt
07:54 krymzon joined #salt
07:54 dthom91 joined #salt
07:56 CeBe joined #salt
07:58 dthom911 joined #salt
08:00 impi joined #salt
08:11 _JZ_ joined #salt
08:16 monkey66 joined #salt
08:18 slav0nic joined #salt
08:25 ttrumm_ joined #salt
08:28 otter768 joined #salt
08:36 Horgix joined #salt
08:41 ttrumm joined #salt
08:56 daemonkeeper Can I force a minion to reload it's grains from a state or a module?
08:58 daemonkeeper or rephrased: should I really call saltutil.sync_grains from a state or a module
08:59 babilen That is called by default on highstates, so it shouldn't be necessary to call it explicitly
08:59 daemonkeeper I just realized I don't mean my own _grains grains but the ones a minion provides by default.
08:59 daemonkeeper i.e. these generated at minion startup
09:01 babilen Why would they change?
09:01 daemonkeeper I have a race condition. I have state X bringing an interface up, and state Y requiring grains available only after that interface being up. However, the information is not available in the same highstate run
09:01 daemonkeeper Since the grains will change during the runtime.
09:02 daemonkeeper Or *would* change if they would be flushed
09:02 ITChap joined #salt
09:04 Remzed joined #salt
09:04 daemonkeeper Simple example, and my particular problem: I need the link-local address of an IPv6 interface. It's in the grains, but only after the interface being up (obviously)
09:04 babilen https://github.com/saltstack/salt/pull/18351 is what you want to use
09:04 saltstackbot [#18351]title: Add reload_grains and reload_pillar global state arguments |
09:04 Remzed hi everyone
09:05 daemonkeeper Ohh. That seems to be it.
09:05 babilen daemonkeeper: fwiw, I wouldn't use grains for that at all, but call network.ip_addrs with the CIDR in question -- aren't you hardcoding the interface otherwise?
09:06 daemonkeeper I need a state to bring the interface up. It's no problem after the first highstate where it's configured and persistent, but it's problematic for the very first highstate run
09:07 babilen You might also want to consider sorting this out with orchestrate, but I'm not entirely sure if that results in a simpler/more manageable solution.
09:07 daemonkeeper Before that interface doesn't exist since it's not configured (yet) and drivers aren't installed (yet)
09:09 babilen Simply meant that I like to use network.ip_addrs with the semantic of "give me the address in 10.0.0.0/8" rather than poke grains with the semantic of "give me the first address on eth0" (even though that might not be the one I want)
09:09 GrueMaster joined #salt
09:10 breakingmatter joined #salt
09:10 daemonkeeper Well, as said, it's the IPv6 link-local address. It's not given by myself ;)
09:10 daemonkeeper I could probably calculate it, but ...
09:11 babilen Shouldn't that be in " fe80::/10" ?
09:11 daemonkeeper Yep
09:12 babilen Could use that ... not necessarily saying that it is the best approach, but I like to point network.ip_addrs out whenever people try the get the IP address of a minion for something. It's much nicer to use the network semantics rather than hardcoding "first address on eth1"
09:13 daemonkeeper I don't use "first address of eth1", but __grains__['ip6_interfaces'] and find the one I look for with  python-ipcalc. Either way it needs to be available first
09:31 phw joined #salt
09:32 ninkotech joined #salt
09:33 phw Is it possible to have dependant calls: If pkg installs a certain pacakge run the following command afterwards (and only then!)
09:36 jaybocc2 joined #salt
09:42 stoogenmeyer_ joined #salt
09:44 babilen phw: That is typically modelled with requisites: http://docs.saltstack.com/en/latest/ref/states/requisites.html
09:49 daemonkeeper Just setting     - reload_grains: true does not seem to help. That's what you meant earlier, didn't you
09:49 campee joined #salt
09:49 babilen s/true/True, but yeah .. on the state that introduces the new grain (not the one that requires it naturally)
09:51 daemonkeeper ohhh
09:52 babilen It essentially means "this state changes the value of some or all of the grains, so reload them once you are done"
09:52 daemonkeeper Understood
09:52 babilen Ryan blogged about it IIRC, one second
09:52 babilen http://ryandlane.com/blog/2014/12/10/reloading-grains-and-pillars-during-a-saltstack-run/
09:53 phw babilen: thanks i am having a look!
10:04 sirex joined #salt
10:08 genus joined #salt
10:10 z3r0 joined #salt
10:11 jim_ joined #salt
10:11 seena joined #salt
10:13 genus Hello! Is it possible to check for a pillar file existence, when you include it in top.sls? For example this topfile includes pillar based on minion id https://gist.github.com/genuss/744d97b6e650e0fbe197 . Is it possible not to throw an error if a pillar file doesn't exists here?
10:13 seena hey guys , How can we execute  particular sls file of different environment other than base
10:14 seena salt-call state.sls mongo.sls -->  by default checking base
10:14 seena No matching sls found for 'mongo.sls' in env 'base'
10:14 sirex joined #salt
10:18 Lionel_Debroux joined #salt
10:18 omegamike joined #salt
10:18 dh__ joined #salt
10:21 jmccree_ joined #salt
10:24 ropes_ joined #salt
10:28 mohae joined #salt
10:28 Gabemo joined #salt
10:28 renoirb joined #salt
10:28 SaveTheRbtz joined #salt
10:28 dec joined #salt
10:28 genus seena, pass saltenv=ENV parameter to salt-call
10:28 ksj joined #salt
10:28 jbub joined #salt
10:28 ttrumm joined #salt
10:28 mlanner joined #salt
10:28 jeblair joined #salt
10:29 aqua^c joined #salt
10:29 codysoyland joined #salt
10:29 daemonkeeper Still no luck. Could it be that reload_grains only reloads t he grains provided by myself via _grains?
10:29 Ch3LL_ joined #salt
10:32 SaveTheRb0tz joined #salt
10:32 seena genus: thanks worke
10:34 sirex joined #salt
10:43 firc17b260 joined #salt
10:49 dendazen joined #salt
10:49 alcachi joined #salt
10:49 crd joined #salt
10:49 VooDooNOFX joined #salt
10:49 asoc_ joined #salt
10:49 Guest77645 joined #salt
10:49 sirex joined #salt
10:49 SaveTheRb0tz joined #salt
10:49 codysoyland joined #salt
10:49 jeblair joined #salt
10:49 mlanner joined #salt
10:49 jbub joined #salt
10:49 ksj joined #salt
10:49 dec joined #salt
10:49 renoirb joined #salt
10:49 mohae joined #salt
10:49 dh__ joined #salt
10:49 Lionel_Debroux joined #salt
10:49 seena joined #salt
10:49 jim_ joined #salt
10:49 z3r0 joined #salt
10:49 genus joined #salt
10:49 campee joined #salt
10:49 ninkotech joined #salt
10:49 phw joined #salt
10:49 GrueMaster joined #salt
10:49 Remzed joined #salt
10:49 Horgix joined #salt
10:49 slav0nic joined #salt
10:49 monkey66 joined #salt
10:49 _JZ_ joined #salt
10:49 impi joined #salt
10:49 krymzon joined #salt
10:49 TyrfingMjolnir joined #salt
10:49 eseyman joined #salt
10:49 s_kunk joined #salt
10:49 linjan_ joined #salt
10:49 gcfhvjbkn joined #salt
10:49 rhodgin joined #salt
10:49 lb1a joined #salt
10:49 katyucha joined #salt
10:49 saltsa joined #salt
10:49 KermitTheFragger joined #salt
10:49 kawa2014 joined #salt
10:49 dopesong joined #salt
10:49 malinoff joined #salt
10:49 calvinh joined #salt
10:49 napsterX joined #salt
10:49 catpiggest joined #salt
10:49 MatthewsFace joined #salt
10:49 auzty joined #salt
10:49 GrantFS joined #salt
10:49 writtenoff joined #salt
10:49 nexus joined #salt
10:49 favadi joined #salt
10:49 cliluw joined #salt
10:49 g3cko joined #salt
10:49 micko joined #salt
10:49 kidneb joined #salt
10:49 stooj joined #salt
10:49 GothAck joined #salt
10:49 mackstick joined #salt
10:49 Ztyx1 joined #salt
10:49 timoguin joined #salt
10:49 kermit joined #salt
10:49 zsoftich2 joined #salt
10:49 hoonetorg joined #salt
10:49 rodrigc joined #salt
10:49 peters-tx joined #salt
10:49 quasiben joined #salt
10:49 subsignal joined #salt
10:49 Ben___ joined #salt
10:49 beardo joined #salt
10:49 troyready joined #salt
10:49 tiadobatima joined #salt
10:49 kbyrne joined #salt
10:49 zer0def joined #salt
10:49 viq joined #salt
10:49 Heartsbane joined #salt
10:49 armguy joined #salt
10:49 VR-Jack joined #salt
10:49 di5dude joined #salt
10:49 hacfi joined #salt
10:49 gfa joined #salt
10:49 teryx510 joined #salt
10:49 _mel_ joined #salt
10:49 harkx joined #salt
10:49 snaggleb joined #salt
10:49 BlackBishop joined #salt
10:49 mongoose123 joined #salt
10:49 ]V[ joined #salt
10:49 indispeq joined #salt
10:49 denys joined #salt
10:49 lz-dylan joined #salt
10:49 N-Mi joined #salt
10:49 gnord joined #salt
10:49 aron_kexp joined #salt
10:49 AndreasLutro joined #salt
10:49 jeddi joined #salt
10:49 seb` joined #salt
10:49 Cruz4prez joined #salt
10:49 sunkist joined #salt
10:49 tkharju joined #salt
10:49 womble joined #salt
10:49 Nazca joined #salt
10:49 enator joined #salt
10:49 rabbitheart joined #salt
10:49 NightMonkey joined #salt
10:49 TOoSmOotH joined #salt
10:49 RandyT joined #salt
10:49 wendall911 joined #salt
10:49 vincent_vdk joined #salt
10:49 bezeee joined #salt
10:49 cheus joined #salt
10:49 oznah joined #salt
10:49 markizano joined #salt
10:49 kossy joined #salt
10:49 gthank joined #salt
10:49 carmony joined #salt
10:49 Ahlee joined #salt
10:49 bmac2 joined #salt
10:49 NV joined #salt
10:49 is_null joined #salt
10:49 oravirt joined #salt
10:49 ws2k3 joined #salt
10:49 jab416171 joined #salt
10:49 aarontc joined #salt
10:49 evilrob joined #salt
10:49 voileux joined #salt
10:49 amontalban joined #salt
10:49 pezus joined #salt
10:49 stevednd joined #salt
10:49 bytemask joined #salt
10:49 Laogeodritt joined #salt
10:49 Cerales joined #salt
10:49 [dee] joined #salt
10:49 qmr joined #salt
10:49 Steven- joined #salt
10:49 intel joined #salt
10:49 dimeshake joined #salt
10:49 vando joined #salt
10:49 KingJ joined #salt
10:49 sroegner joined #salt
10:49 adelcast joined #salt
10:49 deedubs joined #salt
10:49 jvblasco joined #salt
10:49 twork joined #salt
10:49 lexter joined #salt
10:49 tzero joined #salt
10:49 dewdrop joined #salt
10:49 eliasp joined #salt
10:49 llb42 joined #salt
10:49 joehh joined #salt
10:49 Puckel_ joined #salt
10:49 rnts joined #salt
10:49 arnoldB joined #salt
10:49 und1sk0 joined #salt
10:49 Ssquidly joined #salt
10:49 paha joined #salt
10:49 ecdhe joined #salt
10:49 mitsuhiko joined #salt
10:49 kaictl joined #salt
10:49 dayid joined #salt
10:49 kwork joined #salt
10:49 daemonkeeper joined #salt
10:49 JPaul joined #salt
10:49 ekkelett joined #salt
10:49 repl1cant joined #salt
10:49 Tod-Work joined #salt
10:49 AirOnSkin joined #salt
10:49 eightyeight joined #salt
10:49 bougie joined #salt
10:49 Garo_ joined #salt
10:49 Alan_S joined #salt
10:49 BlackJackAc3 joined #salt
10:49 ashmckenzie joined #salt
10:49 smkelly joined #salt
10:49 jcockhren joined #salt
10:49 TaiSHi joined #salt
10:49 zemm joined #salt
10:49 czchen joined #salt
10:49 claytron_ joined #salt
10:49 thehaven joined #salt
10:49 juanito joined #salt
10:49 bstaz joined #salt
10:49 cedwards joined #salt
10:49 elektrix joined #salt
10:49 whiteinge joined #salt
10:49 arapaho joined #salt
10:49 fxhp joined #salt
10:49 freelock joined #salt
10:49 SubOracle joined #salt
10:49 eSgr joined #salt
10:49 Jahkeup joined #salt
10:49 shnguyen_ joined #salt
10:49 FineTralfazz joined #salt
10:49 jgelens joined #salt
10:49 klocek joined #salt
10:49 nocturn joined #salt
10:49 kbaikov joined #salt
10:49 Qwazerty joined #salt
10:49 cptmashek joined #salt
10:49 sinh joined #salt
10:49 pcdummy joined #salt
10:49 Antiarc joined #salt
10:49 garthk joined #salt
10:49 pmcg joined #salt
10:49 rogst joined #salt
10:49 bbhoss joined #salt
10:49 mnaser joined #salt
10:49 dean joined #salt
10:49 aberdine joined #salt
10:49 keekz joined #salt
10:49 mattrobenolt joined #salt
10:49 chutzpah joined #salt
10:49 mrtrosen joined #salt
10:49 emid joined #salt
10:49 DaveQB joined #salt
10:49 Nebraskka joined #salt
10:49 pcn joined #salt
10:49 phpdave11 joined #salt
10:49 tomasq joined #salt
10:49 hhenkel joined #salt
10:49 ntropy joined #salt
10:49 Smoked_Duck joined #salt
10:49 sifusam joined #salt
10:49 __alex joined #salt
10:49 Ouzo_12 joined #salt
10:49 tedski joined #salt
10:49 Mate joined #salt
10:49 ayee joined #salt
10:49 ventris joined #salt
10:49 pfallenop joined #salt
10:49 calebj joined #salt
10:49 sjohnsen joined #salt
10:49 baffle joined #salt
10:49 wm-bot4 joined #salt
10:49 agj joined #salt
10:49 JoeJulian joined #salt
10:49 Sacro joined #salt
10:49 dstokes joined #salt
10:49 egil joined #salt
10:49 wedgie joined #salt
10:49 evidence joined #salt
10:49 APLU joined #salt
10:49 Jimlad joined #salt
10:49 ThomasJ joined #salt
10:49 ajmath joined #salt
10:49 yota joined #salt
10:49 koomi joined #salt
10:49 danielcb joined #salt
10:49 kuromagi joined #salt
10:49 Eureka70_ joined #salt
10:49 PrincessZoey_ joined #salt
10:49 toastedpenguin joined #salt
10:49 scooby2 joined #salt
10:49 notnotpeter joined #salt
10:49 dankrs joined #salt
10:49 MindDrive joined #salt
10:49 sn00py joined #salt
10:49 Zachary_DuBois joined #salt
10:49 budman joined #salt
10:49 Bryanstein joined #salt
10:49 kalessin joined #salt
10:49 zsoftich joined #salt
10:49 honestly joined #salt
10:49 robinsmidsrod joined #salt
10:49 kutenai joined #salt
10:49 zipkid joined #salt
10:49 Tritlo joined #salt
10:49 jchadwick joined #salt
10:49 copelco joined #salt
10:49 mattl joined #salt
10:49 munhitsu joined #salt
10:49 sybix joined #salt
10:49 abele joined #salt
10:49 goki joined #salt
10:49 ashb joined #salt
10:49 mikepea joined #salt
10:49 ksalman joined #salt
10:49 sarlalian joined #salt
10:49 madssj joined #salt
10:49 shawnbutts joined #salt
10:49 SteamWells joined #salt
10:49 ramishra joined #salt
10:49 m0nky joined #salt
10:49 collinanderson joined #salt
10:49 LinuxHorn joined #salt
10:49 ramblinpeck joined #salt
10:49 davedash joined #salt
10:49 grepory joined #salt
10:49 mihait joined #salt
10:49 frankS2 joined #salt
10:49 basepi joined #salt
10:49 JonGretar joined #salt
10:49 lkannan joined #salt
10:49 akoumjian joined #salt
10:49 hillna joined #salt
10:49 neilfse__ joined #salt
10:49 joeyparsons joined #salt
10:49 antonw joined #salt
10:49 akafred joined #salt
10:49 Shirkdog joined #salt
10:49 crashmag joined #salt
10:49 mcncn joined #salt
10:49 ronrib joined #salt
10:49 InAnimaTe joined #salt
10:49 jonher joined #salt
10:49 ahale joined #salt
10:49 FreeSpencer joined #salt
10:49 tcolvin joined #salt
10:49 OGuilherme joined #salt
10:49 EWDurbin joined #salt
10:49 LyndsySimon joined #salt
10:49 codekobe joined #salt
10:49 gazarsgo joined #salt
10:49 simonmcc joined #salt
10:49 imanc joined #salt
10:49 doriftoshoes joined #salt
10:49 CaptTofu__ joined #salt
10:49 OliverMT joined #salt
10:49 wiqd joined #salt
10:49 moderation joined #salt
10:49 akitada joined #salt
10:49 twodayslate joined #salt
10:49 supermike__ joined #salt
10:49 kaiyou joined #salt
10:49 madduck joined #salt
10:49 Twiglet joined #salt
10:49 al joined #salt
10:49 Rkp joined #salt
10:49 Ymage joined #salt
10:49 llua joined #salt
10:49 MadsRC joined #salt
10:49 garphy`aw joined #salt
10:49 dober joined #salt
10:49 edulix joined #salt
10:49 nledez joined #salt
10:49 nebuchadnezzar joined #salt
10:49 TomJepp joined #salt
10:49 nethershaw joined #salt
10:49 aurynn joined #salt
10:49 tmmt joined #salt
10:49 IOMonster joined #salt
10:49 Cliph joined #salt
10:49 tachikoma joined #salt
10:49 davidone_ joined #salt
10:49 flebel joined #salt
10:49 ujjain joined #salt
10:49 giantlock joined #salt
10:49 synical joined #salt
10:49 iamgr00t joined #salt
10:49 canci joined #salt
10:49 programmerq joined #salt
10:49 rburkholder joined #salt
10:49 babilen joined #salt
10:49 lionel joined #salt
10:49 JoeHazzers joined #salt
10:49 masterkorp joined #salt
10:49 jY joined #salt
10:49 phx joined #salt
10:49 wych joined #salt
10:49 muep joined #salt
10:49 stefan_ joined #salt
10:49 Niamkik joined #salt
10:49 Rockj joined #salt
10:49 Kelsar joined #salt
10:49 xMopxShell joined #salt
10:49 _ikke_ joined #salt
10:49 _eXistenZ_ joined #salt
10:49 Sypher joined #salt
10:49 nobrak joined #salt
10:49 Vye joined #salt
10:49 mt joined #salt
10:49 MTecknology joined #salt
10:49 h220hawk joined #salt
10:49 Micromus joined #salt
10:49 karlthane_ joined #salt
10:49 wryfi joined #salt
10:49 qybl joined #salt
10:49 cwright joined #salt
10:49 JelleB joined #salt
10:49 nk joined #salt
10:49 jcristau joined #salt
10:49 sophomeric joined #salt
10:49 Nazzy joined #salt
10:49 UForgotten joined #salt
10:49 darix joined #salt
10:49 ph8 joined #salt
10:49 georgemarshall joined #salt
10:49 Number6 joined #salt
10:49 seblu joined #salt
10:49 dabb joined #salt
10:49 bregalad joined #salt
10:49 khris joined #salt
10:49 douardda joined #salt
10:49 davromaniak joined #salt
10:49 saltstackbot joined #salt
10:49 manfred joined #salt
10:49 VSpike joined #salt
10:49 totte joined #salt
10:49 esharpmajor joined #salt
10:49 geekatcmu joined #salt
10:49 amatas joined #salt
10:49 leszq joined #salt
10:49 sirtaj joined #salt
10:49 s0undt3ch joined #salt
10:49 hardwire joined #salt
10:49 techdragon joined #salt
10:49 [vaelen] joined #salt
10:49 skarn joined #salt
10:49 berto- joined #salt
10:49 virusuy joined #salt
10:49 xenoxaos joined #salt
10:49 gchao joined #salt
10:49 benvon joined #salt
10:49 colonD joined #salt
10:49 sk_0 joined #salt
10:49 pizzahead joined #salt
10:49 tongpu joined #salt
10:49 ange joined #salt
10:49 Riz joined #salt
10:49 voxxit joined #salt
10:49 mirko joined #salt
10:49 samed joined #salt
10:49 twobitsprite joined #salt
10:49 simmel joined #salt
10:49 cast joined #salt
10:49 Guest19676 joined #salt
10:49 unusedPhD joined #salt
10:49 grep_away joined #salt
10:49 joshin joined #salt
10:49 analogbyte joined #salt
10:49 packeteer joined #salt
10:49 davisj_ joined #salt
10:49 murkey joined #salt
10:49 ahammond joined #salt
10:49 vexati0n joined #salt
10:49 danemacmillan joined #salt
10:49 lude joined #salt
10:49 Ludo- joined #salt
10:49 hax404 joined #salt
10:49 bbradley joined #salt
10:49 Bateau_ joined #salt
10:49 moos3 joined #salt
10:49 paolo joined #salt
10:49 lahwran joined #salt
10:49 mfournier joined #salt
10:49 peno joined #salt
10:49 eagles0513875 joined #salt
10:49 Hazelesque joined #salt
10:49 iamtew joined #salt
10:49 Guest25336 joined #salt
10:49 rome_390 joined #salt
10:49 Corey joined #salt
10:49 Bambie joined #salt
10:49 LtLefse joined #salt
10:49 shanemhansen joined #salt
10:49 rjoensen joined #salt
10:49 robawt joined #salt
10:49 ska-fan joined #salt
10:49 nahamu joined #salt
10:49 mike25de joined #salt
10:49 vlcn joined #salt
10:49 mens joined #salt
10:49 chamunks joined #salt
10:49 helgi joined #salt
10:49 LeProvokateur joined #salt
10:49 tr_h joined #salt
10:49 froztbyte joined #salt
10:49 w1gz joined #salt
10:49 dijit joined #salt
10:49 a7p joined #salt
10:49 johngrasty joined #salt
10:49 cb joined #salt
10:49 toddnni joined #salt
10:49 moapa joined #salt
10:49 spootly joined #salt
10:49 Norrland joined #salt
10:49 johtso_ joined #salt
10:49 wintamute joined #salt
10:49 binocvlar joined #salt
10:49 superseb joined #salt
10:49 cansis joined #salt
10:49 shadowsun joined #salt
10:49 vandemar joined #salt
10:49 mortis_ joined #salt
10:49 Emantor joined #salt
10:49 Sketch joined #salt
10:49 Ph-x joined #salt
10:49 iggy joined #salt
10:49 fbettag joined #salt
10:49 buxy joined #salt
10:49 jerrcs joined #salt
10:49 nikogonzo joined #salt
10:49 \ask joined #salt
10:49 izibi joined #salt
10:49 mummer joined #salt
10:49 gadams joined #salt
10:49 sovern joined #salt
10:49 LotR joined #salt
10:49 borgstrom joined #salt
10:49 lynxman joined #salt
10:49 DenkBrettl joined #salt
10:49 mschiff joined #salt
10:49 rhand joined #salt
10:49 EvaSDK joined #salt
10:49 Hipikat joined #salt
10:49 Jarus joined #salt
10:49 kiorky joined #salt
10:49 rickflare joined #salt
10:49 intr1nsic joined #salt
10:49 nihe joined #salt
10:49 fhh joined #salt
10:49 rawzone joined #salt
10:49 mage_ joined #salt
10:49 monokrome joined #salt
10:49 leev joined #salt
10:49 nlb joined #salt
10:49 pdx6 joined #salt
10:49 alexhayes joined #salt
10:49 arif-ali joined #salt
10:49 rofl____ joined #salt
10:49 ablemann joined #salt
10:49 whytewolf joined #salt
10:49 awpti joined #salt
10:49 dbanham joined #salt
10:49 JPT joined #salt
10:49 utahcon joined #salt
10:49 Erzwurm joined #salt
10:49 notbmatt joined #salt
10:49 Cottser|away joined #salt
10:49 dingo joined #salt
10:49 bryguy joined #salt
10:49 dthorman joined #salt
10:49 Karunamon joined #salt
10:49 Yoda-BZH joined #salt
10:49 jhujhiti joined #salt
10:49 daschatten joined #salt
10:49 emostar joined #salt
10:49 etw joined #salt
10:49 v0rtex joined #salt
10:49 hypnosb joined #salt
10:49 bourbon joined #salt
10:49 tvinson joined #salt
10:49 marcinkuzminski joined #salt
10:49 rubenb joined #salt
10:49 drags joined #salt
10:49 tyler-baker joined #salt
10:49 jesusaurus joined #salt
10:49 sixninetynine joined #salt
10:53 czchen joined #salt
10:55 notnotpeter joined #salt
10:57 jim_ joined #salt
10:59 jhauser joined #salt
10:59 breakingmatter joined #salt
11:00 dh joined #salt
11:03 kossy joined #salt
11:06 rhodgin joined #salt
11:06 campee joined #salt
11:09 rhodgin_ joined #salt
11:12 phw i have a simple pkg installation - but it always fails, can you have a look (only 4 lines) http://sebsauvage.net/paste/?dd35676a6aa613e5#IrYhlRblgtQC5C49HL1WAdGIh0gvdR1EDEGNHpEdye0=
11:16 Norrland phw: try changing '- kernel:' to '- version:'
11:17 phw Norrland: but how then can I name to task?
11:17 Norrland phw: what?
11:18 phw Norrland: The package I want to install is called "kernel"
11:18 phw How could it know that I want to install it if I do not provide its name?
11:18 Norrland phw: you only replace the 'kernel' on the fourth line.
11:19 omegamike joined #salt
11:19 phw Norrland:  But then it says "Version" is not a package
11:19 Norrland phw: is there any package called 'kernel-package'?
11:19 phw Norrland: All I want this code to do is to install the "kernel-3.10...." pcakge
11:20 phw Norrland: No, I though that is how I could name the task salt is running for
11:20 phw as stated here https://salt.readthedocs.org/en/v0.13.3/ref/states/all/salt.states.pkg.html (the mypkgs example)
11:21 Norrland phw: yes. But then you have to specify the actual name of the package.
11:21 phw correct and the name is "kernel"
11:21 Norrland phw: just "kernel"?
11:21 phw yes
11:21 phw Norrland:  after all it is the linux kernel.
11:22 Norrland ok
11:22 Norrland phw: check your indentation for the last line
11:23 Norrland or for the whole file even.
11:23 AndreasLutro in what distro is it called just "kernel"?
11:23 Norrland AndreasLutro: centos
11:23 phw AndreasLutro: centos
11:24 phw oh, could that be a problem that there can be multiple kernels installed in parallel?
11:24 phw Most packages (like http) are installed exlusively in one version on the system
11:24 AndreasLutro "kernel" is a package alias for "kernel-3..." isn't it?
11:24 AndreasLutro I don't think pkg.install works well with package aliases
11:26 phw AndreasLutro: then can i just enter the whole name as pakgename?
11:26 AndreasLutro suppose so
11:26 phw Interesting: Calling the snippet with the currently active (latest) kernel results in a green state (nothing to do)
11:27 phw But I need to install a previous kernel (that is also available in the repository and installable via yum)
11:27 AndreasLutro though personally I think managing the kernel version is not something you should manage with salt
11:27 phw AndreasLutro: But I have to do it on many computers - so..... what else would you suggest?
11:27 AndreasLutro you're *downgrading* the kernel?
11:28 phw AndreasLutro: "mildly" but yes
11:28 phw the kernel is avaialble from the same repository and is the "almost-latest" one
11:28 AndreasLutro sounds scary... but what I'd do is make sure the correct kernel gets installed when the VM is created, then use salt to somehow prevent a newer one from being installed
11:28 AndreasLutro I don't know how you'd do that with yum but with apt-get you'd "hold" the kernel package
11:29 phw AndreasLutro: there is a plugin for yum that is also supported by salt to do that
11:29 phw but in order to work, you have to install that version first
11:30 AndreasLutro oh well I won't presume to know what the "right" answer here is
11:30 AndreasLutro you say you put an older kernel into the state but salt says nothing to do?
11:30 phw AndreasLutro:  no, no, sorry if i sounded rude there
11:30 AndreasLutro oh no not at all
11:31 phw AndreasLutro: I just want it to install at least - but it says that no possible matches were found in the package database
11:31 phw although it is clearly there
11:31 AndreasLutro I'm just saying I've never actually *tried* managing the kernel version, it's just my gut tells me it's a bad idea, I have no real experience saying that's the case
11:33 jhauser joined #salt
11:33 AndreasLutro I don't have a centos vm lying around so I can't check, but basically use whatever
11:34 AndreasLutro use whatever's equivalent to `apt-cache show` to double-check the package name and version I suppose
11:34 phw i am trying to directly use yumpkg for a moment here...
11:36 shurik joined #salt
11:39 BradThurber joined #salt
11:40 phw AndreasLutro: well the problem is that the package is there and installable, yet salt reports it not existing
11:40 shurik left #salt
11:40 phw AndreasLutro:  the newest kernel package (that can be installed in parallel!) works on the other hand
11:41 aarontc joined #salt
11:41 AndreasLutro mind sharing some output of the salt + yumpkg commands you're running?
11:43 mage_ is it possible to extend and include: in a state file ?
11:43 mage_ s/and/an
11:44 babilen What are you trying to achieve?
11:46 mage_ I have some include: at the beginning of the file and then later I do a {% if cfg.supervise %} include: - pkg.daemontools {% endif %}
11:47 mage_ I can move this at the beginning of the file, I was just wondering :)
11:47 jaybocc2 joined #salt
11:47 ttrumm joined #salt
11:51 z3r0 joined #salt
11:52 babilen I don't see where you are extending anything
11:53 mage_ I would like to, as I have a conflicting id atm
11:53 babilen And I wouldn't necessarily advise to nest state inclusion logic that deeply .. It might be quite hard to figure out where that states come from later on
11:54 babilen mage_: I don't see anything that would even hint at the possibility of problems with duplicate ids
11:54 babilen bbl $WORK
11:56 drawsmcgraw joined #salt
11:58 phw Okay, this seems to be a weird bug
11:58 aarontc joined #salt
11:58 rideh joined #salt
12:01 phw the mentioned install works for kernel as well as an example (vim-enhanced) correctly when they are installed.
12:01 phw But when they are not, it installs vim-enhanced correctly but reports a fail for the kernel
12:01 codehotter joined #salt
12:02 XenophonF phw: i'm just now looking through your messages about this
12:03 XenophonF phw: did you post a gist or something with the minion logs in it?
12:03 jaybocc2 joined #salt
12:04 phw XenophonF: Not yet, for you to keep it short:
12:04 XenophonF phw: you could run something like "salt-call -l debug state.single pkg.installed kernel ...", where ... are the various arguments to the pkg.installed state that you're trying to use to install the older kernel
12:04 ttrumm joined #salt
12:04 XenophonF phw: or you could increase the log level to trace - that should show exactly what the minion's doing
12:08 XenophonF phw: i assume that the suitable `yum install` command DTRT, so worst case you could run that onlyif the kernel image file is missing
12:08 XenophonF which isn't very salty, i realize
12:08 phw XenophonF: hehe, i  am having a look....
12:11 ttrumm_ joined #salt
12:12 haarp joined #salt
12:12 s_kunk joined #salt
12:12 CeBe joined #salt
12:13 yomilk joined #salt
12:14 haarp hey. is there a way to use pillar data inside a file handled by file.managed?
12:14 phw yum seems to report that a package version does not need to be upgraded/downgraded as multiple installs are allowed. i guess the corresponging salt function does not understand that
12:17 MaZ- joined #salt
12:17 phw A workaround I am trying right now is a manual call of yum in case of failure of the package command
12:18 funzo joined #salt
12:18 DammitJim joined #salt
12:19 omegamike joined #salt
12:19 XenophonF joined #salt
12:19 XenophonF and we're back
12:19 andreluiz joined #salt
12:19 XenophonF stupid windows pc :(
12:20 phw Okay, weird behaviour: "yum install" does find a package "yum reinstall" does not
12:20 XenophonF that doesn't sound weird to me
12:20 phw ah of course if it is not on the system already
12:20 phw you are right
12:25 XenophonF so why are you trying to install an older kernel package in the first place?
12:30 otter768 joined #salt
12:32 funsize joined #salt
12:32 phw XenophonF: I am managing computer for Kernel-Dependant software development
12:32 XenophonF ah ha
12:33 dendazen joined #salt
12:33 funsize Hey everyone - just looking at saltstack now and following along wiuth the docs. Great tool... but I'm wondering what the best strategy to pass passwords between minions is, for example to set up a database cluster? I have a bunch of minions that need this data about a bunch of other minions
12:35 XenophonF funsize: distribute keymat using pillar
12:36 funsize Can I push the passwords up to a pillar from a minion automatically?
12:36 XenophonF funsize: i don't know off-hand
12:36 XenophonF funsize: there might be a way to do that securely
12:37 XenophonF funsize: you end up having to trust the minion with keying material generation, which i personally find insecure
12:38 XenophonF funsize: i think one common pattern is to generate keying material in one state, store it in a grain, and access the grain in another state
12:38 XenophonF funsize: it might be possible to distribute the keymat via mine or something
12:38 funsize Grains are just metadata about a machine, right?
12:39 XenophonF yes, but you can also create your own grains - ultimately, they're just key-value pairs stored in the minion config
12:39 XenophonF but that's why i think custom grains aren't suitable for security-related configuration data
12:40 XenophonF YMMV
12:41 funsize That's really good info, thanks Xeno
12:41 XenophonF np
12:41 funsize Can you point me towards any examples or walkthroughs of storing data in grains or mine?
12:42 XenophonF there should be stuff on docs.saltstack.com about custom grains - look through the list of state modules for one called "grains"
12:42 funsize And I assume this logic would all go in a custom state module? or execution module?
12:43 XenophonF i don't think you need anything that complicated
12:43 XenophonF http://docs.saltstack.com/en/latest/ref/states/all/salt.states.grains.html
12:44 XenophonF for the local case, where everything's stored in grains, you can generate a grain in one SLS (e.g., /usr/local/etc/salt/states/backend/init.sls), and then access the grain via jinja or something in another (e.g., /usr/local/etc/salt/states/frontend.sls)
12:46 XenophonF those SLS files get run in the order they're listed in .../states/top.sls, in my example you'd want to list backend first, followed by frontend
12:46 XenophonF (those paths are for FreeBSD - the Linux version of Salt stores states under /srv/salt IIRC)
12:47 XenophonF i don't think it's possible to coordinate state execution among minions
12:47 XenophonF and like i said, i'm not sure how you'd share data between them---but i'm looking
12:48 XenophonF ok - take a look at http://docs.saltstack.com/en/latest/topics/mine/index.html
12:49 breakingmatter joined #salt
12:49 XenophonF "The Salt Mine is used to collect arbitrary data from minions and store it on the master. "
12:50 jdesilet joined #salt
12:50 funzo joined #salt
12:50 XenophonF so it looks like you would use mine to collect that grain data, and then the other minions could access it via one of the templating mechanisms (e.g., jinja)---just like they would with grains or pillars
12:50 XenophonF still, i'm not 100% certain i'd recommend sharing keymat among minions in this manner
12:51 XenophonF but hey, here's a loaded gun - let me help you aim it at your foot ;)
12:52 funsize haha
12:52 funsize we have plenty of other layers of security in place... I'm all for locking stuff down but sometimes you just have to be pragmatic
12:53 XenophonF very true - security is always about risk-benefit analysis
12:53 funsize If someone is even able to connect to our database, we're probably past the point of fucked-ness
12:53 XenophonF heh
12:54 pcdummy joined #salt
12:54 subsignal joined #salt
12:54 pcdummy joined #salt
12:55 beautivile joined #salt
12:56 jaybocc2 joined #salt
12:56 quasiben joined #salt
12:58 subsigna_ joined #salt
13:00 funsize Gotta run to the standup - thanks again Xeno!
13:00 XenophonF np ttyl
13:02 mpanetta joined #salt
13:06 aarontc joined #salt
13:07 Tecnico1931 joined #salt
13:08 Fiber^ joined #salt
13:08 _mel_ if i do something like this: salt -G 'os:Debian' cmd.run "[ -f /etc/fail2ban/jail.conf ] && echo ok" shell=/bin/bash how can i filter the output to only get the hosts who has the file
13:08 rhodgin joined #salt
13:11 jaybocc2 joined #salt
13:13 evle joined #salt
13:14 haarp joined #salt
13:15 Tyrm joined #salt
13:15 stoogenmeyer_ joined #salt
13:16 XenophonF _mel_: why not use the file.file_exists? http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.file.html#salt.modules.file.file_exists
13:16 breakingmatter joined #salt
13:17 _mel_ XenophonF: didn't know it. but i have the same problem. i'd like to filter out only the relevant hosts
13:17 XenophonF _mel_: man salt
13:18 Tyrm joined #salt
13:18 XenophonF _mel_: you could output to JSON and filter it using jshon, or something
13:18 XenophonF there are other options
13:18 XenophonF i forget what all you can do - maybe terse output or something?
13:19 _mel_ some grep like function or --quiet or so? i always get responses from all server
13:19 _mel_ which i cann't grep because the output i in the next line
13:21 numkem joined #salt
13:22 XenophonF salt ... | fgrep -B 1 True | fgrep -v True | sed -e s/://
13:22 mapu joined #salt
13:22 dthom91 joined #salt
13:22 XenophonF so for example on my network, with Linux and Windows minions
13:23 XenophonF salt '*' file.file_exists /etc/passwd | fgrep -B 1 True | fgrep -v True | sed -e s/://
13:24 dthom911 joined #salt
13:24 _mel_ oh, yeah. thx. that'll work
13:24 XenophonF grep before context ftw :)
13:25 XenophonF there's probably a way to get the salt command to give you the output you want without cmdline-fu, but i would need to rtfm to tell you how
13:25 _mel_ i wonder that nobody needs the option to easy filter out minions
13:25 che-arne joined #salt
13:26 XenophonF _mel_: at that point you probably want to use one of salt's structured output modes, e.g., json
13:27 XenophonF and then you can process the resulting data structure however you want
13:27 _mel_ yaml looks promising: salt -G 'os:Debian' file.file_exists /etc/fail2ban/jail.conf --out yaml | grep true | cut -d ":" -f1
13:28 XenophonF that's good too
13:29 XenophonF i'm kind of partial to json b/c of the aws cli
13:29 LtLefse I'd certainly appreciate better output options
13:29 LtLefse I've set state_output: changes
13:29 LtLefse yet when I run my state to sync users I still get 11,000 lines of output
13:30 LtLefse even when there are no changes
13:30 XenophonF well, like i said, you probably want to tell the salt command to output a data structure, and then process that to your tastes
13:31 _mel_ i like to do simple thuings like for minion in $(salt '*' file.exists ...); do salt $minion state.sls something test=true; done
13:32 XenophonF i get a lot of mileage out of jshon, but it's a shiny new hammer and you all know how much fun it is to hit everything in reach with shiny new hammers ;)
13:33 _mel_ another question. i have a lot of config files via file.managed who are different for squeeze wheezy and so on. by now i'm using filename.{{grains['oscodename']}}. is the any more elegant way? maybe some central place to store the differences between the os versions?
13:34 penguin_dan joined #salt
13:34 XenophonF _mel_: how different are the differences?
13:34 AndreasLutro _mel_: if the differences are huge than that's what I would do as well tbh. if the differences are small, I put if blocks inside the config template
13:34 _mel_ somethings a couple of lines, sometimes really different like grub and grub2
13:35 XenophonF i tend to generate my configs procedurally, so i do it all in map.jinja
13:35 _mel_ i thunk its hasrd to catch all things nedeed if for example i want to prepare for jessie
13:36 _mel_ XenophonF: and you load the template based on the oscodename?
13:36 Armstrong joined #salt
13:37 indispeq Hi Everyone! I have a question related to formula best practices, using a map.jinja and then the pillar.
13:37 indispeq If I have a map.jinja with sensible defaults for the 'base' environment
13:37 XenophonF _mel_: or osmajorrelease or whatever
13:37 XenophonF it depends on the os/os_family
13:37 indispeq but it is doing a pillar merge, the pillar/base/top.sls will throw an error
13:37 indispeq if it includes pillar data for the formula but the file is not there
13:37 _mel_ XenophonF: is there an example online to hang on to
13:38 indispeq so I can only get around this by putting an empty init.sls for the that formula's pillar
13:38 indispeq is having empty 'placeholder' files a good practice?
13:38 indispeq or is there a logical way around that?
13:38 XenophonF _mel_: yes let me get a link for you
13:39 domel joined #salt
13:43 drawsmcgraw joined #salt
13:44 Armstrong I'm troubleshooting why I have some minions performing a full yum upgrade. I'm strongly suspicious that it's a pkg.latest: section since it has a - upgrade: true in it even though that option doesn't appear in the docs.  Also I'm very new to salt so I might be way off.
13:45 Armstrong I only want to install - pkgs:       - nginx       - fcgi       - fcgi-devel       - spawn-fcgi
13:45 Armstrong at least in this SLS
13:46 Armstrong The options I find are: pkg.latest:     - skip_verify: False     - refresh: True     - upgrade: true
13:46 Armstrong So, could this cause yum to update my kernel ?
13:46 dyasny joined #salt
13:47 domel hi there... anyone got an example of using salt to install package on Solaris 5.11
13:51 LtLefse Armstrong: I'm guessing that upgrade: true is from an older version and should be removed
13:51 Tyrm joined #salt
13:51 zwi joined #salt
13:53 XenophonF domel: when you figure that out, you let me know, ok?
13:53 phw can pkgrepo.managed somehow write multiple entries into one file?
13:53 XenophonF domel: actually, i'd like to know how you installed salt in the first place (i assume from source)
13:54 XenophonF _mel_: please take a look at https://github.com/irtnog/salt-states/blob/development/clamav/
13:54 _mel_ XenophonF: THX a lot
13:55 XenophonF _mel_: a little different than your use case - i'm deploying the same two config files on two different os_families
13:55 XenophonF _mel_: but there's also an os_map example there, so you can get a feel for how you might approach it
13:56 domel i followed docs from salt website. http://docs.saltstack.com/en/latest/topics/installation/solaris.html
13:56 domel python bombed but installing 2.7 fixed it
13:56 domel kinda
13:56 LtLefse domel: have you found this:
13:56 LtLefse http://docs.saltstack.com/en/latest/ref/states/providers.html#provider-pkg
13:56 CeBe1 joined #salt
13:56 LtLefse I don't use solaris but I'd start there
13:57 _mel_ XenophonF: I'll look into it
13:58 babilen phw: You can consolidate them all (wouldn't necessarily do that) or set the file attribute
13:59 _mel_ XenophonF: the jinja syntax isn't easy to understand though imho.
14:00 CeBe1 joined #salt
14:01 XenophonF _mel_: what doesn't make sense?
14:01 cpowell joined #salt
14:01 nobrak joined #salt
14:01 nobrak joined #salt
14:02 jaybocc2 joined #salt
14:03 andrew_v joined #salt
14:03 kaptk2 joined #salt
14:03 monkey66 left #salt
14:04 _mel_ XenophonF: like the merge=..  state and which to import from what.   its just many many things together .-)  you have the states and the pillars and some yaml and some jinja templating and some grouping besides the roles defined on the client ...
14:06 hasues joined #salt
14:06 hasues left #salt
14:06 Armstrong Any idea why salt --no-colour still outputs in color ?
14:08 sjorge joined #salt
14:08 sjorge joined #salt
14:10 LtLefse Armstrong: bug? does --no-color work?
14:11 LtLefse both work for me
14:11 babilen EMURICA!
14:11 XenophonF _mel_: default_settings comes from defaults.yaml
14:11 Armstrong Neither one disables color, which I might not mind except it complicates my regex
14:11 XenophonF distro_map overrides default_settings
14:12 XenophonF and clamav:lookups overrides distro_map - kind of there for legacy configs
14:12 XenophonF os_map supplements/overrides distro_map
14:12 XenophonF and finally, the clamav pillar overrides everything
14:12 XenophonF and it all ends up in clamav_settings
14:12 bernieke joined #salt
14:13 funzo joined #salt
14:14 _mel_ XenophonF: i sould take some training classes
14:14 bernieke I used to build packages for salt (from our fork) using dpkg-buildpackage, but the debian directory has now been removed
14:14 GrueMaster joined #salt
14:14 bernieke can anyone point me to a place that describes how I'm supposed to do this for 2015.8?
14:14 bernieke my google-fu seems lacking here...
14:15 nobrak joined #salt
14:15 nobrak joined #salt
14:15 amcorreia joined #salt
14:17 tmclaugh[work] joined #salt
14:20 spark_ joined #salt
14:21 ajw0100 joined #salt
14:21 babilen bernieke: git://anonscm.debian.org/pkg-salt/salt.git
14:22 XenophonF _mel_: a class might help, but jinja isn't too difficult to pick up - you definitely want to take a look at the official docs (http://jinja.pocoo.org/docs/dev/)
14:23 bernieke babilen: thanks! I can just copy the debian folder from there to the sources I want to build to replace the removed directory? Or is there a different build process as well?
14:23 babilen bernieke: Well, you naturally have to adapt the packaging (e.g. version number, ...)
14:24 sjorge joined #salt
14:24 sjorge joined #salt
14:24 ze- at times, I have a salt-minion "Returning information for job: XXX", but on master, ever jobs.lookup_jid XXX does not show anything. Like if the message was dropped between minion and master.
14:24 _mel_ XenophonF: is there a book about salt how to learn using pillars and roles and so on in a practical way? i started from scratch and my config looks messy at best
14:26 XenophonF _mel_: dunno, that's why i posted my personal configs to github
14:26 babilen _mel_: https://www.packtpub.com/networking-and-servers/learning-saltstack + https://www.packtpub.com/networking-and-servers/mastering-saltstack + https://www.packtpub.com/networking-and-servers/salt-cookbook
14:27 XenophonF _mel_: i've got an example pillar repo under my irtnog org account, if you want to look through that
14:27 _mel_ XenophonF: i'm already looking at it :)
14:29 ekristen joined #salt
14:31 otter768 joined #salt
14:31 XenophonF _mel_: everything i've done is based on stuff i've learned here from other people or from saltstack-formulas
14:31 XenophonF or the docs, obviously
14:36 leev anyone know the eta of 2015.8.0?
14:36 manfred when it's ready
14:37 babilen +1
14:37 zmalone joined #salt
14:37 babilen and siyh
14:37 Tyrm joined #salt
14:38 manfred https://github.com/saltstack/salt/issues?q=is:open+no:milestone+is:issue+label:Beryllium+label:Blocker
14:38 manfred there are no beryllium blockers though
14:38 manfred so soonish maybe?
14:38 Ztyx joined #salt
14:43 Brew joined #salt
14:43 sjorge joined #salt
14:43 sjorge joined #salt
14:44 stevednd manfred: my salt-master is currently from ubuntu packages. what's your recommendation for getting to a bootstrapped version?
14:44 stevednd would it be similar to doing the mininions and just uninstall the package, and then run the bootstrap script with the revision I want?
14:44 zmalone joined #salt
14:46 codehotter I ran into, https://github.com/saltstack/salt/issues/25335 any way I can work around this with configuration on the master?
14:46 saltstackbot [#25335]title: 2015.5.3 master_type: str causes minion to fail to start | Doesn't seem to be OS Specific....
14:46 codehotter The problematic package 2015.5.3 is coming from epel7 repos
14:50 ttrumm joined #salt
14:52 dthom911 joined #salt
14:53 codehotter Can I control the minion config that is deployed with salt-bootstrap?
14:54 drawsmcgraw Anyone successfully used salt-api to accept POSTs from Github?
14:55 drawsmcgraw I'm certain it's do-able, I'm just not certain on what I need to be looking for over on the salt-api side. I see there' the 'secret' field in the Webhook form on Github
14:56 Tyrm joined #salt
14:56 bernieke babilen: Thanks for the help, I've got the packages built. I just had to pip install sphinx (ubuntu trusty only has 1.2, which doesn't suffice apparantly), and then pass -d to the build command as it wouldn't recognize the pip installed version.
14:56 rhodgin joined #salt
14:57 babilen bernieke: Wonderful, which version number did you choose?
14:58 scottpgallagher joined #salt
14:59 favadi joined #salt
15:00 dthom91 joined #salt
15:00 jeddi joined #salt
15:01 bernieke I named it 2015.8.0.1, even though .0 isn't officially released yet :)
15:02 Tyrm joined #salt
15:04 sdm24 joined #salt
15:08 murrdoc joined #salt
15:09 jalbretsen joined #salt
15:10 Tyrm joined #salt
15:10 scbunn joined #salt
15:11 sjorge joined #salt
15:11 sjorge joined #salt
15:11 Akhter joined #salt
15:13 Tyrm joined #salt
15:14 funzo joined #salt
15:14 conan_the_destro joined #salt
15:15 babilen bernieke: In cases like it makes sense to use a local version such as 2015.5+git20150806-1+bernieke
15:15 babilen err, +bernieke1
15:18 drawsmcgraw Well crap... Github uses your 'secret' to run a sha1 hash on the POST's payload...
15:18 drawsmcgraw Meaning Reactor would have to *also* create the sha1 hash of the payload and compare them.
15:18 thehaven joined #salt
15:19 drawsmcgraw That's a good bit more work than just comparing a string with something from the POST payload :/
15:19 babilen bernieke: The + sorts higher than 2015.5.* and gitYYYYMMDD allows for one package each day without problem. I tend to include a personal modifier at the end in order to indicate "this isn't official". So "2015.5+git20150806+bernieke1" is the perfect version for what you are doing.
15:21 clintberry joined #salt
15:23 Tyrm joined #salt
15:26 banoss joined #salt
15:26 spark_ joined #salt
15:28 ttrumm joined #salt
15:29 sunkist joined #salt
15:31 mnml_ joined #salt
15:34 bernieke alright, thanks babilen, will do that :)
15:36 ALLmightySPIFF joined #salt
15:38 SheetiS joined #salt
15:41 viq joined #salt
15:41 rideh joined #salt
15:42 indispeq How would I execute a command on minions if I want to filter by a certain state that they already have?
15:42 indispeq so I want to run state A but only on minions that in their top file already have state B applied to them.
15:43 indispeq Or is this not possible?
15:44 sdm24 will state A run on all minion with state B?
15:44 indispeq correct
15:44 sdm24 if so, use an include on state B'
15:45 bhosmer joined #salt
15:45 indispeq the problem is I am trying to do this for an orchestration runner
15:45 indispeq so I can't include it right off the bat, more specifically, what I want to do:
15:45 indispeq for all machines where I installed pgbouncer
15:45 Armstrong I determined that --no-color works on a minion via salt-call , which I find interesting and maybe depressing too
15:45 indispeq i want to execute the pgbouncer pause
15:46 indispeq before I do a db server manipulation or postgresql serfvice change
15:46 iggy indispeq: how do you target state A at the set of minions?
15:46 indispeq in order to not lose any data in writes that try to hit my db server during restart
15:46 indispeq roles for each minion in the top file include a state postgresql.pgbouncer
15:46 iggy i.e. do you use grains.roles? etc?
15:47 indispeq roels
15:47 iggy can you not target on those same roles?
15:47 indispeq the problem is, I feel it's abit constraining to use the roles, in case the roles change
15:47 indispeq whereas the closest source of truth seems to be the existence of state B, postgresql.pgbouncer
15:48 indispeq Or am I trying to generalize this too much to a level that's not possible?
15:48 iggy well, my other suggest was going to be set a grain in state A, but that wouldn't be terribly different than just using the roles
15:49 indispeq iggy, this sounds like the best , because at least this way it's automated, i'll try that
15:49 indispeq what I'm trying to avoid is changing the salt code by adding roles but forgetting to update the orchestration runner
15:49 indispeq effectively negating its use.
15:49 zsoftich2 joined #salt
15:50 alemeno22 joined #salt
15:50 iggy you could do a custom grain module that (f.ex.) sets the pgbouncer installed grain if the binary exists
15:50 XenophonF with windows packages, what does `reboot: True` or `reboot: False` do?
15:51 XenophonF is it descriptive? does it make salt reboot the minion automatically? if the package installer reboots, will salt wait for the minion to come back from the reboot?
15:51 XenophonF the documentation doesn't really say :(
15:52 CheKoLyN joined #salt
15:52 indispeq iggy, thank you, I like that idea. Would the custom grain be executed before the installation of the pgbouncer package or after (i.e.: would I need to do a highstate twice?)
15:52 iggy custom grains are synced on highstate
15:52 iggy (at the beginning)
15:53 XenophonF grepping through the salt sources doesn't turn up anything win_pkg related :-/
15:53 XenophonF not for the keyword `reboot` anyway
15:53 indispeq ok so I'd need two runs if I check for the existence of the binary. thank you, much appreciated!
15:53 iggy but you can also sync them manually
15:53 iggy we have a reactor that runs on minion start that does a sync_all, refresh_pillar
15:54 Ztyx joined #salt
15:57 Tyrm joined #salt
16:01 aparsons joined #salt
16:01 sdm24 I have a jinja string variable set by salt['cmd.run']. This string is formatted for a python list. I can split the string on ',' but then the leading [ and trailing ] still exist on the first/last entries. How do I trim the brackets? I tried split but it isn't working
16:02 sdm24 I mean I tried slice but it isn't working
16:02 iggy rstrip/lstrip?
16:03 iggy or just strip
16:03 sdm24 I thought that just removes the whitespace around the start/end of jinja
16:04 iggy .strip('[]')
16:04 iggy by default it does remove whitespace
16:05 bhosmer joined #salt
16:06 sdm24 I can't find that in the jinja docs, but I'll give it a try. Do I need to include the dash in my jinja tags? {%-
16:06 zmalone joined #salt
16:06 iggy won't effect that
16:06 iggy .strip is python, not jinja
16:06 sdm24 that explains why
16:08 sdm24 thanks iggy! you the man
16:08 kidneb joined #salt
16:09 Tyrm joined #salt
16:10 kidneb joined #salt
16:11 favadi joined #salt
16:11 rideh joined #salt
16:13 zmalone joined #salt
16:14 shaggy_surfer joined #salt
16:14 iggy sdm24: if it's just a python list, you might be able to pass it to the json filter to get a regular python object
16:14 writtenoff joined #salt
16:16 sdm24 Basically what I wanted is a list of minions that are down at a certain point in time. I have {% set names = salt['cmd.run']('salt-run manage.down --out=pprint'), which returns the string of "['minion1', 'minion2', 'minion3']"
16:16 shaggy_surfer joined #salt
16:17 troyready joined #salt
16:18 PredatorVI joined #salt
16:19 iggy use --out=json and read that in via load_json
16:20 sdm24 but I finally got this working after hours of struggling :(
16:20 iggy or leave it working
16:20 napsterX joined #salt
16:20 iggy I'm okay with that
16:21 sdm24 I think that would still give me the issue of the cmd.run output is a string, so I would still get a string when I loaded the json. Maybe not though
16:21 iggy {%- set json_src = "{'bar': 'for real'}"|load_json %}
16:21 iggy that's the example from the docs
16:21 kidneb joined #salt
16:21 sdm24 oh
16:21 iggy I think you could definitely do it
16:21 iggy but like you said... it's working now
16:22 iggy I hope this isn't a state that runs too often though
16:22 iggy the runners aren't super fast in my experience (especially when there are nodes actually down... it has to wait for the timeout)
16:22 scbunn joined #salt
16:22 sdm24 yeah they aren't
16:23 sdm24 which makes testing that much worse, having to wait 10+ seconds for each run
16:23 sdm24 I want results now, dang it!
16:23 iggy do you expect this to change a ton?
16:24 sdm24 what do you mean? in terms of frequency run? I basically just made this state to see if I could do it. If my boss thinks it could be handy, then I might improve on it.
16:24 sdm24 So this won't be run too often
16:24 capricorn_1 joined #salt
16:25 VR-Jack So they reorganized salt.wheel a bit, but someone forgot to add code to def cmd() from what I can tell. So it does nothing.
16:26 kidneb joined #salt
16:26 iggy ahh, was going to say depending on your needs, it might be better to put test.ping into mine_functions and then set an appropriate mine_interval and use the mine instead of the output of a runner
16:28 bhosmer joined #salt
16:28 kidneb joined #salt
16:30 rdas joined #salt
16:30 funzo joined #salt
16:32 otter768 joined #salt
16:32 bhosmer_ joined #salt
16:34 napsterX joined #salt
16:34 jaybocc2 joined #salt
16:36 sunkist joined #salt
16:38 kidneb joined #salt
16:39 amcorreia joined #salt
16:51 MatthewsFace joined #salt
16:52 VR-Jack hmmm. I hate to patch something that I have no idea what they were thinking when they wrote it. :(
16:54 mapu joined #salt
16:54 bhosmer joined #salt
16:55 evilrob joined #salt
16:55 BradThurber_ joined #salt
16:57 ALLmightySPIFF joined #salt
16:58 pipps joined #salt
17:02 scbunn joined #salt
17:04 UtahDave joined #salt
17:05 nzero joined #salt
17:07 evilrob joined #salt
17:07 VooDooNOFX joined #salt
17:14 jdesilet joined #salt
17:15 RedundancyD joined #salt
17:16 malinoff joined #salt
17:20 Ben___ Hi all, have to admit I am a very new to Salt. I have a master and several minions configured. I am trying to use file.recurse to copy the full contents of a large directory structure to all my minions while applying a jinja template. The directory structure has 35394 files. The push state is having problems with binary files, complaining about non-UTF8 chars
17:20 spatry2015 joined #salt
17:21 Ben___ Is there a way to tell file.recurse to avoid scanning binary files? I've looked in detail but couldnt find any way to do this
17:21 napsterX joined #salt
17:21 pipps joined #salt
17:22 tomasq Ben___: in case no other answers come up, have you considered rsync or tar's?
17:22 stevednd iggy: you there?
17:22 tomasq (what I'm saying is horrible)
17:22 Ben___ Hi Tomasq, Yes, using a tar in fact seems like the most intuitive solution but I could not find a way to copy & untar using Salt while at the same time applying a template
17:22 bhosmer joined #salt
17:23 iggy you can't
17:23 tomasq Ben___: http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.archive.html
17:23 iggy best bet would be to file.recurse and then template whatever files you need inside
17:23 Ben___ One option would be to use file.managed on individual files for template application, but there are a large number of them to modify
17:23 spatry2015 hello friends.  I have a pillar file, users.sls with nested heriarchy.  And I'm trying to use the usernames from the list in a template file for ssh allowusers parameter.  Unfortunately, the template renders with the python syntax ssh_users: ['user1', 'user2'...].  I am using a for loop with salt[pillar.get]
17:24 iggy stevednd: yes and no (going to lunch now)... I'll be back
17:24 tomasq Ben___: and http://docs.saltstack.com/en/latest/ref/states/all/salt.states.archive.html
17:24 tomasq Definitely supports throwing archives around and managing them
17:24 [1]PredatorVI joined #salt
17:25 spatry2015 how can I get the template to render like so: AllowUsers user1 user2 user3 etc
17:25 sdm24 spantry2015: is the for loop in your state.sls file or the template?
17:25 forrest joined #salt
17:25 spatry2015 the forloop is in the template
17:26 stevednd iggy: curses. I need someone who can answer this simple question
17:26 stevednd iggy: my salt-master is currently from ubuntu packages. what's your recommendation for getting to a bootstrapped version?
17:26 stevednd would it be similar to doing the mininions and just uninstall the package, and then run the bootstrap script with the revision I want?
17:26 stevednd basically that. If you can, let me know when you get back
17:27 whytewolf archives do not support templates. and file.recurse with template will try parsing everything. thats just the facts of life. if the number of files that actually need to be templated is small. then file.managed those while file.recurse the rest. if you need most of the directory templated. file.recurse has an exclude pattern. setup 2 file.recurses.
17:28 sdm24 spatry2015: look at http://jinja.pocoo.org/docs/dev/templates/ and scroll down to the part with "1234" and stripping white space. I think what you want is something like https://gist.github.com/sdm24/31765b248618ecce15c0
17:29 sdm24 or maybe salt['pillar.get']('users').items() in the for loop
17:30 spatry2015 sdm24: thanks man.  gonna try this out real quick
17:30 XenophonF left #salt
17:31 sdm24 no problem. Hopefully it works
17:31 tedski iggy: any chance i could get a merge on that nagios-formula fix.  the commit you inquired about was left out of #18 by accident.
17:33 rideh joined #salt
17:34 spatry2015 sdm24:  thanks!  that did the trick.  was it the {%- endfor %} tag that stripped the formatting?
17:38 flebel joined #salt
17:38 KyleG joined #salt
17:38 KyleG joined #salt
17:39 sdm24 could be a couple things. If it is just printing ['user1', 'user2',], the problem could be that you are printing the {{ users}} list in the template, instead of the {{ user}} item. The {%- endor %} tag will remove the whitespace after {{ user }}. Otherwise it would add one space at the end of user1 and another space at the start of user2, which could mess up formatting
17:39 jdesilet joined #salt
17:40 thecosmicfrog joined #salt
17:40 VooDooNOFX joined #salt
17:41 thecosmicfrog Weird issue I'm having. When I target *nodegroups* (using salt -N), some of the Minions (always the same ones) do not respond/time out. Anyone see this before? salt '*' works perfectly.
17:41 thecosmicfrog I don't understand why this would even happen.
17:41 thecosmicfrog Behaviour survives a reboot/restart of the salt services.
17:42 Ben___ whytewolf: that is an option
17:42 spatry2015 sdm24: looks like the "-" is the magic stuff.  Initially, I'm just trying to generate a list of allowed users for ssh based on some custom grains.
17:43 Ben___ I need to customize approximately 50 file. Perhaps I can use a file.managed function inside a state that has a dependency on the untar state
17:43 X67r joined #salt
17:46 thecosmicfrog My issue seems to be the same as this one: https://github.com/saltstack/salt/issues/24660
17:46 saltstackbot [#24660]title: nodegroups not backwards compatible | With a 2015.5 master on a 2014.1 minion I get this error when targeting a nodegroup:...
17:50 iggy stevednd: i want to say i installed from source, removed packages, reinstalled from source
17:50 VooDooNOFX joined #salt
17:50 iggy it depends how much continuity you are having
17:50 iggy *wanting
17:52 linjan_ joined #salt
17:56 shaggy_surfer joined #salt
17:57 VooDooNOFX joined #salt
17:57 shaggy_surfer1 joined #salt
17:59 baweaver joined #salt
18:00 tedski iggy: did you have any other questions on that nagios-formula pr?
18:00 wt joined #salt
18:01 wt did the way that LazyLoading state modules works change in 2015.5.3?
18:01 wt I can no long include a state that installs pip and use pip.installed in the same file if pip is not already installed on the machine
18:03 Barbarossa joined #salt
18:03 Barbarossa Hi there
18:03 wt hi
18:04 Barbarossa I'm trying to build some master include state with some precomputed values from stuff stored in pillar and stored in variables, so this state can be included in other states of even jinja templates to provide direct access to those values, but it seems the variables aren't exportet
18:04 BradThurber joined #salt
18:05 Barbarossa So my master state (globals.sls) contains some {-% set XXX = <magic> %} lines
18:05 Barbarossa Is this a general knot in my mind and this doesn't work or is there a way to do something like this?
18:05 Barbarossa Maybe better store the precomputed stuff in pillar/grains?
18:06 Mate how do you include them?
18:07 Barbarossa {%- include "globals.sls" %}
18:07 Barbarossa even tried "with context" (which might be wrong)
18:07 sdm24 so you just want a {% from 'global.sls' import 'var1', 'var2' %} for one state, and a {% from 'global.sls' import 'var1', 'var5', %} for a different state?
18:07 murrdoc basepi:  does salt allow relative incldudes ?
18:08 Barbarossa something like that
18:08 murrdoc basepi:  like can i do include: - .filename instead of include: - path.to.filename
18:08 basepi murrdoc: tempted to give you a LMGTFG link. ;) http://docs.saltstack.com/en/latest/ref/states/include.html#relative-include
18:08 Barbarossa Is there no way to do {% from 'globals.sls' import * %} ?
18:08 basepi oops, i meant LMGTFY
18:09 sdm24 Maybe {% import 'global.sls' %}. I'm not sure
18:09 Barbarossa Jinja syntax error: expected token 'as', got 'end of statement block'; line 1
18:10 Barbarossa {%- import "globals.sls" %}    <======================
18:10 Barbarossa hm
18:11 sdm24 oh {% import 'global.sls' as variables %} and then to call them {{ [variables](var1) }}
18:11 BradThurber_ joined #salt
18:12 sdm24 never mind no brackets around variables
18:14 Barbarossa so variables(var1)?
18:14 Barbarossa That produces a stacktrace
18:15 Barbarossa TypeError: 'TemplateModule' object is not callable
18:15 Barbarossa {%- import 'globals.sls' as globals with context %}
18:15 Barbarossa {{ globals(HOSTNAME_DOT_SITE) }}
18:16 sdm24 yeah I'm playing around and trying to see what works
18:16 funzo joined #salt
18:16 Barbarossa globals.var1 works :)
18:16 Barbarossa Seems logical when thining of namespaces :)
18:16 Barbarossa Thanks!
18:16 sdm24 cool nice
18:18 dthom91 joined #salt
18:19 ingslovak joined #salt
18:21 VR-Jack well, not perfect, but at least it works. fixed https://github.com/saltstack/salt/issues/25318
18:21 saltstackbot [#25318]title: [orchestrate] Can't wheel accept keys in orchestrator (saltmod.py) | ```...
18:22 napsterX joined #salt
18:22 armguy joined #salt
18:24 timoguin joined #salt
18:24 VR-Jack Sadly, took some time to figure out how to update my 2015.5 forked branch on GH
18:27 evilrob joined #salt
18:30 Corey Is there anything profoundly stupid about an pkg.latest around salt-minion?
18:31 mnaser Corey: if at any point any breaking change comes out and you're unaware of it
18:31 mnaser could be a whole lot of minions going down
18:32 Corey mnaser: Oh, granted. But baseline in this env at the moment is 0.17.5. :-) And I'll be pulling from a locally managed repo.
18:32 baweaver joined #salt
18:32 mnaser Corey: it's up to you, i personally wouldn't do it, upgrades happening on their own is not usually good
18:33 mnaser i have sensu checking servers for any updates and after testing them, salt '*' pkg.upgrade
18:33 otter768 joined #salt
18:36 VR-Jack private repo is fine as long as you have tested prior to adding it to repo
18:38 sunkist joined #salt
18:49 baweaver joined #salt
18:49 Matthews_ joined #salt
18:50 malinoff_ joined #salt
18:53 indispeq does the orchestration runner have trouble parsing the salt.function execution? I try to insall a packge like so:
18:53 indispeq install_package:
18:53 indispeq salt.function:
18:53 indispeq - name: pkg.install
18:53 indispeq - tgt: '*'
18:53 indispeq - arg:
18:53 indispeq - pkg_name refres=True
18:54 indispeq *refresh, there, and there is no error
18:54 indispeq yet it does not install the package
18:54 ttrumm joined #salt
18:54 indispeq but if I run the command form the cli, it works fine with pkg.install pkg_name refresh=True
18:55 whytewolf put each argument on it's own line.
18:56 indispeq with the name of the arg, such as:
18:56 indispeq name: pkg_name
18:56 indispeq refresh: True?
18:56 indispeq does arg become args?
18:57 whytewolf nope it stays arg
18:57 whytewolf here is an example that works for me https://gist.github.com/whytewolf/dbe608986fe419e48e30
18:58 whytewolf [different function but you get the drift]
18:58 indispeq yes!
18:59 indispeq thank you so much, works very well
18:59 whytewolf the difference is your example was like salt '*' pkg.install "pkg_name refresh=true"
18:59 ALLmightySPIFF joined #salt
18:59 indispeq which lumped all the arguments into one as opposed to a list of each separate arg?
19:00 whytewolf correct.
19:00 pi3r6 joined #salt
19:00 indispeq awesome, thanks again.
19:00 whytewolf it counted that one argument as the full first argument
19:02 BradThurber joined #salt
19:03 bhosmer joined #salt
19:04 ahammond when scheduling orchestration using the scheduler, how do I specify which orchestration to run? http://docs.saltstack.com/en/latest/topics/jobs/schedule.html#runners is not clear
19:04 malinoff joined #salt
19:06 twork is there any reason to store DNS zone files in salt, rather than just, say, rcs or the like?
19:06 VR-Jack ahammond: I'm just guessing, but I suspect that example runs orchestrate.sls
19:06 iggy tedski: was out to lunch, let me look
19:06 tedski iggy: cool... sorry to bug ya... just trying to ship this and be done with it for the weekend :)
19:06 twork ...or other data-ish stuff as opposed to logic-ish
19:07 iggy tedski: done, I originally asked because I thought I was looking at the collectd-formula and was like "wtf is nrpe in collectd"
19:07 tedski haha
19:07 VR-Jack twork: I prefer storing them in hg/git personally
19:07 tedski iggy: much appreciated
19:07 iggy twork: my salt states are in git, so therefore my raw config files are as well
19:08 dopesong joined #salt
19:08 twork ok, yeah, "version control". RCS is what i'm inheriting but yeah, git would be better
19:08 iggy twork: one benefit of doing it all in salt... watch
19:09 forrest iggy: Is watch in chef or puppet yet?
19:09 forrest I don't really keep up with them at all
19:10 iggy neither do I
19:10 iggy I've done a fairly complex chef install before, but that was like 3 years ago... haven't really looked at anything other than salt for the past 2 years
19:10 forrest iggy: Yeah I managed a puppet infra about 3 years ago
19:10 VR-Jack twork: one reason I did zone files in hg was because they cross master boundaries. Of course, the setup/pull of the zone repo is done by salt
19:10 forrest and swore I'd never do it again
19:10 forrest and no chef at all, so I'm like 'no idea'
19:11 twork what's watch? i don't expect google to do me much good there and i'm in a hurry
19:11 twork or is there a 'salt watch' feature...?
19:11 forrest twork: Makes it so you can watch a file with a service, so if file A updates, service B will restart
19:12 forrest twork: Really the best part about it is it reduces the complexity of your dependency chain
19:12 twork oh, the command within salt
19:12 forrest you aren't doing some stupid crap where you load the file, then reload the service
19:12 forrest twork: yeah
19:12 twork forrest: good point
19:13 twork thanks guys
19:13 jngd joined #salt
19:13 danlsgiga joined #salt
19:13 iggy I notice I've been using listen a lot more lately
19:13 forrest listen is also good
19:13 pi3r6 joined #salt
19:13 twork what's the difference?
19:13 whytewolf watch happens right away, listen waits til the end of run
19:14 forrest iggy: Honestly listen in is just watch+
19:14 twork aha
19:14 forrest because people wanted it
19:14 forrest twork: Yeah it's great, it's like an evolved watch
19:14 murrdoc u suck forrest
19:14 ahammond VR-Jack I guess I'll test it and see what happens.
19:14 murrdoc (not even sure why)
19:14 forrest murrdoc: Fair enough
19:14 murrdoc hows life
19:14 murrdoc wheres iggy
19:14 forrest he's here
19:14 danlsgiga hey guys... I'm thinking on how to send an email for failed highstate runs using the smtp.send_msg state... any ideas?
19:14 forrest as always
19:15 bhosmer joined #salt
19:15 forrest danlsgiga: Reactor?
19:15 VR-Jack main reason for it was so you didn't end up reloading your service for every change, if I recall correctly
19:15 iggy murrdoc: I have nothing new to report
19:15 forrest murrdoc: Nothing new to report either
19:17 funzo joined #salt
19:17 murrdoc forrest:  where do u live
19:17 murrdoc and do u like your job
19:17 * murrdoc with the brazen hiring move
19:17 forrest I live in Seattle
19:18 murrdoc u suck
19:18 forrest You don't do remote?
19:18 danlsgiga forrest: Reactor is perfect, but I can't find a tag to the highstate failure event
19:18 forrest murrdoc: Don't you work for verizon anyways?
19:18 murrdoc maybe
19:18 forrest murrdoc: Not interested, would rather be unemployed.
19:18 iggy ouch
19:18 Heartsbane maybe is a fancy way to say Yes
19:18 murrdoc i figured all of that
19:18 mpanetta heh wow
19:19 forrest danlsgiga: I don't have a link off hand :\
19:19 murrdoc from 'i live in seattle'
19:19 murrdoc hippy
19:19 iggy ^
19:19 * forrest shrugs
19:19 forrest Verizon is a terrible company that does terrible things
19:19 murrdoc also totatlly kidding man
19:19 murrdoc its friday
19:19 forrest I know
19:19 iggy wash your birkenstocks
19:19 forrest I'm not, but I don't blame you for working there.
19:19 forrest iggy: Gross
19:19 mpanetta I used to work indirectly for vzn... Hated oit heh
19:20 iggy Verizon has a lot of different subsidiaries
19:20 danlsgiga forrest: This one? http://docs.saltstack.com/en/latest/topics/event/master_events.html
19:20 iggy they can't be all bad
19:20 iggy I mean after the hiring process anyway
19:20 mpanetta iggy: That is one of the problems.  They don't communicate with themselves well
19:20 forrest danlsgiga: Maybe, I haven't set up a job on failure with the reactor since it's still not in masterless, and I only run masterless currently :\
19:20 forrest danlsgiga: So I don't know
19:20 mpanetta Esp the networking side with the TV side...
19:21 timoguin joined #salt
19:21 danlsgiga forrest: Ok, no problem... I might be able to make it work with the Job Event " salt/job/<JID>/ret/<MID>      Fired each time a minion returns data for a job."
19:21 VR-Jack danlsgiga: I think you can do a quick orchestrate with -l debug and a wait_for_event and some non-existent event. It'll print all events that it doesn't match
19:22 forrest danlsgiga: That could work
19:22 forrest VR-Jack: Good idea as well
19:22 murrdoc state.event is how u can wait for events
19:22 murrdoc and using state.state.event in a state file
19:22 murrdoc u can script it
19:22 murrdoc is mui fun
19:22 napsterX joined #salt
19:23 danlsgiga murrdoc: Indeed! Thanks for the heads up
19:23 murrdoc point murrdoc
19:23 danlsgiga But for now I just want to send an email whenever a highstate run fails
19:24 iggy Verizon (TechCrunch’s parent parent company)
19:24 murrdoc oh cant do that
19:24 iggy see, subsidiaries everywhere
19:24 iggy can eventsd send an email on failure?
19:25 VR-Jack I thing it just sends a "result" event, though, and you have to pull the pass/fail from the dict passed to the event.
19:25 murrdoc your best option danlsgiga
19:25 murrdoc is to watch your returner for failures
19:25 murrdoc maybe setup salt-pad
19:26 iggy https://github.com/felskrone/salt-eventsd
19:26 murrdoc that needs mysql and stuff
19:26 murrdoc its work
19:26 iggy may be an option, haven't dug in too deep
19:26 murrdoc he could write a scheduled job that fires off, checks all jobs finished in the last 10 minutes or something
19:26 XenophonF joined #salt
19:26 murrdoc and check their return
19:27 iggy but yeah, salt doesn't have a `email_on_failure` option
19:27 murrdoc oooh write a custom returner!
19:27 murrdoc and on failure send email
19:27 forrest iggy: Salt is now unusable, abandon ship to cfengine
19:28 murrdoc dude forrest where in seattle
19:28 forrest murrdoc: In Seattle 'proper' or whatever you want to consider it
19:28 murrdoc downtown ?
19:28 sdm24 downtown? sodo? market district?
19:28 sdm24 u district?
19:28 iggy if I was going to write something, I'd go the route of writing something that watches the bus rather than a returner
19:28 danlsgiga I'm trying the Reactor first... lets see if it works
19:29 murrdoc point forrest
19:29 forrest North of wallingford, I don't want to say exactly, shit be logged.
19:29 forrest murrdoc: Why?
19:29 murrdoc in my mind its a game
19:30 murrdoc and danlsgiga is using your approach
19:30 murrdoc so point forrest
19:30 * murrdoc is totes bored
19:30 sdm24 heard that
19:31 forrest murrdoc: As long as it works for him, any approach is a win in my book
19:31 murrdoc fine be like that
19:32 iggy I love that about salt
19:32 iggy but when I was first getting started it was hard to come to grips with
19:32 forrest iggy: What portion? The extensibility?
19:32 VR-Jack only part I dodn't like is the QA
19:32 murrdoc the do it your way
19:33 forrest iggy: I still wish there was more 'this is the right way to do this exact thing' but there is a lot of stuff we just can't cover off the bat.
19:33 iggy yeah, the swiss army with a gun approach
19:33 forrest gotcha
19:33 forrest I guess more examples we could point people at
19:33 iggy I would like to see ss-states a bit more "maintained" (curated?)
19:34 iggy and maybe change the completely unfortunate name
19:34 murrdoc bring it into saltstack-formulas
19:34 murrdoc lets do it
19:34 dthom911 joined #salt
19:34 XenophonF i wish it were possible for salt to detect not only that a minion was running under vmware, but could also tell me which vmware product was hosting, because it looks like vmware tools for esx6 isn't compatible with guests running under fusion7 :/
19:34 XenophonF and i was kind of hoping one size fits all
19:34 VR-Jack can't ya grain that?
19:35 iggy like a "use this repo to roll out a nginx+django+redis+postgres cluster using salt-cloud and AWS"
19:35 iggy XenophonF: what does the virtual grain return on both of those?
19:35 dthom91 joined #salt
19:35 XenophonF "vmware" and that's it
19:35 * iggy suspects "VMWare" on both
19:36 iggy yeah, that's a pisser
19:36 XenophonF i thought maybe looking at other hardware details, but it's pretty generic
19:36 iggy you can certainly go to the level of reading cpuid leafs and find out
19:37 iggy leaves?
19:37 iggy whatevs, it's Friday
19:37 forrest XenophonF: Can you write a custom grain?
19:38 VR-Jack The info you want may be listed under DMI in dmesg. not sure as I only have this one vm player hanging out
19:38 forrest iggy: The formulas are already a lot of work to manage
19:39 linjan_ joined #salt
19:41 VR-Jack heh. I really need to remember to change the comment when I commit on GH
19:44 danlsgiga Exception caught by reactor: cmd_async() takes at least 3 arguments (2 given)
19:44 danlsgiga but I'm not using the cmd.run module in my reactor sls
19:44 XenophonF forrest: a custom grain might be possible
19:44 sdm24 when in doubt add * at the end
19:45 sdm24 please don't do that
19:46 XenophonF iirc salt gets all of the hardware info from wmi
19:46 danlsgiga here is my reactor sls file content http://pastebin.com/nDuMRafS
19:47 XenophonF i haven't looked at the code behind the virtual grain in a while so i don't remeber if it has enough information available to it to be able to distinguish among hypervisors (at least, not without a specialized api, which begs the question)
19:47 bhosmer_ joined #salt
19:48 danlsgiga forrest: http://pastebin.com/nDuMRafS
19:48 danlsgiga forrest: Does it make sense?
19:48 danlsgiga forrest: In my master conf I have "- 'salt/job/*/ret/*':     - /srv/reactor/send_mail.sls"
19:49 forrest danlsgiga: Quick glance it looks okay, but I can't dig deeper right now, have to handle some stuff, sorry :(
19:49 pipps99 joined #salt
19:49 danlsgiga forrest: no worries... I'll dig more
19:49 Tyrm joined #salt
19:51 Tyrm joined #salt
19:52 Nagyman_ joined #salt
19:53 murrdoc iggy:  forrest basepi https://gist.github.com/anonymous/857bf49775f607f667ee
19:53 murrdoc pkg_repo managed stinks
19:54 iggy danlsgiga: probably shouldn't have name there
19:54 iggy and recipient and message are required args
19:55 danlsgiga iggy: I'm taking these values from here http://docs.saltstack.com/en/latest/ref/states/all/salt.states.smtp.html
19:55 forrest murrdoc: You should create an issue.
19:55 iggy danlsgiga: ahh, I was looking at the module
19:56 Tyrm joined #salt
19:56 danlsgiga iggy: Is the local.smtp.send_msg correct? Or should it be runner.smtp.send_msg?
19:56 iggy runner would be for runners
19:56 markm joined #salt
19:57 iggy but I think local is for modules, not states
19:57 danlsgiga iggy: Yup, that's what I'm wondering too
19:58 sdm24 just came over this, will it help? http://docs.saltstack.com/en/latest/ref/returners/all/salt.returners.smtp_return.html#module-salt.returners.smtp_return
19:58 iggy sdm24: that returns _everything_ not just failures
19:58 sdm24 got it from the bottom part of http://docs.saltstack.com/en/latest/topics/reactor/index.html#a-complete-example
19:58 sdm24 but you could use it to only run when there is a failure, right?
19:58 iggy how?
19:58 sdm24 doing...stuff?
19:59 sdm24 I dunno i just stumbled on it and it seemed relevant
19:59 iggy like checking the return code in a reactor?
19:59 danlsgiga sdm24: I don't think I can send the email only in the case of failure
19:59 danlsgiga That's why we are looking at the reactor
20:00 whiteinge drawsmcgraw: slow reply to your GitHub question. GitHub and EC2 both do that HMAC signature verification thing you found. i haven't gone through that whole process yet. been wanting to (would be nice to toss a working example up somewhere).
20:00 danlsgiga I want to get an email only when a highstate fails
20:00 sdm24 oh wait yeah thinking more that just creates a bad loop of having the reactor run like a state that will use the returner
20:00 whiteinge drawsmcgraw: if you're interested in working backward from a working EC2 example you can reference this formula. github does a similar (but different) verification: https://github.com/saltstack-formulas/ec2-autoscale-reactor
20:02 aawerner joined #salt
20:06 mvensky joined #salt
20:08 omegamike joined #salt
20:09 mioli joined #salt
20:09 baweaver joined #salt
20:10 ekristen is there a way to generate a uuid/guid with salt?
20:10 danlsgiga so... While the reactor system uses the same basic data structure as the state system, the functions that will be called using that data structure are different functions than are called via Salt's state system. The Reactor can call Runner modules using the runner prefix, Wheel modules using the wheel prefix, and can also cause minions to run Execution modules using the local prefix.
20:11 pipps joined #salt
20:11 danlsgiga local.smtp.send_msg is not a state, it is the module... let me check the syntax for it
20:18 iggy 15:57 < iggy> but I think local is for modules, not states
20:23 napsterX joined #salt
20:27 danlsgiga forrest: Got it!! =)
20:29 danlsgiga forrest: Here is the correct syntax
20:29 danlsgiga forrest: http://pastebin.com/pMddj6Tm
20:29 danlsgiga iggy: http://pastebin.com/pMddj6Tm
20:29 danlsgiga sdm24: http://pastebin.com/pMddj6Tm
20:30 mimiandi joined #salt
20:30 mimiandi hey chaps
20:31 alemeno22 joined #salt
20:31 mimiandi having problem with using grains --
20:31 mimiandi with compound
20:31 mimiandi like for example salt -C 'E@nameofhost.* and G@osrelease:6.5' test.ping doesnt return anything
20:31 pi3r7 joined #salt
20:32 mimiandi but if i use either one of them separately i get the results without any problem
20:32 mimiandi this is on 2015.5.3
20:32 mimiandi anyone having similar issue?
20:33 Nagyman_ anyone using the salt provisioner vagrant plugin? having issues with the specified minion keys differing on the VM after provisioning. salt master has the right key, but the minion doesn't. using the `minion_key` `minion_pub` config.
20:33 forrest danlsgiga: Good to know thanks.
20:33 forrest Nagyman_: https://github.com/UtahDave/salt-vagrant-demo/blob/master/Vagrantfile Look at that example.
20:33 otter768 joined #salt
20:34 iggy danlsgiga: now blog that everywhere (it's a commonly asked question, but I've never actually seen anyone do the work)
20:35 forrest iggy: danlsgiga ++
20:35 Nagyman_ forrest: yeah, that's what I'm basing my attempt on.. https://gist.github.com/Nagyman/9c3374558b7855526065
20:36 luch0 joined #salt
20:36 sdm24 mimiandi: maybe a silly question, but do you have any minions that match both of those qualifiers?
20:36 iggy mimiandi: works for me
20:36 sdm24 I just used compounds in 2015.5.3 and it worked fine
20:36 danlsgiga iggy: This information was crucial: "While the reactor system uses the same basic data structure as the state system, the functions that will be called using that data structure are different functions than are called via Salt's state system. The Reactor can call Runner modules using the runner prefix, Wheel modules using the wheel prefix, and can also cause minions to run Execution modules using the local prefix."
20:37 iggy mimiandi: sudo salt -C 'E@.*test.* and G@osrelease:6.6' test.ping
20:37 danlsgiga iggy: From here: http://docs.saltstack.com/en/latest/topics/reactor/#understanding-the-structure-of-reactor-formulas
20:37 nzero joined #salt
20:38 danlsgiga iggy: forrest is that possible to put this trick in salt's reactor documentation?
20:39 forrest danlsgiga: Sure, make a PR
20:39 iggy danlsgiga: the docs are integrated into the saltstack source, so just do a PR
20:40 forrest danlsgiga: https://docs.saltstack.com/en/latest/topics/development/contributing.html and https://github.com/saltstack/salt/blob/develop/doc/topics/reactor/index.rst
20:40 danlsgiga iggy: forrest perfect! Will do!
20:40 Tyrm joined #salt
20:40 forrest danlsgiga: Awesome! They might ask you to move it to a different file but I doubt it if you phrase it as an example, the reactor docs need to be rewritten anyway
20:41 Zachary_DuBois joined #salt
20:41 danlsgiga forrest: Ok... let's see if they will accept! Thanks!
20:42 forrest danlsgiga: They're pretty easy going, I mean they let me contribute, so it shouldn't be bad if you follow the contribution guide :)
20:43 danlsgiga forrest: ;)
20:44 ajw0100 joined #salt
20:44 danlsgiga forrest: I'll make some more tests and then I submit a PR. ;) I'm getting an ugly email!
20:44 forrest danlsgiga: Sounds good, ugly is better than nothing!
20:44 napsterX joined #salt
20:45 herpoderp joined #salt
20:45 danlsgiga forrest: Indeed! This simple reactor makes a lot difference... knowing which minions are failing on the highstate run is awesome!
20:45 dendazen joined #salt
20:45 forrest danlsgiga: For sure
20:47 jaybocc2_ joined #salt
20:47 iggy danlsgiga: I'm assuming you've tested that and it does what's expected?
20:47 funzo joined #salt
20:48 danlsgiga forrest: The message formatting is more a Jinja tweak... The Reactor per se is working flawlessly
20:48 Nagyman_ I'm guessing the salt boostrap automatically creates keys on minions. trouble is how to accept the key automatically on master. seed_master works and copies the minion key to master. but `minion_key/pub` is seemingly ignored.
20:48 iggy danlsgiga: some example output of what the email looks like would be cool too
20:48 danlsgiga iggy: I'm still doing more tests, but so far it's working as expected
20:49 danlsgiga iggy: you mean here or in the doc?
20:49 krymzon joined #salt
20:49 sdm24 is there a way to make saltutil.clear_cache also clear out the directories? I have a whole bunch of empty directories in cache/salt/minion/file_backup
20:50 iggy danlsgiga: in the doc
20:50 danlsgiga iggy: yeah, sure! That's why I'm trying to make the email content more fancy
20:51 drawsmcgraw whiteinge: Thanks! Also -> holy crap, a Reactor state file can just be a Python file??? I can totally do that.
20:51 sdebot joined #salt
20:51 drawsmcgraw I mean, it'll be a while to get back to it, but if I can make it work, I'll definitely post an example
20:52 whiteinge cool! i strayed just a little down that road. started working on the hashutil module specifically for the GitHub HMAC sig but i wasn't able to complete.
20:52 whiteinge http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.hashutil.html#module-salt.modules.hashutil
20:52 iggy I wish more people would submit stuff to saltstarters.org
20:52 whiteinge ping me if you get stuck anywhere. i'd love to see this working. :)
20:53 drawsmcgraw Will do! Thanks again!
20:54 iggy so people don't think bechtoldt is a "prolific" contributor
20:55 whiteinge haha
20:56 DammitJim joined #salt
20:56 Tyrm joined #salt
20:57 whiteinge let's add links to it in the docs. formulas docs, contribution docs, etc. a "community resources" sidebar kind of thing
20:58 drawsmcgraw That would help a lot - I keep forgetting that saltstarters is a thing.
20:58 subsignal joined #salt
21:03 Tyrm joined #salt
21:04 Tyrm joined #salt
21:07 ponpanderer joined #salt
21:07 ponpanderer hello, is there a config on the salt-master to auto-reject all minions submitting keys to effectively only allow pre-seeded keys?
21:08 peters-tx joined #salt
21:10 iggy ponpanderer: autoreject_file maybe
21:11 sdm24 Although a bit of warning from the docs: Will override both membership in the autosign_file and the auto_accept setting.
21:12 iggy I saw that, was why I said "maybe"
21:15 tiadobatima joined #salt
21:16 ponpanderer hmm that could work for me as i  don't use any auto-sign. the goal is to be 100% pre-seeded either manually or via salt-cloud. does the autoreject_file a glob like the autosign where I could just drop a * in? support i could just check that...
21:24 iggy afaik, yes
21:24 spark_ joined #salt
21:25 ponpanderer nice. didn't notice before that the autoreject supported glob and regexes so never thought to use it to reject incoming keys. thanks for the suggestion!
21:26 baweaver joined #salt
21:27 denys_ joined #salt
21:29 iggy ^5
21:29 iggy it's Friday too!
21:31 sdm24 If I have a pillar schedule use minutes: instead of seconds:, along with a splay:, will the splay be in minutes or seconds?
21:32 iggy "The amount of time in seconds"
21:32 VR-Jack once a patch is merged, do you need to update the bug report, or will they get notified that a bug fix was applied and mark it fixed themselves?
21:33 sdm24 must've missed that :( thanks iggy
21:34 danlsgiga iggy: forrest instead of trying to make the mail body content fancy and sending the job return I'm thinking on sending only the JID, then the sysadmin will be able to check the full return using salt-run... sounds good?
21:35 forrest danlsgiga: Fine by me, as long as it provides a good example
21:35 iggy danlsgiga: that'd probably be good for the example in the docs
21:35 pi3r7 joined #salt
21:35 iggy people can tweak further if they so choose
21:36 Tod-Work joined #salt
21:36 danlsgiga Ok... got it! ;)
21:38 dthom91 joined #salt
21:40 mimiandi iggy:  by each match it works fine
21:40 mimiandi iggy: but using and with compound it doesnt
21:40 mimiandi Minion did not return. [Not connected]
21:40 mimiandi i get that ..
21:41 iggy mimiandi: try putting a .* in front of the name too? salt minionname* grains.get osrelease
21:41 danlsgiga iggy: forrest Beautiful! I'm just sending an email with the subject: minion1.com has failed the highstate run! and the email body I have: Please run "salt-run jobs.lookup_jid 20150807154002550952" in Salt Master to see the job execution details
21:43 iggy sounds great
21:43 mimiandi iggy: like i said it works fine with just single filter
21:43 mimiandi like salt nameofmiion grains.get osrelease works fine
21:45 iggy does it say 6.5?
21:45 mimiandi iggy: yes :)
21:46 prwilson joined #salt
21:47 iggy dunno then
21:47 mimiandi iggy: :)
21:47 iggy as I said, worked fine for me on 2015.5.3
21:56 mimiandi iggy: yeah pillar compounds are working find with globbing
21:56 mimiandi it seems like grain compounds are not working well for me
21:56 rhodgin joined #salt
22:00 spark_ joined #salt
22:01 spark__ joined #salt
22:04 prwilson joined #salt
22:08 mimiandi as stupid as it sounds
22:08 Brew joined #salt
22:08 napsterX joined #salt
22:09 mimiandi i did saltutil.sync_modules didnt work .. but restarting the minion and it works on that minion
22:10 iggy try refresh_pillar
22:11 prwilson joined #salt
22:12 mimiandi eh? why pillar?
22:12 mimiandi its grain i am having problem with
22:15 iggy I think refresh_pillar syncs the grains back to the master
22:15 baweaver joined #salt
22:15 mimiandi will try that with next minion if i see one
22:15 mimiandi thanks
22:16 digitalhero joined #salt
22:17 jalbretsen joined #salt
22:23 shaggy_surfer joined #salt
22:25 digitalh_ joined #salt
22:25 shaggy_surfer joined #salt
22:29 DanyC joined #salt
22:30 bfoxwell joined #salt
22:31 conan_the_destro joined #salt
22:33 funzo joined #salt
22:34 otter768 joined #salt
22:39 napsterX joined #salt
22:39 DanyC Hi, i'm runing latest salt version and what i see is first time when i run highstate is very slow, more than 10 min. on the pastebin http://paste.openstack.org/show/412240/ you can see how my minion is configured and some stats.
22:41 nzero joined #salt
22:41 forrest_ joined #salt
22:43 campee_ joined #salt
22:43 DanyC on http://paste.openstack.org/show/412241/ i have also attached the reactor cfg where i auto accept the keys. Any ideas where i should dig would be much appreciated!
22:47 ajw0100_ joined #salt
22:51 DanyC Could be that it takes a while for reactor to kick in and accept the keys ?
22:51 jmreicha_ joined #salt
22:51 markm joined #salt
22:54 CheKoLyN joined #salt
22:58 VR-Jack DanyC: I think it has more to do with having to change 115 items
22:58 VR-Jack especially if some are package updates which requires downloading packages
22:59 unused_PhD joined #salt
22:59 VR-Jack pkg managers are notoriously slow, and thus pkg.* is slow as well
23:00 DanyC VR-Jack: thanks for reply. Is any way i can pin point this is the case? cause when i look in the report i don't see a high time value for each item.
23:01 DanyC VR-Jack: the yum repo is all localhost since i have a local mirror as i can't go to wide internet
23:07 VR-Jack have you tried just adding all the times up?
23:10 VR-Jack DanyC: you're only talking a max of 5.56 seconds per change average on your first run, and that's not subtracting the time to run things that didn't make changes or the startup/shutdown times
23:10 jmreicha joined #salt
23:11 otter768 joined #salt
23:12 zsoftich2 joined #salt
23:16 DanyC VR-Jack: check this new pastebin where i've uplaoded the minion logs for the 1st run http://paste.openstack.org/show/412243/  I have highlighted in === block the big time wasted
23:20 VR-Jack DanyC: well, that's definitely 3.5 of your 10 minutes. Forgot about initial caching.
23:22 DanyC VR-Jack: is it expected to take that long for the inital caching? Cause my /srv/base/salt has 148 directories, 180 files; my /srv/pillar has 2 directories, 10 files
23:22 XenophonF left #salt
23:23 VR-Jack DanyC: presume that depends on the network, but I'd say it's possible. Not sure what the _utils/ is
23:26 baweaver joined #salt
23:26 DanyC VR-Jack: and let's say i can deal/ accept the inital caching but what i don't get is why after the "Caching directory '_utils/' for environment 'base' " until "Loading fresh modules for state activity" no activity took place between my minion and master
23:27 DanyC VR-Jack: as ofr the _utils/ dir i have no clue either... have searched run find / -name "_utils" but no result
23:29 kermit joined #salt
23:30 dthom91 joined #salt
23:30 VR-Jack DanyC: I'd expect it to be around /var/cache/salt/minion/files/base
23:33 VR-Jack DanyC: salt '*' saltutil.sync_utils will resync that directory.
23:33 Tyrm joined #salt
23:39 ajw0100 joined #salt
23:39 napsterX joined #salt
23:41 mohae joined #salt
23:42 DanyC VR-Jack: i can find  /var/cache/salt/minion/files/base/ dir on the minion but there is not _utils dir present
23:44 ajmath joined #salt
23:45 omegamike joined #salt
23:46 mohae joined #salt

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