Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-02-18

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

All times shown according to UTC.

Time Nick Message
00:00 krow joined #salt
00:05 krow joined #salt
00:06 quickdry21 joined #salt
00:08 ndrei joined #salt
00:11 krow joined #salt
00:13 alunduil joined #salt
00:16 krow joined #salt
00:21 Troic_ joined #salt
00:22 krow joined #salt
00:26 hunter joined #salt
00:29 jtang1 joined #salt
00:29 frasergr_ joined #salt
00:30 cachedout joined #salt
00:33 leo joined #salt
00:39 hunter There's a bug on salt-ssh for pillar not working - is that likely to be fixed in 0.17.x or do I need to bump up to hydrogen?
00:40 krow1 joined #salt
00:41 wendall911 joined #salt
00:41 rgarcia_ joined #salt
00:42 forrest hunter, which release of salt-ssh are you using?
00:42 hunter The one in 0.17.5
00:42 hunter Grains work great but it would be nice to have pillar as well.
00:44 forrest hmm, yea I don't know then, your best bet might just try to be to use the develop branch in your test environment, salt-ssh is still pretty new so it has weird kinks.
00:44 hunter I think the bug is issue #8733
00:44 hunter forrest: I may try and work around it - all I need (or want) salt-ssh for is these Q$@$^ solaris boxen.
00:45 forrest hah solaris...
00:45 forrest we've got some of those where I work too
00:45 forrest After using them I can't understand how anyone can actually respect Oracle
00:45 hunter opensolaris, openindiana, omnios or whatever they're calling that pipe dream this week.
00:45 acabrera joined #salt
00:45 forrest they tried to upsell us on their RHEL replacement
00:46 hunter I've got a test box of sorts so I'm going to try the saltstack boot strap script, but I'm not optimistic
00:46 hunter forrest: they have a RHEL replacement?
00:46 forrest hunter, sounds good. You might also want to comment on that issue with some details that you're still seeing the problem
00:46 forrest yea man, oracle linux
00:46 hunter <sigh>
00:46 forrest they basically just take what redhat releases, then repackage it.
00:46 forrest it's pretty funny
00:47 hunter Sadly, I helped them get started with that.
00:47 forrest did you work for SUN?
00:47 hunter "Its the apocalypse - I always thought I'd have a hand in it"
00:48 hunter No - I wrote Current way back when - an open source RHN replacement. Oracle used it to boot strap themselves an RHN infrastructure
00:48 forrest ahh
00:48 forrest well, good job :P
00:48 hunter <sigh>
00:49 rojem joined #salt
00:49 forrest They actually said that their usual turn around for kernel patches is 24 hours, and that in this amount of time they do 'extra testing'
00:49 forrest what that was, they couldn't say
00:49 hunter It buils! It boots! Ship it!
00:49 forrest yep
00:50 hunter I'm much more interested in zfsonlinux as opposed to actual solaris these days.
00:50 forrest Yea for sure, I've gotta go away for a bit
00:51 krow joined #salt
00:54 acabrera joined #salt
00:57 krow joined #salt
01:02 scoates any idea why I'd never see these log messages (it's pillar, but the external modules stuff *is* registered correctly…) http://paste.roguecoders.com/p/bd31426ee69a23ed300770682df44d32.txt
01:02 krow joined #salt
01:05 Ryan_Lane joined #salt
01:11 scoates how many days has it been since I've ranted about jinja, forrest? (-:
01:11 krow1 joined #salt
01:12 rojem joined #salt
01:16 yomilk joined #salt
01:18 dzderic joined #salt
01:18 dzderic g'day folks
01:18 dzderic are there any known issues with using zeromq 3.2.2?
01:19 Furao joined #salt
01:21 hunter joined #salt
01:22 xzarth_ joined #salt
01:22 krow joined #salt
01:23 jtang1 joined #salt
01:25 rojem joined #salt
01:28 krow joined #salt
01:32 oz_akan_ joined #salt
01:33 Furao joined #salt
01:34 leo joined #salt
01:35 Furao_ joined #salt
01:39 DaveQB joined #salt
01:40 BenCoinanke joined #salt
01:42 krow joined #salt
01:42 jtang1 joined #salt
01:44 gadams999 left #salt
01:46 krow joined #salt
01:47 thayne joined #salt
01:52 krow joined #salt
01:55 glen_ joined #salt
01:57 krow joined #salt
01:58 bhosmer_ joined #salt
02:00 n8n joined #salt
02:00 glen_ How do we encrypt a password for a user for use with salt.states.user?
02:02 rojem joined #salt
02:03 krow joined #salt
02:07 Furao glen_: depends on the OS
02:07 Furao I wrote my own module for that, for linux
02:09 forrest scoates, I think less than 24 hours
02:09 scoates oh good. (-;
02:09 forrest scoates, you could always use mako :P
02:10 scoates Today's BS: using ~ to concatenate strings results in `u'longerstring'`
02:11 scoates which is only useful in Python land… so unless you're using Jinja to output Python (which—let's be honest—also deserves a kick in the head), then you're going to have literal `u` strings in your output. Go Jinja!
02:11 psyl0n joined #salt
02:12 wendall911 left #salt
02:13 manfred indeed! go unicode!
02:13 forrest heh
02:13 manfred ????
02:14 ravibhure joined #salt
02:14 scoates I have wasted (literally) weeks on Unicode messes.
02:14 jalbretsen joined #salt
02:16 ravibhure left #salt
02:16 xl1 joined #salt
02:16 manfred but i like getting to draw my kitty cat faces ????
02:17 krow joined #salt
02:17 scoates more like ????
02:17 manfred ಠ_ಠ
02:20 psyl0n joined #salt
02:22 rojem joined #salt
02:22 krow joined #salt
02:22 rojem joined #salt
02:23 mgw1 joined #salt
02:23 rojem joined #salt
02:24 rojem joined #salt
02:25 rojem joined #salt
02:25 glen_ joined #salt
02:25 snuffeluffegus joined #salt
02:26 rojem joined #salt
02:26 rojem joined #salt
02:31 glen_ Furao: I'm using ubuntu 64 precise
02:33 krow joined #salt
02:33 ahammond I'm imagining something like include: foo.stuff, my_depending_state: require: - virtual_state: foo_stuff
02:33 dancat joined #salt
02:34 manfred glen_: http://www.slashroot.in/how-are-passwords-stored-linux-understanding-hashing-shadow-utils
02:34 manfred then this one http://serverfault.com/questions/330069/how-to-create-an-sha-512-hashed-password-for-shadow
02:35 leo joined #salt
02:36 glen_ thanks manfred
02:37 jtang1 joined #salt
02:38 oz_akan_ joined #salt
02:44 rgbkrk joined #salt
02:44 krow joined #salt
02:45 ravibhure1 joined #salt
02:46 ravibhure1 left #salt
02:49 rostam joined #salt
02:50 res0_ joined #salt
02:51 res0nat0r joined #salt
02:52 res0nat0r Are all of the previous versions of the docs not available on readthedocs? I have 0.17.5 installed, but I don't see them hosted on the site
02:52 res0nat0r that version*
02:53 krow joined #salt
02:53 jcockhren res0nat0r: you mean the release notes?
02:54 res0nat0r jcockhren: Just the overall docs. It looks like the main docs.saltstack.com say the docs there are for the current develop release, so I'm just looking for the specific version on readthedocs. I see 'latest' as a default there, but I'm guessing that must be 0.17.5 and I'm being dense
02:54 manfred man 7 salt in your installed version and that is all the docs for that version.
02:54 scoates I think "latest" is 0.17.5 yeah
02:55 jcockhren http://docs.saltstack.com/topics/releases/index.html
02:55 Troic_ joined #salt
02:55 jcockhren ah
02:55 manfred the ones on docs.saltstack.org do include stuff for helium, but that is supposed to come out any day no
02:55 manfred w
02:55 vejdmn joined #salt
02:55 qasket left #salt
02:55 scoates Versions    v2014.1.0rc1    latest    v0.17.4    v0.16.4    v0.15.3    v0.14.1    v0.13.3    v0.12.1    v0.11.1
02:55 res0nat0r yup thats what i see too
02:55 manfred and anything that is new in helium/2014.1 is marked as such in the documentation
02:55 manfred oh
02:55 manfred that
02:56 joehoyle joined #salt
02:56 manfred nevermind
02:57 res0nat0r I was just trying to pin down to make sure I'm looking @ the right docs for what i have installed since I'm not sure if I'm seeing new functionality for modules that i don't have installed etc...so just trying to point to the right spot...but latest must be it so I'm good
03:04 krow joined #salt
03:05 terminalmage joined #salt
03:05 juicer2 joined #salt
03:05 Katafalkas joined #salt
03:08 thayne joined #salt
03:09 krow joined #salt
03:11 Gifflen joined #salt
03:11 xDamox joined #salt
03:13 xDamox I am trying to set the root password on a Linux box. However, I keep getting "State shadow.set_password found in sly root_password is unavailable" when running the command with salt-call it works fine
03:20 dancat joined #salt
03:22 rostam joined #salt
03:31 jtang1 joined #salt
03:32 dave_den xDamox: there is no state module for shadow. there is only the execution module
03:33 xDamox How can i tell the difference between a state module and a execution module?
03:33 dave_den xDamox: http://docs.saltstack.com/ref/states/all/  http://docs.saltstack.com/ref/modules/all/
03:34 xDamox Thanks Dave
03:34 dave_den xDamox: if you want to call a module from a state you can use states.module http://docs.saltstack.com/ref/states/all/salt.states.module.html
03:35 krow joined #salt
03:36 leo joined #salt
03:51 joehoyle joined #salt
03:57 dave_den joined #salt
04:01 schimmy joined #salt
04:03 darless joined #salt
04:10 rostam joined #salt
04:16 jalbretsen joined #salt
04:19 Ryan_Lane joined #salt
04:25 jtang1 joined #salt
04:34 joehoyle joined #salt
04:35 schimmy joined #salt
04:36 warmwaffles joined #salt
04:37 leo joined #salt
04:37 warmwaffles anyone able to help me with this error https://gist.github.com/warmwaffles/9064696
04:37 rojem joined #salt
04:37 manfred looks like you have been compiling from develop?
04:37 warmwaffles yas :(
04:38 warmwaffles was hoping it was a configuration problem and not a code problem
04:38 manfred there was a thing they were using to restry the bus, remove /var/run/salt/minion/* and the service salt-minion restart
04:39 warmwaffles and another weird thing is when I try to test.ping all my minions (2) salt just hangs and nothing happens
04:39 warmwaffles bah, I should probably just use the stable
04:45 mgw1 joined #salt
04:51 HeadAIX joined #salt
04:53 oz_akan__ joined #salt
04:57 warmwaffles manfred: had to nuke the install and rm all the configs and reinstall salt-git. Looks like my problem is solved for now =/ may have been that I had jacked my configs up
04:57 warmwaffles thanks for the help
04:59 manfred warmwaffles: the reason they aren't responding is that the daemons are dieing because of the error you posted
05:09 warmwaffles yea I rm'd the run symlink stuff and it still was persisting
05:09 anuvrat joined #salt
05:09 warmwaffles ¯\_(ツ)_/¯
05:13 rojem joined #salt
05:19 jtang1 joined #salt
05:19 BenCoinanke joined #salt
05:25 kolaman joined #salt
05:25 krow joined #salt
05:29 acabrera joined #salt
05:36 joehoyle joined #salt
05:37 leo joined #salt
05:38 rojem joined #salt
05:48 DaveQB joined #salt
05:55 linjan_ joined #salt
05:55 krow joined #salt
05:59 rvm joined #salt
06:00 anuvrat joined #salt
06:01 xDamox joined #salt
06:03 rvm this link has my contents of rvm/ruby/init.sls -http://pastebin.com/vK68hX38. and my error is in http://pastebin.com/X9xcxx5F. please do let me know about the changes
06:03 terminalmage about what changes
06:04 terminalmage ?
06:04 rvm terminalmage: which needs to be done in my rvm/ruby/init.sls
06:05 terminalmage rvm: I can't tell you this because you left out some of the relevant config
06:05 terminalmage you have: a require for "cmd: rvm_bashrc"
06:05 rvm i am getting this while running sudo salt '*' state.sls rvm2.ruby
06:05 terminalmage that requisite is failing
06:06 terminalmage and without seeing it, I don't know what is wrong
06:06 rvm terminalmage: i don't have anything like rvm_bashrc. please letme know what needs to be in that file.
06:07 terminalmage how would I know?????
06:07 terminalmage you are the one that wrote that configuration?
06:07 terminalmage why do you have a requisite on something if you don't know what it is?
06:09 zzzirk joined #salt
06:09 rvm actually it searched and added for rvm/init.sls. it worked for that.
06:10 rvm i have tried removed rvm_bashrc but it doesn't works
06:11 terminalmage ok, well until you give me enough information to help you, I'm sorry, but I can't help
06:11 terminalmage saying it "doesn't work" doesn't tell me anything
06:12 rvm sorry i will let you know the error please wait.
06:13 jtang1 joined #salt
06:14 rvm This is my error when i  removed - cmd: rvm_bashrc. please do check this link for thathttp://pastebin.com/jGnFXrmm
06:15 oz_akan_ joined #salt
06:16 rvm terminalmage: This is my error when i  removed - cmd: rvm_bashrc. please do check this link for that http://pastebin.com/jGnFXrmm
06:17 terminalmage so you removed the " cmd: rvm_bashrc" line and you left the require
06:17 terminalmage ?
06:17 terminalmage rvm: Please read the documentation
06:17 terminalmage http://docs.saltstack.com/ref/states/requisites.html
06:18 terminalmage you can't have a require statement without listing below it what is required
06:18 terminalmage in other words, no empty "require"
06:20 rvm terminalmage: thanks
06:20 terminalmage rvm: np. if you don't need the require, you need to remove the "require" line
06:20 herzi joined #salt
06:20 rvm terminalmage: i have removed " cmd: rvm_bashrc"  and tried
06:21 Guest64230 joined #salt
06:21 chet_ joined #salt
06:25 terminalmage rvm: and tried what?
06:27 rvm terminalmage: without rvm_bashrc
06:27 terminalmage rvm: and did you also remove the "require" line above it?
06:27 terminalmage because the error you posted suggests that you did not
06:28 rvm terminalmage: please let me know how to install rvm 2.1.0 in specific user of the minion
06:28 terminalmage I don't know how
06:28 terminalmage I don't know anything about rvm
06:28 terminalmage rvm: can you please just answer my question?
06:28 terminalmage please?
06:29 terminalmage 00:27:43 terminalmage | rvm: and did you also remove the "require" line above it?
06:30 rvm terminalmage: nope. sorry for the inconvenience
06:38 leo joined #salt
06:40 carlos joined #salt
06:43 terminalmage joined #salt
06:45 xDamox joined #salt
07:00 schimmy joined #salt
07:01 ravibhure joined #salt
07:02 ravibhure left #salt
07:05 joehoyle joined #salt
07:08 jtang1 joined #salt
07:08 mikkn Are pillars read in at the beginning of a state run or could you have a state that triggers a new pillar to be generated and then read it in the next state?
07:13 krow joined #salt
07:15 oz_akan_ joined #salt
07:27 bhosmer_ joined #salt
07:37 linjan_ joined #salt
07:39 leo joined #salt
07:44 jtang1 joined #salt
07:52 Raphael joined #salt
07:54 yomilk joined #salt
07:55 krow joined #salt
07:55 davet joined #salt
07:59 oz_akan_ joined #salt
07:59 Kenzor joined #salt
08:00 krow joined #salt
08:02 ml_1 joined #salt
08:02 balboah joined #salt
08:05 harobed joined #salt
08:05 harobed joined #salt
08:06 linjan_ joined #salt
08:06 harobed joined #salt
08:06 techdragon Um... is it just me or is jenkins having issues at the moment. http://jenkins.saltstack.com/job/salt-pr-rs-ubuntu12.04/
08:07 techdragon " [ERROR   ] Salt request timed out. If this error persists, worker_threads may need to be increased."
08:08 techdragon kinda irritating since I was trying to do some Pull Requests
08:11 techdragon also... the pylint pass seems to also be failing due code in upstream. more than 50% of the errors in pylint seem to come from salt/transport/road/raet/
08:11 ndrei joined #salt
08:12 krow joined #salt
08:12 slav0nic joined #salt
08:15 yomilk joined #salt
08:16 giantlock_ joined #salt
08:29 ndrei joined #salt
08:30 krow joined #salt
08:31 scott_w_ joined #salt
08:37 astol joined #salt
08:39 yomilk_ joined #salt
08:46 astol Hi all. I am trying to figure out the most 'right' way to gather info about what software I have installed on my minions. What I am trying to achieve is to automatically sync zabbix configuration (templates) with what I had assigned to minions. For instance when I install nginx on minion I don't want to manually assign Nginx zabbix template to all minion hosts, same with removing software. I want to somehow question salt 'what things which minion has th
08:53 joehoyle joined #salt
08:58 rawzone joined #salt
09:00 oz_akan_ joined #salt
09:03 astol joined #salt
09:04 astol1 joined #salt
09:14 krow joined #salt
09:24 jtang1 joined #salt
09:29 kadel joined #salt
09:29 miguitas joined #salt
09:46 krow joined #salt
09:49 leo left #salt
09:55 higgs001 joined #salt
09:59 joehillen joined #salt
09:59 anuvrat joined #salt
10:01 oz_akan_ joined #salt
10:13 millz0r joined #salt
10:18 mike25ro joined #salt
10:18 jtang1 joined #salt
10:21 LinuxBill joined #salt
10:21 tonthon joined #salt
10:22 mattikus` joined #salt
10:22 ndrei joined #salt
10:23 MaZ- joined #salt
10:23 mike25ro hi guys
10:24 mike25ro i have added 7 new vms to saltmaster. for couple of them ... when i run the command  salt 'minion' test.ping or saltutil.refresh_pillar ... nothing is returned
10:24 mike25ro how can i debug...?
10:26 miguitas execute the minions with this command "salt-minion -l debug"
10:26 LinuxBill joined #salt
10:26 miguitas if are running as services stop before run the command
10:27 miguitas mike25ro: I hope this helps
10:28 ndrei joined #salt
10:29 mike25ro ok... miguitas let me try that
10:30 mike25ro oh shit .. i am stupid.. salt-minion was not running.. as a daemon..
10:30 mike25ro miguitas:
10:30 miguitas mike25ro: XD
10:30 mike25ro thanks for pointing to me that i am a moron .. although i have run salt-minion -d ...
10:46 gmtech Hey
10:46 gmtech Does anyone know how to use iptables with a specific interface e.g. lo ?
10:47 gmtech So I want my default INPUT policy to be DROP, and I want to allow all connections to and from lo
10:47 gmtech But the docs don't seem to include how you put a rule on a specific interface
10:50 hotbox_ joined #salt
10:51 n8n joined #salt
10:54 lpn gmtech: -o lo
10:55 gmtech but how does that translate to iptables.append state ?
10:55 gmtech - interface: lo ?
10:56 gmtech Ah it appears to be "if"
10:58 gmtech Jeez - the iptables module doesn't have any support for source IP ?
10:58 gmtech That's just crazy.
11:02 oz_akan_ joined #salt
11:04 joehoyle joined #salt
11:09 MaikDerstappen joined #salt
11:12 jtang1 joined #salt
11:12 Xevian joined #salt
11:13 MaikDerstappen joined #salt
11:14 psyl0n joined #salt
11:17 astol joined #salt
11:26 elfixit joined #salt
11:26 joehoyle joined #salt
11:28 astol joined #salt
11:33 babilen Hi, can I use pillars with a masterless minion?
11:35 astol joined #salt
11:35 babilen Use case is that I'd like to test/develop salt formulas in vagrant
11:36 ml_1 joined #salt
11:36 psyl0n joined #salt
11:37 gmtech I test salt formulas in vagrant but i vagrant up a saltmaster to do it
11:37 gmtech having said that i believe you can
11:38 gmtech i just like using a salt master because it keeps everything the same
11:38 gmtech and i don't have to have 2 different methods
11:40 babilen gmtech: Okay, so you essentially run the master/minion combo directly in vagrant - I'll look into that, but so far I think that I do not necessarily need it.
11:41 babilen Would I simply have to set pillar_roots to the pillar directory the vagrant box is mounting via NFS?
11:41 gmtech Yeah I use a private network in vagrant, and have a multiVM Vagrantfile, so i spin up the salt master and then spin up the other VMs salting them from the master
11:41 david_a joined #salt
11:41 babilen gmtech: Sounds plausible and viq mentioned a similar setup yesterday. How'd you deal with hostnames/targetting for different projects?
11:43 gmtech part of my salt-master VM is also a DNS server, running its own domain - e.g. myco.vagrant - and i use the same naming conventions everywhere - production, staging, dev, and vagrant so i would spin up e.g. wap01.myco.vagrant as mentioned in the vagrantfile
11:43 gmtech not sure if that makes sense
11:43 viq there's a vagrant-hostmanager plugin, sets hostnames and puts them in /etc/hosts on VMs and in host
11:44 viq And yeah, if your infrastructure is not masterless then it makes more sense to test with a master - and vagrant makes it easy to set up
11:44 viq babilen: and my example does use pillars
11:45 gmtech yeah i forgot about the vagrant-hostmanager plugin
11:45 babilen Wonderful! This community and the tooling is awesome. I barely scratched the surface and alrady discover gems every day. It probably doesn't help that I am fairly new to this endeavour, so thank you both for providing valuable input.
11:45 jrdx joined #salt
11:45 babilen viq: Yes, you example is great.
11:45 gmtech I use dnsmasq to route the host OS myco.vagrant domain through to the Vagrant saltmaster+DNS box so that everything naturally finds what it needs
11:51 ndrei joined #salt
11:51 astol joined #salt
11:52 scott_walton joined #salt
11:56 bhosmer_ joined #salt
11:57 mike25ro guys .. i am going insane... i think i am loosing it :) http://pastebin.com/j2ATXQ3E
11:57 mike25ro i have a jinja/master.jinja file where i store some static data. .. and when i want to append that data to /etc/fstab ... it appends none ...    http://pastebin.com/j2ATXQ3E
11:58 viq mike25ro: are you sure you don't already have that line in fstab?
11:59 mike25ro i am sure viq
11:59 mike25ro i am looking at the fstab file right now.
12:00 mike25ro if i use the same jinja in a .conf file it works..
12:00 mike25ro in the state ... append ... it seems it does not
12:00 mike25ro i have salt 0.17.1
12:00 Ryan_Lane joined #salt
12:01 zzzirk joined #salt
12:02 viq mike25ro: oh. RedHat, not CentOS
12:02 viq default is os_family
12:02 viq ho, you do have os there...
12:02 viq hm
12:02 mike25ro i have os .. it works...
12:02 mike25ro i used that in other files...
12:04 viq Dunno, haven't really played with file.append, sorry
12:05 mike25ro viq:  thanks anyway
12:06 jtang1 joined #salt
12:06 joehoyle joined #salt
12:09 Rory joined #salt
12:15 Rory Could anyone please help me with event.fire_master? The syntax of how I called it is here http://pastebin.com/we4mv4g1
12:15 Rory I get the error TypeError: fire_master() takes exactly 2 arguments (1 given)
12:15 Furao Rory: what?
12:15 Furao why you do that
12:16 Furao use salt to run salt-call that run event.fire_master
12:16 Furao it's like going from paris to london trough moscow
12:16 Rory I'm open to a neater suggestion
12:17 Rory I do need to use event.fire_master though, because the saltmaster server is the one that has the necessary firewall permissions to actually perform the 'register-all-zabbix' event
12:17 Furao Rory: https://gist.github.com/bclermont/de5142eceb3ebad48250
12:18 Rory ah, module.run looks like what i need
12:18 mike25ro guys ..anyone here .... has used file.append to add jinja data?
12:18 Furao add jinja data?
12:19 mike25ro Furao: http://pastebin.com/j2ATXQ3E
12:19 mike25ro Furao: i use file.append... to append some lines that are taken from a jinja file
12:19 Rory Furao: Is the "data" section required? I don't need to pass any extra parameters
12:19 linjan joined #salt
12:19 che-arne joined #salt
12:20 Furao Rory: you should try, I haven't played with event for a few months
12:20 Furao I don't remember
12:20 brianhicks joined #salt
12:20 mike25ro Furao: if i use the same ... jinja in a conf file it works... data is added there... but when i try to push it with file.append ... is not pushed
12:20 gmtech Hey - am confused - am trying to run an iptables state, and getting this error >  "State iptables.insert found in els firewall.IN_baseline is unavailable"
12:20 gmtech I thought iptables was a core state?
12:21 gmtech Its in /usr/lib/pymodules/python2.7/salt/modules/iptables.py
12:21 Teknix joined #salt
12:21 Furao gmtech: check __virtual__
12:21 Furao gmtech: https://github.com/saltstack/salt/blob/develop/salt/modules/iptables.py#L21
12:22 gmtech Yeah - iptables is installed
12:22 joehoyle joined #salt
12:22 gmtech # which iptables
12:22 Furao mike25ro: you're trying to run a macro?
12:22 Rory Awesome Furao it works if you pass - data ''
12:23 Rory Furao: Thanks a lot, I can close this feature off now
12:23 Furao Rory: as data is a dict I think - data: {}
12:23 Furao is safer
12:23 mike25ro Furao: no, just a state ... that appends some text to a file.
12:23 Rory Furao: OK good call
12:23 Furao mike25ro: well it seem that file_block value is really None
12:24 mike25ro Furao: is extremely frustrating...because the append ... does not append anything
12:24 mike25ro Furao: 'file_block': '### SALT: do NOT edit below this line ###',
12:24 Furao are you sure that {{ jinjamaster.file_block }} get replaced by something in the minion when it render jinja?
12:24 mike25ro Furao: that is the problem
12:25 Furao ok I just saw line 30
12:26 Sypher_ joined #salt
12:26 mike25ro Furao: i have tested with a brand new sls and testFile on the minion .. same problem... it must be smth  i am doing wrong
12:26 middleman_ joined #salt
12:27 Furao it's just that I wonder if your jinja/master.jinja works in first place
12:27 Furao it's not structured as a macro
12:27 Sypher__ joined #salt
12:28 mike25ro Furao: .. i have used the info in the master.jinja... in .conf files.  if i add {{ jinjamaster.file_block }} to a conf file and deploy it with salt it works... data is replaced properly
12:29 mike25ro Furao: that is the frustrating part... why does it work ... in a .conf file... and not with append ?
12:30 mike25ro OH SHIT!!!
12:30 Furao ?
12:31 mike25ro Furao: ... i know why :  - '{{ jinjamaster.file_block }}'
12:31 mike25ro Furao: i have added ' '
12:31 Furao but… jinja2 don't care about the ' ' it only process {{ … }}
12:32 mike25ro Furao: ... adding the '{{ helped
12:33 viq Furao: but the text it replaced started with #
12:34 mike25ro ?
12:34 viq mike25ro: makes sense. in effect you had: - ### File managed by SALT ###
12:35 mike25ro yeah
12:35 viq where # is a comment sign. so you had commented out your text :P
12:35 Furao oh you're right guys
12:35 mike25ro ah ... right viq Furao
12:35 mike25ro thanks guys :)
12:36 viq while - '### File managed by SALT ###' is "hi, here's some text in quotes. yeah, it has # in there, so what'
12:36 mike25ro yes indeed
12:47 ndrei joined #salt
12:52 tlyng joined #salt
13:00 jtang1 joined #salt
13:02 jtang2 joined #salt
13:05 liwen joined #salt
13:12 mgw joined #salt
13:13 videre joined #salt
13:14 videre how do people assign roles to new vm's without doing it manually?
13:15 Trauma_Reaper joined #salt
13:16 jcsp joined #salt
13:16 psyl0n joined #salt
13:17 videre I'm working in an esxi environment and have tried a vagrant + vagrant-vsphere plugin combination, but unfortunately some broken plugin dependencies made it impossible. Now I'm looking for alternative ways to assign the roles in the provisioning process
13:19 viq videre: pillars?
13:20 mike25ro videre: i am using pillars
13:21 videre how? I don't understand how you can use that to assign different profiles to machines?
13:21 mike25ro videre: http://pastebin.com/L4XCsTvP
13:22 MTecknology viq: init.sls has ' - postgresql' in it; that's outside of the formula, isn't it?
13:22 mike25ro videre:   you can see that i have some jinja magic there... to help me target minions based on the os : Centos or the version 6,  7
13:22 oz_akan_ joined #salt
13:22 mike25ro videre:  but i also have environment: office  and location (i am not using this at the moment)
13:24 viq MTecknology: yes, I can paste mine if you want
13:24 videre mike25ro: I see, but I'm still missing how it allows you to assign one role to one machine and another role to a different, but identical machine
13:24 MTecknology no need; but it might not be bad to have that at the root in case others need it
13:25 MTecknology You'll get a PR when I add the logic for an external db
13:25 viq yeah, I was thinking of having a folder with "support" files I use
13:25 tlyng joined #salt
13:26 mike25ro videre: different but identical? there is no such thing
13:26 gmtech Is there any way I can require a group of states.. e.g. suppose I have 10 states defined in an sls file, can I require them all, rather than having to specify each one as a line in a require: section
13:26 mike25ro videre:  each machine must have an unique ID
13:27 mike25ro when you add the machine to salt-master... you can see the id
13:27 videre mike25ro: you're right, they must have unique id's, so are you saying I can centrally manage roles based on id using pillars?
13:27 viq gmtech: require: - sls: your_top_level_sls
13:27 gmtech oh great
13:27 joehoyle joined #salt
13:27 gmtech wonderful
13:28 mike25ro videre: of course
13:28 jcsp1 joined #salt
13:29 mike25ro videre: salt is very flexible... depending how you want to manage the pillars... I have a pillar file for each minion
13:29 techdragon Anyone familiar with the inner core of salt around? i've got a rather specific question i can't find the answer too in the docs and its taking me far too long to find, just where does the minion send its return data to the master ? I've got about a half dozen points where it could be none of which I'm sure of. I think its salt/salt/daemons/masterapi.py in remotefuncs._return() around line 460, but I would love to be sure.
13:30 mike25ro videre: when a new machine is added to salt... i actually have a web page where i accept the key ... by clicking a button - then some php + sh magic behind create a pillar file from a template ... and adds the minion to an environment (another button on my web page)
13:30 videre mike25ro: thank you, how many minions are you managing? I'm dealing with 2000+
13:30 mike25ro videre:  at this point only 40
13:30 videre mike25ro: that is exactly what I'm looking for, thank you!
13:30 mike25ro videre:  but that should not be a problem.. as far as i can see
13:31 mike25ro videre:  i have a ... template.minion file... that is copied to ... minion.sls when minion key is added to the master
13:31 mike25ro videre:  then... a sh ... is replacing the environment:  with office in my case.. or vdev or whatever i need
13:32 oz_akan_ joined #salt
13:33 videre mike25ro: ok, so when the the minion is started it updates its own configuration? and that configuration is based on a pillar on the master matching its id?
13:34 MTecknology viq: in rhel land, what do you need to install if you want mysql2?
13:34 mike25ro videre: let's chat on private
13:34 viq MTecknology: 'mysql2' being ... ?
13:34 videre mike25ro: ok, how?
13:35 MTecknology viq: the ruby bit for connecting to mysql2
13:35 psyl0n joined #salt
13:36 MTecknology in debian land, I think it's ruby-mysql2
13:36 viq MTecknology: https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/install/centos
13:37 viq MTecknology: but doesn't the bundler stuff take care of the gems?
13:37 justBob_ joined #salt
13:37 MTecknology maybe... I'll assume yes
13:38 techdragon Even someone familiar with the event system would be a huge help...
13:39 viq MTecknology: section 5 in that doc, and then in section 6 "install gems"
13:41 viq MTecknology: and official, debian-based install doc: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md
13:41 techdragon Between the client, and the minion and master daemons. tracing where it happens, is taking me hours.
13:41 argb joined #salt
13:42 viq MTecknology: I've been trying to follow those procedures, with the exception of using the ruby that's available on debian. On CentOS I still need to figure this out, because both RVM and the SBCL rubies end up in "weird" location, so rest of the system needs to be taught how to deal with that
13:42 jaimed joined #salt
13:42 argb hi everyone
13:42 argb I got a problem when use salt in vagrant
13:43 viq MTecknology: also if you want a source of inspiration, their cookbook apparently recently got support for using external database
13:43 argb every time I run "salt-call test.ping' need wait a long time
13:44 viq argb: try adding --local to that
13:44 argb then I got the log
13:44 argb 2014-02-18 13:42:56,470 [salt.crypt                               ][WARNING ] SaltReqTimeoutError: Waited 60 seconds
13:44 faldridge joined #salt
13:44 viq argb: salt-call without --local will try to contact master
13:44 argb anybody know why?
13:44 ndrei joined #salt
13:44 ipmb joined #salt
13:45 MTecknology viq: I think I potentially have it all squared away except for what's in gitlab.sls
13:45 argb but i have a /etc/salt/minion file
13:46 MTecknology I'm making the assumption that you have it working perfect on debian and it's been well enough tested so all I'm actually doing is the remote db stuff
13:46 argb @viq master: localhost file_client: local
13:47 viq MTecknology: uhm, "works for me" ;)
13:47 viq MTecknology: I deployed it at work with that, though it currently has 1.2 users ;)
13:48 argb even if i added --local ,it don't work correctly yet
13:48 MTecknology viq: not cool!
13:48 MTecknology midgets are people too!
13:48 argb still got that timeout log
13:49 viq MTecknology: there are some bits that I didn't yet figure out how to do properly, mainly regarding SSL, especially if you're not using a common CA
13:50 viq And there are all those extra settings that I simply set in the config file from pillar, but I did not try it with LDAP or omniauth or ....
13:50 MTecknology I'll be doing ldap auth
13:50 viq argb: sorry, I usually set up master when playing in vagrant, even if it's one box. Vagrant makes it simple enough to do ;)
13:51 viq MTecknology: I'd like to as well, but LDAP is currently a bit disliked in my team, and also LDAP server is in a different subnet which is currently not reachable from where gitlab is, sigh
13:52 MTecknology there's a lot more logic than I was expecting for remote db
13:52 MTecknology but, it'll be worth it
13:53 viq yeah
13:53 viq you'll still most likely need the {{database}}-dev packages though, but yeah, not database server running locally
13:54 viq And now I need food :P
13:54 sgviking joined #salt
13:54 brianhicks joined #salt
13:55 MTecknology I'm trying to also account for a postgresql server that's remote
13:55 MTecknology mysql local; mysql remote; pgsql local; pgsql remote
13:56 joehoyle joined #salt
13:56 jtang1 joined #salt
13:58 Nazca joined #salt
13:58 BogdanR Right now I am using salt by pushing configuration states with state.highstate
13:58 BogdanR Wouldn't be a better ideea to make it pull once a few minutes?
13:58 BogdanR If so, how would I do that?
14:00 middleman_ joined #salt
14:00 MTecknology viq: ' - postgresql' <-- does this install the local db server?
14:02 zzzirk joined #salt
14:04 zooz joined #salt
14:05 juicer2 joined #salt
14:06 backjlack joined #salt
14:06 vbabiy joined #salt
14:07 mua joined #salt
14:09 bt joined #salt
14:09 racooper joined #salt
14:10 mua_ joined #salt
14:10 jmoretti joined #salt
14:10 MTecknology ... I don't think the mysql states handle a remote db... :S
14:11 jmoretti left #salt
14:11 ndrei joined #salt
14:12 videre left #salt
14:18 MTecknology viq: I might be ready to test this sucker out! Once I get the dns/ip request pushed through our networking group, I'm going to fire up the server and see how she works out
14:19 MTecknology more than likely I screwed up somewhere...
14:22 elithrar joined #salt
14:24 ndrei joined #salt
14:25 vejdmn joined #salt
14:25 fishpen0 joined #salt
14:26 faldridge joined #salt
14:27 AdamSewell joined #salt
14:27 AdamSewell joined #salt
14:30 borgstrom BogdanR: http://docs.saltstack.com/topics/jobs/schedule.html
14:32 cofeineSunshine joined #salt
14:32 cofeineSunshine hi
14:32 cofeineSunshine installed halite
14:32 cofeineSunshine "For example in master config:"
14:33 cofeineSunshine where i can find that master config file? and what should I restart after editing it?
14:33 cofeineSunshine as I understand, it uses unix PAM, so as a login i must use UNIX shell login name?
14:33 cofeineSunshine i'm tryning to configure halite
14:34 cofeineSunshine /etc/salt/master
14:35 mpanetta joined #salt
14:35 higgs001 joined #salt
14:36 Jiten joined #salt
14:36 Pravs joined #salt
14:37 Pravs hi is there anyone from Salt team here ..
14:37 Ahlee anybody seen custom _modules/ reporting as not available?
14:37 borgstrom joined #salt
14:37 Jiten Hi, my team are using salt and have encoutered a few issues, would you advise the best email group to send this to?
14:38 Ahlee Jiten: either file issues on github with reproduction steps, or email the mailing l ist with reproduction steps
14:39 linjan joined #salt
14:39 Jiten Thanks Ahlee, would you confirm the mailing list email address?
14:40 Ahlee https://groups.google.com/forum/#!forum/salt-users
14:40 funzo joined #salt
14:41 Gordonz joined #salt
14:41 krow joined #salt
14:44 Gordonz joined #salt
14:46 Rory left #salt
14:46 mpanetta joined #salt
14:50 GradysGhost joined #salt
14:51 jtang1 joined #salt
14:52 jergerber joined #salt
14:56 elfixit joined #salt
14:57 scoates (repost) any idea why I'd never see these log messages (it's pillar, but the external modules stuff *is* registered correctly…) http://paste.roguecoders.com/p/bd31426ee69a23ed300770682df44d32.txt
14:57 jeremyBass joined #salt
14:57 joehoyle joined #salt
14:58 funzo joined #salt
15:00 MTecknology http://dpaste.com/1633913/ <-- can't say that I've seen that before
15:03 LinuxBill joined #salt
15:07 MTecknology ah... incompatible versions
15:07 scott_w joined #salt
15:09 viq MTecknology: yes, postgresql state installs and starts a local postgresql server
15:09 MTecknology and... here we go!
15:09 MTecknology ah.... fudge
15:10 viq MTecknology: I was testing everything in vagrant ;)
15:11 MTecknology I just wanna watch it work once and not concern myself further... :P
15:11 anuvrat joined #salt
15:11 MTecknology Specified SLS redis in environment base is not available on the salt master
15:11 MTecknology grrr
15:13 MTecknology Does redis actually need any special configuration?
15:13 viq MTecknology: https://gist.github.com/viq/9072845
15:13 viq no
15:13 MTecknology ah
15:17 quickdry21 joined #salt
15:22 Shenril joined #salt
15:22 joehoyle joined #salt
15:22 rostam joined #salt
15:24 thayne joined #salt
15:26 darrend joined #salt
15:26 scoates composer is listed here: http://docs.saltstack.com/ref/states/all/ but I don't seem to have it installed. On 0.17.5 … any ideas?
15:27 jaimed joined #salt
15:28 viq scoates: https://github.com/saltstack/salt/tree/0.17/salt/states - it's not in 0.17
15:28 scoates bummer.
15:28 MTecknology duhr... I completely forgot about some stuffs
15:28 scoates thanks, viq
15:29 MTecknology gitlab-initialize: <-- probably the last state I need to play with
15:29 MTecknology viq: what's the psql option for a remote host?
15:30 alunduil joined #salt
15:30 MTecknology that psql command also doesn't have anything about user password - what's the parameter for that?
15:31 d1rk joined #salt
15:31 viq MTecknology: -h hostname
15:31 forrest joined #salt
15:31 anuvrat joined #salt
15:31 * Shish wonders if a 2014.1 client should be compatible with a 0.17.5 server?  The client is failing to find sls'es
15:32 viq MTecknology: I'm not sure you can pass a password as a parameter...
15:32 viq Shenril: usually it's advised, that server should be same or newer than clients
15:32 MTecknology http://www.skrenta.com/rt/man/psql.1.html <-- I'm not seeing it
15:33 MTecknology how then can you check a remote postgresql server has everything installed?...
15:33 millz0r joined #salt
15:34 viq MTecknology: one thing that comes to mind is "run this command, and when it succeeds, touch a file. never run this command if file exists"
15:35 feth joined #salt
15:35 scoates fwiw, the composer module + state *does* work on 0.17 (in my _ dirs)
15:35 feth Hello
15:35 MTecknology heh... that would make things MUCH easier...
15:35 feth I'm trying to generate conf files on minions with jinja, but I can't get the jinja include statement to work
15:36 jcsp1 left #salt
15:36 feth eventhough I copied the target files on the minion
15:36 feth it says MinionError: Unsupported path: /etc/samba/defs/global
15:36 mgw joined #salt
15:36 feth (also tried with relative path)
15:36 viq MTecknology: also if postgres server is managed via salt, maybe you'd be able to execute commands there...
15:37 feth oh, ok, salt url required... so dumb of me
15:37 tyler-baker joined #salt
15:38 cnelsonsic joined #salt
15:38 joehoyle joined #salt
15:39 mike25ro feth:  you need an url relative to your salt install dir
15:40 viq MTecknology: I wonder if just the database migration commands would create a new database
15:41 pass_by_value joined #salt
15:41 BogdanR q
15:41 * Shish wonders what still needs doing before 2014.1 gets a full release, might be easier to help with that than fiddle with hacks and mixed versions for odd clients on his network...
15:42 feth mike25ro: I got it, reading the code :)
15:43 toastedpenguin joined #salt
15:44 viq MTecknology: hmmm, https://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.postgres.html#salt.modules.postgres.psql_query
15:44 res0_ joined #salt
15:45 jtang1 joined #salt
15:45 higgs001 joined #salt
15:46 Gifflen joined #salt
15:46 MTecknology whew... so many errors
15:48 viq MTecknology: I know the feeling ;)
15:48 juicer2 left #salt
15:48 Sfphinx joined #salt
15:49 Sfphinx left #salt
15:49 MTecknology http://dpaste.com/1634046/
15:49 ekristen joined #salt
15:49 MTecknology that's not so bad, should be easy enough to fix
15:49 danielbachhuber joined #salt
15:51 HeadAIX joined #salt
15:52 BogdanR borgstrom: Thanks. I added schedule to pillar. Now how do I see this actually runs?
15:52 msil joined #salt
15:53 anuvrat joined #salt
15:53 msil hey, i'm getting ValueError: need more than 1 value to unpack when using a .sls file to install nginx on a freebsd system using pkgng
15:53 msil anyone else seen this?
15:54 msil seems to work when i use salt '*' pkg.install nginx
15:54 viq msil: show your state
15:54 rojem joined #salt
15:54 msil it's just:
15:54 msil nginx:
15:54 msil ppkg.installed
15:54 viq msil: pastebin or something
15:54 msil *pkg.
15:54 msil that's all it is
15:55 MTecknology what?...
15:55 MTecknology http://dpaste.com/1634063/
15:55 MTecknology nuh uh... you ain't upposed to be install teh unstabel
16:01 MTecknology viq: my whining - my fault... somehow I upgraded this box to unstable or something
16:01 LinuxBill left #salt
16:02 viq MTecknology: that's why I like vagrant. "oh, I messed up? eh. 'vagrant destroy && vagrant up' and 5 minutes later I can start with fresh machine"
16:02 harobed_ joined #salt
16:02 cyp joined #salt
16:02 joehoyle joined #salt
16:03 MTecknology it takes 5min to redeploy with vagrant!?!??!
16:03 opapo joined #salt
16:03 MTecknology at home I can do that manually in <2min (granted.. that's one specific environment)
16:04 viq MTecknology: laptop 5400 rpm drive, with bootstrapping salt
16:04 scoates it takes 45 seconds for Ruby to initialize… amirite? (-:
16:04 MTecknology Comment:   error: Problem with the SSL CA cert (path? access rights?) while accessing https://gitlab.com/gitlab-org/gitlab-shell.git/info/refs   fatal: HTTP request failed   <-- my latest issue
16:04 viq MTecknology: sec, let me look up pillar values to deal with that
16:05 MTecknology aight - I figured it was something on my side
16:05 UtahDave joined #salt
16:06 msil is there a way to call pkg.install from an sls file?
16:06 viq MTecknology: either gitlab:https set to false, or gitlab:shell:self_signed_cert set to true
16:06 scoates I've asked before, but maybe someone new knows: is there a way to get more realtime feedback from a salt command, instead of a big dump of success/fails at the end of a command?
16:06 msil as pkg.installed or any variant thereof seems to give me the same "need more than 1 value to unpack" error
16:06 viq scoates: you could run it via salt-call
16:06 scoates viq: yeah, I mean from the master
16:06 MTecknology I have gitlab:https False, but that seems to exist for nginx and such
16:07 viq MTecknology: it should set stuff in gitlab-shell settings as well
16:07 MTecknology ah, that
16:08 viq oh, wait, I misread
16:08 MTecknology gitlab:https = false; gitlab:shell:self_signed_cert = true; same result
16:08 viq yeah, I thought you're farther in, you're having a problem with git checkout, sorry
16:08 viq MTecknology: you need to install cert bundle if you didn't yet
16:09 MTecknology I did not
16:09 MTecknology is there a state for that, or a package?
16:09 viq ca-certificates
16:09 viq package
16:09 gnugnu5 joined #salt
16:09 londo joined #salt
16:10 joehoyle joined #salt
16:10 cachedout joined #salt
16:10 MTecknology is it that same package name in centos too?
16:10 kermit joined #salt
16:11 viq i'll have to look it up
16:11 MTecknology I can too
16:13 MTecknology yum search ca was not the right command to run... it's definitely not the same
16:14 Gifflen joined #salt
16:14 viq I do see a package named ca-certificates on centos
16:14 bt joined #salt
16:14 Eugene MTecknology - ca-certificates is the package name
16:14 Eugene It's the mozilla bundle
16:14 joehoyle joined #salt
16:14 MTecknology it's my screwy setup then that's not letting me find that package
16:15 frasergraham joined #salt
16:15 msil i seem to be having an error with pkg.list_pkgs on freebsd
16:15 viq msil: which freebsd version is this?
16:15 LinuxBill joined #salt
16:15 psyl0n joined #salt
16:16 msil http://pastebin.com/0sDjAjbd
16:16 viq msil: which freebsd version is this?
16:16 MTecknology I forgot the the database states only work for local stuff...
16:17 bhosmer_ joined #salt
16:17 msil viq: 0.17.5
16:17 msil both master and minion are FreeBSD 9.2-RELEASE
16:17 teskew joined #salt
16:17 viq msil: and have you forced use of pkgng as provider? Otherwise it'll default to pkg_*
16:18 bemehow joined #salt
16:18 msil in the minion cconfig file? yes, i've set providers: pkg: pkgng
16:19 xDamox joined #salt
16:20 MTecknology http://dpaste.com/1634145/
16:21 MTecknology *grumble*
16:22 MTecknology viq: just fyi - every issue I run into is a change to the PR that I'll be making
16:22 msil viq: any idea? i've looked around but haven't found anyone else who has had the same problem with freebsdpkg
16:22 viq MTecknology: you need postgres-devel packages, whatever they are called
16:22 * MTecknology is taking a break
16:23 MTecknology ah... wants to build the gem but no headers from the dev package - makes sense
16:23 viq msil: sorry, haven't done that much with salt and freebsd, so far exhausted my ideas
16:23 MTecknology back is 15
16:24 msil fair enough, thanks for listening :p
16:24 msil i'll keep at it
16:24 LinuxBill 1/close
16:24 LinuxBill left #salt
16:24 zzzirk_ joined #salt
16:26 schristensen joined #salt
16:27 UtahDave joined #salt
16:28 JasonSwindle joined #salt
16:29 jalbretsen joined #salt
16:30 LinuxBill joined #salt
16:30 Cidan joined #salt
16:31 scoates carmony: thanks for the composer states stuff.
16:32 kaptk2 joined #salt
16:33 joehoyle joined #salt
16:34 meteorfox joined #salt
16:34 rojem joined #salt
16:35 dpac|away joined #salt
16:35 TheRealBill_here joined #salt
16:37 carmony scoates: you're welcome :)
16:37 rojem joined #salt
16:39 jtang1 joined #salt
16:39 carmony scoates: I did those at TrueNorthPHP
16:39 scoates heh nice.
16:40 darrend joined #salt
16:40 scoates I dropped the files into my _modules and _states on 0.17.5 and they Just Worked™
16:41 scott_walton joined #salt
16:43 seblu terminalmage: ping
16:45 ndrei joined #salt
16:46 forrest hey carmony, did you put those pics up you took from the saltconf hackathon anywhere?
16:46 carmony hrm, I don't think so
16:46 forrest ugh wow, bad sentence structure.
16:47 JasonSwindle forrest:  I have a few, I think…..let me look
16:47 viq forrest: "when auto-order goes wrong..." ;)
16:48 terminalmage seblu: yes?
16:48 seblu are you an arch user?
16:48 forrest viq, heh
16:48 forrest JasonSwindle, cool, I was mostly asking carmony because he brought a real camera
16:49 forrest and I wanted to write up a blarg post about it.
16:49 JasonSwindle Oh, I see how it is. :P
16:49 forrest hey man, if I wanted potato pics, I can deliver those myself!
16:49 JasonSwindle forrest:  I was your best practices guide
16:49 forrest JasonSwindle, ?
16:49 forrest oh saw
16:49 forrest gotcha
16:49 JasonSwindle Sorry, saw
16:49 JasonSwindle Derp.
16:49 carmony forrest: I think you're mixing me up with someone else, I didn't bring a real camera :P
16:50 forrest carmony, you brought that blue one I thought
16:50 forrest carmony, shit maybe I am mixing you up...
16:50 carmony Naw :P
16:50 carmony thanks forrest
16:50 forrest too many people :( my bad
16:50 carmony I feel wonderful now
16:50 seblu terminalmage: would you accept a patch which make default: "salt '*' pkg.install vim" == "pacman -S vim"
16:50 carmony lol, its all good :D
16:50 forrest carmony, I do what I can.
16:50 forrest heh
16:50 forrest someone brought a real camera with them to the hackathon
16:51 forrest I wish I could remember who it was.
16:51 seblu I "broke" one computer doing that last time
16:52 zach a real camera?!
16:52 forrest zach, yea someone brought a legit camera that they were snapping pics with at the hackathon at saltconf
16:52 zach win
16:52 thayne joined #salt
16:52 zzzirk joined #salt
16:54 terminalmage seblu: not really my call, this is being discussed. The logic of whether or not to refresh (which triggers the -Syu) for pkg states is done in the state though, so this wouldn't keep you from needing to use refresh: False
16:55 terminalmage in states
16:55 pdayton joined #salt
16:55 terminalmage changing the default value for refresh would only affect CLI calls
16:56 manfred [root@salt ~]# salt -G 'os:Arch' pkg.install vim refresh=False that works
16:56 manfred 2014-02-18 16:56:09,362 [salt.loaded.int.module.cmdmod][INFO    ] Executing command 'pacman -S --noprogressbar --noconfirm --needed "vim"' in directory '/root'
16:59 maijin joined #salt
16:59 maijin left #salt
16:59 KyleG joined #salt
16:59 KyleG joined #salt
17:02 hunter joined #salt
17:04 rgbkrk joined #salt
17:05 luminous is there _any way_ to run salt-call --local such that an interactive password prompt gets through?
17:05 jeremyfelt joined #salt
17:06 manfred seblu: i put in a pull request to make refresh=False the default
17:06 manfred because I agree that that should be the default ♥
17:09 seblu I can put this pull request myself...
17:09 seblu I would improve the pacman wrapper
17:10 seblu refresh has a meaning pacman'ly speaking
17:10 seblu that not mean upgrade the system...
17:10 schimmy joined #salt
17:10 seblu terminalmage:
17:10 liwen joined #salt
17:10 ndrei joined #salt
17:11 terminalmage seblu: please hold on
17:11 terminalmage I told you this is being discussed
17:11 seblu ah ok
17:11 terminalmage seblu: https://github.com/saltstack/salt/pull/10519#issuecomment-35407736
17:15 Nazzy [16:52:23] <zach> a real camera?! <--- as apposed to a fake camera, which is someone walking around with a cardboard box with a lens drawn in sharpie, pretending to use it to take photos, then doing quick stick man sketches and hoping no one notices :p
17:15 KyleG it's happened.
17:15 KyleG He lives in Austin
17:15 KyleG Weird shit goes down.
17:15 KyleG lol
17:16 schimmy joined #salt
17:21 JordanRinke Morning
17:22 darrend joined #salt
17:23 troyready joined #salt
17:23 elfixit joined #salt
17:23 forrest woah
17:24 forrest JordanRinke, around before noon??
17:24 forrest what is this madness
17:24 JordanRinke Gotta keep 'em guessing
17:24 schimmy joined #salt
17:26 bt joined #salt
17:30 terminalmage `
17:30 terminalmage ha, that's awesome
17:30 terminalmage per-window message buffers ftw
17:30 terminalmage had no idea there was a backtick there
17:31 MZAWeb joined #salt
17:33 jtang1 joined #salt
17:34 mpanetta joined #salt
17:35 MTecknology viq: dangit...
17:35 MTecknology http://dpaste.com/1634354/
17:35 viq :D
17:35 MTecknology this is an issue with the init script I believe
17:36 viq dunno, it lists debian_service.py
17:37 MTecknology salt/modules/debian_service.py
17:37 MTecknology ah...
17:37 dfinn1 joined #salt
17:38 viq still present in master, https://github.com/saltstack/salt/blob/develop/salt/modules/debian_service.py#L225
17:38 darrend joined #salt
17:38 MTecknology this is a bug in salt, yay! something to fix!
17:38 dfinn1 i'm still a little new to salt so maybe this is normal but I had to reboot my master to add cpu/mem and it seems like the majority of my minions are not reconnecting.  should they?  does it take a certain amount of time?
17:39 viq dfinn1: it may take some time, yes, though they should just keep trying and shouldn't take long
17:39 MTecknology viq: fun, just running the init script itself makes it angry..
17:39 MTecknology http://dpaste.com/1634369/
17:39 dfinn1 can we put a number around "some time"?  ;)  just so I know roughly what to expect
17:40 viq dfinn1: I would be worried/annoyed if they weren't reconnected within 5 minutes
17:40 MTecknology food time
17:40 dfinn1 ok, it's been way longer than that
17:40 viq but I have no experience and haven't looked at the code
17:40 dfinn1 it's probably been around half an hour
17:41 Linz joined #salt
17:43 viq dfinn1: then personally I would expect them to reconnect by now. What versions are they?
17:43 dfinn1 0.17.4
17:46 viq sorry, don't know. you could try listening via tcpdump on master to see whether they are reconnecting. or restart minion processes
17:47 bhosmer_ joined #salt
17:48 mgw joined #salt
17:48 ajw0100 joined #salt
17:50 thayne joined #salt
17:52 quickdry21 joined #salt
17:53 tlyng joined #salt
17:57 CaptTofu joined #salt
18:01 Kenzor joined #salt
18:02 dvogt joined #salt
18:04 JasonSwindle joined #salt
18:05 vejdmn joined #salt
18:09 chrisjones joined #salt
18:12 linjan joined #salt
18:16 ml_1 joined #salt
18:16 joehoyle joined #salt
18:16 xmltok joined #salt
18:16 ml_11 joined #salt
18:16 mgw dave_den: in case you didn't notice: https://github.com/saltstack/salt/pull/10517
18:17 felixhummel joined #salt
18:18 dave_den mgw: yep, played with it last night. works well!
18:18 mgw I haven't had a chance yet, later today I hope
18:18 mgw It's getting cherry-picked into 2014.1 it seems
18:18 dave_den yeah, that's sweet
18:21 psyl0n joined #salt
18:22 forrest mgw, that is pretty slick
18:24 res0_ joined #salt
18:25 vejdmn joined #salt
18:26 KyleG1 joined #salt
18:26 sroegner joined #salt
18:27 tlyng joined #salt
18:27 jtang1 joined #salt
18:28 ccase joined #salt
18:29 tessellare joined #salt
18:29 ndrei joined #salt
18:32 pass_by_value Ahlee: Hi. Pinging about the returner issues that you were facing last week. One of the things that we talked about was that the jobs runner was looking at the local cache.
18:32 pass_by_value Seems like there might be a way to have it lookup_jid with an external source.
18:32 joehoyle joined #salt
18:32 res0_ joined #salt
18:32 aleszoulek joined #salt
18:33 vejdmn joined #salt
18:33 Ryan_Lane1 joined #salt
18:33 gadams999 joined #salt
18:34 yidclare joined #salt
18:38 jtang1 joined #salt
18:39 MTecknology viq: I'm not doing anything with ssl, that's when I just try to start it.
18:39 viq MTecknology: git checkout over https
18:40 viq or you mean the later error?
18:41 MTecknology http://dpaste.com/1634369/  <-- this one
18:41 forrest is your box able to get out to install the gems MTecknology?
18:41 viq oh, that doesn't seem to be related to ssl
18:42 forrest why is gitlab not an RPM/deb?
18:42 MTecknology nope, not ssl at all
18:42 MTecknology forrest: irunno... wish it were
18:42 viq MTecknology: userdel -r git and rerun the state, otherwise it may not retry to build gems and such
18:42 MTecknology all states now run fine except the state that tells the service to start, and that's a bug in the module
18:43 forrest MTecknology, https://gist.github.com/premist/1601228
18:43 viq or rm -rf /home/git/* but that's about the same
18:44 MTecknology user blown away, running state.highstate
18:44 MTecknology heheh....
18:45 viq forrest: there are some more docs for installing gitlab
18:45 BogdanR I think I am using salt schedule but I am not sure where can I find a log for that.
18:45 forrest viq, yea, just wasn't sure if those might help, sometimes a different perspective helps
18:45 * viq nods
18:45 BogdanR So, if the minions are pulling once an hour where can I see what is executed and what fails?
18:46 viq I need to take a closer look at the one that does not compile ruby x_x
18:46 evan joined #salt
18:46 evan left #salt
18:47 thayne joined #salt
18:48 valgrind joined #salt
18:49 MTecknology 839 states on this box... that seems like a large number of states.
18:49 forrest states or elements?
18:49 zach That sounds like my old deployment
18:49 zach I had close to 1k
18:50 troyready joined #salt
18:50 kossy joined #salt
18:50 MTecknology http://i.imgur.com/PbAQYaV.jpg
18:51 MTecknology forrest: element?
18:52 forrest you have 839 individual state files? or IDs within states?
18:53 MTecknology about 800 of those are from a single state file with a bunch of states in it that has a foreach loop in it
18:53 forrest ahh
18:55 MTecknology heh... re-running state.highstate had issues
18:55 MTecknology http://dpaste.com/1634594/
18:55 guest_towel Hello, I'm hoping for some PyDSL enlightenment if possible. "mystate=state()" works fine in state files, but I need to move that functionality out to a shared file/module. But when I do this Python doesn't have a clue what state() is.
18:55 guest_towel What Salt stuff does the module need to import or instantiate so it can create a state object? I'm all googled-out on this, so any thoughts would be most welcome, thanks.
18:55 MTecknology the first part looks perfect; the second part - Unsupported charset: '"unicode"'
18:56 MTecknology oooooooooooh
18:56 Gareth morning
18:56 dwiden joined #salt
18:57 dwiden can somebody give me a little help with the windows software repository?
18:57 diegows joined #salt
18:58 pass_by_value guest_towel what's the name of the state are you calling with mystate = state() ?
18:58 amckinley joined #salt
18:58 forrest dwiden, I don't know if there are any windows guys in here right now, but we can try. What's up?
18:59 meteorfo_ joined #salt
18:59 dwiden forrest: I'm trying to install a bunch (30+) packages onto a windows machine using salt.  I keep running into issues where the software has installed on the minion, but it is reported as unsuccessful to the master
18:59 forrest dwiden, interesting, what does the error look like?
18:59 forrest or is it just that it failed?
19:00 dwiden the documentation says that I should make sure the name of the software package (full_name) matches the name of the software, but I'm not exactly sure what full_name refers to
19:00 dwiden the error is just that it failed: "the following package failed to install"
19:00 forrest but when you review the box, the package is installed?
19:01 dwiden yes, thats correct
19:02 forrest ok, so I'd suggest to do a salt 'minion_name' pkg.list_pkgs then review one of those 'failed' successful installs, to see if the full_name value matches that.
19:02 meteorf__ joined #salt
19:02 forrest you want to make sure the name and versions exactly match what is installed.
19:03 dwiden when I call pkg.list_pkgs, the software is not in the list.  For example, one of the things that "failed" to install is Python2.7.  But when I go to my windows machine, its there and functional
19:03 forrest hmm, ok you might want to uninstall that then, and re-run the install state with the -l debug option
19:03 forrest to see if it reports more details back
19:04 forrest you may also want to run the minion in debug mode when doing that to get more log details
19:04 dwiden okay I'll do that.  I also have another question if you dont mind
19:04 guest_towel pass_by_value, it could be any Salt state module which is being created (that's a requirement of it being a shared module), and generally I let Salt create a random name.
19:05 guest_towel I'm just getting started with Python as a result of my investigations into Salt, which obviously doesn't help...
19:05 dwiden I'm also trying to install the JRE, and I use the init.sls file here (https://github.com/saltstack/salt-winrepo/blame/master/jre.sls).  I replaced the installer with a local version of it, but that also failed to install completely
19:05 forrest dwiden, I'll try, I'm not a windows guy :P
19:05 MTecknology guest_towel: python is amazing; salt is amazing; you'll love them both (eventually)
19:05 dwiden I knew that it would be difficult to find windows people, unfortunately its my only choice
19:05 pass_by_value hmm is there an example (failing example is good too) that I can look at guest_towel?
19:06 MTecknology it's not like ruby or windows where it's pure anger forever and ever
19:06 ipmb joined #salt
19:06 forrest dwiden, yea I understand, our resident windows expert just isn't around today. I'd say maybe try using a 'salt://xzy' location for the installer if you haven't already done so. You may also want to run that through with -l debug to see what output it returns.
19:07 guest_towel All the examples I can find are 'in line' Salt state modules, but I fancy I'm not the only one who would like move as much as possible to a shared module
19:07 pass_by_value lemme check
19:08 dwiden forrest: thank you, my installer is located at salt://win/repo/jre/installername.exe
19:09 forrest dwiden, Gotcha, yea then the best place to start is the debug output to see if it throws some more details out there. I've gotta grab lunch, let me know what your investigation turns up
19:10 dwiden forrest: will do.  Thank you again for your help!
19:11 allanparsons joined #salt
19:12 allanparsons hello - is there a recommended way to integrate Salt w/ Cloud Formation?
19:12 psyl0n joined #salt
19:13 pass_by_value guest_towel: It looks like the code for the pydsl renderer is https://github.com/saltstack/salt/blob/develop/salt/renderers/pydsl.py#L337
19:13 pass_by_value you might be able to do something like https://github.com/saltstack/salt/blob/develop/salt/renderers/pydsl.py#L348 and get the state
19:14 darrend joined #salt
19:14 Ahlee pass_by_value: oh?
19:15 pass_by_value However, if you are trying to call an execution module from a python file the APIClient might be useful. I am not 100% sure if that answers your question, but feel free to ask more if you need to!
19:15 pass_by_value Hi Ahlee: It seems you could write a returner that exposes a get_jid function
19:16 guest_towel Many thanks for that, I shall give it a try
19:17 ahammond I'm using lvm.lv_present and see that it does not support  creating striped lvms. Am I missing something? I tried adding - stripes: 4 and - stripesize: 8K to the state alongside - vgname: vg0... but apparently it ignores additional arguments?
19:18 Ahlee pass_by_value: ok. I'm going to try using mongo_future_return, as that exposes the get_jid
19:18 pass_by_value yes that might be a good thing to try
19:18 MTecknology viq: dangit... it installed perfect now... but ldap auth isn't working
19:18 meteorfox joined #salt
19:18 pass_by_value https://github.com/saltstack/salt/blob/develop/salt/runners/jobs.py#L71
19:18 pass_by_value Ahlee ^^^ that is where it tries to get the returner
19:22 mgw joined #salt
19:22 pass_by_value guest_towel: http://pastebin.com/hsAKGVQR is an example of calling a module using the api client
19:22 pass_by_value http://pastebin.com/M3HdLnmF
19:23 meteorfox joined #salt
19:25 hardwire joined #salt
19:25 hardwire Shouldn't it be SaltPillar?
19:26 bemehow joined #salt
19:26 hardwire Anyhoot.. anybody have experience with late commands in a debian preseed file to init a salt minion?
19:26 hardwire trying to do an automated recovery/wipe solution.
19:27 hardwire also.. salt-ssh seems fantastic.  Does it still use ZMQ on top?
19:28 bemehow joined #salt
19:28 hardwire I'm trying to figuire out how far down ZMQ is used.  I use it often in other projects.
19:28 bemehow joined #salt
19:30 djaime joined #salt
19:30 bemehow joined #salt
19:30 spiette joined #salt
19:31 bemehow joined #salt
19:31 UtahDave joined #salt
19:32 Ahlee no, salt-ssh does not use zeromq
19:32 bemehow joined #salt
19:32 manfred it does not
19:32 pass_by_value Assuming that the question was for me. Yes, good practice, but pillar being a salt artifact will not be present in that Python script (yes you could import). Plus that is just an example, so you are right (might not wanna use a hardcoded password like that).
19:34 jaimed joined #salt
19:35 zain joined #salt
19:36 druonysus joined #salt
19:36 druonysus joined #salt
19:36 guest_towel ass_by_value, I haven't looked at the client API but it's something I clearly need to check out. I'm trying to implement a role-based scheme, which should be easy to administer once it's working but which requires clients to intelligently merge the content of different roles' Pillar namespaces prior to creating the necessary state object(s).
19:36 guest_towel +p
19:38 pass_by_value lol
19:38 christopherl joined #salt
19:39 pass_by_value guest_towel: I have not used that for calling state files only modules. I am not sure if states can be called by APIClient, but we use that in Halite for calling salt commands
19:39 blee joined #salt
19:39 christopherl i'm trying to find info in the salt-cloud docs about using aws with a vpc, but it's not mentioned anywhere.
19:39 christopherl anyone know where I can find some info on this?
19:46 zzzirk joined #salt
19:47 hardwire Ahlee: gotcha thanks.  I wasn't entirely sure how the zmq transport was being used and if it went beyond peer to peer communication.
19:48 hardwire and knowing that would make me ponder the use of salt-ssh.
19:48 hardwire I'm somewhat interested in an http transport.
19:48 hardwire trying to reduce protocol requirements for a project.
19:49 hardwire thanks for any info y'all.  I'm going to be testing salt a bit more later today on a little stack of amd's
19:49 pass_by_value Forgot to say glad you brought the pillar stuff up though. Never hurts to be clear :)
19:49 Ryan_Lane1 joined #salt
19:51 allanparsons @christopher... you would pass the subnet
19:51 allanparsons we
19:51 allanparsons we
19:52 joehoyle joined #salt
19:52 allanparsons we're using salt-cloud within a VPC
19:52 allanparsons and if you're using security groups, pass the security ID(s), not the group name(s)
19:53 christopherl something like this?
19:53 christopherl securitygroupid:
19:53 christopherl - sg-400ce55f
19:53 christopherl subnetid: subnet-f47c7a90
19:54 allanparsons exactly
19:55 allanparsons network_interfaces:     - DeviceIndex: 0       PrivateIpAddresses:         - Primary: True       AssociatePublicIpAddress: False       SubnetId: subnet-943d4aff       SecurityGroupId:         - sg-740ac411
19:55 allanparsons that didnt come out right
19:55 allanparsons paste?
19:55 christopherl I see what you ment
19:55 allanparsons k
19:56 allanparsons fyi, you need to make sure it's accessible, too.
19:56 allanparsons if you follow amazon's VPC recommendation, you prob have a public + private subnet
19:56 jaimed joined #salt
19:56 allanparsons assign True to that "AssociatePublicIpAddress" if you're starting an AMI in the public subnet, otherwise you likely wont have a route
19:57 christopherl ah, good call
20:01 akoumjian joined #salt
20:01 ndrei joined #salt
20:02 Ahlee hardwire: zeromq is strictly master<->minion.  Even if you configure salt to send info minion to minion, it's still brokered through the master
20:04 HeadAIX joined #salt
20:14 MTecknology forrest: so- after getting everything working; totally worth the effort. Once I get the gitlab-ci part running, I'll be as happy as a clam that's happy.
20:15 forrest MTecknology, Nice, yea gitlab is badass
20:15 forrest are you just using the free trial version?>
20:15 MTecknology you ever work with the CI part?
20:15 MTecknology free trial?
20:15 MTecknology far as I know, I'm using the CE version
20:15 forrest did you build from the source?
20:15 MTecknology ya
20:16 forrest ahh ok
20:16 valgrind joined #salt
20:16 MTecknology is there another version that's easier to install but costs money?
20:16 forrest MTecknology, honestly I don't know, looks like they have an enterprise edition.
20:17 forrest I wish this had support for RHEL
20:17 forrest I need a git solution...
20:17 MTecknology viq's formula was first built for centos...
20:18 Kenzor joined #salt
20:18 MTecknology I'm the thorn in his side that got him doing the debian part (afaik)
20:18 forrest yea, just wish by default it was in there.
20:18 forrest as part of the 'supported'
20:19 MTecknology oh
20:19 forrest viq, how long did it take you to set up gitlab on your centos config?
20:20 hardwire Ahlee: ok thanks
20:20 MTecknology this formula had to have taken a long dang time to get worknig
20:20 MTecknology working*
20:21 forrest Yea that's why I am curious
20:23 KyleG joined #salt
20:25 MTecknology it looks like gitlab-ci will be about the exact same about of work
20:26 forrest MTecknology, yea we're using jenkins here so I wouldn't use that, not sure how awesome it is supposed to be, but it's git, so probably pretty cool
20:26 MTecknology jenkins causes a massive pile of headaches here
20:30 harobed_ joined #salt
20:30 n8n joined #salt
20:31 harobed_ joined #salt
20:32 harobed_ joined #salt
20:33 mgw anybody else getting this on latest develop, while starting salt-minion: OSError: [Errno 6] No such device or address: '/var/run/salt/minion/minion_event_6e4e051561b9c0f1c99705d8d1d706a8_pub.ipc'
20:33 harobed_ joined #salt
20:33 mgw The socket actually does exist
20:34 pass_by_value I was seeing that as well
20:34 valgrind joined #salt
20:35 borgstrom me too
20:37 valgrind joined #salt
20:38 UtahDave joined #salt
20:38 alunduil joined #salt
20:41 mgw borgstrom, pass_by_value: https://gist.github.com/mgwilliams/dd7f0371ffa28f6a0518
20:42 mgw that diff makes the difference
20:43 pass_by_value https://github.com/saltstack/salt/pull/10548.diff is also going in
20:43 zooz joined #salt
20:43 pass_by_value or proposed rather, not sure if that is the same but it is a good catch mgw
20:44 dwiden joined #salt
20:45 dwiden I have another (terrible) windows question: when a windows minion grabs an installer (.exe, .msi) file from a master, is it saved locally anywhere so I can inspect the file to make sure that it isn't corrupted?
20:45 mgw pass_by_value: thanks it fixes it
20:45 hunter Is there magic involved in using pillar with salt-ssh?
20:45 krow joined #salt
20:46 hunter Yesterday I wasn't seeing anything - this morning, salt-ssh '*' pillar.items shows what I expected.
20:46 pass_by_value mgw Thanks to Pedro. That is his pr
20:46 hunter But a test change to the pillar data (either adding another sls file or adding items to an existing sls file) have no effect.
20:46 fllr joined #salt
20:46 hunter I've run salt-ssh '*' saltutil.refresh_pillar a bunch
20:46 hunter Where is this info cached?
20:47 _fllr_ joined #salt
20:47 schimmy joined #salt
20:47 UtahDave dwiden: Yeah, it copies the installer to the minions cache directory
20:47 psyl0n joined #salt
20:48 david_a joined #salt
20:48 dwiden UtahDave: Thank you, I'm looking at the file and it appears to have changed
20:49 hunter I've also restarted the master. NOTHING shows a change in the pillar data.
20:49 pass_by_value hunter: does salt \* pillar.get mykey return updated values?
20:50 hunter pass_by_value: for salt or salt-ssh?
20:50 pass_by_value I would try with salt just to check if the actual pillar data on the minion has refreshed or if it is salt-ssh related
20:50 hunter salt sees the new data
20:50 hunter salt-ssh the old
20:51 hunter pass_by_value: unfortunately this is an openindiana box with no client, so I have to rely on salt-ssh here. (and if I can make it work reliably, it should be quite awesome)
20:51 dwiden @UtahDave: does salt have issues with transmitting the JRE using the windows software repository?
20:52 * pass_by_value checking
20:52 UtahDave dwiden: I'm not sure. I haven't used the JRE through Salt on windows.
20:52 hunter pass_by_value: I've added a key, added a key in a new sls, and changed an existing key -none of these show up in salt-ssh
20:52 hunter All appear in salt
20:53 pass_by_value I would try a saltutil.sync_all (just to check) may or may not work
20:53 Saint-N hey question
20:53 dwiden @UtahDave: okay thanks, I think it might have to do with the fact that when you download the JRE, you have to click a check box accepting their license.  The file that I have on my master is correct but the one on the minion looks like an "Unauthorized Request"
20:53 Saint-N if i add a state to the top for a certain group of servers
20:53 hunter pass_by_value: let me see
20:53 Saint-N itll just install next call back right?
20:53 forrest dwiden
20:54 Saint-N i dont need to force and update of the state?
20:54 mgw pass_by_value, borgstrom: I'm discussing this and related issues with s0undt3ch in #salt-devel. That PR only partially fixed it.
20:54 UtahDave joined #salt
20:54 forrest dwiden, I wrote: https://github.com/gravyboat/download-java to get around the license, though it won't work if the install window prompts again
20:54 jrdx joined #salt
20:55 hunter pass_by_value: no help
20:55 dwiden forrest: thanks, I'll check that out tomorrow
20:55 forrest dwiden, np
20:55 forrest you can at least get around the download, which works for me in the linux world.
20:55 hunter It _must_ be in the master somewhere?
20:56 pass_by_value hmm hunter does passing the log debug flag print anything useful?
20:56 gadams999 left #salt
20:57 bemehow joined #salt
20:59 joehoyle joined #salt
20:59 hunter pass_by_value: http://pastebin.com/j1THrza4
21:00 pass_by_value Hmm no errors. I am gonna create a VM and try out with it.
21:01 eliasp build environments on windows are a fucking hell… ;( trying to build my own windows-minions https://github.com/saltstack/salt.git
21:01 eliasp picking a dozen different MSIs out of 20 different shady websites…
21:01 hunter pass_by_value: found it.
21:01 eliasp how I miss my Portage :)
21:01 hunter pass_by_value: in /var/cache/salt/master/minions/kasserine-5/data.p had the old data.
21:01 pass_by_value :)
21:02 hunter pass_by_value: move that file out of the way and viola, loads of new data.
21:02 hunter I have no idea what that file is or how to trigger its recreation/updating (through salt, rm works well) but that was teh issue.
21:02 kballou joined #salt
21:02 pass_by_value Hmm you might wanna create an issue with this description. Especially since salt picked it up and salt-ssh did not
21:03 hunter Ok
21:03 pass_by_value Nice catch though
21:03 frasergraham How would I ensure that a service is restarted if files in a certain set of folders change?
21:04 frasergraham I am using the service.running state but it doesn't restart the service when I run hightstate
21:05 eliasp does anyone have a source for 'pycrypto-2.3.win32-py2.7.msi' or any other win32 build of it for Python 2.7.x?
21:05 eliasp hmm, seems there's one at 4shared.com… time to sandbox this build-VM ;)
21:07 hunter https://github.com/saltstack/salt/issues/10553
21:07 eliasp requires a social network account to download… no thanks… gonna run 0.17 minions for now on Win ;(
21:08 hunter pass_by_value: I'm already about to create myself a "update_pillar.sh" script because I always forget saltutil.refresh_pillar - I'll add rm data.p to it. :)
21:08 Corey date
21:08 Corey Er...
21:08 eliasp I really appreciate the pain someone of the Saltstack devs is willing to suffer to provide the Windows builds… I bow before you! :)
21:09 hunter Corey: Tue Feb 18 15:08:56 CST 2014
21:09 linjan joined #salt
21:09 hunter :)
21:09 allanparsons gonan revisit my question - anyone using cloudformation in conjunction w/ Salt?
21:09 jslatts joined #salt
21:10 pass_by_value hunter: that will at least get things moving for you. Cool.
21:10 bhosmer joined #salt
21:10 pass_by_value the script
21:10 baffle What is the *preferred* way of getting a (not-local) minions IP when rendering a state? Now I'm putting network.interfaces into the mine, and scavenging that for information. It's a ton of horrible for-loops and if/else..
21:10 hunter its not ideal, but anything that freaking works on OI is a minor miracle.
21:11 pass_by_value baffle: https://github.com/pass-by-value/halite-testing/blob/master/srv/salt/base/salt-cloud/cloud.providers.d/rackspace.conf#L3
21:11 pass_by_value That's what I have used. I am not sure if it is the preferred way to do so but you don't have to do the parsing out of information at least
21:13 baffle pass_by_value: That's not it. I am running a state on a minion; It needs to know the IP of other minions that have a grain (role) set. Actually, it's a bit more complicated, but that's about it.
21:13 christopherl allanparsons: COuld you help me with this message?
21:13 christopherl Message:
21:13 christopherl Network interfaces and an instance-level subnet ID may not be specified on the same request
21:13 pass_by_value baffle: Derp, I see. mine data maybe?
21:14 baffle pass_by_value: That's basically what I'm doing, but it is horrible. I feel like I'm really *really* abusing stuff here. :)
21:14 frasergraham how is the minion picking it's ID on OSX? My machine's hostname is celery-worker-12 but the ID the minion sends is "locals-mac-mini.local"
21:14 frasergraham which doesn't really help me identify it
21:15 baffle pass_by_value: As in: http://pastebin.com/wmfXWGfG (This is just me playing around, right now looking up the IP doesn't even work..)
21:16 baffle pass_by_value: It gets the fqdn and host correct, tho'. Yay.
21:17 baffle pass_by_value: I mean, this is horrible, there has to be much better ways. One thing I find really frustrating is that if you do an if-test with a dict where the lookup doesn't work, it barfs.. So you have to have these loops iterating instead... As far as I know.
21:17 Katafalkas joined #salt
21:18 budrose joined #salt
21:21 pass_by_value Oh you mean when foo = {} and foo.get('mykey', None) is not an option?
21:21 cewood joined #salt
21:23 frasergraham i discovered that it caches the minion id in a file
21:23 frasergraham it appears that the minion started up before DHCP kicked in and assigned a hostname
21:25 frasergraham back to my first question - can I trigger a service to restart when certain folders change?
21:26 forrest frasergraham, can you not watch a managed file within the folder?
21:26 frasergraham i'm very new to Salt, is that just a case of adding a watch: entry to the service.running state
21:27 forrest right but you're managing the files within that folder with salt correct?
21:27 frasergraham yes
21:28 forrest ok, so you can either in your service do watch: \n  - file: file_id, or on the file, you can do watch_in: \n - service: service_id
21:28 forrest just depends on how you have things up for what is easier
21:28 frasergraham ok, i'll give that a try
21:28 forrest cool
21:29 forrest frasergraham, did you already review the docs on watch and watch_in
21:30 frasergraham I have a hard time finding things in the docs, I searched for watch and most of the results were not that helpful
21:30 frasergraham the initial walkthrough touches on it just enough for me know it's possible without helping me understand the details
21:33 krow joined #salt
21:33 Ahlee whenever i figure out what's making salt 'forget' it's sync'd _modules I'm going to take a very long vacation.
21:33 Ryan_Lane1 joined #salt
21:33 MZAWeb joined #salt
21:36 linjan joined #salt
21:36 Ahlee of course, it only seems to occur on minions not running in debug
21:37 frasergraham i have a lot of minions, is there a way to get a more abbreviated output from highstate?
21:38 DaveQB joined #salt
21:38 dave_den frasergraham:  http://docs.saltstack.com/ref/configuration/master.html#state-verbose
21:38 krow joined #salt
21:39 hunter pass_by_value: http://pastebin.com/sm4mB4aL
21:39 hunter It ain't pretty, but gets the job done.
21:41 allanparsons @christopherl
21:42 allanparsons Network interfaces and an instance-level subnet ID may not be specified on the same request
21:42 allanparsons can you paste your profile?
21:42 Saint-N bleh
21:42 allanparsons i put both of those key-value pairs in my /etc/salt/cloud.profiles file
21:43 ndrei joined #salt
21:43 ckao joined #salt
21:43 pass_by_value hunter: I had not used the yaml.load function before, good to know you can read a file in and basically treat it as a dict
21:44 krow joined #salt
21:44 Saint-N cmd.run:
21:44 Saint-N - names: dpkg -i /tmp/splunkforwarder.deb
21:44 hunter pass_by_value: all my python is rusty so I just googled each step
21:44 Saint-N do i have to put quotes around that file?
21:44 yomilk joined #salt
21:44 hunter I forget whether "from x import func" is more/less python than "import foo" ; foo.func()
21:45 hunter I kinda prefer the 2nd but thought I'd try this style
21:45 napper2 joined #salt
21:46 Ryan_Lane1 joined #salt
21:46 * hunter just figured out where he can install and test salt YEAR.MONTH.no_relation_to_release_date
21:49 krow joined #salt
21:50 hunter I should be less snarky.
21:50 hunter maybe
21:50 UtahDave joined #salt
21:51 christopherl allanparsons: yeah, figured out it was duplicated… this pull message should be in the ec2 salt-cloud docs https://github.com/saltstack/salt-cloud/pull/889
21:51 Ahlee is there a way to list what modules salt thinks it has?
21:51 res0_ joined #salt
21:52 icarus_ joined #salt
21:53 UtahDave Ahlee: salt '<minion id>' sys.list_modules
21:53 UtahDave http://docs.saltstack.com/ref/modules/all/salt.modules.sysmod.html#salt.modules.sysmod.list_modules
21:54 david_a joined #salt
21:54 Ahlee UtahDave: thoughts on what would cause salt minions to forget they have _modules/* sync'd?
21:55 allanparsons @christopherl, +1
21:55 Ahlee upgraded from 0.17.2 to 0.17.5, and none of them seem to know about their modules
21:55 krow joined #salt
21:56 jalbretsen joined #salt
21:57 Ahlee when i restart with debugging enabled, they show they have a local cached copy so not updating
21:58 krow1 joined #salt
21:59 thayne joined #salt
22:00 krow2 joined #salt
22:01 yaru22_ joined #salt
22:03 frasergraham how do I go about debugging the file.recurse "exclude_pat" functonality, it's not doing what I expect and I dont know why
22:03 frasergraham i'm trying to exluce the .git folder from a file.recurse operation
22:05 UtahDave Ahlee: have you synced the modules again, by chance?
22:05 JulianGindi joined #salt
22:05 ahammond are there known issues with mount.mounted? It looks like it's unmounting / mounting stuff that's already correctly mounted.
22:06 Ahlee UtahDave: No.  Does the cache get invalidated somehow on upgrade?  the minions i restarted with debuging enabled said there was no need to update.  I ran saltutil.sync_modules against staging, but curious as to why that would be necessary
22:07 Ahlee syncing modules is like a 20 minute ordeal, I'd prefer to avoid it in the future
22:07 stef-test left #salt
22:09 UtahDave Ahlee: I'm not sure. When the salt-minion starts up it loads all its modules.  I wonder if after an upgrade the _modules directory on the minion gets blasted away
22:10 UtahDave Ahlee: you also might try restarting the salt-minion service to see if it picks up the modules.
22:10 Ahlee UtahDave: possibly.  The files were still physicall on disk at /var/cache/salt/minion/extmodes/modules and /var/cache/salt/minion/files/base
22:11 UtahDave Yeah, then you might try a restart
22:11 Ahlee UtahDave: yes, restarting (again) seemed to pick it up
22:11 Ahlee and when i ran saltutil.sync_modules against all it picked it up
22:11 Ahlee thoughts on where to start digging for the why?
22:11 UtahDave I wonder why it doesn't pick them up the very first time
22:12 Ahlee i guess i'll start poking through saltutil and see where that takes me
22:12 joehoyle joined #salt
22:12 Ahlee as that will at least tell me waht's being called that's updating internal records
22:12 UtahDave ok, let me know how it goes.  That might be worth opening an issue. It really should pick those modules up the first time it starts up.
22:13 goodwill UtahDave: ya all ready for belly bumps
22:13 goodwill ?
22:13 viq MTecknology / forrest - my formula is currently only for debian, as I have to figure out how to get a working ruby on centos. It takes I think about 20 minutes to run, most of it installing gems
22:13 oz_akan_ joined #salt
22:13 forrest friggin gems man
22:13 forrest HOW DO THEY WORK!
22:13 UtahDave goodwill: Aw, man. I'm not going to be there!!
22:14 goodwill NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
22:14 goodwill why cruel would!!! WHYYYYYYYYYYYYYYYY!!!
22:14 goodwill whiteinge: you are coming though right
22:14 UtahDave I've been traveling too much lately. I just got back.
22:14 UtahDave I'm really bummed I'm not going to be there.
22:15 goodwill :-/
22:15 forrest UtahDave, did you take your family on a business trip last week, or wer you on vacation?
22:15 forrest *were
22:15 dfinn1 general question: how do most of you guys handle config management for dmz hosts?  do you poke a hole in the FW so it can talk to the salt master or leave them out there on their own?
22:16 Ahlee UtahDave: 10566 opened, will expand on it when/if more comes to light
22:16 UtahDave forrest: I had some family business to attend to that I was able to turn into a mini family vacation as well.
22:16 UtahDave thanks, Ahlee!
22:17 goodwill UtahDave: :-/
22:17 * viq waves to UtahDave
22:18 frasergraham if I am adding "- exclude_pat : .git*" to my files.recurse state then I should expect the .git folder to be removed from the minion, correct?
22:18 forrest UtahDave, nice! Though taking them on a business trip where you sneak out of the hotel room to work is a bit more comical.
22:19 UtahDave viq: Witaj!
22:19 danielbachhuber joined #salt
22:19 viq UtahDave: :D
22:19 UtahDave forrest: yeah, the best time to get anything done is when the kids are sleeping.  :)
22:20 forrest I can imagine.
22:25 res0nat0r joined #salt
22:26 frasergraham can I override the state_output: mixed config option on the command line?
22:26 hunter Where does salt-ssh store its equivalent to known_hosts? its not using the system/root user one.
22:27 calvinhp_mac joined #salt
22:27 frasergraham --oit full seems to give me more, but it's not quite the sam
22:27 frasergraham e
22:27 forrest hunter, http://docs.saltstack.com/topics/ssh/#salt-ssh-roster
22:28 calvinhp_mac is there a reason the zpool module doesn't support creating pools from block devices (which is supported in FreeBSD)
22:28 calvinhp_mac https://github.com/saltstack/salt/blob/0.17/salt/modules/zpool.py#L173
22:28 calvinhp_mac it wants to check for a vdev that is a file
22:28 hunter forrest: I have the roster file configured, The authenticity of host 'kasserine-3.mcs.anl.gov (140.221.76.8)' can't be established.
22:28 hunter RSA key fingerprint is 98:5b:e3:06:c3:69:9a:ef:14:44:ab:bb:ee:5c:a6:cb.
22:28 hunter oops
22:28 Kenzor joined #salt
22:29 forrest that's logged forever as a heads up hunter
22:29 forrest in case it concerns yo
22:29 forrest *u
22:29 forrest has that box already joined?
22:29 n8n joined #salt
22:29 hunter forrest: Its attempting to test.ping the correct hosts (so my roster is correct) but I don't know where to copy the known_hosts entries to.
22:29 hunter forrest: salt-SSH
22:29 forrest hunter, oh yea duh
22:29 forrest I'm not sure then, I thought it used whatever the file system had, but that could be incorrect.
22:30 hunter the root user can get in with regular ssh, so I know both the key and the known_hosts files are correct for the user running salt-ssh
22:30 ahammond UtahDave any thoughts about why mount.mounted would be unmounting and then re-mounting things when there hasn't been any change?
22:30 hunter forrest: "logged forever as a heads up" - hunh?
22:30 forrest hunter, The IRC chat is logged
22:31 forrest for historical purposes
22:31 hunter Oh
22:31 forrest so I wanted to let you know that the RSA key would be available publicly.
22:31 hunter Its just the fingerprint
22:31 hunter (of the public key)
22:31 forrest Yea I know, just wanted to give you a heads up in case.
22:31 hunter I appreciate that a great deal.
22:32 hunter accidentally cut-pasted my laptops login password to IRC a few years ago.
22:32 frasergraham exclude_pat in the file.recurse state is not working at all for me
22:32 forrest hah
22:32 frasergraham I am not sure how to debug it
22:32 UtahDave frasergraham: have you tried running the salt-minion in a terminal in debug mode?
22:33 hunter frasergraham: in my opinion the zfs/zpool module needs a fair bit of love.
22:33 frasergraham UtahDave, i'll give that a try
22:33 UtahDave ahammond: I'm not sure. My first guess would be that the checks that the mounted state is using are not working correctly.  Is there an open issue on that?
22:33 ahammond UtahDave I'll take a look.
22:34 ahammond UtahDave this looks related: https://github.com/saltstack/salt/issues/10257
22:35 faldridge joined #salt
22:36 UtahDave Yeah, could be.
22:41 frasergraham the minion debug output doesnt seems to contain anything about the exclude pattern
22:41 krow joined #salt
22:41 hunter http://pastebin.com/W6nn7TEp
22:41 hunter That looks bad.
22:42 mgw is there a more up-to-date salt-vim than https://github.com/saltstack/salt-vim?
22:42 hunter Oh - I know. Its the path not being correct . um.
22:42 mgw that supports #!py pydsl, etc?
22:42 hunter I'm gonna end up knowing way more about salt-ssh internals than I want.
22:42 mgw I hacked this: https://gist.github.com/mgwilliams/fee093a5687738d6fd06 and then noticed that salt-vim has not been updated in a year or so
22:43 viq 'night
22:43 frasergraham if I remove the folder on the minion, highstate just puts it back, but if I remove a file in that folder on the master it does not get removed from the minion
22:44 dfinn joined #salt
22:44 hardwire whoooo's ready for a corner case?
22:45 hardwire putting a minion in the initrd momentarily during boot
22:45 hardwire :)
22:45 valgrind joined #salt
22:46 carmony Any thoughts on why I am getting this error?
22:46 carmony https://gist.github.com/JustinCarmony/5a3c5296b1964f25a4d1
22:46 carmony I might be using defaults wrong in my template, not sure
22:48 frasergraham several times today, the salt command line has just hung on me. debug output sits at "LocalClientEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc "
22:48 frasergraham it's not doing anything. Ctrl-C and rerunning the command often works just fine
22:50 carmony fixed it, I didn't realize you had to use deep nested yaml structs
22:51 carmony UtahDave: you stateside this week?
22:54 bhosmer joined #salt
22:56 forrest he's hiding from you carmony
22:57 carmony apparently
22:57 forrest carmony, pssh, the problem is clear, element 0 has lenght 1 when 2 is required
22:57 forrest DUH!
22:57 ndrei joined #salt
22:57 * carmony pulls out a chainsaw & cuts down the forrest
22:57 forrest hah
22:58 forrest my poor legs
22:59 Gifflen joined #salt
23:06 rsimpkins joined #salt
23:06 cyp_ joined #salt
23:07 kermit joined #salt
23:08 UtahDave carmony: yep! I'm here finally!
23:09 Rojematic joined #salt
23:10 Rojematic joined #salt
23:18 djaykay joined #salt
23:18 n8n joined #salt
23:18 MZAWeb joined #salt
23:18 alunduil joined #salt
23:18 rostam joined #salt
23:18 hotbox_ joined #salt
23:18 tonthon joined #salt
23:18 Saint-N joined #salt
23:18 gmoro joined #salt
23:18 rawtaz joined #salt
23:18 scooby2 joined #salt
23:18 zain joined #salt
23:19 hunter I think its two problems - one is the path is wrong so the SSH_SHIM is seeing only the crufty old solaris tools rather than the gnu ones and b) the freaking shell its using is ksh93
23:19 hunter Not sure which of those to try and attack first.
23:20 fishpen0 joined #salt
23:20 forrest oh solaris
23:20 valgrind joined #salt
23:24 hunter I bet this is fixed in some later version (or maybe not - newer OI systems seem to work) but I don't want to bump versions.
23:24 hunter But I can't think of a patch to fix this for solaris without potentially borking other legit salt targets.
23:25 valgrind joined #salt
23:25 hunter I've changed the SSH_SHIM to be run by bash (which all solaris-en have by default) and to include the /usr/gnu/bin dir at the beginning.
23:25 hunter Any salt maintainers/developers  care to advise?
23:26 oz_akan_ joined #salt
23:26 JulianGindi joined #salt
23:31 hunter I have a minimal patch against 0.17.5 -- I just need to hack the PATH in.
23:31 rsimpkins left #salt
23:32 bhosmer joined #salt
23:32 ndrei joined #salt
23:33 jtang1 joined #salt
23:40 russw joined #salt
23:42 krow joined #salt
23:42 rojem joined #salt
23:47 ndrei joined #salt
23:48 yidclare joined #salt
23:50 schimmy joined #salt
23:50 russw left #salt
23:53 eculver joined #salt
23:53 eculver joined #salt
23:54 jdenning joined #salt
23:55 zzzirk joined #salt
23:57 joehh hunter: they often respond well to pull requests through github
23:57 hunter Understood but I was hoping for advice on a well _formed_ pull request.
23:57 hunter IE, the best way to do this crazy thing of assback-ward compatibility
23:59 joehh ahhh - sorry I can't help there... I see the problem though :(

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