Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-08-09

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

All times shown according to UTC.

Time Nick Message
00:01 dthom91 joined #salt
00:09 kenbolton joined #salt
00:12 hellome joined #salt
00:20 Linz_ joined #salt
00:22 Linz_ joined #salt
00:23 ren0thing joined #salt
00:24 hellome joined #salt
00:26 jdenning joined #salt
00:32 p3rror joined #salt
00:41 jacksontj joined #salt
00:42 bruce-one joined #salt
00:58 cxz joined #salt
01:01 blee joined #salt
01:04 intchanter joined #salt
01:06 kleinishere joined #salt
01:09 abe_music joined #salt
01:10 Nexpro1 joined #salt
01:13 Ivo joined #salt
01:17 UtahDave joined #salt
01:19 kenbolton joined #salt
01:22 liuyq joined #salt
01:25 dthom91 joined #salt
01:29 Ivo joined #salt
01:31 liuyq joined #salt
01:33 Ryan_Lane joined #salt
01:38 oz_akan_ joined #salt
01:39 xl1 joined #salt
01:55 afx_hero joined #salt
01:56 UtahDave joined #salt
01:56 LucasCozy joined #salt
01:58 ren0thing joined #salt
02:00 dthom91 joined #salt
02:11 kleinishere joined #salt
02:11 baniir joined #salt
02:33 drogoh joined #salt
02:34 Gifflen joined #salt
02:35 logix812 joined #salt
02:36 Furao joined #salt
02:39 kleinishere joined #salt
02:39 nonuby joined #salt
02:46 UtahDave joined #salt
02:47 nonuby since salt cmd mod insists on using a shell does it do anything to make args safe - e.g. "xyz$(cat /etc/shadow)" etc..
02:49 UtahDave nonuby: No, I don't think it does.
02:58 Thiggy joined #salt
03:01 liuyq joined #salt
03:05 afx_hero joined #salt
03:07 mordred joined #salt
03:14 andrew joined #salt
03:22 nonuby joined #salt
03:24 kleinishere joined #salt
03:24 napperjabber joined #salt
03:30 oz_akan_ joined #salt
03:43 malinoff joined #salt
03:48 nonuby is I want to talk to the master from any app built in say golang is there a better way than cmd exec of salt?
03:50 malinoff nonuby, native api is always better than cmd execution
03:51 nonuby native api is python? hmm.. so does that talk to the master via zeromq, i guess i could golang <-(0mq)-> master then?
03:53 nonuby i guess what am asking is does a salt master expose a 0mq req/reply socket for commanding the master (e.g. from some higher level infrastructure management software written in some other stack/lang)
03:58 kstaken joined #salt
04:02 druonysus joined #salt
04:06 lyddonb_ joined #salt
04:11 gildegoma joined #salt
04:12 tseNkiN joined #salt
04:14 cxz is there a way to target minions within a state?
04:15 malinoff nonuby, I dont think so... I know that 0mq is used when the master communicates with minions, it's not used to 'grab' a commant from the outside. You have 2 ways: 1) use Python API; 2) use cmd execution. I think, it will not be a problem to write a wrapper around Python API in your other language
04:16 Katafalkas joined #salt
04:16 malinoff cxz, do you want to target via grains or what?
04:16 cxz by hostname
04:16 carmony joined #salt
04:16 cxz my grains['id'] is like 'blah.domain.com'
04:16 cxz i want to target by 'blah'
04:17 Katafalkas joined #salt
04:20 nonuby malinoff, thanks. how does the 'salt' cmd communicate with the local master?
04:20 malinoff cxz, use grains['host']
04:20 cxz that won't work
04:22 malinoff {% if grains['host'] == 'blah' %} state1 {% else %} state2 {% endif %} - is your state similar to this?
04:23 Ryan_Lane joined #salt
04:23 malinoff cxz, what is 'local master'?
04:23 jehoshua02 joined #salt
04:23 cxz that won't work
04:23 cxz using grains['host']
04:23 cxz on ec2 that is the hostname but not the actual instance name
04:24 cxz and you misdirected a hilight to me btw
04:26 nonuby ah found it, it seems salt cmd and the salt client api, communicate with the master with zeromq pub, and then waits for the job id to complete.
04:26 intchanter joined #salt
04:27 malinoff nonuby, executing 'salt' command is executing the master
04:27 nonuby yes, but the command talks to the master via zeromq though?
04:30 malinoff I think, i'm misunderstating something, zeromq is used to communicate via network, but 'salt' command is running directly on the master machine. There is no need 'salt' command to actually 'talk' via 0mq
04:30 oz_akan_ joined #salt
04:31 malinoff cxz, >and you misdirected a hilight to me: can you explain please?
04:31 cxz malinoff: i said nothing about 'local master'
04:31 cxz that was nonuby
04:31 cxz learn 2 irc
04:31 malinoff oops
04:32 malinoff As you wish, my master.
04:33 napperjabber joined #salt
04:37 carmony joined #salt
04:41 druonysus joined #salt
04:41 druonysus joined #salt
04:42 cewood joined #salt
04:44 Lue_4911 joined #salt
04:45 Katafalkas joined #salt
04:50 auser joined #salt
04:54 druonysuse joined #salt
04:54 druonysuse joined #salt
04:59 jehoshua02 left #salt
05:03 jehoshua02 joined #salt
05:08 liuyq joined #salt
05:10 idkfa joined #salt
05:16 faulkner joined #salt
05:28 kleinishere joined #salt
05:29 dthom91 joined #salt
05:33 SpX joined #salt
05:34 bud joined #salt
05:39 jehoshua02 Can I specify a specific version of apache in my salt state?
05:40 jehoshua02 (or specific version of any package?)
05:42 cxz pkg.installed: - version:
05:42 malinoff http://docs.saltstack.com/ref/states/all/salt.states.pkg.html?highlight=pkg.installed#salt.states.pkg.installed
05:48 jehoshua02 Thanks. I'm still quite lost with all this stuff.
05:49 cxz dw, it makes sense
05:49 cxz the docs sucked up until recently
05:49 cxz don't let that put you off though
05:50 cxz it's gotten much, much better lately
05:50 gildegoma joined #salt
06:00 idkfa joined #salt
06:02 kstaken joined #salt
06:09 jehoshua02 can I put a wildcard in my top.sls for the states to run?
06:09 jehoshua02 instead of listing them out?
06:10 dthom91 joined #salt
06:32 malinoff jehoshua02: http://docs.saltstack.com/ref/states/top.html
06:32 malinoff Many possible ways to do that
06:35 Katafalkas joined #salt
06:42 MTecknology joined #salt
06:57 kleinishere joined #salt
07:07 ml_1 joined #salt
07:10 vaxholm joined #salt
07:13 pkruithof joined #salt
07:15 nonuby joined #salt
07:26 Ryan_Lane joined #salt
07:27 balboah joined #salt
07:42 Linz joined #salt
07:49 Ryan_Lane joined #salt
07:51 dthom91 joined #salt
07:52 ml_1 joined #salt
07:54 pkruithof joined #salt
07:54 kleinishere joined #salt
08:01 Ryan_Lane joined #salt
08:06 efixit joined #salt
08:08 felskrone joined #salt
08:09 zooz joined #salt
08:10 Xeago joined #salt
08:16 helderco joined #salt
08:19 whit joined #salt
08:38 mechanicalduck joined #salt
08:42 felixhummel joined #salt
08:47 Ryan_Lane joined #salt
08:48 abele joined #salt
08:51 dthom91 joined #salt
08:52 krissaxton joined #salt
09:01 lemao joined #salt
09:11 vaxholm joined #salt
09:12 david_a joined #salt
09:22 az87c joined #salt
09:29 helderco joined #salt
09:35 Katafalkas joined #salt
09:42 scott_w joined #salt
09:45 whiskybar joined #salt
09:45 ml_1 joined #salt
09:50 giantlock joined #salt
09:58 natim joined #salt
09:58 krissaxton left #salt
09:58 natim Hello guys
09:58 natim Does anyone know how to create a state that make sure to execute a python setup.py in a virtualenv
09:59 bastion2202 joined #salt
09:59 kleinishere joined #salt
10:00 ds_shadof joined #salt
10:04 ds_shadof how i can add grain to minion
10:05 natim ds_shadof, edit the /etc/salt/minion file
10:05 natim You will find a grain example
10:06 lyddonb_ joined #salt
10:07 ds_shadof can i add grains any other way than editing config localy at minion or do salt 'minon-1' grains.setval
10:13 hazzadous joined #salt
10:18 malinoff natim: you can use python explicitly. /home/user/myvirtualenv/bin/python setup.py
10:21 SmellyCat joined #salt
10:22 dthom91 joined #salt
10:27 xl1 joined #salt
10:30 flupke joined #salt
10:31 it_dude joined #salt
10:37 ml_1 joined #salt
10:40 Furao natim: use virtualenv state
10:43 natim Furao, the virtualenv states help to create the virtualenv with requirements but doesn't help to develop
10:43 natim malinoff, should I use the cmd state ?
10:44 oz_akan_ joined #salt
10:44 Furao natim: to develop? run setup.py develop ?
10:44 natim yes
10:44 natim Ok setup.py install
10:44 natim or*
10:44 Furao just put the thing you want develop in the requirements file :P
10:44 natim -e . ?
10:44 Furao yes
10:45 Tekni joined #salt
10:45 natim Does it develop or install it ?
10:45 natim How can I configure virtualenvwrapper directory for all users ?
10:46 oz_akan_ joined #salt
10:52 drdran joined #salt
10:54 krissaxton joined #salt
10:56 gaoyang joined #salt
11:02 qba73 joined #salt
11:04 drdran left #salt
11:05 Ivo joined #salt
11:07 bhosmer joined #salt
11:08 logix812 joined #salt
11:12 afx_hero joined #salt
11:12 afx_hero joined #salt
11:18 pkruithof joined #salt
11:19 vaxholm joined #salt
11:22 dthom91 joined #salt
11:26 matanya joined #salt
11:27 p3rror joined #salt
11:27 hazzadous joined #salt
11:29 Katafalkas joined #salt
11:32 vaxholm joined #salt
11:35 mike25ro1 joined #salt
11:39 mike25ro1 hey guys ... anyone around who I can ask a Q?
11:40 natim Try
11:40 mike25ro1 hey natim
11:40 mike25ro1 so... for the sake of the exercice... let's say i want to manage users on 5 vms via salt
11:41 mike25ro1 my idea is to store these users (20)into a DB-alike structure... or smth (please help here as well) and then from states i want to be able to push these users to all minions or just ... some minions - depending on the groups (which can be grains)
11:41 mike25ro1 am i making any sense?
11:41 mike25ro1 manybe a simple xml file on the master.. that i can loop with junja?
11:41 mike25ro1 jinja*
11:42 mike25ro1 is that possible?
11:42 natim A simple sls file should be enough why xml
11:42 natim ?
11:42 mike25ro1 a simple sls... state?
11:42 natim pillar
11:42 mike25ro1 yeah... but pillars are sent ... to all hosts?
11:42 mike25ro1 or am i wrong/
11:42 mike25ro1 ?
11:43 natim A simple sls state will loop for all users defined
11:43 natim No pillar work the same as states
11:43 mike25ro1 the data should be only on the master... and a state to loop
11:43 natim the top.sls define on which host you want to load it
11:43 mike25ro1 ah .. so i can have pillars... that are only on master?
11:44 mike25ro1 ok thanks... and how would i loop from jinja /state a pillar ... in let's say salt://pillar/db/db.sls
11:44 natim pillar and states are on the master in /srv/pillar and /srv/salt
11:44 mike25ro1 natim:  yes i know where pillar and states are.. i see your point now.
11:44 mike25ro1 my Q is now.. how to loop from a state... data from a pillar?
11:45 natim https://gist.github.com/UtahDave/3785738
11:45 mike25ro1 awesome!
11:45 mike25ro1 natim: you've made my day!!!
11:45 natim You're welcome
11:46 mike25ro1 again thak you natim
11:46 natim UtahDave did actually
11:46 mike25ro1 i see that
11:46 natim I just googled saltstack state loop on pillar
11:46 mike25ro1 haha
11:47 baniir joined #salt
11:47 Furao github.com/bclermont/states for plenty of more complex states as examples for you
11:50 vaxholm joined #salt
11:52 mike25ro1 Furao: thanks again
11:54 blee joined #salt
12:03 kleinishere joined #salt
12:09 lvicks joined #salt
12:09 kmrhb joined #salt
12:10 vaxholm joined #salt
12:12 Katafalkas joined #salt
12:15 xl1 left #salt
12:18 DredTiger joined #salt
12:19 ml_1 joined #salt
12:28 chrisgilmerproj joined #salt
12:30 vaxholm joined #salt
12:41 mikedawson joined #salt
12:43 zooz joined #salt
12:53 dthom91 joined #salt
12:53 masm joined #salt
12:56 juicer2 joined #salt
12:57 kenbolton joined #salt
13:00 matanya joined #salt
13:01 felixhummel joined #salt
13:12 Kholloway joined #salt
13:13 brianhicks joined #salt
13:15 Nexpro joined #salt
13:17 kenbolton joined #salt
13:20 bhosmer joined #salt
13:23 Gifflen joined #salt
13:24 HaxCore joined #salt
13:24 bhosmer_ joined #salt
13:24 baniir joined #salt
13:25 alunduil joined #salt
13:31 kermit joined #salt
13:31 m_george|away joined #salt
13:33 bastion2202 joined #salt
13:39 Bingham I often get "Minion did not return" errors from my master. Any body else see this a lot?
13:42 jeffasinger joined #salt
13:46 cron0 joined #salt
13:48 kaptk2 joined #salt
13:50 blee_ joined #salt
13:54 diegows joined #salt
13:54 dthom91 joined #salt
13:55 anteaya joined #salt
13:58 ipmb joined #salt
14:08 kleinishere joined #salt
14:12 mannyt joined #salt
14:14 napperjabber joined #salt
14:17 backjlack joined #salt
14:23 carmony joined #salt
14:25 [diecast] joined #salt
14:25 helderco joined #salt
14:34 natim I have default value on my master pillars
14:34 natim How can I override the value for a certain minion ?
14:35 natim Can I have pillar for a specific minion set on the minion and if yes where should I put them ?
14:38 giantlock joined #salt
14:38 quantumsummers|c joined #salt
14:38 sifusam joined #salt
14:41 carmony joined #salt
14:42 JesseC Can you not have multiple names under a file.absent?
14:42 JesseC Seems that last one I put in overrides the ones above it
14:42 abe_music joined #salt
14:44 BRYANT__ joined #salt
14:46 JesseC nm, think I got it.. hopefully. :)
14:49 dfinn joined #salt
14:50 it_dude joined #salt
14:51 teskew joined #salt
14:51 jalbretsen joined #salt
15:03 faldridge joined #salt
15:04 berto- joined #salt
15:08 forrest joined #salt
15:09 m_george left #salt
15:10 Linz_ joined #salt
15:10 lazyguru joined #salt
15:11 blee joined #salt
15:11 pdayton joined #salt
15:14 kmrhb joined #salt
15:15 conan_the_destro joined #salt
15:18 StDiluted joined #salt
15:21 Xeago joined #salt
15:24 mmilano joined #salt
15:24 dthom91 joined #salt
15:28 sifusam joined #salt
15:29 devinus joined #salt
15:29 santagada joined #salt
15:39 logix812 joined #salt
15:42 chjohnst_work joined #salt
15:42 Linz joined #salt
15:44 StDiluted morning all
15:45 mechanicalduck joined #salt
15:51 whit joined #salt
15:51 zz_farra joined #salt
15:51 napperjabber joined #salt
15:57 sifusam joined #salt
15:58 jschadlick1 joined #salt
15:58 jdenning joined #salt
15:58 ml_1 joined #salt
15:59 napperjabber joined #salt
16:03 abe_music joined #salt
16:04 felixhummel hi
16:04 bhosmer joined #salt
16:10 KyleG joined #salt
16:10 KyleG joined #salt
16:12 aat joined #salt
16:13 kleinishere joined #salt
16:16 jarm joined #salt
16:20 TheRealBill_ joined #salt
16:21 JesseC Anyone know a good editor for salt that works on windows?
16:21 JesseC notepad++ doesn't work very well
16:22 jacksontj joined #salt
16:22 TheRealBill_ there is vim for windows IIRC
16:23 nliadm are the ipc sockets that salt-master just unix domain sockets?
16:23 bhosmer_ joined #salt
16:23 whit joined #salt
16:23 nliadm salt-master uses, rather
16:28 JesseC Now.. how to install salt-vim on the windows version. :<
16:28 ipmb joined #salt
16:30 dthom91 joined #salt
16:31 forrest joined #salt
16:32 kstaken joined #salt
16:33 Linz joined #salt
16:35 renoirb I have a question about salty-vagrant sample  Vagrantfile in develop
16:35 akoumjian renoirb: shoot
16:36 renoirb If I read the docs-v1 from vagrant, they define multiple vm blocks 'config.vm.define :vm1 do |vm1_config|'
16:36 renoirb but your sample only has a big config.vm.provision :salt ....
16:36 renoirb Assuming I want to have a vagrant file that has two VMs exactly for that, I would have to modify your example?
16:37 joshe joined #salt
16:40 renoirb Any recommendations akoumjian
16:40 renoirb ?
16:40 kchr joined #salt
16:40 Xeago joined #salt
16:41 akoumjian renoirb: Each vm.define block can get its own vm.provision block
16:41 Lue_4911 joined #salt
16:42 com48 joined #salt
16:42 akoumjian renoirb: sorry I don't have an example offhand, but it's not too hard.
16:42 renoirb I think it answer my question, thanks
16:43 it_dude joined #salt
16:43 * renoirb is not used with Ruby, yet.  Still assessing what is what.
16:44 * akoumjian wrote salty-vagrant not knowing any Ruby
16:44 EugeneKay Well, Salt isn't Ruby; it's Python.
16:44 EugeneKay So that's your first hurdle.
16:44 com48 hey guys, I have salt setup on a server farm and i'm having a issue with services starting on startup. nfs and ntpd are set to enabled=True but when I reboot these services don't autostart until I run salt. (we are running CentOS 6.4)
16:45 akoumjian EugeneKay: Vagrant and its plugins are in Ruby.
16:46 mannyt_ joined #salt
16:48 cron0 joined #salt
16:53 zaeb2 joined #salt
16:54 mannyt joined #salt
16:58 felskrone joined #salt
16:59 pmcg joined #salt
17:00 Katafalkas joined #salt
17:01 napperjabber joined #salt
17:08 com48 hey guys. i have the following code. http://pastebin.com/CRLQfL70. if i run this nfs start but doesn't add to the auto start. if in run salt-call service.enable nfs it does, anyone have a idea what i'm doing wrong?
17:10 com48 aa being a idiot. drop the d from enable and worked like a charm. sorry guys
17:11 toddejohnson Anyone here have experience with gitfs and environments?
17:11 berto- com48: check out /etc/inittab … what's your system's default run level?
17:14 druonysus joined #salt
17:15 pkruithof joined #salt
17:16 devinus joined #salt
17:21 mgw joined #salt
17:23 napperjabber joined #salt
17:25 faldridge joined #salt
17:28 bhosmer joined #salt
17:30 bastion2202 joined #salt
17:34 logix812 joined #salt
17:36 Gareth joined #salt
17:40 sifusam joined #salt
17:46 zach joined #salt
17:48 abe_music joined #salt
17:49 kleinishere joined #salt
17:52 forrest joined #salt
17:53 troyready joined #salt
17:59 Linz_ joined #salt
18:00 it_dude joined #salt
18:00 dthom91 joined #salt
18:03 sifusam joined #salt
18:07 dthom911 joined #salt
18:10 KyleG joined #salt
18:10 KyleG joined #salt
18:12 ajm joined #salt
18:15 napperjabber joined #salt
18:15 ajm left #salt
18:16 nineteeneightd joined #salt
18:18 hellome joined #salt
18:20 jschadlick joined #salt
18:21 mikedawson joined #salt
18:23 jxqz left #salt
18:27 dthom91 joined #salt
18:33 az87c joined #salt
18:33 hellome joined #salt
18:36 dthom911 joined #salt
18:37 berto- joined #salt
18:39 nineteeneightd So, I feel like from the time I run `salt '*' highstate` to the time anything starts happening, it takes way too long
18:40 StDiluted the output comes after everything is done
18:40 nineteeneightd For example, I just tried to apply highstate and my sls had didn't parse correctly, but before I knew that it took at least 30 seconds
18:40 nineteeneightd I only have 1 minion in my cluster
18:40 StDiluted how much stuff are you doing in the highstate?
18:42 spmurrayzzz joined #salt
18:42 nineteeneightd Not much
18:42 StDiluted I believe that it has to compile the whole shebang first
18:42 nineteeneightd I might just need to check out the logs, kick up the log level and see if it tells me what's going on
18:42 spmurrayzzz hey all, question about the JSON returner: is there a reason that when querying multiple minions that the JSON does not come back as an array of dicts?
18:42 StDiluted which can take a bit
18:43 StDiluted but that seems like a long time
18:52 jkleckner joined #salt
18:53 mechanicalduck joined #salt
18:54 bhosmer joined #salt
18:57 TheRealBill_ spmurrayzzz: I've not tried that returner yet, but off th etop I'd expect a dict of dicts, not an array of them. What does it actually return?
18:58 TheRealBill_ or, spmurrayzzz do you mean the "--out json" option
18:58 spmurrayzzz TheRealBill_: correct --out=json
18:58 spmurrayzzz let me get you some sample output
18:59 spmurrayzzz http://pastebin.com/wb3edsCw
19:00 spmurrayzzz its problematic because thats invalid JSON, so dumping that right to something like json.loads() raises an exception
19:01 spmurrayzzz for now, my stopgap measure is to use the YAML returner, but JSON is the ideal format for the web service I am building
19:01 TheRealBill_ yeah that isn't the right way to output that. I'd suggest submitting an issue
19:01 cwright is there a flag for the pkg states to mark a debian/ubuntu package as "hold" ?
19:01 jacksontj joined #salt
19:01 spmurrayzzz will do, thanks TheRealBill_
19:01 spmurrayzzz maybe if I get some time I can whip up a PR
19:05 spmurrayzzz TheRealBill_: just found this https://github.com/saltstack/salt/issues/1685
19:05 spmurrayzzz looks like --static is the option im looking for
19:06 mikedawson_ joined #salt
19:06 TheRealBill_ ah, interesting. and good to know. Methinks that should go into the docs.
19:06 Xeago joined #salt
19:11 ipmb joined #salt
19:17 TheRealBill_ spmurrayzzz: I just submitted a PR to add some text to the docs describing the need for --static. Hopefully it will save someone some time in the future.
19:20 Thiggy joined #salt
19:24 felskrone joined #salt
19:27 lyddonb_ joined #salt
19:28 afx_hero joined #salt
19:32 qba73 joined #salt
19:35 mike joined #salt
19:35 mike hi
19:40 mechanicalduck joined #salt
19:59 krissaxton joined #salt
19:59 dot45 joined #salt
19:59 dot45 heya folks
19:59 renoirb Anbody used with salty-vagrant config?
19:59 dot45 quick question on whether salt would be a good fit for what I am trying to do.
19:59 renoirb go on dot45 :)
20:00 StDiluted i have renoir
20:00 renoirb StDiluted: thx for letting me know.  Have you built a config with multiple VM with vagrant+Salt?
20:00 dot45 I am looking to script the install and config of a django app on ubuntu boxes, including setting up the app and mysql. I dont plan on doing ongoing management of them though.
20:00 renoirb I want to replicate master and minions
20:00 StDiluted renoir: not multiple, no, just one vagrantfile
20:01 renoirb StDiluted: yes, one vagrant file, but multiple vms
20:01 dthom91 joined #salt
20:01 TheRealBill_ dot45: if it is a once only thing, Fabric might be better for you.
20:01 renoirb dot45: so far, it is the common use-case
20:01 dot45 thanks for the info, just looking at different things to make it easier for folks to get up and running
20:01 dot45 install doc is way to long
20:01 StDiluted renoir: I havent set up multiple vm's just the one
20:02 StDiluted or maybe packer
20:02 StDiluted packer.io
20:02 renoirb dot45: look at salty-vagrant, create a django.sls then in the top.sls call it.
20:02 TheRealBill_ dot45: so just use salt-bootstrap ;)
20:02 nod left #salt
20:02 dot45 ok, I will not have control of these boxes, just think of it as an automated install a user can run
20:03 basepi cedwards: ping
20:03 renoirb Wow StDiluted packer is nice!
20:03 cedwards basepi: yo
20:03 StDiluted renoir: yeah, it's very nice.
20:03 basepi cedwards: how easy is it for you to apply small patches and test?  can't remember if you like building from source.
20:04 TheRealBill_ then it sounds to me like you need a set of shell and/or python scripts to reduce the steps then.
20:04 cedwards basepi: I can try to apply patches, sure.
20:04 basepi cedwards: i guess i just need to spin up my freebsd server from last time.  i think it's still working
20:04 dot45 I just came into the project, I'm a microsoft guy during the day. still getting a grip on how to automate stuff on the linux side
20:04 basepi cedwards: https://github.com/saltstack/salt/commit/f6898c26940e41966f769edb4a65e3c8cab1dd15  that might be the issue, could you try removing those lines and see if it fixes the issue?
20:04 dot45 i miss my powershell
20:05 SEJeff_work dot45, So powershell passes objects and bash passes text. Both are good
20:05 SEJeff_work bash is much simpler than powershell
20:05 dot45 guess i'll read up on bash this weekend
20:05 TheRealBill_ well it is all command line stuff, and bash is the command line (excepting those who stray from the one true shell ;) )
20:06 SEJeff_work Just unix shells in general... They process text
20:06 SEJeff_work powershell is all objects
20:06 akoumjian dot45: https://github.com/akoumjian/salt-django-example
20:06 gordonm joined #salt
20:06 cedwards basepi: remove just the highlighted lines?
20:06 basepi yep.
20:06 dot45 oh nice, it handles pip
20:06 basepi trying to narrow it down, but that's the only grains change that i can see that might be killing it.
20:07 dot45 is there a salt for dummies guide out there anywhere?
20:07 auser joined #salt
20:07 StDiluted hey auser
20:07 TheRealBill_ dot45 if using pip, just build a requirements.txt file and have pip install it. then you just need to make the config changes to django/mysql (and install mysql if it goes on the local box)
20:07 dot45 like a simple walkthrough
20:07 bhosmer_ joined #salt
20:07 SEJeff_work dot45, Did you do the tutorial yet? If not you should
20:07 auser hey StDiluted!
20:07 cedwards basepi: so far so good..
20:07 StDiluted dot45: salt is pretty simple
20:07 dot45 I just found the site 5min ago in a google search, havent read yet ;)
20:08 TheRealBill_ dot45: jus t be clear you are lookign for a process where a single user can install and configure a series of 'things' on a single system, and you want it to be simple for them, yes?
20:08 chrisgilmerproj left #salt
20:08 dot45 yes
20:08 TheRealBill_ if that is the case, I don't think salt is what you are looking for.
20:08 basepi cedwards: ya, that's really the only thing it could be.  need to find whiteinge and ask him about it
20:09 dot45 is salt more towards ongoing configuration management?
20:09 TheRealBill_ shell and docs are what you need for that.
20:09 SEJeff_work dot45, salt is for remote execution AND config management
20:09 TheRealBill_ dot45: that and remote execution
20:09 it_dude joined #salt
20:09 dot45 k
20:09 cedwards basepi: commenting those lines allows me to restart and communicate with minions again. otherwise it gives the reported output and hangs on all requests.
20:09 SEJeff_work dot45, It was built for remote execution. Config management was added later on
20:09 dot45 ok, thanks for the info
20:09 TheRealBill_ yw
20:10 basepi cedwards: so removing those lines fixes it compeletely?  putting the lines back in breaks it?
20:10 jschadlick joined #salt
20:12 forrest joined #salt
20:13 cedwards basepi: that's what it looks like
20:13 basepi cedwards: kk
20:13 basepi we'll get a new release out soon, just need to ask seth how important that commit is.
20:13 basepi thank you for testing that and finding the bug so quickly
20:16 renoirb StDiluted: My question was mostly about the vagrant config with the keys
20:16 nineteeneightd joined #salt
20:16 StDiluted renoir: ah, pre-seeding keys?
20:16 renoirb yes
20:16 renoirb It is confusing on to which is required where.
20:17 renoirb I assume that the master must have both master,minion and the following minions only requires minion and the master public key
20:17 StDiluted I believe that is correct
20:18 cedwards basepi: np. hard to miss the bug when salt stops working completely
20:18 renoirb Surprisingly, even though I have … config.vm.define :salt_master do |salt_master|,      AND       config.vm.define :salt_minion do |salt_minion|
20:18 abe_music joined #salt
20:18 LucasCozy joined #salt
20:18 renoirb within Vagrant.configure("2") do |config|
20:18 renoirb and their keys adjusted, it says it fails with the keys.
20:19 StDiluted so you created the keypair on the master and you put it in /etc/salt/pki/master/minions/(id)
20:19 StDiluted using salt-key
20:20 renoirb StDiluted: oh, I think I had removed in the second the config.seed_master = {minion: config.minion_pub}
20:21 basepi cedwards: yep.  we really need to get a cross-platform testing structure in place.  travis just isn't cutting it
20:22 andrew joined #salt
20:22 renoirb StDiluted: Do we still need the block 'salt.accept_keys = true' in Vagrantfile?
20:22 SEJeff_work basepi, You know it would be very meta for testing salt using salt-cloud
20:22 SEJeff_work Yo dawg, I heard you like testing salt so I setup salt cloud to test your salt with salt
20:23 cedwards basepi: testing Tom's suggested fix now..
20:23 basepi SEJeff_work: hehe, yep
20:23 basepi cedwards: kk
20:23 basepi ya, we need to set up jenkins with Rackspace instead of Travis
20:23 dthom91 joined #salt
20:23 renoirb StDiluted: (re: /etc/salt/pki/...) no, i'm talking about the Vagrantfile config.
20:23 basepi because it's become a little ridiculous.
20:23 SEJeff_work basepi, You can also setup your own travis install
20:24 SEJeff_work as travis is all oss
20:24 devinus joined #salt
20:24 basepi SEJeff_work: does travis work with non-debian systems, though?
20:24 basepi my brain was telling me it was debian-only
20:24 StDiluted renoirb: in order to preseed your minion keys you have to create the key and put it in the minion
20:24 berto- joined #salt
20:25 SEJeff_work no clue
20:30 renoirb StDiluted: brb, conf call.
20:30 squelch joined #salt
20:31 squelch should i be able to target minions based on anything in the grains.items list
20:31 StDiluted should be able, yes.
20:31 spmurrayzzz squelch: yes
20:31 squelch i'm trying - G@virtual:VirtualBox
20:31 SEJeff_work squelch, Just do: salt -G virtual:VirtualBox test.ping
20:31 SEJeff_work squelch, You don't need to use a compound matcher unless you're doing multiple types of matches in 1 line
20:33 it_dude joined #salt
20:33 squelch i am using salt bootstrap script with vagrant, i don't have salt just salt-call on my local box
20:33 squelch so in my top.sls file, i want to say anything with a hostname *vagrant or virtual:virtualbox, how do i do that
20:34 StDiluted 'virtual:virtualbox':\n - match: grain
20:36 squelch ok that worked, can i do the *vagrant hostname in the same line
20:36 LGSilva joined #salt
20:37 LGSilva hey guys, I'm gettin this error: expected token 'end of print statement', got 'salt'; line 4 in template trying to run this https://gist.github.com/luizsilva/37ae28ccb79feb606cf8 - but I don't see what is wrong with the state
20:37 carmony joined #salt
20:38 squelch ah.. - match: compound i take it
20:38 StDiluted yes
20:38 StDiluted '*vagrant and G@virtual:virtualbox':\n - match: compound
20:39 squelch thank you :)
20:40 m_george|away joined #salt
20:41 StDiluted LGSilva, where is the template
20:41 david_a joined #salt
20:42 LGSilva oh! the error is on the template... duh! Thanks StDiluted
20:43 LGSilva {{ salt['network.ip_addrs']('eth0')[0]  salt['network.ip_addrs']('eth1')[0] }} this was wrong
20:44 renoirb Thanks StDiluted :)
20:45 StDiluted no problem, glad you found it
20:46 renoirb StDiluted: Didn't. I know how to do things manually, my current struggle is to do it in the vagrant file, still working on it.
20:46 StDiluted renoirb: I see
20:46 renoirb I will for sure publish on webplatform.org a post about my finding StDiluted  :)
20:51 forrest Hmm, anyone else having issues with github?
20:52 jacksontj joined #salt
20:52 gaoyang joined #salt
20:55 SEJeff_work forrest, https://status.github.com/
20:55 forrest s0undt3ch, are you still following https://github.com/saltstack/salt-bootstrap/issues/198
20:55 forrest am I not explaining the issue clearly?
20:55 forrest yea it's up now for me SEJeff, thanks
20:56 mechanicalduck is there something like automation in windows systems at all?
20:56 StDiluted you can use salt with windows
20:57 mechanicalduck ah
20:57 mechanicalduck but messing up with registry can be painful, can't be?
20:57 StDiluted mechanicalduck: yes, it definitely can.
20:58 SEJeff_work mechanicalduck, http://docs.saltstack.com/topics/installation/windows.html
20:59 squelch has anyone here managed to extend pillars
20:59 StDiluted squelch: yes, I have external pillars
20:59 squelch StDiluted: how do you do it??
21:00 StDiluted squelch: what do you want to do with it? I use mine to check some grains and pass back pillar values based on those grains
21:00 druonysus joined #salt
21:00 squelch i have common options in common.sls pillar, and i want to extend those from dev.sls and prod.sls
21:01 StDiluted I'm not sure we're talking about the same thing then
21:01 squelch look here - https://github.com/saltstack/salt/issues/3991
21:01 DredTiger joined #salt
21:03 LGSilva left #salt
21:04 p3rror joined #salt
21:04 faldridge joined #salt
21:04 squelch any ideas.
21:06 mechanicalduck squelch: ?
21:06 squelch can't understand how no one else has needed that.
21:07 forrest I don't understand
21:07 forrest why would you have the same data in two sls files?
21:07 forrest you wanna manage the same file in two different sls files, then include both those sls files for a single server?
21:07 devinus joined #salt
21:08 forrest why would you do such a thing?
21:08 squelch i would have to have the same data in two files if i can't extend.. i have common options for each state for example, version etc that needs to be common (as most of stuff is common across dev and production servers, i.e. users) but some things like ports etc will need to be different
21:08 squelch https://github.com/saltstack/salt/issues/2466
21:09 forrest so why would you not have your base sls that gets included on every server, then two sls files, where each one manages those
21:09 forrest so you have iptables.sls, that just installs iptables and such
21:09 forrest then iptables-dev.sls
21:09 squelch that is exactly what i have
21:09 forrest and iptables-prod.sls
21:09 squelch well no, i would like 30 files..
21:09 bhosmer joined #salt
21:09 forrest so then in iptables-dev.sls you include iptables.sls
21:09 squelch need*
21:10 StDiluted the way i handled that is with an external pillar that returns data based on which minion calls it
21:10 forrest ok
21:10 StDiluted it determines the minion based on grains and nodename
21:10 forrest so then you're using jinja2 if statements depending on data returned from the minion?
21:11 jacksontj joined #salt
21:11 StDiluted me? no. I wrote an external pillar in python proper
21:11 squelch no, look:
21:11 StDiluted couldnt get nested jinja if statements to work properly
21:11 squelch '*':
21:11 squelch - common
21:11 squelch '*vagrant or G@virtual:VirtualBox':
21:11 forrest no not you stdiluted
21:11 squelch - match: compound
21:11 squelch - dev
21:11 squelch pillar/top.sls
21:11 forrest ok
21:12 squelch so i have a block for production server as well, so i have two more files, pillar/dev.sls and pillar/prod.sls
21:12 forrest right
21:12 JesseC joined #salt
21:12 forrest so you aren't basically templatizing your files?
21:13 squelch say for nginx, i have an nginx block. in common, i have nginx:\n version: whatever, but in dev.sls i want nginx:\nsites: whatever
21:13 squelch so all servers will get the same version, but i can have different sites on dev and prod
21:13 squelch (for now i have one prod server)
21:13 forrest ok, so in your nginx sls you install nginx, and do your base config, then in your dev.sls you have it include nginx.sls, and the additional sites?
21:14 forrest Or you can't do that for some reason?
21:14 StDiluted you want different versions of nginx depending what environment you are in, is that what you're trying to say?
21:14 squelch no :(
21:14 forrest he said all servers have the same version
21:14 StDiluted sorry, trying to understand
21:14 forrest no I am as well
21:14 forrest because I don't get what the issue is
21:15 forrest you configure nginx, and ONLY the default nginx config in nginx.sls
21:15 squelch yeah, i am basically trying to get my dev server and production server as closely synchronised as possible
21:15 forrest then in nginx-dev.sls, you include nginx.sls, and then your additional config is in there.
21:15 squelch my dev server being a virtual machine - vagrant/salt
21:16 squelch thats a lot of messing around. atm I have one nginx.sls that just says {% if sites in pillar['nginx']['sites'] %} etc
21:16 ahammond I want to disable user passwords. foo.user.present(password='!') seems like it should work but I'm getting "These values could not be changed: {'passwd': '!'} "
21:17 forrest how is it a lot of messing around? It ensures that each environment is identical, yet unique.
21:17 forrest I mean you could make it super ghetto, and base it off of grain information with jinja templating so only some files are included based on that data
21:17 squelch because for all the other bits i have on here i would need to create a lot more files.. which will be a pain to maintain aswell
21:18 squelch plus, nginx.dev.sls and nginx.prod.sls would be identifical..
21:18 forrest how so?
21:18 squelch {% if sites in pillar['nginx']['sites'] %
21:19 HaxCore joined #salt
21:19 squelch it would just be {% if sites in pillar['nginx_dev']['sites'] %} and {% if sites in pillar['prod_nginx']['sites'] %} that would be different, if that's what you're saying
21:19 SEJeff_work if site in pillar...
21:20 dfinn left #salt
21:20 forrest I'm saying to not do that at all. Modify your top so you have base: (if anyone even uses that), then dev:, and then prod: Where each of these respective items includes nginx.dev.sls, and nginx.prod.sls
21:21 forrest Maybe I am crazy and not doing it the salt way from too much puppet
21:21 SEJeff_work I prefer to use the same sls files and put the dev/qa/prod logic in pillar where possible
21:22 squelch SEJeff_work: yes that's what I'm trying to do
21:22 SEJeff_work But I don't use environments much. We have thousands of servers, and I just don't see the need
21:22 forrest he's talking about for port configuration and such for iptables
21:22 forrest network configuration fun
21:22 SEJeff_work Yeah totally, put that in pillar
21:23 squelch i have my nginx sites in pillar, iptables and all sorts
21:23 squelch so i can forget about the states
21:23 squelch that's the idea anyway
21:24 jschadlick joined #salt
21:25 forrest So why do you want the extend functionality?
21:25 KyleG1 joined #salt
21:25 forrest if what you want can be accomplished in pillar?
21:27 carmony joined #salt
21:27 squelch because dev sites will be different to prod sites
21:27 squelch so dev.sls nginx:\n sites: 1 prod.sls nginx:\n sites: 2
21:28 squelch thats pillar/dev.sls pillar/prod.sls
21:28 squelch but pillar/common.sls has nginx:\n version (which will need to be the same for both)
21:29 squelch so i need both dev and prod to extend common, and add sites to the array
21:29 forrest ok, so why does dev.sls not include common.sls?
21:29 SEJeff_work +1
21:29 forrest just include common.sls in dev.sls, and then manage your dev stuff in dev
21:29 oz_akan_ joined #salt
21:29 forrest don't install nginx again in dev.sls, that's a waste
21:29 squelch well that is done in top.sls * - common, i have tried including common in dev which will be there anyway
21:30 squelch no I'm not installing it again...
21:31 forrest SEJeff_work do you understand the issue? I guess I am not understanding.
21:31 DredTiger joined #salt
21:31 forrest I don't see why you'd include common
21:31 forrest you already have commmon in dev.sls
21:31 helderco joined #salt
21:31 forrest I mean you're not installing nginx, and cron, and vim, and everything else in common.sls right?
21:32 forrest that's only for nginx
21:33 forrest If I'm still not understanding the issue, please lets try to have it explained another way, or maybe someone else should speak up and slap me down here :P
21:34 squelch right, here you go
21:34 squelch https://gist.github.com/anonymous/6197433
21:35 auser hey all
21:35 squelch i have vim and other stuff in states/common.sls and options in states/common.sls, as this will be required on all servers
21:35 carmony joined #salt
21:35 forrest Hmm
21:36 forrest see that seems 'wrong' to me
21:36 forrest but I don't have enough salt experience to say for sure
21:36 aat joined #salt
21:36 forrest I feel like everything should be broken out, one common-nginx, one common-vim, etc.
21:36 squelch how come?
21:36 forrest because then you reduce dependencies on a single file
21:36 forrest and it's more extensible later down the road
21:36 forrest but that might not be the salt way
21:36 squelch i mean i have a common.sls which includes vim.sls etc
21:36 squelch its not all in one file
21:37 forrest yea so why even do that?
21:37 forrest for the dev.sls, why not include vim.sls nginx.sls, etc.
21:37 forrest what's the point of common.sls?
21:38 squelch i see what you're saying, but I'm trying to reduce duplication. again i would have two lists both containing 20 or so of the same states
21:38 forrest so what
21:38 forrest what happens when in dev you need nginx2, and nginx1 in prod?
21:39 forrest you have to modify the whole common.sls
21:39 squelch im imagining this will get bigger and bigger and eventually become a pain to maintain, if i have a common.sls theres no chance of missing anything
21:39 forrest I honestly don't know the 'best' way to do it
21:40 forrest there's no exampel I'm aware of that shows a setup like this
21:40 forrest *example
21:40 forrest common.sls to me seems like a failure waiting to happen
21:40 squelch haha a, I'm not sure you understand, i am only skipping typing 20 things twice
21:41 squelch common.sls just contains. - include vim.sls, openssh.sls etc etc
21:41 forrest that's what I understand, and why I don't think it's a big deal to include those items in each one
21:41 squelch but even if i did, that still wouldn't solve my problem
21:41 JesseC Anyone know if there's a precompiled salty-vagrant around?
21:41 forrest Why would it not solve your problem?
21:42 forrest you are extending each item
21:42 akoumjian JesseC: What do you mean precompiled? You can install it through rubygems by using "vagrant plugin install vagrant-salt" ?
21:42 forrest you have your basic nginx, which you then extend with nginx-vhosts, or whatever.
21:42 JesseC akoumjian: Don't you have to have the gem when installing it that way?
21:42 akoumjian JesseC: It automatically searches rubygems, similar to a "pip install"
21:43 JesseC akoumjian: nm, I see, it's installing
21:43 JesseC akoumjian: thanks
21:43 akoumjian JesseC: np.
21:43 JesseC The simplest solution, lol. Gotta stop skipping it and assuming things are difficult.
21:43 forrest JesseC, you just assume that because it's ruby
21:43 dthom91 joined #salt
21:44 forrest I don't know what to tell you squelch, I see the way you're doing it growing into a monolithic mess down the road, but I don't know the official stance either
21:44 forrest and I say that because I had to rewrite thousands of lines of puppet because we had a monolithic config
21:45 JesseC forrest: I think I assumed it because in the past week I've ploughed through so much new stuff. salt, vagrant, yaml, jinja, packer, go lol
21:45 squelch yeah i bet. i have messed around with puppet, it's quite ugly from what I remember
21:45 forrest JesseC, yea I understand
21:45 forrest squelch, it was our fault, not puppet's
21:45 forrest but we basically coded ourselves into a corner
21:46 forrest because EVERYTHING depends on that one point
21:46 squelch how many servers have you got?
21:47 forrest at the place we used puppet it was over 3000
21:48 JesseC dance puppet
21:48 kenbolton joined #salt
21:49 squelch nice. i've never had to maintain any more than 10 servers, ha
21:50 squelch what did you need 3000 servers for
21:50 forrest hosting provider
21:50 carmony joined #salt
21:51 squelch ah
21:51 jehoshua02 joined #salt
21:52 forrest oh sorry, 2k linux boxes, and then a bunch of windows boxes, my numbers were off, had to confirm with an old coworker
21:53 jehoshua02 new to salt here. Can't seem to get mysql_user state to work
21:54 jehoshua02 Is this doc correct? http://docs.saltstack.com/ref/states/all/salt.states.mysql_user.html
21:54 forrest can you please post a gist/pastebin jehoshuah02?
21:54 forrest It should be accurate
21:54 StDiluted jehoshua02: do you have python-mysqldb installed on the minion?
21:55 renoirb StDiluted: do you know what is the destined usage of the 'seed_master = {stuff}' directive in vagrantfile?
21:55 renoirb documentation is absent, only code. I don't understand ruby, yet.
21:55 StDiluted I dont
21:55 renoirb ok, thanks
21:56 jehoshua02 StDiluted: Probably not. Do I just add that as a pkg.installed state?
21:57 StDiluted jehoshua02: that's what I did, but made it a require: in the mysql install
21:57 napperjabber joined #salt
22:01 StDiluted omfg i can hear one of my coworkers breathing through his nose.. it's like he's snoring but he's awake.
22:02 forrest Maybe he has allergies
22:03 StDiluted he has nasal issues, that's for sure
22:03 StDiluted all I know is, IDGAF why, it's gross.
22:03 forrest you could ask him :P
22:04 druonysus joined #salt
22:04 druonysus joined #salt
22:05 StDiluted well, I doubt that would be a good plan. I've been imagining his death, graphically, for hours, and it's unlikely I could be civil
22:08 ahammond joined #salt
22:11 ahammond joined #salt
22:12 druonysus joined #salt
22:18 kermit joined #salt
22:27 DredTiger joined #salt
22:28 jalbretsen ah, another good day using Salt to make my life awesome
22:31 forrest s0undt3ch, it's like you don't work on CENT/RHEL every day!
22:33 berto- joined #salt
22:36 alunduil joined #salt
22:37 mikedawson joined #salt
22:39 david_a joined #salt
22:41 carmony joined #salt
22:48 kenbolton joined #salt
22:50 druonysus joined #salt
22:58 KyleG joined #salt
22:58 KyleG joined #salt
22:59 baniir joined #salt
23:10 vaxholm joined #salt
23:11 ipmb joined #salt
23:15 conan_the_destro joined #salt
23:16 jacksontj joined #salt
23:20 LucasCozy joined #salt
23:25 retr0h joined #salt
23:26 aat joined #salt
23:26 kenbolton joined #salt
23:32 berto- joined #salt
23:34 druonysus joined #salt
23:38 dthom91 joined #salt
23:39 jacksontj joined #salt
23:43 carmony joined #salt
23:48 carmony joined #salt
23:50 jschadlick left #salt
23:55 logix812 joined #salt
23:56 logix812 joined #salt

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