Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-02-10

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

All times shown according to UTC.

Time Nick Message
00:02 oz_akan_ joined #salt
00:08 ajw0100 joined #salt
00:20 tvle joined #salt
00:26 joehoyle joined #salt
00:27 joehoyle Hey everyone. Is it possible to specify the master to pull from in state.highstate. I have 2 masters, if I update the sls files on master A, and run highstate from master A, it doesn't necessarly pull the sls files from that master
00:30 monokrome joined #salt
00:33 Ahlee Really?  I was under the impression in multimaster the minions always repsonded to the master that sent the request
00:34 Ahlee but, i've only used multimasters with gitfs
00:37 jalbretsen joined #salt
00:45 schism_ joined #salt
00:46 ggoZ joined #salt
00:49 ajw0100 joined #salt
00:50 elithrar joined #salt
00:51 cachedout joined #salt
00:52 cedwards `.
00:54 manfred there is no way to use svnfs and do a shallow clone is there?
00:54 manfred or --depth=empty
01:01 n8n joined #salt
01:01 joehoyle Ahlee: doesn't appear to be, as soon as I updated the sls files on Master B, the minion provisioned the updates
01:02 joehoyle Ahlee: though I might look into gitfs, sounds interesting
01:02 oz_akan_ joined #salt
01:08 cachedout joined #salt
01:15 [diecast] joined #salt
01:16 [diecast] joined #salt
01:20 schism_ left #salt
01:22 xzarth joined #salt
01:26 jpaetzel joined #salt
01:27 kedo39 joined #salt
01:30 joehoyle joined #salt
01:36 patrek_ joined #salt
01:38 anitak joined #salt
01:46 favadi joined #salt
01:47 twiedenbein joined #salt
01:54 manfred hrm... gitfs doesn't like me.
01:56 cellofellow joined #salt
01:56 manfred it appears to only work on files, and possibly not on full directories
01:57 oz_akan_ joined #salt
01:57 manfred hrm, not even working on that either :/
01:59 Furao joined #salt
02:02 yomilk_ joined #salt
02:07 vejdmn joined #salt
02:40 xl1 joined #salt
02:47 zzzirk joined #salt
02:50 manfred has anyone gotten gitfs to work with file.recurse?
02:50 zz_cro joined #salt
02:52 ravibhure joined #salt
02:54 kedo39 joined #salt
02:56 ravibhure1 joined #salt
02:57 oz_akan_ joined #salt
02:59 LLKCKfan joined #salt
03:01 dstanek joined #salt
03:08 pdayton joined #salt
03:11 fllr joined #salt
03:14 fllr Hey guys. I ran highstate twice on one of my machines. https://gist.github.com/felipellrocha/7fc56cca47ba4f90abe1 The weird thing is that each time I ran highstate, salt loaded different pillar data. After doing this for a while, it seems like salt is (somehow) alternating between my local pillar, and my prod pillar. Here is my top pillar file: https://gist.github.com/felipellrocha/57582cc1c53cf5d041ef it loads my prod data by d
03:14 fllr efault, and overrides that with my local data in case it's my local machine.
03:18 _david_a joined #salt
03:19 brucewang joined #salt
03:20 utahcon joined #salt
03:21 rostam joined #salt
03:22 dccc_ joined #salt
03:22 Corey joined #salt
03:24 schristensen joined #salt
03:25 djaykay joined #salt
03:29 joehoyle joined #salt
03:29 jankowiak joined #salt
03:29 wolfpackmars2 joined #salt
03:33 dave_den manfred: yes re gitfs file.recurse. what is the problem you are having?
03:36 dave_den fllr: you need to specify the match type in your top.sls   e.g.  - match: pcre
03:39 fllr dave_den: I don't understand though... the id is set, why would i need to specific the match also?
03:41 dave_den this is not a valid glob matcher: 'targaryen*|stark*|lannister*|tyrell*'
03:44 dave_den fllr: http://docs.saltstack.com/topics/targeting/index.html
03:44 fllr dave_den: then why does it work *sometimes*?
03:45 dave_den it shouldn't
03:49 fllr dave_den: I guess I'll file a bug report later then... =p
03:50 dave_den fllr: do you get consistent data when doing 'pillar.data'?
03:52 joehillen joined #salt
03:57 fllr dave_den: Ummmm, don't know... let me check
03:59 fllr dave_den: looks like it
04:02 dave_den fllr: what versions for minion and master? what are your file_roots and pillar_roots on master
04:02 dave_den master:   salt --versions-report
04:02 dave_den minion: salt-call --versions-report
04:03 gamingrobot joined #salt
04:04 fllr dave_den: https://gist.github.com/felipellrocha/355a24e24b20b527aa36
04:10 dave_den and file_roots/pillar_roots?
04:10 manfred dave_den: it just says it doesn't exist
04:11 dave_den manfred: have you commited the directory to your git repo?
04:12 manfred yes
04:12 manfred http://paste.gtmanfred.com/J2ptN/
04:12 manfred if i switch to file.managed, and pull one of the files from teh directory it works fine
04:12 manfred salt://dunst-git/
04:12 manfred http://gtmanfred.com/~daniel/salt-gitpkgbuilds/
04:13 kermit joined #salt
04:16 dave_den manfred: and does dunst-git exist in any of your file_roots?
04:17 manfred it does not
04:18 manfred dave_den: do you use gitpython or pygit2 ?
04:18 stewpot joined #salt
04:18 dave_den manfred: gitpython
04:18 stewpot i am currently looking to automatically provision a set of different dns records when a server is deployed using salt. I am unsure where I should be looking to write modules to have that functionality
04:18 manfred hrm
04:18 stewpot tbh i am not even sure that it's even a module that I should write
04:19 rojem joined #salt
04:19 manfred dave_den: http://paste.gtmanfred.com/hZaxs/ that is what i want to work, on a server named dunst-git.package.gtmanfred.com
04:20 rojem joined #salt
04:20 manfred grains['host'] correctly turns into dunst-git
04:20 dave_den stewpot: there are multiple ways to accomplish that. one would be to fire an event after your minion is deployed
04:20 dave_den manfred: and what's the exact error reported by salt?
04:21 ajw0100 joined #salt
04:21 stewpot dave_den: what's the best way to do that? (I am new and it's a rapid learning curve)
04:23 manfred stewpot: http://docs.saltstack.com/topics/reactor/
04:23 dave_den stewpot: to fire an event from a state run, you would call http://docs.saltstack.com/ref/modules/all/salt.modules.event.html#salt.modules.event.fire_master  from the state module http://docs.saltstack.com/ref/states/all/salt.states.module.html
04:24 dave_den and you would set your master to listen for the event and start a reactor when it sees it. manfred posted teh doc ref for reactors
04:24 middleman_ joined #salt
04:24 manfred dave_den:
04:24 stewpot thanks guys
04:24 manfred 2014-02-10 04:24:03,129 [salt.state       ][INFO    ] Executing state file.recurse for /srv/dunst-git/
04:24 manfred 2014-02-10 04:24:03,615 [salt.state       ][ERROR   ] The directory 'salt://dunst-git/' does not exist on the salt fileserver
04:24 manfred 2014-02-10 04:24:03,615 [salt.state       ][INFO    ] Completed state [/srv/dunst-git/] at time 04:24:03.615055
04:24 stewpot i will read up and ask more questions if i have anymore
04:25 bemehow joined #salt
04:25 manfred that is all i can find
04:26 manfred but it i switch it to salt://{{ grains['host'] }}/PKGBUILD and file.managed, it works fine
04:30 dave_den manfred: if you remove '- minion' from your fileserver_backends does it work?
04:30 manfred it does not
04:31 quanta_ joined #salt
04:32 zzzirk joined #salt
04:32 dave_den hrm. not sure what's up. works great for me
04:33 dave_den other than turning up the level in the master and minion logging i'm out of ideas
04:34 yomilk joined #salt
04:34 kermit joined #salt
04:35 kermit joined #salt
04:35 stewpot dave_den: just reading the reactor system documentation it points out 'salt/minion/*/start' is that a relative path somewhere?
04:35 manfred no path
04:35 dave_den it's just an event tag
04:35 manfred it is just an event tag
04:35 manfred heh
04:35 stewpot ahh okay sweet
04:35 stewpot thanks guys
04:35 fllr dave_den: Sorry, I'll get your file_roots and pillar_roots. I got really concentrated on getting this thing deployed. Lol
04:36 dave_den no worries
04:37 fllr dave_den: https://gist.github.com/felipellrocha/47cb32a692228c462cb5
04:38 manfred meh, I am going to figure it out tomorrow
04:38 manfred have a good one yall
04:38 dave_den see ya
04:39 quanta_ I would like to show the exception to the user if a custom module run fails. Here's my code: https://gist.github.com/quantonganh/8910450
04:39 dave_den fllr: hrm, if pillar.data is consistent, then i am not sure why pillar in highstate would not be consistent
04:40 fllr dave_den: so bug report? I mean, the weirdest thing is that it keeps alternating between dev data and prod data...
04:40 quanta_ Running on the minion with salt-call is working fine "CommandExecutionError: Error: key retrieval failed: gpg: no valid OpenPGP data found."
04:40 quanta_ But running on the master, it only shows "Module function debmirror.created threw an exception"
04:41 dave_den fllr: did you fix your mather type like i mentioned earlier?
04:41 dave_den matcher
04:41 dave_den quanta_: is this a runner module?
04:41 fllr dave_den: No, not yet... though, in my view, whatever I put on my top.sls should either always work or never work... never kinda work
04:42 quanta_ dave_den: No, it's normal module to create a local repo on Ubuntu with debmirror
04:42 dave_den fllr: in theory. i am just interested if you have a proper configuration that the behavior still happens
04:43 fragamus joined #salt
04:48 strgcloud joined #salt
04:51 dave_den quanta_: hrm, commandexecution error should display the message on the master. how are you calling it from the master?
04:51 ndrei_ joined #salt
04:52 anuvrat joined #salt
04:53 quanta_ dave_den: sudo salt minionid state.sls salt.archive.mirror
04:55 joehoyle joined #salt
04:58 oz_akan_ joined #salt
04:58 dave_den quanta_: ah, i am not sure how you would display the exception if it's called from a state file run
05:03 kalloc joined #salt
05:04 joehoyle joined #salt
05:09 thayne joined #salt
05:20 rhand joined #salt
05:40 kolaman joined #salt
05:42 ravibhure joined #salt
05:44 cnelsonsic joined #salt
05:44 kermit joined #salt
05:45 kermit joined #salt
05:58 oz_akan_ joined #salt
06:03 ndrei joined #salt
06:09 Ryan_Lane joined #salt
06:10 giantlock joined #salt
06:12 philipsd6 joined #salt
06:18 kalloc joined #salt
06:20 synfin joined #salt
06:28 Mua joined #salt
06:36 Psyke joined #salt
06:39 strgcloud joined #salt
06:42 ndrei joined #salt
06:48 kalloc joined #salt
06:53 passenger joined #salt
06:58 passenger how to install the purge the passenger from minion i have pasted my pkg contents and result in this link http://pastebin.com/XVcFBKwz
06:59 passenger let me know how to stop and purge passenger
06:59 oz_akan_ joined #salt
07:00 gammalget joined #salt
07:00 kolaman joined #salt
07:05 jkleckner joined #salt
07:06 kolaman joined #salt
07:07 fllr joined #salt
07:08 favadi joined #salt
07:10 phusion_ joined #salt
07:13 kolaman joined #salt
07:14 passsenger joined #salt
07:17 passsenger i have tried to purge the and stop the phusion passenger by pkg but failed to do it. please check this link http://pastebin.com/XVcFBKwz and let me know what needs to be done to purge and stop the passenger
07:18 kolaman joined #salt
07:26 hanbing joined #salt
07:27 retr0h joined #salt
07:28 hanbing hi
07:33 passsenger let me know
07:34 quanta_ joined #salt
07:44 ndrei joined #salt
07:46 tomspur joined #salt
07:46 tomspur joined #salt
07:51 Kenzor joined #salt
08:00 oz_akan_ joined #salt
08:03 fllr joined #salt
08:05 iri- joined #salt
08:08 balboah joined #salt
08:09 harobed joined #salt
08:10 zh_zh joined #salt
08:14 carlos joined #salt
08:14 oleg joined #salt
08:20 giantlock_ joined #salt
08:22 stotch joined #salt
08:23 zooz joined #salt
08:23 smkelly joined #salt
08:23 lyddonb joined #salt
08:23 Pate_ joined #salt
08:23 dpn` joined #salt
08:24 Vye joined #salt
08:34 kolaman joined #salt
08:42 Katafalkas joined #salt
08:46 Shenril joined #salt
08:47 pkg joined #salt
08:47 kiorky joined #salt
08:48 pkg i have tried to purge the and stop the phusion passenger by pkg but failed to do it. please check this link http://pastebin.com/XVcFBKwz and let me know what needs to be done to purge and stop the passenger
08:48 mike25ro joined #salt
08:48 kalloc joined #salt
08:50 quanta_ left #salt
08:52 yomilk joined #salt
08:52 yomilk_ joined #salt
08:55 miguitas joined #salt
08:58 Iwirada joined #salt
09:00 oz_akan_ joined #salt
09:04 fllr joined #salt
09:05 kadel joined #salt
09:09 slav0nic joined #salt
09:17 rowleyaj joined #salt
09:21 echos joined #salt
09:24 werewolf13 joined #salt
09:30 aleszoulek joined #salt
09:32 gnugnu1 joined #salt
09:33 n8n joined #salt
09:35 Poooogles joined #salt
09:38 gw joined #salt
09:40 Furao joined #salt
09:41 lpn joined #salt
09:41 lpn hello
09:44 Nexpro1 joined #salt
09:47 Furao_ joined #salt
09:50 bemehow joined #salt
09:52 carlos joined #salt
09:55 scott_w joined #salt
09:56 Damoun joined #salt
10:01 oz_akan_ joined #salt
10:03 oz_akan__ joined #salt
10:04 Valdo joined #salt
10:04 fllr joined #salt
10:06 yomilk joined #salt
10:07 ndrei joined #salt
10:08 felskrone joined #salt
10:09 gnugnu1 joined #salt
10:13 carlos joined #salt
10:18 mattikus` joined #salt
10:19 yota joined #salt
10:25 carlos joined #salt
10:26 ranl joined #salt
10:26 ranl Hi all
10:27 ranl someone maybe knows how can I enumerate a nodegroup .. ?
10:34 iri- joined #salt
10:34 yomilk joined #salt
10:46 MrTango joined #salt
10:46 stewpot is there a way to get mysql module to query a remote server? I tried to configure the local minion with the remote server ip but it doesn't work
10:48 simonmcc would you expects salt-call to exit with non-zero on a failed compile/converge?
10:49 stewpot ranl: {% for node in nodegroup: %} ?
10:51 joehoyle joined #salt
10:52 elfixit joined #salt
10:55 n8n_ joined #salt
10:57 Katafalkas joined #salt
11:04 oz_akan_ joined #salt
11:04 fllr joined #salt
11:09 joehoyle joined #salt
11:13 joehoyle joined #salt
11:22 joehoyle joined #salt
11:29 20WAA5U1U joined #salt
11:33 kalloc joined #salt
11:38 tinyhippo left #salt
11:42 mike25ro hi guys    i am running a command :  salt 'minion' cmd.script salt://app/files/script.sh   Is it possible to have the script.sh exit code returned to salt?
11:43 gnugnu1 joined #salt
11:43 zzzirk joined #salt
11:57 diegows joined #salt
11:59 SkyRocknRoll joined #salt
11:59 SkyRocknRoll joined #salt
12:00 n8n joined #salt
12:00 gnugnu1 joined #salt
12:02 ndrei joined #salt
12:03 smkelly joined #salt
12:03 dpn` joined #salt
12:04 fllr joined #salt
12:04 jphall joined #salt
12:05 gnugnu1 joined #salt
12:06 carlos joined #salt
12:07 stotch joined #salt
12:09 melinath joined #salt
12:09 Kyle- joined #salt
12:09 stotch joined #salt
12:09 Vye joined #salt
12:10 lyddonb joined #salt
12:11 mattikus` joined #salt
12:17 ggoZ joined #salt
12:19 Simon_ joined #salt
12:23 ndrei joined #salt
12:27 kalloc joined #salt
12:30 kolaman joined #salt
12:32 razor joined #salt
12:33 packeteer joined #salt
12:39 brianhicks joined #salt
12:40 ndrei joined #salt
12:43 tessellare joined #salt
12:45 carlos joined #salt
12:46 zzzirk joined #salt
12:46 blee joined #salt
12:52 ndrei joined #salt
12:54 gadams999 joined #salt
12:57 miguitas_ joined #salt
13:03 blee_ joined #salt
13:04 fllr joined #salt
13:06 giantlock__ joined #salt
13:06 gwmngilfen joined #salt
13:09 joehoyle joined #salt
13:23 oz_akan_ joined #salt
13:26 krak3n` joined #salt
13:27 oz_akan_ joined #salt
13:27 vejdmn joined #salt
13:29 jcsp joined #salt
13:30 bagel_nimbius joined #salt
13:30 bagel_nimbius hi salt.  is there a templating system?
13:30 bagel_nimbius for configuration files I may need to push to services.
13:31 ranl stewpot: what is the `nodegroup` ? a string that represent the group name ? I've ended up using mine.get for it ...
13:36 sgviking joined #salt
13:37 miguitas bagel_nimbius: http://docs.saltstack.com/ref/renderers/all/salt.renderers.jinja.html
13:37 ndrei joined #salt
13:39 bagel_nimbius miguitas: brilliant.  thank you :)
13:39 bagel_nimbius left #salt
13:41 jslatts joined #salt
13:41 wunki joined #salt
13:43 wunki I keep getting this warning:  https://gist.github.com/wunki/529af6b97f2567976a47 , but the salt versions are exact the same on master/minion.
13:44 wunki I'm hoping fixing this could also fix my minions dropping after a few seconds
13:44 rcsheets wunki: you could try turning on pub message signing
13:45 wunki rcshoots: setting for the master?
13:45 rcsheets wunki: sure, see what it does
13:45 * rcsheets is not an expert
13:48 debaser joined #salt
13:51 Mua joined #salt
13:51 terminalmage joined #salt
13:51 rowleyaj joined #salt
13:53 patrek joined #salt
13:53 Mua_ joined #salt
13:56 timoguin joined #salt
13:57 Damoun joined #salt
13:58 debaser left #salt
13:59 patrek joined #salt
13:59 fii joined #salt
14:00 fii Afternoon/Morning
14:00 debaser joined #salt
14:01 jaimed joined #salt
14:01 fii We've just set up VMs using salt-cloud and we can see them when we run salt-key -L
14:01 fii However, we don't see any salt configs on the minions
14:01 fii Are we missing anything ?
14:04 fllr joined #salt
14:05 fii We're usning AWS
14:05 fii Can anyone help plz
14:08 Gifflen joined #salt
14:10 Teknix joined #salt
14:13 oz_akan_ joined #salt
14:13 juicer2 joined #salt
14:15 jankowiak joined #salt
14:15 abe_music joined #salt
14:18 elfixit joined #salt
14:19 fii left #salt
14:22 dansoap joined #salt
14:22 dansoap joined #salt
14:23 mpanetta joined #salt
14:24 mpanetta joined #salt
14:25 vejdmn joined #salt
14:26 ravibhure joined #salt
14:27 racooper joined #salt
14:27 dansoap left #salt
14:30 kalloc joined #salt
14:35 mgw joined #salt
14:36 jrdx joined #salt
14:38 fllr joined #salt
14:39 halfss joined #salt
14:40 JasonSwindle joined #salt
14:40 Saint-N joined #salt
14:40 fllr joined #salt
14:40 ndrei joined #salt
14:40 gnugnu1_ joined #salt
14:44 Nazca__ joined #salt
14:51 ipmb joined #salt
14:52 quickdry21 joined #salt
14:56 pass_by_value joined #salt
14:56 ekristen joined #salt
14:56 kalloc_ joined #salt
14:57 toastedpenguin joined #salt
14:57 ekristen anyone ever have ec2 instances not have /etc/resolv.conf populated?
14:59 mgw joined #salt
14:59 ndrei joined #salt
15:03 GradysGhost joined #salt
15:04 fllr joined #salt
15:06 jeremyBass1 joined #salt
15:10 Katafalk_ joined #salt
15:10 Ahlee hrm.  I thought there was an option to file.managed/file.directory to create necessary subdirectories if they don't exist, but i'm not seeing it
15:10 Ahlee am i blind?
15:11 Ahlee ah
15:11 Ahlee makedirs
15:12 kaptk2 joined #salt
15:12 faldridge joined #salt
15:13 zzzirk joined #salt
15:18 sroegner joined #salt
15:19 fii joined #salt
15:21 GradysGhost joined #salt
15:22 zach Ahlee: yea its makedirs
15:22 apergos joined #salt
15:23 rostam joined #salt
15:29 bubo47_ joined #salt
15:32 bubo47_ hello. I'm running salt version 0.17.4, just simple setup - one master, one minion both on SL 6.4. when I run command "salt '*' service.status httpd" on master, I can see in minion log "
15:32 bubo47_ "Executing command "ps -efH | grep 'httpd' | grep -v grep | fgrep -v status.pid | awk '{print $2}'" ... therefore service.status from "status" module is called, not rh_service.status. why ?
15:33 forrest joined #salt
15:33 ndrei joined #salt
15:33 bubo47_ I want salt to run command "service httpd status" not to grep ps.
15:35 forrest bubo47_, from the command line or within a state?
15:35 Vivi-1 salt host cmd.run 'command'
15:35 forrest or salt 'host' service.status <service>
15:36 bubo47_ forrest: command line. "# salt '*' service.status httpd"
15:37 halfss joined #salt
15:37 forrest yea is that not returning what you want?
15:37 fii bubo47_: salt '*' cmd.run ' service httpd status' I think
15:37 forrest Sorry I just got here
15:38 bubo47_ yeah, thanks, I do know how to execute command on minion. But I was surprised that on RH system (SL) salt called generic 'service.status' function instead of 'rh_service.status', that was my point
15:38 forrest bubo47_, when you use service.status, on the backend salt figures out how the command needs to be run
15:39 forrest that ensures parity across OSs
15:40 bubo47_ forrest: yes, I know. but when I read source code ( http://pydoc.net/Python/salt/0.17.4/salt.modules.rh_service/ and http://pydoc.net/Python/salt/0.17.4/salt.modules.service/ ) I see that 'service.status' uses 'ps ... | grep' etc and 'rh_service.status' calls /sbin/status binary. and I wanted to use the latter
15:41 fii Guys - trying to figure someting out. We're using salt-cloud to deploy VMs to ec2.Running salt-key -L on the master, we see all the minions. But when we run say salt '*' cmd.run 'uptime' nothing happens
15:41 Furao joined #salt
15:41 forrest fii, the minions are accepted?
15:41 fii Are we missing anything or is there anthing else that needs to be done
15:41 fii forrest: yeah
15:41 forrest bubo47_, ahh gotcha
15:42 forrest fii, try salt '*' test.ping -t 10
15:42 fii forrest : will do
15:42 forrest then we can see if with a higher timeout than the default if you're evening getting ping responses.
15:43 zach fii: I'm having issues with salt-cloud this morning
15:43 zach fii: have been for aabout a week or so
15:43 zach different issues each day
15:43 debaser left #salt
15:43 fii zach: hopefully the Gurus in here will be able to help
15:43 zach Indeed, I'm still stumped :)
15:44 bubo47_ forrest: response to that command was simply 'True'
15:44 forrest to service.status?
15:44 forrest it might be that ti returns a binary value if the service is up?
15:44 fii zach: what issues have you been having ?
15:44 forrest *it
15:44 bubo47_ forrest: the ping returned true
15:45 forrest oh that was for fii
15:45 bubo47_ ah sorry
15:45 forrest your systems are returning already :P
15:45 forrest no worries!
15:45 forrest I was confused for a sec
15:46 fii forrest: I'll test again shortly and feedback
15:46 bubo47_ service.status is returning PID of process if it is running, rh_service.status seems to return True/False (according to http://pydoc.net/Python/salt/0.17.4/salt.modules.rh_service/ )
15:46 forrest fii, no rush
15:47 forrest bubo47_, interesting, I wonder if something catches it before rh_service gets called for some reason..
15:48 fii forrest: nice one
15:48 fii soon come
15:48 forrest bubo47_, looks like it should definitely return a boolean value..
15:49 cachedout joined #salt
15:50 mike251 joined #salt
15:50 bubo47_ forrest: what is more interesting is when I run "salt '*' service.disabled httpd" it calls "rh_service.disabled" (maybe because "service" doesn't have ".disabled" defined )
15:51 cnelsonsic joined #salt
15:52 forrest bubo47_, yea that could be.
15:53 mgw joined #salt
15:53 zach fii: currently I can't spin anything up ;)
15:54 zach fii: that is an AWS issue though
15:54 zach fii: but I keep getting weird results with the API calls salt-cloud is making
15:55 alunduil joined #salt
15:56 fii zach: what os are you on ?
15:56 fii zach : had a lot of issues on CentOS but works on Ubuntu
15:56 fii zach : I can show my config if you want
15:56 zach CentOS
15:57 fii zach: yeah
15:57 zach Need to run CentOS or RHEL unfortuantely
15:57 fii zach : try Ubuntu
15:57 zach can't
15:58 zach I mean I could, I would just have to rework our application
15:58 zach our application is RPM centric
15:58 fii zach: salt master is Ubuntu and minions on redhat
15:58 avdhoot joined #salt
15:58 zach ah, I've never had an issue running a master on RHEL/CentOS before
15:58 zach Even when I ran my 600+ minion setup
15:59 backjlack joined #salt
15:59 ipmb joined #salt
16:00 _jslatts joined #salt
16:03 tyler-baker joined #salt
16:03 tyler-baker joined #salt
16:03 Ahlee The only thing I can think would be different would be python27 on recent versions of ubuntu, vs 2.6 on rhel6, assuming using the stock version
16:07 fllr joined #salt
16:07 andresr joined #salt
16:08 _fllr_ joined #salt
16:09 fejjerai joined #salt
16:10 jalbretsen joined #salt
16:12 fii forrest: salt '*' test.ping -t 10 returns nothing
16:12 fii salt-key -L
16:12 fii Accepted Keys:
16:12 fii fii
16:13 Gifflen joined #salt
16:18 forrest fii, run that test.ping again with -l debug on the end instead of the -t 10
16:19 fii ok
16:20 fii forrest: http://fpaste.org/75866/92049220/
16:21 clintberry joined #salt
16:24 forrest ok, so it looks like the job isn't returning quickly enough. Try salt-run jobs.lookup_jid 20140210161927144497
16:26 MrTango joined #salt
16:28 cachedout joined #salt
16:28 ndrei joined #salt
16:29 frasergraham joined #salt
16:30 jankowiak joined #salt
16:31 momobaxter joined #salt
16:32 momobaxter Hey everyone, I have a question about halite.  After doing a pip install and setting up a user that isn't root, I log in and can only run macros and pings.  The execute button is unresponsive when I just try to run commands like state.sls or wheel.config.values.  Is this a known issue or did I do something wrong?
16:33 erchn joined #salt
16:35 Ahlee Sounds like your user doesn't have permissions
16:35 logix812 joined #salt
16:36 rgbkrk joined #salt
16:37 forrest is salt installed as the root user?
16:40 dave_den wakka wakka
16:40 momobaxter forrest: yes it runs as root.
16:40 momobaxter Ahlee: acts are set for the user and external_auth is set as well
16:44 Ahlee momobaxter: hrm. What versions of salt-master?  I only have it up in my playground as it doesn't like working with 0.17.2 I run everywhere else
16:45 momobaxter [root@saltstack site-packages]# salt-master --version
16:45 momobaxter salt-master 0.17.4
16:45 timoguin momobaxter, i'm assuming the runner and wheel groups are set in the master conf as well?
16:46 anuvrat joined #salt
16:46 frasergraham joined #salt
16:46 momobaxter timoguin: probably not.  I'm flying blind on the documentation from the halite github read me.
16:46 clintberry joined #salt
16:47 momobaxter i have the '@wheel' and '@runner' added to the external_auth and client_acl rules
16:47 timoguin momobaxter, that's all i mean then. if that's set i'm not sure what the issue is
16:48 momobaxter do I have to run salt-master as the user in external_auth?
16:48 Ahlee no
16:49 forrest I rewrote the docs a while back momobaxter: http://docs.saltstack.com/topics/tutorials/halite.html
16:49 forrest so there's 'more' there
16:49 forrest though I don't know if it will help really in this situation, since a lot of it is just copied over.
16:49 forrest let's ask the man, pass_by_value are you around?
16:49 momobaxter forrest: I actually referenced that later.
16:50 momobaxter This is in chrome, maybe I should just try firefox as well.
16:50 forrest give it a shot
16:50 forrest I've hit up pass_by_value with a ping, he's the guy who works on halite
16:50 Ahlee i remember when i sat down with Adi and Sam, they suggested pulling develop down to get the most out of halite
16:50 forrest Ahlee, right, but you shouldn't need to do that for the ACL stuff to work
16:51 Ahlee forrest: right, but that's only assuming it's the ACL getting in the way
16:51 Ahlee and not something else
16:51 forrest right
16:51 jeremyfelt joined #salt
16:51 pass_by_value In a meeting, forrest and Ahlee. I will get back to u in 20 mins or so
16:51 Ahlee which, with how much changed due to namespacing in halite
16:51 forrest momobaxter, can you turn on debug logging and see if anything pops up there?
16:51 forrest pass_by_value, No rush, thanks!
16:51 momobaxter forrest: the execute button is still not responsive in firefox.
16:51 forrest Ahlee, right, I don't even know how accurate the docs are any longer
16:52 forrest momobaxter, weird
16:52 momobaxter debugging in salt-master or halite?
16:52 Ahlee try chrome :)
16:52 momobaxter Ahlee: it was chrome that I switched from.
16:52 jslatts joined #salt
16:53 Ahlee crap
16:53 Ahlee sorry, i'm out of ideas and can't spin up a vm right now
16:53 momobaxter also, the ui looks very different than what I see in the github, I image that's a difference in the pip version vs trunk
16:53 Iwirada left #salt
16:53 forrest yea Ahlee that's my problem as well, haven't messed with halite in a while
16:53 forrest momobaxter, yes those docs/screenshots are all old
16:54 forrest thus why I asked the maintainer, I'm not sure if everything there is still applicable
16:55 momobaxter forrest, i turned debugging on in halite.  It doesn't print anything when I try to click execute.
16:55 forrest yea I figured it wouldn't
16:55 forrest worth a shot though
16:56 momobaxter So there shouldn't be a problem with salt-master running as root, right?
16:56 kermit joined #salt
16:56 forrest no that's good, I wanted to make sure you were running it as root to avoid potential issues
16:56 momobaxter ok cool
16:57 forrest the ACL stuff should work properly, it did when I was writing the docs a while back
16:57 forrest maybe it has changed, or maybe I got lucky, I'm not sure
16:58 momobaxter heh.  It's pretty common that I don't get lucky when it comes to this stuff :)
17:00 momobaxter so i know it's not an acl issue because I can do "salt -T -a pam '*' state.sls vim" from the command line with the same user/pass as i used in halite.
17:00 momobaxter well, it doesn't appear to be an acl issue
17:01 whiskybar joined #salt
17:02 jankowiak joined #salt
17:04 momobaxter and this is halite 0.1.15
17:04 von-bincus joined #salt
17:06 cachedout joined #salt
17:07 bemehow joined #salt
17:08 ndrei joined #salt
17:09 iri- left #salt
17:09 jslatts joined #salt
17:10 pass_by_value forrest and momobaxter: I am here now. So when you type state.sls in the function input box do any other inputs show up on the page as well?
17:10 Simon_ joined #salt
17:11 momobaxter pass_by_value: if I type state.sls in the function input box, nothing happens.
17:12 pass_by_value Ok and test.ping is working atm?
17:12 momobaxter if I select the ping button, it runs
17:13 pass_by_value Could you inspect element and then click the Network tab on your browser?
17:14 ClausA joined #salt
17:14 momobaxter wait, it's working.
17:15 momobaxter the user wasn't in the wheel system group.
17:15 momobaxter :-(
17:15 forrest lol
17:15 momobaxter that's embarrassing.
17:15 forrest look at that, pass_by_value saves the day!
17:16 momobaxter thanks guys.  One more question.  state.sls in the input, do I put the argument in mods?
17:17 TheRealBill_here joined #salt
17:17 momobaxter brb
17:17 pass_by_value yes mods is the parameter used to pass state names
17:18 seanz joined #salt
17:18 forrest pass_by_value, that reminds me there should be some screenshots of using states from the interface
17:18 forrest I think they're all just modules right now?
17:18 seanz Greetings. Something is puzzling me about wait_script vs wait or script: It appears that the env argument requires something different for wait_script.
17:18 seanz Do I not just pass in a list or dict of environment variables?
17:19 forrest seanz, are you talking about the function?
17:19 forrest err sorry the state
17:19 seanz The state, yes.
17:19 pass_by_value We definitely need to add more stuff to the docs, especially related to screenshots
17:19 seanz "The root directory of the environment for the referencing script" doesn't make sense to me.
17:20 seanz The other state functions say clearly: "list or dict", but this one seems to refer to a directory...
17:20 forrest pass_by_value, yea I'd like to get some screenshots on the actual halite doc page on docs.saltstack at some point, but the docs themselves may need to be updated. I don't like people having to go to git to check them out
17:22 forrest seanz, yea it almost seems like it's referencing the environment for the file server/directory or something
17:22 forrest I'm not sure though, you should figure it out then make a pull request to update the docs :P
17:22 seanz forrest: Ah, the hands-on approach. :)
17:22 btpriceless joined #salt
17:22 seanz Got it.
17:22 BRYANT__ joined #salt
17:22 forrest sometimes the best approach!
17:23 joehillen joined #salt
17:25 fii paas_by_value : some good docs on amazon ec2 will be nice too
17:25 fii :)
17:26 forrest NO
17:26 forrest no ec2 docs
17:26 forrest :P
17:26 pass_by_value Good ideas! I would encourage you to create issues for that on Github.
17:26 zach ec2 is a pain today
17:26 zach :|
17:26 forrest ec2 is always a pain
17:26 fii zach - I hear ya
17:26 forrest I don't think I've ever heard anyone go 'working with ec2 was fantastic today, so easy!'
17:26 abe_music joined #salt
17:27 zach I could cut a bitch today it's making me so upset :)
17:27 thayne joined #salt
17:27 forrest heh, a buddy of mine works at amazon for some cloud stuff, I do not envy him
17:28 zach I had one who worked there too
17:28 forrest it's brutal
17:28 zach yea
17:28 zach I know of 4 people that went there after Rackspace
17:28 forrest on-call all the time, their devs don't support anything in prod I guess
17:28 momobaxter and just like that, I restart my browser and it's not working again.
17:28 forrest so if some stupid piece of code is causing an issue, your engineers figure it out
17:28 fii I'm on call 24/7
17:28 fii lol
17:28 forrest momobaxter, well, stop breaking it
17:28 * momobaxter pulls out what's left of his hair.
17:28 forrest fii, do you get called though?
17:29 momobaxter forrest, this is what i do!
17:29 fii forrest: yep
17:29 forrest fii, my buddy says when he is on call over there, he sleeps maybe 2-3 hours a night
17:29 fii forrest : Mine's not that bad
17:29 zach yea, I have a friend who works on the VOD stuff
17:29 zach they bought out some UK company and he was forced into the amazon instant stuff :)
17:29 forrest fii, I'm happy for you then :P
17:29 Gordonz joined #salt
17:30 forrest it's just weird, you basically have no life if you work there
17:30 zach I am oncall at my new gig, thankfully no one knows my phone number :)
17:33 momobaxter ok.  So I'm tracking this down and as the user logged in to the server that I want to run halite as I run salt '*' state.sls vim
17:33 momobaxter [halite@saltstack ~]$ salt '*' state.sls vim
17:33 momobaxter [ERROR   ] [Errno 13] Permission denied: '/etc/salt/master'
17:33 Gordonz joined #salt
17:33 momobaxter but I don't think that's the right test...nevermind.
17:34 forrest momobaxter, well, running it via the command line interacts with salt differently than halite itself does
17:34 momobaxter that's why I am now running it as -T -a pam
17:34 momobaxter but even then, I assume that's not using the API that halite uses, right?
17:35 forrest momobaxter, I don't believe so, but I'm not sure.
17:35 forrest I don't mess with halite much :(
17:35 momobaxter Yeah I wouldn't put this much effort into it, but a customer wants to be able to have a simple way to do one single thing from a website... :-/
17:36 forrest I know it works, I just don't know much about how to troubleshoot it when it doesn't work
17:37 momobaxter ok...results from state.sls vim in halite:
17:37 momobaxter 20140210113453892593   state.sls * vim
17:37 momobaxter error
17:37 momobaxter at least that's a start.
17:37 momobaxter that seems out of order to me.
17:37 forrest that's how halite orders hit
17:37 momobaxter ok.
17:37 forrest so basically that job ID data is cached for 24 hours I believe
17:37 forrest according to what you have configured within salt
17:37 momobaxter Error retched = 2
17:38 forrest granted it vanishes when you close the browser
17:38 forrest but it's in salt
17:38 momobaxter retcode = 2
17:38 forrest unix error return?
17:38 oleg joined #salt
17:38 momobaxter no, halite error
17:39 momobaxter is there a rule on img sharing sites being posted?
17:39 forrest not really, no one posts images.
17:39 momobaxter ok. nevermind :)
17:40 xmltok joined #salt
17:40 forrest I'm not saying you can't
17:40 forrest I just don't know if a rule exists
17:41 pass_by_value momobaxter you could also look at Halite's "Event" pane
17:41 pass_by_value that will show you the full data returned for the salt/20140210113453892593/ret event
17:42 strgcloud joined #salt
17:42 tamentis joined #salt
17:42 momobaxter ok, there seems to be a problem when I restart my browser.
17:43 momobaxter I'm going to have to retrace the steps that lead it to not working each time I restart my browser.
17:43 forrest cool
17:43 forrest well not cool, but hopefully you can track it down :P
17:44 gldnspud joined #salt
17:44 oleg Hello guys
17:44 momobaxter I do see "function runner.manage.present" is unavailable in the events pane, though
17:44 oleg I want to store my states and pillar data to git repo. With states + gitfs everything is fine, while with ext_pillar I have problem with updates. Does anybody used ONLY ext_pillar? Any pitfalls?
17:45 oleg only - without file backend
17:45 pass_by_value What version of salt master momobaxter?
17:45 momobaxter pass_by_value: salt-master 0.17.4
17:45 pass_by_value Also can you execute 'salt-run manage.present' via CLI?
17:46 momobaxter no, manage.present is not available.
17:47 Ryan_Lane joined #salt
17:47 diegows joined #salt
17:48 momobaxter ok, i cleared the key and added the minion back and manage.present works now
17:50 ndrei joined #salt
17:51 momobaxter pass_by_value, ok i see my confusion now.
17:51 pass_by_value Cool, what was happening?
17:52 momobaxter the event pane shows the proper return, nothing needed to change so retcode 2 was passed
17:52 momobaxter halite interprets that as bad, maybe?  It shows red in the command pane
17:52 quickdry21 joined #salt
17:52 seanz left #salt
17:53 pass_by_value I will have to check and see why Halite thought it was a failed job. Will check it out.
17:53 pass_by_value Thanks for the problem description though.
17:53 momobaxter yeah, even with the package not being installed, the retcode is 2 and it shows as failed.
17:54 momobaxter is there a way I can get this info to you in a proper way?
17:54 pass_by_value Sure, what form of communication works best for you?
17:54 pass_by_value email, or github or hangout?
17:55 fejjerai joined #salt
17:55 momobaxter email is fine
17:55 momobaxter or github
17:55 momobaxter either one is good for me
17:55 momobaxter i can open a ticket in github
17:56 pass_by_value Cool you can email me or create issue on github. Github is probably better...
17:56 momobaxter will do
17:56 pass_by_value thanks!
17:56 momobaxter you're welcome.  Thank you for the help!
17:57 pass_by_value np, glad I could be helpful :) thanks to forrest as well
17:57 forrest yes, I did nothing, wooo! Thanks for taking the time to assist pass_by_value!
18:00 [diecast] joined #salt
18:01 mgw joined #salt
18:01 dvogt joined #salt
18:02 troyready joined #salt
18:02 felskrone joined #salt
18:03 dvogt left #salt
18:03 vejdmn joined #salt
18:04 dave_den joined #salt
18:04 jankowiak joined #salt
18:05 cyrusdavid joined #salt
18:06 aurigus joined #salt
18:06 momobaxter pass_by_value: submitted.   And thank you forrest :)
18:07 pass_by_value Thanks momobaxter!
18:08 momobaxter np!  idling now :)
18:09 erchn hi all, does anyone have an example of passing pillar variables to a state using pillar='{...}' when called from a shell script, I just cannot seem to find the right combination of quoting to get the job done
18:09 erchn basically I'm trying to take a command line argument to the shell script and pass it in as pillar data
18:10 forrest erchn, are you using cmd.script?
18:11 erchn no, this is just a regular script which in turn calls salt
18:11 erchn it's a convenience wrapper for the salt uninitated
18:12 erchn uninitiated*
18:12 synfin joined #salt
18:15 synfin joined #salt
18:16 n8n joined #salt
18:17 kossy joined #salt
18:19 Linuturk so, I'm using pkgrepo.managed and setting a key_url to http://pkg.jenkins-ci.org/debian/ match that page. I'm still showing the jenkins package as unauthenticated though
18:20 Poooogle_ joined #salt
18:25 Linuturk seems I'm doing it similar to the salt-forumlae org's jenkins
18:26 ipmb Linuturk: this works for me: https://dpaste.de/Ajgg
18:27 Linuturk yeah, that's pretty much what I've got
18:27 Linuturk weird
18:28 Linuturk hmmm
18:28 forrest erchn, ahh, not sure I've seen any examples like that.
18:28 Linuturk maybe it has something to do with me adding the key_url after the fact. I ran the state without it at first
18:28 Linuturk then, added it later
18:29 Linuturk looks like it might have worked on a fresh run
18:29 Linuturk er, fresh server
18:29 Linuturk might need to see if an issue has been reported
18:30 jcristau joined #salt
18:32 vbabiy_ joined #salt
18:32 andyshinn` joined #salt
18:32 momo joined #salt
18:33 joehoyle joined #salt
18:36 blee_ joined #salt
18:39 n8n joined #salt
18:39 Linuturk so, in setting up jenkins.saltstack.com, are you using salt to deploy and configure Jenkins end to end, or are you installing the packages and then configuring via the web interface?
18:40 Linuturk or, do you have the xml config file in a template?
18:40 Linuturk and reloading that from disk?
18:41 Mua joined #salt
18:42 svx joined #salt
18:43 Gordonz_ joined #salt
18:44 sroegner forrest: hi
18:45 forrest sroegner, hello
18:45 sroegner forrest: do you have any kind of tool/app to preview .rst files locally?
18:45 amckinley joined #salt
18:45 forrest sroegner, nope, for the readmes I just push to my fork. For the saltstack docs, I build them on my vm, then spin up a server via python to preview them.
18:46 dfinn joined #salt
18:46 sroegner forrest: whoa
18:46 forrest sroegner, ?
18:46 forrest so I guess kind of, but it's not on a local machine that I check the formatting
18:46 sroegner trying to cut down on the cycle
18:46 forrest for formulas or for docs.saltstack?
18:46 sroegner formulas
18:47 forrest yea, that's worthless locally
18:47 LLKCKfan joined #salt
18:47 forrest github doesn't render the files properly anyways
18:47 forrest so it's better to just push to your fork
18:48 sroegner was trying to avoid the commit noise over several attempts of getting some formatting right
18:48 sroegner nvmd
18:48 sroegner thx
18:48 sroegner btw; i am working on a supervisor-formula
18:48 forrest sroegner, yea no worries, I usually just copy the formatting from other ones.
18:48 forrest nice
18:49 sroegner just lacks some doc now
18:49 sroegner i trust you'll review ;-)
18:49 forrest probably!
18:49 forrest the formulas are good to keep standardized, and it's easy commits
18:50 jaimed joined #salt
18:50 oleg How to force "salt '*' state.highstate" command show only changes and errors?
18:51 forrest oleg, I don't know if there is a way to do so, a couple people have been using inverse greps to avoid those pieces.
18:52 felixhummel joined #salt
18:53 erchn oleg, salt '*' state.highstate --force-color|grep -v "32m"
18:53 erchn it's ugly but works
18:54 forrest erchn, lol
18:54 forrest erchn, that's good though
18:54 oleg http://docs.saltstack.com/ref/output/all/salt.output.highstate.html
18:54 GradysGhost joined #salt
18:54 oleg How to call this functon with state_output=changes?
18:55 alexthegraham joined #salt
18:55 salt_whitebelt joined #salt
18:55 salt_whitebelt what do i use to remotely deploy agent to linux minion?
18:56 n8n joined #salt
18:57 zzzirk joined #salt
18:57 yomilk joined #salt
18:57 zach salt_whitebelt: magic and magnets!
18:58 erchn oleg, it seems to only be config value for the master or minion config
18:58 zach salt_whitebelt: maybe magical google magnets too - http://docs.saltstack.com/topics/tutorials/walkthrough.html
18:59 alexthegraham If a pillar or grain contains multiple values (say, a list of LDAP servers), is there a way to query just one item in the list?
19:00 erchn alexthegraham: {% set first = pillar_item[0] %}
19:00 erchn then query away
19:02 salt_whitebelt zach: no where does it list linux agent remote deployment. i understand how the minion install and communicate with master.
19:02 zach what?
19:02 zach the minion IS the remote agent.
19:03 vejdmn joined #salt
19:04 salt_whitebelt zach: yes the minion is the agent. let me rephrase it, i need to deploy the minion on multiple rhel vm
19:04 zach for i in $(cat servers.list); do ssh $i "yum install salt-minion -y && echo 'salt-master: yourhost.com' > /etc/salt/minion'; done
19:05 zach lol, broked
19:05 zach for i in $(cat servers.list); do ssh $i "yum install salt-minion -y && echo 'salt-master: yourhost.com' > /etc/salt/minion"; done
19:05 zach You need to install the minion the same way you would manually...
19:05 forrest unless you can configure salt-cloud, or use salt-ssh
19:05 zach there is no "automagically deploy this to XXXX minions"
19:05 zach salt-cloud wont do that, forrest
19:05 zach at least to my knowledge
19:06 forrest ?
19:06 zach It can spin them up and add the key and such
19:06 forrest I'm saying if you could spin it up like on aws/DO
19:06 zach but I dont think it can do that to already exisiting ones
19:06 forrest oh yea no
19:06 forrest I was thinking of it as new boxes to provision
19:06 zach yea, new boxen provision sure
19:06 zach at least when your AMI works
19:06 forrest hah
19:06 zach Mine is failing, and I have horns rising from my head
19:06 forrest the hate is strong in this one
19:07 zach Yes, very strong hate
19:07 yurei joined #salt
19:07 zach From their GUI, from their API, doesnt matter - failures
19:07 zach pick a different AMI? no sweat! works as expected.
19:07 forrest even from the gui??
19:07 zach yep
19:07 forrest that's a bummer
19:08 chitown thatch around?
19:08 zach yea, I have to build a new AMI now
19:08 chitown not sure of his nick
19:08 forrest chitown, Tom doesn't come in the IRC
19:08 ipmb joined #salt
19:08 forrest allegedly he was spending too much time answering questions :P
19:08 forrest what's up?
19:09 salt_whitebelt zach: so the command you have listed only configure minion to send key to master but not freshly deploy to target vm with minion?
19:09 chitown forrest: lame!
19:09 chitown :)
19:09 chitown i'll just call him
19:09 chitown thanks
19:09 zach I'd learn how to bash
19:09 zach before proceeding
19:10 zach What I wrote is a simple bash for loop, if you don't know what that for loop is doing, you probably shouldnt be deploying salt-stack via automated methods
19:10 jslatts joined #salt
19:10 salt_whitebelt zach: only been playing with rhel6 past two months.
19:11 zach OK, so what is your goal? Deploy new VM & salt-stack in one go?
19:11 zach or add salt-stack to already existing VM?
19:11 salt_whitebelt zach: i should be deploying salt-stack as im doing it in my lab
19:12 salt_whitebelt zach: deploy minion agent on existing rhel 6 vm's
19:12 salt_whitebelt zach: only in my lab first before production
19:12 ajw0100 joined #salt
19:12 zach OK, so I would write a for loop (as I did above), and deploy it that way
19:12 salt_whitebelt zach: you can't learn without doing and falling
19:12 zach or potentially use salt-ssh
19:13 zach basically, you need to do it manually
19:13 ninkotech_ joined #salt
19:14 GradysGhost joined #salt
19:14 salt_whitebelt oh man, i'd think im not the only one who thought of deploying minion to many rhel 6 vm
19:15 salt_whitebelt salt-ssh would seem feasible though
19:15 salt_whitebelt been looking at it
19:16 ggoZ joined #salt
19:16 salt_whitebelt for windows vm at least i can use win_pkg or powershell to install minion agent remotely
19:17 fxdgear joined #salt
19:20 oleg salt '*' state.highstate --out='highstate'
19:20 oleg show only changes and error
19:20 oleg *errors
19:25 sroegner how do i use targeting in a state file call of module.run?
19:25 sroegner in the cmd line examples the first arg is the target
19:25 Gordonz joined #salt
19:26 Gordonz joined #salt
19:27 zsoftich_ joined #salt
19:27 baffle Hmm, do I have to enable anything in particular on master/minion to get Mine to work? I have anm .sls in pillar that I export to all hosts, wich contains mine_interval and mine_functions, but I can't seem to get any data from the mine?
19:28 joehoyle joined #salt
19:28 zsoftich_ having an issue with pillar http://pastie.org/8719820
19:29 farra joined #salt
19:29 zsoftich_ the custom_pillar data does not override what is in {{ role }}
19:29 zsoftich_ the docs make it seem as if it should, any ideas?
19:34 n8n joined #salt
19:36 timoguin baffle, you have to add the mine_interval and mine_functions bits to each minion config
19:37 sroegner zsoftich_: how would the custom_pillar overwrite anything - isn't it just appended to the list?
19:37 drags joined #salt
19:38 zsoftich_ the role sls file has key1 and the custom_pillar sls had key1 as well...but with a different value
19:39 hillna joined #salt
19:39 reign left #salt
19:40 GradysGhost joined #salt
19:40 andresr joined #salt
19:40 zsoftich_ in particular I am looking at http://docs.saltstack.com/topics/pillar/#pillar-namespace-flattened
19:40 jankowiak joined #salt
19:42 sroegner and you always end up with only the first value? is that the problem?
19:43 fii left #salt
19:44 baffle timoguin: Oh, I do? I was under the impression that I could just add it to pillar. :-/
19:45 zsoftich_ sroegner: not exactly...for one server I get the second value, for another I get the first
19:45 sroegner zsoftich_: lol
19:45 baffle timoguin: To enable the Salt Mine the mine_functions option needs to be applied to a minion. This option can be applied via the minion's configuration file, or the minion's pillar.
19:46 sroegner same here - tried that here and gave up on it
19:46 baffle timoguin: Am I reading something wrong here? *Confused* :)
19:46 baffle timoguin: That's from http://docs.saltstack.com/topics/mine/index.html
19:46 timoguin baffle, i could be wrong.
19:46 baffle timoguin: You could be right, too, since it doesn't really work. :-)
19:46 timoguin that doc doesn't really explain HOW to add it to pillar...
19:47 timoguin if that works i'd assume it looking for a specific key/value
19:47 sroegner zsoftich_: i think the best you can do is switch an additional set of values (pillar file) on or off with a grain
19:47 baffle timoguin: I was under the impression that the namespace was flat, and it would be added to the tope? Hmm..
19:48 alexthegraham joined #salt
19:48 timoguin baffle, i'm really not sure. that needs to be clarified in the docs.
19:48 timoguin i was actually working on a state yesterday to manage the minion's config file and be able to set mine config based on what i put in pillar
19:49 darless joined #salt
19:49 n8n joined #salt
19:49 scooby2 joined #salt
19:49 timoguin baffle, https://github.com/saltstack/salt/issues/5338
19:50 timoguin so it looks like it should just be a mine_functions key at the top level
19:51 Gareth morning
19:51 mross joined #salt
19:52 baffle timoguin: Haha. "mine_fuctions" <- fuc ..
19:52 timoguin haha
19:52 timoguin it happens
19:53 baffle It sure does. I seem to remember I looked into this some months ago as well, and was stumped.. Maybe I did the same thing..
19:53 timoguin this is good though. means i can forget about the work i was doing in my state and just enable certain mine functions globally in pillar
19:53 timoguin so thanks. :)
19:53 baffle timoguin: o/
19:56 zooz joined #salt
19:56 Ahlee hrm.
19:56 Ahlee I thought salt from the command line would use the default returner defined in the master config
19:56 Ahlee appears that's not the case?
19:59 ajw0100 joined #salt
19:59 GradysGhost joined #salt
20:02 Nazzy joined #salt
20:02 Nazzy joined #salt
20:02 andrewclegg joined #salt
20:02 kaiyou joined #salt
20:02 bwq joined #salt
20:02 EnTeQuAk joined #salt
20:02 scristian joined #salt
20:03 chet_ joined #salt
20:03 dbanck joined #salt
20:03 crane joined #salt
20:03 JasonSwindle joined #salt
20:04 balltongu joined #salt
20:04 octarine joined #salt
20:04 tinuva joined #salt
20:04 copelco___ joined #salt
20:04 goki joined #salt
20:04 Ryan_Lane joined #salt
20:04 simonmcc_ joined #salt
20:04 jgelens joined #salt
20:05 neilf_ joined #salt
20:05 pcarrier joined #salt
20:05 Guest64230 joined #salt
20:06 rcsheets joined #salt
20:06 srijan4 joined #salt
20:08 alunduil joined #salt
20:09 dfinn i've run into an issue twice now where a minion does not have it's osmajorrelease grain.  the first time I upgraded salt however this time the minion is already running the latest version provided by EPEL.  what might cause a Cent 6.4 minion to not have that grain and is there a good fix?
20:09 dfinn http://pastebin.com/Q3EPTBv8
20:11 timoguin Ahlee, I want to say CLI returns to the CLI regardless.
20:11 timoguin but also goes to your returner.
20:12 felixhummel joined #salt
20:13 sinh__ joined #salt
20:16 simonmcc_ joined #salt
20:16 simonmcc joined #salt
20:18 dfinn is there a way to tell a minion to regenerate it's grains?
20:18 dfinn i tried re-installing and that didn't help
20:19 mross Hi all. I'm trying to get halite setup on my salt-master with cherry py and am running into a problem. I'm following this guide: http://docs.saltstack.com/topics/tutorials/halite.html. Here are the steps and config that I'm using.
20:19 mross https://gist.github.com/mross462/57edf422e41d40b84e2e
20:26 rgbkrk joined #salt
20:26 munhitsu is it legal to mix pydsl with jinja sls'es within one project?
20:26 munhitsu I'm getting weird cases when I'm trying to extend in pydsl state that was included from jinja sls
20:27 frasergraham mross: I just logged on to IRC to ask that same question
20:27 frasergraham installing Halite
20:29 bitblender left #salt
20:29 timoguin dfinn, grains are generated on minion startup, so you _should_ be able to restart the minion.
20:29 timoguin i would also think a full-blown reinstall would do the trick though....
20:29 frasergraham if I have salt and Halite installed with a halite: section in my master config, should I expect halite to run when I start the salt master service?
20:29 dfinn neither worked
20:29 dfinn i'm also getting these warnings, not sure if it's related or not.  https://github.com/saltstack/salt/issues/5956
20:30 dfinn i'm about to file a bug as this seems pretty funky
20:30 stewpot joined #salt
20:30 Ahlee timoguin: nope, only returns to mongo if i add --return=mongo
20:31 stewpot we have an application that has a database backend. Right now we have a reactor action that will insert a record into a mysql database when the minion starts. What I am wondering is what the best place is to write some better logic in but still use the mysql built in modules in saltstack?
20:31 stewpot or is it best to write the module completely independently.
20:33 Corey terminalmage: ^ I'm seeing a lot of questions like this one come through. It makes me start to wonder if an ENC is the way to go as time goes on.
20:33 terminalmage ENC?
20:34 timoguin external node classifier
20:34 timoguin e.g., reclass
20:34 * terminalmage shrugs
20:37 alekibango joined #salt
20:42 hunter joined #salt
20:42 mross @frasergrahm setting up a temporary salt master to debug if I find anything I'll let you know.
20:43 frasergraham mross: thanks. My setup is a fairly clean install of 0.17.5 (i'm just starting to learn Salt)
20:43 frasergraham I've done very little configuration beyond the defaults so far
20:45 mross @frasergrahm are you installing on centos or ubuntu?
20:45 frasergraham Debian
20:45 bemehow is the order maintained when running the include state?
20:46 bemehow http://pastebin.com/WFvRgjPd
20:51 Corey Not reclass specifically.
20:51 LLKCKfan joined #salt
20:51 Corey I find it to be overly complex.
20:51 timoguin Corey, twas an example, GOSH!
20:51 Corey What I'm talking about is some... thing, that determines which things apply to which nodes given a variety of options. "Query a database" is one way.
20:52 Corey But it pushes the logic outside of Salt.
20:52 Ahlee Corey: in place of top.sls matching?
20:58 terminalmage joined #salt
21:02 Corey Ahlee: I'm not sure how that would play out.
21:03 Ahlee i'm not sure what you meant then if you weren't talking about top.sls, sorry
21:06 mgw joined #salt
21:08 * Gareth mutters about a configuration management system named after a toy
21:10 Corey Gareth: I've got a fun over-beers story about that.
21:11 Corey (Why is it that configuration management stories always require alcohol...?)
21:11 LLKCKfan joined #salt
21:12 Ryan_Lane joined #salt
21:12 Gareth Corey: about what?  Why Company X is using Puppet?
21:14 Corey Gareth: Oh we can throw that story in too if you'd like. :-) No, I was referring to my travails with it.
21:14 cewood joined #salt
21:16 Gareth Corey: ahhh. yeah.  for sure.  the brief time I've used salt has definitely spoiled me :)
21:16 Gareth brb.
21:16 n8n joined #salt
21:26 jdenning joined #salt
21:32 thayne joined #salt
21:44 yomilk joined #salt
21:46 jY can anyone tell me what I'm doing wrong.. i don't see any custom pillar data http://pastebin.com/D3p1qzPX
21:46 salt_whitebelt joined #salt
21:47 salt_whitebelt can saltstack work/integrate with vmware vcac?
21:47 salt_whitebelt puppet does,
21:48 david_a joined #salt
21:50 Ahlee yes, it was demoed at saltconf
21:52 salt_whitebelt can you send me a link?
21:53 salt_whitebelt or whatever material ?
21:53 Ahlee I have none, sorry.
21:53 salt_whitebelt saltconf 2013 or 2014?
21:53 andresr joined #salt
21:53 timoguin They're not online yet.
21:54 andrej I tarred up a certain dir on all minions, and would like to pull that to the master.  Is there an easy way to achieve that?
21:55 mike251 left #salt
21:55 andrej I found cp.push in the doco, but that's deemed unsafe.
21:55 BRYANT__ joined #salt
21:56 manfred that is the only way through salt.
21:56 manfred and it is only unsafe because you are pushing to the master
21:57 manfred it is going to be 'unsafe' no matter how you do it
21:57 anuvrat joined #salt
22:00 salt_whitebelt timoguin: are you talking about saltconf 2014?
22:00 timoguin salt_whitebelt, yes. it's the only one that's happened so far.
22:00 jnials Is  0.17.5 more recent than 2014.1?
22:01 JasonSwindle jnials:  Yes and n
22:01 JasonSwindle o
22:01 JasonSwindle 0.17.5 is stable
22:01 JasonSwindle 2014.1.0RC3 is still in testing but "newest"
22:01 gadams999 joined #salt
22:01 JasonSwindle There are some options in 2014.1.0 that are not in 0.17.5
22:02 jnials Ah.  ok.  Just wanted to get that straight.  I'm sticking with stable for now.  I have a deadline. :)
22:02 jY can anyone tell me what I'm doing wrong.. i don't see any custom pillar data http://pastebin.com/D3p1qzPX
22:02 JasonSwindle jnials:  Good idea.
22:02 gw joined #salt
22:02 cro joined #salt
22:02 jnials Thanks JasonSwindle.
22:02 andrej thanks manfred
22:03 andrej I'll bite the bullte, then
22:03 JasonSwindle Anytime
22:03 andrej I *really* don't want to use a for loop on a server iterating over all hosts to pull data
22:03 DaveQB joined #salt
22:04 luminous hello! anyone running a .17.x minion and interested in testing / confirming a potentially interesting bug with git.latest and test mode?
22:06 luminous here's the test, I'm trying to confirm I'm not crazy: create a directory, put some stuff in that directory. now setup a git.latest state, and point it at that directory, set force: True, then run salt-call --local state.sls that_sls test=True and then ls the directory.. are all those files still there?
22:07 gw joined #salt
22:08 salt_whitebelt timoguin: do you know when saltconf 2014 is going to made available specifically the part around saltstack integrating with vmware vcac?
22:08 hunter joined #salt
22:10 gw_ joined #salt
22:11 hunter andrej: does salt mine fit what you are trying to do? (I've not used it myself)
22:13 elithrar joined #salt
22:15 gw_ joined #salt
22:15 gw_ joined #salt
22:16 andrej hunter: I don't know, I haven't stumbled upon it yet
22:17 andrej cp.push won't work for me (the filename is based on the respective hostnames), and for cp.push_dir I get a 'cp.push_dir is not available' :(
22:17 andrej where do I find mine?
22:18 krow joined #salt
22:19 andrej Hmmm ... I found the doco
22:19 andrej but it makes no sense to me
22:20 ajw0100 joined #salt
22:20 Katafalkas joined #salt
22:23 hunter It doesn't make much sense to me either - I don't think the docs are complete on mine.
22:28 jergerber joined #salt
22:31 joehoyle joined #salt
22:31 andrej heh
22:31 andrej that's comforting :)
22:32 ninkotech_ joined #salt
22:34 frasergraham i'm trying to configure salt for the first time and I have a question about configuring minion properties from the master
22:34 frasergraham I have 30 minions and I'd like to easily move them back and forth between a dev and prod pool dynamically
22:35 frasergraham does that require me to set a value on the minion identifying it as "dev" or "prod" or can I define that at the master
22:36 frasergraham e.g. a list of hosts that are dev and another list that are prod that I can change easily and push out?
22:36 mbarrien joined #salt
22:38 twinshadow joined #salt
22:39 ckao joined #salt
22:39 rojem joined #salt
22:40 ekristen to use salt-call the salt-minion has to be running correct? not just a /etc/salt/minion config present?
22:43 ggoZ1 joined #salt
22:46 frasergraham also, is there a salt state manager for ensuring a service is always running on an OSX minion?
22:46 frasergraham I see commands for starting and stopping but no state manager that I can find
22:47 cro frasergraham: On MacOS that's probably left up to launchd
22:47 sroegner joined #salt
22:47 ekristen frasergraham: server.running should do it in a state
22:47 ekristen service.running*
22:48 frasergraham ah cool
22:48 frasergraham trying that now
22:48 elfixit joined #salt
22:49 jY can anyone tell me what I'm doing wrong.. i don't see any custom pillar data http://pastebin.com/D3p1qzPX
22:50 ninkotech__ joined #salt
22:51 Valdo joined #salt
22:51 ekristen jY: assuming you’ve restarted your salt master since making changes to its config file?
22:51 jY ekristen: i have
22:51 kalloc joined #salt
22:51 [diecast] and assuming that node is in prod
22:51 ekristen oh
22:51 ekristen yeah I just saw that
22:52 ekristen prod should be base
22:52 [diecast] k
22:52 ekristen jY: ^^^
22:52 andrej Hmmm ... I have salt 0.17.5 on master and minions. Why am I getting a 'cp.push_dir is not available' ?
22:52 jY ahh thanks
22:52 jY that was it.. thanks!
22:55 krow joined #salt
22:55 ekristen np
22:56 clintberry joined #salt
22:59 frasergraham thanks ekristen, that seems to do exactly what I need
23:01 krow joined #salt
23:03 forrest andrej, it's not in 0.17.5
23:03 forrest https://github.com/saltstack/salt/blob/v0.17.5/salt/modules/cp.py
23:04 fllr joined #salt
23:04 frasergraham i'm distributing code by cloning a git repo on the master file server and pushing it to minions with highstate, is that a good approach?
23:04 frasergraham if so, is there a way to filter out the .git folders?
23:05 blee joined #salt
23:05 Valdo joined #salt
23:06 krow joined #salt
23:07 fllr joined #salt
23:08 tds5016 joined #salt
23:09 hunter Theres builtin support for git repos. LEt me find url
23:10 hunter http://docs.saltstack.com/ref/states/all/salt.states.git.html#module-salt.states.git
23:10 andrej forrest: In that case doco and reality are out of whack
23:11 forrest the docs pull from develop, someone probably forgot to add a versionadd line
23:11 hunter So you could have each minion do a git pull/clone whatever equivalent.
23:11 hunter And if its git proto (vs ssh) it should be a ton faster.
23:11 hunter forrest: Are there additional docs for salt mine anywhere?
23:11 forrest hunter, nope, I believe I actually still have an issue open to improve those docs ;P
23:12 hunter forrest: andrej and I are interested...
23:12 andrej heh
23:12 [diecast] joined #salt
23:12 krow joined #salt
23:12 frasergraham is cloning directly on the minion a better approach than maintaining the code on the master and pushing that out?
23:12 hunter bummer
23:12 andrej I worked around my immediate issue.  I stripped the hostname from my files, and used cp.push
23:12 frasergraham other than for speed?
23:13 frasergraham my repos are tiny so speed isn't a big issue for me
23:13 andrej will have to work it back in on the master, based on the directory name
23:13 hunter frasergraham: I would say it depends on a number of facters.
23:13 hunter frasergraham: for instance, do you want your minions dependant on just the master or master + whereever your git repos are hosted.
23:13 hunter frasergraham: security, etc.
23:14 frasergraham i have a lot of minions and the git server is not under my control. Hosting on the master would de-couple me from the need for the minions to talk to the git server
23:14 halfss joined #salt
23:15 frasergraham if I need to rollout a hotfix and the git server is down, then I can always refresh the master repo from my own Git repository and then push state out from there
23:15 frasergraham so I guess I am answering my own question
23:15 hunter :)
23:16 hunter That mirrors what we would need as well, but every site is different.
23:16 frasergraham but, if I wanted to filter out the .git folder from the state sync, is that possible?
23:16 hunter I believe the server (salt file server) has an exclude feature
23:17 frasergraham cool, i'll look
23:17 cachedout joined #salt
23:18 hunter Look for file_ignore_regex- it includes an example for .git ... :)
23:18 krow joined #salt
23:18 simonmcc what’s the difference between pillar['infra']['database']['nodes’] & salt['pillar.get']('infra:database:nodes’) in a jinja template?
23:18 frasergraham thanks
23:18 hunter frasergraham: you didn't ask but I'll add that I recommend people add master.d to their config and put their changes THERE instead of the main master file.
23:18 hunter It makes upgrades easier later.
23:19 frasergraham will do.
23:19 Ryan_Lane frasergraham: you may want to consider a full deployment system: https://github.com/trebuchet-deploy
23:19 hunter frasergraham: master.d is in that master file and the only thing I modify here.
23:19 Ryan_Lane trebuchet has some hard requirements that may not fit your environment at this time, though
23:20 Ryan_Lane and I haven't really written great docs yet. :)
23:20 alice|wl left #salt
23:21 krow1 joined #salt
23:22 themadcanudist joined #salt
23:22 LLKCKfan joined #salt
23:23 krow joined #salt
23:24 __number5__ Ryan_Lane: trebuchet looks interesting, a short intro will be good
23:24 Ryan_Lane I gave a keynote at saltconf on it
23:25 Ryan_Lane I'm not sure when the videos will be up
23:25 themadcanudist left #salt
23:25 Ryan_Lane __number5__: https://wikitech.wikimedia.org/wiki/Trebuchet/Design
23:25 Ryan_Lane there's a somewhat poor doc on it
23:25 Ryan_Lane I've been moving docs from wikimedia's infra to github slowly
23:26 __number5__ cool, thanks
23:26 Ryan_Lane yw
23:26 __number5__ so it's actually being used on wikipedia infrastructure?
23:27 Ryan_Lane yes, for all deployed applications except for mediawiki itself
23:27 Ryan_Lane mediawiki does weird things, so we need to make some adaptations for it to be deployed normally
23:28 __number5__ wow, that's impressive
23:28 Ryan_Lane it's in a state of being fully upstreamed right now, so if you're interested in trying it out, let me know and I can speed some things up
23:29 Ryan_Lane I can also give access to the dev environment, but wikimedia is a weird mix of puppet and salt :)
23:29 krow1 joined #salt
23:29 mfournier joined #salt
23:31 __number5__ thanks. I'm working on a similar two stage deployment setup at work, looking for ideas I can steal :P
23:31 Ryan_Lane heh
23:31 Ryan_Lane why not contribute to this one?
23:31 jhenry82 joined #salt
23:31 Ryan_Lane I'm trying to make a deployment system that can be used by anyone
23:32 Ryan_Lane there's no reasonable open source deployment systems around that I've seen. there's only building blocks
23:32 __number5__ I will once I have more understanding. The one at work has too many special cases and won't be open sourced
23:32 Ryan_Lane yep. understandable
23:32 bemehow joined #salt
23:34 krow joined #salt
23:35 bemehow joined #salt
23:38 krow1 joined #salt
23:40 alunduil joined #salt
23:40 vu joined #salt
23:44 synfin joined #salt
23:46 jhenry82 does anyone have experience with the "exclude" keyword in a SLS file? I'm trying to exclude an SLS that has some duplicate ID's and it doesn't seem to be working
23:47 jhenry82 I've used "exclude" successfully elsewhere in the same way so I am not sure what could be wrong. The only difference is the SLS I am trying to exclude contains a dot (.) because it is nested a couple directories deep. The excludes that work have no dot. I don't see any relevant issues on github
23:50 halfss joined #salt
23:50 jankowiak joined #salt
23:51 frasergr_ joined #salt
23:56 krow joined #salt
23:56 fllr joined #salt

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