Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-07-22

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

All times shown according to UTC.

Time Nick Message
00:14 emocakes joined #salt
00:18 aat joined #salt
00:20 kstaken joined #salt
00:23 _jps joined #salt
00:26 dthom91 joined #salt
00:35 TOoSmOotH I am using ssh_auth but its not creating the .ssh directory
00:35 TOoSmOotH Is there some other function I should be trying?
00:36 Jahkeup_ joined #salt
00:39 puppet joined #salt
00:40 _jps joined #salt
00:46 mgw joined #salt
00:54 jslatts joined #salt
00:56 TOoSmOotH The authorized host key jobob-key is already present for user joebob
00:56 TOoSmOotH but there is no .ssh directory
01:09 kcb joined #salt
01:19 spudbook joined #salt
01:21 druonysus joined #salt
01:21 druonysus joined #salt
01:24 stevetodd joined #salt
01:32 druonysus joined #salt
01:34 liuyq joined #salt
01:35 liuyq joined #salt
01:36 yidhra joined #salt
01:49 mgw joined #salt
01:53 Linz joined #salt
01:59 emocakes joined #salt
02:11 FreeSpencer joined #salt
02:13 FreeSpencer joined #salt
02:17 _jps joined #salt
02:26 avienu joined #salt
02:27 Gordonz joined #salt
02:35 Jahkeup_ joined #salt
02:39 auser joined #salt
02:41 oz_akan_ joined #salt
02:47 KyleG joined #salt
02:47 KyleG left #salt
02:50 Furao joined #salt
02:53 kstaken joined #salt
03:05 KyleG joined #salt
03:17 Jahkeup__ joined #salt
03:22 oz_akan_ joined #salt
03:29 KyleG joined #salt
03:36 emocakes joined #salt
03:52 dthom91 joined #salt
03:53 defunctzombie joined #salt
04:02 KyleG joined #salt
04:03 stephen__ joined #salt
04:04 Gordonz_ joined #salt
04:05 druonysus joined #salt
04:05 druonysus joined #salt
04:06 kleinishere joined #salt
04:09 indymike_ joined #salt
04:10 andrew joined #salt
04:10 FreeSpencer_ joined #salt
04:11 lazyguru_ joined #salt
04:12 Psi-Jack_ joined #salt
04:12 Linz joined #salt
04:12 luminous_ joined #salt
04:16 z3uS| joined #salt
04:20 malinoff joined #salt
04:20 malinoff Hi all
04:20 Jahkeup_ joined #salt
04:22 platoscave joined #salt
04:23 platoscave joined #salt
04:24 malinoff Can somebody help me with salt's states extending?
04:27 platoscave joined #salt
04:33 oz_akan_ joined #salt
04:40 kcb joined #salt
04:45 malinoff Anyone?
04:45 koolhead17 joined #salt
04:52 malinoff left #salt
05:04 Lue_4911 joined #salt
05:06 middleman_ joined #salt
05:14 luminous_ joined #salt
05:16 dthom91 joined #salt
05:18 platoscave joined #salt
05:20 jslusher joined #salt
05:21 Jahkeup_ joined #salt
05:21 jslusher I have a function that I want to use to pre-parse the command line for the instance name specified when using salt-cloud
05:22 jslusher I wondered if anyone had suggestions as to how I would go about this
05:23 jslusher I have two ideas
05:24 emocakes joined #salt
05:25 jslusher 1. use a decorator somehow. I would need to know what to decorate in the salt-stack code and then how have it work when using the command line. I'm not familiar with how something like salt-cloud ends up as a binary callable from bash.
05:26 jslusher 2. use subprocess in python and call salt-cloud after the argument has been parsed by the function
05:27 jslusher the second not so elegant, but I know how to do it.
05:32 avienu joined #salt
05:45 Ryan_Lane joined #salt
05:46 capricorn_1 joined #salt
05:55 berto- joined #salt
06:17 dthom91 joined #salt
06:43 carlos joined #salt
06:46 Newt[cz] joined #salt
06:53 jhauser joined #salt
07:13 jpcw joined #salt
07:17 dthom91 joined #salt
07:29 bemehow joined #salt
07:32 balboah joined #salt
07:33 alcm-b joined #salt
07:38 emocakes joined #salt
07:41 herlo joined #salt
07:42 emocakes joined #salt
07:48 Xeago joined #salt
07:48 dthom91 joined #salt
07:48 scott_w joined #salt
07:53 Newt[cz] joined #salt
07:55 Ivo joined #salt
08:00 kstaken joined #salt
08:02 carlos joined #salt
08:03 knightsamar joined #salt
08:05 carlos joined #salt
08:24 emocakes joined #salt
08:29 felixhummel joined #salt
08:29 waverider joined #salt
08:36 szwed joined #salt
08:39 zooz joined #salt
08:48 dthom91 joined #salt
08:50 bemehow joined #salt
08:55 emocakes joined #salt
08:57 qba73 joined #salt
08:58 fredvd joined #salt
09:02 Zurullo joined #salt
09:10 lempa joined #salt
09:17 whiskybar joined #salt
09:20 felixhummel joined #salt
09:22 LucasCozy joined #salt
09:22 LucasCozy joined #salt
09:27 Zethrok joined #salt
09:28 Zethrok Hi, has anyone experienced very high number of connections between master and minions?
09:29 Zethrok We're using 0.15.1 and have about ~50 servers in salt - and they're using ~40k conn
09:29 Zethrok with 5-10% established, rest in time_wait
09:37 backjlack joined #salt
09:39 yota joined #salt
09:41 aleszoulek joined #salt
09:42 liuyq joined #salt
09:44 tseNkiN joined #salt
09:44 zooz I noticed similar behaviour as well
09:45 zooz some leak memory, some leak sockets
09:45 APLU joined #salt
09:46 brutasse joined #salt
09:49 dthom91 joined #salt
09:50 chutzpah joined #salt
09:54 liuyq joined #salt
10:02 backjlack joined #salt
10:11 scalability-junk Zethrok: you have to see the good thing, when this is fixed you can imagine how many minions you could use with your master with it already handling 40k conn
10:16 Zethrok scalability-junk: I guess so, yea :) - I just upgraded the master to 0.16 and it seemed to fix the issue. At least I no longer have all the TIME_WAIT conn
10:16 scalability-junk great to hear
10:19 dthom91 joined #salt
10:22 mstan joined #salt
10:23 mstan hi, does scheduling in the master support returners ?
10:24 mstan I'm getting "Job state.over using invalid returner" for any returner
10:29 mstan I guess what I'm actually missing is having returners for a runner, right ?
10:41 lemao joined #salt
10:43 giantlock joined #salt
10:45 krak3n` joined #salt
10:45 zooz joined #salt
10:46 emocakes joined #salt
10:57 carlos_ joined #salt
11:10 malinoff joined #salt
11:10 malinoff Hi all
11:19 dthom91 joined #salt
11:21 bemehow joined #salt
11:33 logix812 joined #salt
11:34 FL1SK joined #salt
11:35 emilisto window 2
11:41 malinoff Can anybody help me with peer communication organization?
11:43 waverider left #salt
11:49 malinoff I'm just receiving "[salt.master][ERROR   ] Received function minion_pub which is unavailable on the master, returning False" again and again
11:52 emilisto what are you trying to run?
11:56 bemehow joined #salt
11:56 malinoff salt-call publish.publish \* test.ping
11:58 malinoff Alright, i got it. On master i have 0.12, on minion - 0.16
11:58 carlos joined #salt
11:58 zooz joined #salt
12:08 baoboa joined #salt
12:10 bemehow joined #salt
12:18 KennethWilke joined #salt
12:20 dthom91 joined #salt
12:30 jslatts joined #salt
12:32 Jahkeup_ joined #salt
12:34 timl0101 joined #salt
12:36 anteaya joined #salt
12:37 diegows joined #salt
12:57 krak3n` joined #salt
12:58 blee joined #salt
13:04 juicer2 joined #salt
13:15 Gifflen joined #salt
13:16 mikedawson joined #salt
13:17 Furao_ joined #salt
13:17 aat joined #salt
13:17 StDiluted joined #salt
13:18 emocakes joined #salt
13:20 wilkystyle joined #salt
13:23 mikedawson_ joined #salt
13:24 brianhicks joined #salt
13:24 kenbolton joined #salt
13:28 mikedawson joined #salt
13:28 zooz joined #salt
13:29 racooper joined #salt
13:31 _jps joined #salt
13:32 [diecast] joined #salt
13:32 _jps joined #salt
13:33 lemao joined #salt
13:35 mikedawson__ joined #salt
13:37 toastedpenguin joined #salt
13:40 carlos joined #salt
13:40 aat joined #salt
13:41 Jahkeup__ joined #salt
13:42 Kholloway joined #salt
13:43 [diecast] joined #salt
13:48 m_georgez joined #salt
13:49 Gordonz joined #salt
13:50 Gordonz joined #salt
13:50 dthom91 joined #salt
13:53 SEJeff_work malinoff, Master should always be the same version or newer than the minions where possible.
13:58 Liebach joined #salt
14:01 scalability-junk SEJeff_work: you mean just run on git master on the master ? :D
14:02 jslusher joined #salt
14:04 SEJeff_work scalability-junk, Nope. I mean don't run 0.12 on the master and 0.16 on the minion. If it works, you're lucky :D
14:04 KennethWilke SEJeff_work: or awesome!
14:04 KennethWilke but probably silly, and lucky
14:05 scalability-junk no risk no fun :D
14:05 m_georgez left #salt
14:05 timl0101 joined #salt
14:07 turbidmash joined #salt
14:16 StDiluted joined #salt
14:18 chadhs joined #salt
14:21 blee_ joined #salt
14:22 mgw joined #salt
14:25 erasmas joined #salt
14:28 TOoSmOotH http://pastebin.com/qBTUKgiR
14:28 TOoSmOotH for some reason it is telling me the key already exists yet there is no .ssh directory created in the users home directlroy
14:28 TOoSmOotH The user creation happens fine
14:29 TOoSmOotH but for the life of me I cannot get it to create the .ssh directory and put the data in the key into the authorized_keys
14:32 KennethWilke TOoSmOotH: hmm, i've not ran into that issue, but one thing i'd suggest is to add -require:\n -user: {{username}} in your ssh_auth
14:33 KennethWilke i don't think this would fix that problem for you, if you manually create the dir does will it add the key?
14:33 StDiluted morning all
14:33 KennethWilke howdy
14:33 felskrone joined #salt
14:34 TOoSmOotH let me try creating the directory
14:34 felskrone hey
14:34 StDiluted If I want a package I'm installing to require another package that gets installed by a different state, how do I require it?
14:35 StDiluted do i include: the state I want to be required?
14:35 mikedawson joined #salt
14:36 mgw joined #salt
14:36 KennethWilke StDiluted: yessir, you include the state file then use the ID in your require statement for the pkg.install
14:37 KennethWilke StDiluted: http://docs.saltstack.com/ref/states/highstate.html#term-include-declaration this shows an example of that
14:37 StDiluted yeah
14:37 KennethWilke http://docs.saltstack.com/topics/tutorials/states_pt3.html#include-declaration
14:37 teskew joined #salt
14:37 KennethWilke sorry, meant this link
14:38 StDiluted ok cool
14:38 StDiluted that's what I thought
14:40 cnelsonsic joined #salt
14:42 joeTSUNAMI joined #salt
14:44 joeTSUNAMI Hi guys!
14:44 wilkystyle howdy
14:45 joeTSUNAMI i'm trying to understand a structure issue with file_roots in master
14:46 joeTSUNAMI my structure is like /srv/salt/{project}/{dev,test,prod}
14:46 bemehow_ joined #salt
14:46 joeTSUNAMI how do i nest my roots?
14:46 _jps joined #salt
14:47 cnelsonsic left #salt
14:58 dthom91 joined #salt
14:59 StDiluted joeTSUNAMI: I've been trying to understand the file_roots thing for a couple weeks now
14:59 Gifflen_ joined #salt
15:02 jalbretsen joined #salt
15:06 aranhoide joined #salt
15:10 jY what config option am I missing on my minion to stop this
15:10 jY 2013-07-22 08:09:28,789 [salt.config      ][WARNING ] The function 'grains()' defined in '/usr/lib/pymodules/python2.7/salt/loader.py' is not yet using the new 'default_path' argument to `salt.config.load_config()`. As such, the 'SALT_MINION_CONFIG' environment variable will be ignored
15:12 chrisgilmerproj joined #salt
15:12 StDiluted I have that on all my minions as well
15:12 jY looks like it's gonna be fixed in 0.17
15:12 jY well quieted anyway
15:13 dthom91 joined #salt
15:13 aat joined #salt
15:18 drogoh joined #salt
15:19 racooper are there any examples of calling a module (specifically in this case, iptables) from a state?
15:20 KennethWilke +
15:20 lazyguru joined #salt
15:21 EugeneKay I'm partial to division myself
15:22 KennethWilke racooper: i had this want as well, i opt'd to manage my iptables config file via file.managed insteead
15:22 avienu joined #salt
15:22 nrub joined #salt
15:24 racooper thought about that but I've got a couple of systems with custom rules but otherwise they're just "webservers" in my environment
15:25 KennethWilke has anyone in here used the redis returner? i'm a lil bit confused about how to configure it
15:28 devinus joined #salt
15:29 salticus joined #salt
15:30 devinus can anybody give me a mini-tutorial on how to use salt environments so i can use the same salt states between dev/prod but have different managed configuration files?
15:31 Gifflen joined #salt
15:32 jaequery joined #salt
15:32 Gifflen joined #salt
15:33 kaptk2 joined #salt
15:34 racooper would this syntax look correct? https://gist.github.com/racooper/6054804
15:35 Xeago my I ask your (biased) opinion about puppet vs salt?
15:35 theambidextrousb joined #salt
15:35 KyleG joined #salt
15:37 theambidextrousb Hiya all, wondering if anyone can help me. I've been working through the Tutorial on the site, and i've managed to do them all fine. However what i really need it for is to configure Jboss.. was wondering if anyone has any experience with that?
15:39 pentabular joined #salt
15:45 rbstewart racooper: https://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.iptables.html
15:45 racooper rbstewart,  I'm trying to call that from module.run.
15:46 rbstewart notice that the arguments are table, chain, and rule; so instead of "filter: INPUT", do "table: filter" and "chain: INPUT"
15:46 krak3n` joined #salt
15:47 racooper ah, like this? https://gist.github.com/racooper/6054804
15:49 rbstewart racooper: yeah, the syntax looks right on that. Haven't dealt with iptables personally, so can't check you there.
15:49 racooper thanks. I'll do some testing now.
15:50 devinus joined #salt
15:50 rbstewart devinus: https://salt.readthedocs.org/en/latest/ref/states/top.html#environments
15:50 jschadlick joined #salt
15:51 devinus rbstewart: yeah i saw that
15:52 devinus i guess i don't really understand how it fits in? like…/srv/salt/{dev,prod} where does this come from? are these paths just expected to exist?
15:53 devinus e.g. on a dev Vagrant the path would be /srv/salt/dev mounted from Vagrant or something, but in prod it expects /srv/salt/prod?
15:53 rbstewart no, you create them yourself.
15:53 rbstewart Then map them in the master config file
15:54 rbstewart there's nothing special about /srv/pillar. Any directory accessible to salt will do.
15:55 talso joined #salt
15:56 rbstewart AFAIK you *do* need to have a "base" env, b/c that's where salt looks for a top.sls file.
15:56 devinus rbstewart: okay, so lets say i have some config files that are shared between environments?
16:00 rbstewart I believe that's possible: you just put "base: ['/srv/base_pillar']" and "dev: ['/srv/base_pillar', '/srv/dev_pillar']"
16:00 KyleG joined #salt
16:00 rbstewart but last time I tried that, things got iffy with identically named pillar files.
16:01 racooper rbstewart,  that syntax for iptables from state worked like a charm. Thanks!
16:01 timl0101 joined #salt
16:02 rbstewart racooper: glad it worked!
16:02 rbstewart devinus: http://pastebin.com/5dy2HyPT
16:02 racooper with only one problem...any additional runs add duplicate rules. so...gotta figure that one out.
16:02 rbstewart (indentation's messed up, but you get the idea)
16:04 devinus rbstewart: yeah, thanks. i'll continue to try to digest it
16:06 StDiluted How do I restart the salt-minion service from a state? I am installing a mysql_config file for the minion to have the ability to interact with mysql, but I want it to then restart the minion service
16:06 jslatts joined #salt
16:07 rbstewart devinus: good luck; I usually just use the pillar top file to specify the context for a minion, and don't really worry about environments (yet. I'll probably grow into them at some point.)
16:07 spudbook joined #salt
16:07 rbstewart StDiluted: cmd.run?
16:08 StDiluted well, sure, but where would I put it?
16:08 StDiluted I've got a file.managed for the config file
16:09 racooper do you have a state for the minion already? can you use a watch on the config?
16:10 StDiluted well, I have a mysql state
16:10 StDiluted and the mysql config for the minion is in that state
16:11 StDiluted because I don't want to put this on all the minions
16:11 StDiluted just the ones that have mysql
16:11 rbstewart StDiluted: out of curiosity, why is a salt-minion restart necessary?
16:11 StDiluted a change in the /etc/salt/minion file
16:11 rbstewart gotcha
16:12 lemmings racooper: what's the diff between append and insert regarding duplicate rules?
16:15 StDiluted so anyone have any ideas on that?
16:15 ProT-0-TypE joined #salt
16:16 rbstewart racooper: this is probably more work than it's worth, but you might want to check out https://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.augeas_cfg.html
16:17 rbstewart Augeas basically does states for all sorts of config files; way better than append or sed.
16:17 kleinishere joined #salt
16:18 kermit joined #salt
16:18 rbstewart but it's an additional dependency, and the docs are kind of hit-and-miss. http://augeas.net/tour.html
16:18 LGSilva joined #salt
16:19 LGSilva Hello. Is it possible to create a database, table or trigger using the mysql state module?
16:19 StDiluted LGSilva: yes, I have successfully gotten it to create a database
16:20 StDiluted however, you have to have the mysqldb python module, as well as putting a config file on the minion with the username and password info
16:21 LGSilva I see the db_create function but how about tables? just use db_query function?
16:22 napperjabber joined #salt
16:23 StDiluted doesn't seem like there is a built in way to add tables via salt.
16:24 sciyoshi joined #salt
16:24 jetblack joined #salt
16:24 LGSilva I will test with db_query then. Thank for the help :)
16:25 erasmas_ joined #salt
16:29 Lue_4911 joined #salt
16:30 aranhoide is there any way I can get the public IP address of a machine in a grain in a cloud-provider-agnostic way?
16:30 qba73 joined #salt
16:31 sciyoshi joined #salt
16:33 aranhoide in EC2 I can get it with grains['ec2_public-ipv4'] using a contrib module.  in Digital ocean I can use some other grain (I can't remember from the top of my head).  if I want to parameterize a config file with the public IP address of my machine, is there any way I can share that config file across providers?
16:35 oz_akan_ joined #salt
16:35 rbstewart aranhoide: you could probably account for both with some jinja templating logic, e.g. {% set pub_ip = grains.get('ec2_public-ipv4, None) or grains.get('ocean_grain', None) %}
16:36 aranhoide rbstewart: I'll try that, thanks
16:36 oz_akan__ joined #salt
16:36 rbstewart you're welcome
16:37 jdenning joined #salt
16:37 shane joined #salt
16:38 devinus joined #salt
16:40 timl0101 joined #salt
16:40 ggoZ joined #salt
16:41 bostonian joined #salt
16:46 kstaken joined #salt
16:47 rbstewart I'm trying to set up postgres with a hot-standby. I want to copy the db directly from the db-master minion to db-standby minion, instead of going through the salt-master. Any suggestions?
16:47 jacksontj joined #salt
16:49 lemmings racooper: still having duplicate issues? Insert didn't solve it?
16:50 spudbook_ joined #salt
16:53 racooper haven't had a chance to test it yet lemmings.
16:55 bostonian I'm trying to run an installer for Wordpress CLI (http://wp-cli.org/) in a cmd.run salt state, but it doesn't work. (It works when I run the command manually in console.) I get this error when running highstate: http://pastebin.com/9LgQRKUi
16:57 rbstewart bostonian: looks like it's missing something in the environment. Run "env" in your cmd.run, and compare output with "env" in the shell where it succeeds.
16:58 bostonian rbstewart: ahh, good idea! thank you
16:59 Ryan_Lane joined #salt
16:59 _diecast_ joined #salt
16:59 rbstewart you're welcome
17:00 aranhoide is there any way to capture the output of a unix command in a jinja template?
17:01 aranhoide does cmd.run return whatever was printed to stdout?
17:02 rbstewart not sure; there's that whole bit of the documentation about returners; maybe check there if cmd.run doesn't seem to return results directly.
17:03 aranhoide ok, thanks again!
17:04 kenbolton joined #salt
17:08 koolhead17 joined #salt
17:08 koolhead17 joined #salt
17:08 enduro joined #salt
17:11 enduro Hey everyone. I'm new here and wanted to see if anyone is having problems with salt-cloud sending Killed when trying to create a new VM on AWS. Any help would be appreciated.
17:16 racooper lemmings,  to answer...Insert and Append both create duplicate rules.
17:16 berto- joined #salt
17:17 lemmings racooper: damn... should be idempotent.... maybe a module patch (get rules, if match, don't set) is required
17:18 lemmings btw, anyone know of a good reason NOT to use http://docs.saltstack.com/ref/renderers/all/salt.renderers.stateconf.html? sls_dir sounds useful for reusability
17:18 racooper there's work being done on a real iptables state module but I don't know the status of that
17:19 aranhoide joined #salt
17:20 jslatts joined #salt
17:20 lemmings racooper: I had a config like https://github.com/uggedal/states (see iptables and readme) but it's not all that flexible
17:21 lemmings unfortunatly, unless you can use modules correctly, seems to be tne only way to go (my pillar sets the list based on the server)
17:25 [diecast] joined #salt
17:27 ProT-0-TypE joined #salt
17:29 _diecast_ joined #salt
17:31 Lue_4911 joined #salt
17:32 Linz joined #salt
17:33 spudbook joined #salt
17:41 ipmb joined #salt
17:41 auser joined #salt
17:43 auser hey all
17:44 devinus joined #salt
17:47 smoof joined #salt
17:54 aat joined #salt
17:58 diegows joined #salt
17:58 whiskybar joined #salt
18:00 pentabular1 joined #salt
18:03 LGSilva joined #salt
18:03 pentabular joined #salt
18:03 pentabular left #salt
18:04 Ahlee Howdy.  I want salt to run a script if a file it manages changes.  I originally was thinking a custom returner that executes the script in a subprocess call, but am open to better/cleaner solutions
18:05 kuffs left #salt
18:06 mannyt joined #salt
18:08 ProT-0-TypE joined #salt
18:11 akoumjian Ahlee: You should be able to use a cmd.wait state and watch the file.managed state with it
18:11 bostonian joined #salt
18:12 bensb joined #salt
18:12 oz_akan_ joined #salt
18:14 Ahlee Sorry, I don't comprehend that.
18:14 bensb hey guys, newb question: can you run salt commands against a remote master?
18:14 oz_akan_ joined #salt
18:14 Ahlee akoumjian: do you have a skeleton of how i'd start something like that?
18:15 akoumjian Ahlee: There are some examples on this page http://docs.saltstack.com/ref/states/all/salt.states.cmd.html#module-salt.states.cmd
18:15 Ahlee akoumjian: Thank you
18:16 akoumjian Ahlee: Basically, if you have a state (such as file.managed) that outputs when it applied changes, you can have other states using the "watch" option to reach to those changes.
18:16 schannel joined #salt
18:17 akoumjian Ahlee: cmd.wait is a state which executes only if another state that it's watching has produced changes
18:17 akoumjian react* not reach
18:18 Ahlee akoumjian: Ah.  Ok, that certainly sounds like what I'm trying to do.
18:20 schannel left #salt
18:22 _jps joined #salt
18:23 jslusher_ joined #salt
18:25 erasmas_ joined #salt
18:25 wilkystyle left #salt
18:26 _jps_ joined #salt
18:31 Kzim joined #salt
18:31 Kzim hello
18:31 Kzim can i use jinja and pillar in an overstates like {% if pillar['myvalue'] ... %} ? thx
18:34 SEJeff_work Kzim, Yes
18:35 Kzim SEJeff_work, thanks a lot ! i'm looking for more documentation on Overstate since the official one doesn't provide all. do you have anything ?
18:37 SEJeff_work The source :D
18:38 SEJeff_work If it isn't in the official docs, it is likely there
18:38 Kzim i have to learn to read it :) thanks
18:39 Gifflen Does anyone have any example of a "query" for salt cloud. Ive been looking through the docs and couldn't find any
18:39 Gifflen I was looking to just display the names of all servers
18:40 jeddi Gifflen: salt '*' cmd.run 'hostname'
18:40 jeddi Gifflen: oh - salt-cloud .. sorry .. more tricky.
18:41 Gifflen yeah haha. We're in a shared infastructure so not everything is managed by salt
18:42 jeddi Gifflen: all i've done so far with salt cloud is provision, and check list-sizes (and similar)
18:42 qba73_ joined #salt
18:42 jeddi Gifflen: salt-cloud doesn't offer a suitable replacemetn (yet) for things like nova
18:44 thingles joined #salt
18:44 aranhoide Gifflen: isn't it an option to run salt minions on those machines pointing to your master?  even if you're not 'managing' them via salt, that allows you to run commands on them
18:45 ProT-0-TypE joined #salt
18:45 aranhoide that is, if you don't have salt states that target them
18:45 Gifflen they are managed by other teams entirely and I have no authority to touch them
18:45 aranhoide I see
18:53 Kzim In the overstates, they call the highstate of every nodes but i don't want that i have no highstate and  this give me an error how can i prevent that ? i just want to do a simple bash command
18:57 felskrone joined #salt
18:59 Kzim anyonw know what wrong with this simple overstate please ? http://pastie.org/8164917
19:00 rbstewart Kzim: did you define a specific "sls: ['some_state']" ?
19:00 Kzim rbstewart, no i just want execute a simple command
19:02 Kzim rbstewart, brb sorry
19:02 aat joined #salt
19:03 rbstewart Kzim: sorry, spoke before I looked. That's a piece of overstates that I didn't know about.
19:18 romulus_ joined #salt
19:19 z0rkito joined #salt
19:23 Jahkeup_ joined #salt
19:26 Jahkeup__ joined #salt
19:26 LGSilva Hey guys, is it possible to run a script that is already on the minion with cmd.script ?
19:30 Linz joined #salt
19:30 rbstewart Kzim: http://pastie.org/8164992
19:31 APLU joined #salt
19:32 dave_den joined #salt
19:35 oz_akan__ joined #salt
19:36 goozbach joined #salt
19:36 goozbach just trying to wrap my head around the salt archetecture.
19:36 Kzim rbstewart, great thx for the comments ! now i have "No Top file or external nodes data matches found" becaise , i think i don' t have any highstates
19:36 goozbach can someone explain the differences between salt pillars, grains and the mine?
19:37 goozbach from what I can tell they are all three methods for storing "data" which can then be used. but I'm unclear as to the differences
19:37 rbstewart Kzim: in variance to SEJeff_work above, I don't think you can use templating in overstates yet (at least not in v0.16.0)
19:38 SEJeff_work Oh I thought you could as it is all rendered using the renderer system
19:38 rbstewart I checked out the source, and there's a "TODO use render system" above where it reads the file in.
19:39 SEJeff_work Oh fail. My bad
19:39 chrism so i've got a bit of an odd thing...  I set some data to "false" via - context, however when I use that variable in a jinja template it comes out "False"
19:39 chrism any idea why it's uppercasing that?
19:40 SEJeff_work chrism, Yes, it is transforming 0/1, "true", "True", "0", and "1" to the python True or False
19:40 SEJeff_work There is a config flag to disable that however
19:40 chrism aah
19:40 chrism is it a global disable or can I do it per-instance?
19:41 oz_akan_ joined #salt
19:41 SEJeff_work http://docs.saltstack.com/topics/troubleshooting/yaml_idiosyncrasies.html#true-false-yes-no-on-off
19:41 Kzim rbstewart, seriously ? no jinja in overstate ??? :(
19:41 SEJeff_work chrism, wrap them in quotes
19:42 chrism oooh quotes
19:42 chrism yay
19:42 chrism ty sir =)
19:42 SEJeff_work np
19:42 aranhoide is there any estimate on how far are we from seeing the salt 1.0 release?
19:42 SEJeff_work typical open source answer
19:42 SEJeff_work when it is ready
19:42 jschadlick joined #salt
19:43 aranhoide sure, but is it estimated to be "almost ready", "not nearly ready", ... ?
19:43 rbstewart Kzim: yeah; it would simplify my life a good bit too. It might be on the way: https://github.com/saltstack/salt/issues/5424
19:44 Jahkeup_ joined #salt
19:44 Kzim rbstewart, lol this is my issue
19:45 Kzim Kzim, it doesn't evolve a lot :(
19:47 rbstewart Yeah, states are great for configuring a single machine. But I need the same functionality for configuring a network.
19:48 Kzim rbstewart, i love salt but i just can't do anything without a proper orchestration
19:48 Kzim well do you know how to avoid call the highstate on the overstate ?
19:48 rbstewart I think that's a default thing: if you don't specify a particular sls (just a guess)
19:49 hazzadous joined #salt
19:50 Kzim rbstewart, yep but i can' t do sls: false or something ?
19:51 rbstewart just make an state file that has a noop. cmd.run, name: "echo do-nothing", or something like that
19:52 TOoSmOotH so I been fighting ssh_auth today and here is my code with the output. for some reason it thinks the autohoirzed key is already there yet it doesn't create the directory and toss the key in there http://pastebin.com/qCdHG9UL
19:52 StDiluted joined #salt
19:52 TOoSmOotH the histate output shows it create the user but shows the key section as green
19:56 TOoSmOotH anyone have any suggestions?
20:01 Kzim rbstewart, it's ugly :(
20:01 kermit joined #salt
20:02 kermit joined #salt
20:03 devinus joined #salt
20:08 berto- joined #salt
20:08 david_a joined #salt
20:11 robbyt joined #salt
20:16 Kzim rbstewart, how can i return the result of the command i execute in the overstate ?
20:20 StDiluted can i use a salt module to test before i run a script? onlyif: mysql.db_exists 'database'
20:22 rbstewart Kzim: don't know. Today was the first time I've noticed that that feature, couldn't figure it out.
20:23 rbstewart maybe it's using a different returner than the default
20:23 bemehow joined #salt
20:26 SEJeff_work StDiluted, onlyif: [ ! -z "{{ salt["mysql.db_exists"]("database") }}" ]
20:27 SEJeff_work I think that would work
20:27 devinus rbstewart: regarding environments. so i want the environments to have exactly the same managed files in the same places, but pulled from different places
20:27 devinus is that possible?
20:27 SEJeff_work Not exactly, but something vaguely like that
20:27 StDiluted what about onlyif: salt-call mysql.db_exists 'database'
20:27 StDiluted that seems to work as well
20:27 SEJeff_work devinus, https://gist.github.com/SEJeff/5257789
20:27 SEJeff_work StDiluted, whatever works for you :)
20:28 SEJeff_work you can call it inline using {{ salt ... }}
20:28 StDiluted well, i don't know if i should be doing a salt-call in there ;)
20:28 SEJeff_work devinus, Like that?
20:28 StDiluted ah ok
20:28 devinus SEJeff_work: well, the thing is i want them to use the same states
20:28 devinus SEJeff_work: just that the managed files are different source files
20:29 SEJeff_work devinus, Same thing, just put the states only in base
20:29 SEJeff_work So they are shared amongst all envs
20:29 SEJeff_work devinus, Make sense?
20:29 devinus SEJeff_work: okay, so states go in base, but the config files to be sourced in the diff envs?
20:29 SEJeff_work Then if you want to have a state only in dev (or override base), put it under /srv/salt/dev/foo.sls
20:29 SEJeff_work devinus, You've got it
20:30 SEJeff_work salt will iterate over each directory under file_roots *in the order you define them* and use the first one it finds
20:30 devinus ooookay, nice
20:30 SEJeff_work subtle, but very powerful once you get it :)
20:30 SEJeff_work Thats why I made that a gist
20:30 SEJeff_work everyone asks that same thing
20:30 devinus wow
20:30 devinus so i only have to put statename.sls in dev to override that state?
20:31 devinus that's handy
20:32 devinus SEJeff_work: in your example your base is prod?
20:32 LucasCozy joined #salt
20:32 jeffmendoza joined #salt
20:32 StDiluted devinus: he states that in the comment
20:33 devinus ah, indeed
20:35 devinus now i just need to figure out how to use the dev env in salty-vagrant
20:36 jakebasile joined #salt
20:37 aat joined #salt
20:40 chrisgilmerproj joined #salt
20:43 oz_akan_ joined #salt
20:46 logix812 joined #salt
20:50 Kzim anyone knows why i don' t have any stage execution result in overstate for a cmd.run ?
20:52 giantlock joined #salt
20:53 whit joined #salt
20:54 qba73 joined #salt
21:02 kcb joined #salt
21:09 bemehow joined #salt
21:14 FL1SK joined #salt
21:24 exabytes18 joined #salt
21:25 kenbolton joined #salt
21:27 jslatts joined #salt
21:27 kleinishere joined #salt
21:31 jakebasile joined #salt
21:34 philip_ joined #salt
21:35 philip_ My minion is hanging on first execution of it's highstate because I have a service.running sate for salt-minion itself. Any workaround to this?
21:35 Gordonz_ joined #salt
21:37 exabytes18 I would like to construct a custom state module, but this state module has the prerequisite that "parted" is installed. What is the best away to accomplish this?
21:40 Xeago joined #salt
21:41 philip_ I found a closed bug report here https://github.com/saltstack/salt/issues/4114 but it seems like I'm having this same exact issue
21:44 Kzim Overstate require is broken since 0.16 ?
21:52 LarsN joined #salt
21:55 jstrunk joined #salt
21:56 devinus joined #salt
21:56 jstrunk Is there a way to make sure that the scheduler on the minions run at different times from each other?
21:56 jstrunk It looks like I can only specify the frequency.
22:00 devinus SEJeff_work: does the top.sls need to be at the root of the environment?
22:00 devinus i thought it was at the root of all the environments
22:03 racooper can a file name for a managed file be created from a grain? i.e., {{ fqdn }}.conf?
22:03 dzen why not ?
22:04 Jahkeup_ joined #salt
22:05 Jahkeup__ joined #salt
22:05 philip_ racooper: yes, absolutely
22:07 UtahDave joined #salt
22:07 TOoSmOotH so I been fighting ssh_auth today and here is my code with the output. for some reason it thinks the autohoirzed key is already there yet it doesn't create the directory and toss the key in there http://pastebin.com/qCdHG9UL
22:07 FL1SK joined #salt
22:07 TOoSmOotH the histate output shows it create the user but shows the key section as green like it already exists
22:17 aranhoide TOoSmOotH: have you tried manually creating the .ssh directory and requiring that?
22:17 TOoSmOotH I tried creating the .ssh
22:18 TOoSmOotH and touching the autorized_keys file
22:18 aranhoide and does the ssh_auth require the .ssh?
22:18 TOoSmOotH the module should create it according to the docs
22:19 aranhoide oh I see.  it was not the case back when I last configured that, so I just create it myself
22:19 aranhoide do the docs specify that the .ssh directory is created, or only the authorized_keys file?
22:19 TOoSmOotH I guess I can hack it that way
22:19 TOoSmOotH and add it
22:20 TOoSmOotH but even with ti added it still isn't inserting the key info into the file
22:20 TOoSmOotH it thinks the authorized key is already present
22:21 aranhoide hm now that's strange.  definitely didn't happen to me
22:21 aranhoide in 0.15.3 anyway
22:22 TOoSmOotH does the code look right?
22:22 jpcw_ joined #salt
22:24 Gifflen joined #salt
22:25 erasmas_ joined #salt
22:25 john____ joined #salt
22:33 aranhoide TOoSmOotH: yes, I can't see anything wrong with it
22:35 rbstewart Kzim: FWIW docs on overstate say that function needs to return a custom type for requisites to work.
22:35 bemehow joined #salt
22:36 aranhoide TOoSmOotH: have you tried adding a space before the 'username' in "require: - user: {{username }}"?
22:37 aranhoide not a jinja expert, I don't think it's that picky
22:37 TOoSmOotH I will try that now
22:37 aranhoide but can't hurt to try
22:37 TOoSmOotH yea I had fixed that
22:37 aranhoide hm, I don't think that could be it.  salt would have complained about a missing requirement
22:37 TOoSmOotH still same deal
22:37 aranhoide yup
22:38 TOoSmOotH :q!
22:38 aranhoide what version is that?  have you tried downgrading to 0.15.3?  might be a regression..
22:38 TOoSmOotH let me see what cverison I am using
22:39 TOoSmOotH I am using 0.16.0-1precise
22:39 aranhoide I had that and I downgraded because my salt-cloud launched minions wouldn't get authenticated :/
22:40 aranhoide you can get older versions from pip
22:40 aranhoide unfortunately they don't automatically install init scripts like the apt versions (if that's what you're using now..)
22:41 aranhoide and unfortunately the apt ppa only keeps latest version
22:41 TOoSmOotH ok
22:42 TOoSmOotH I will try and downgrade
22:42 TOoSmOotH FTL
22:51 stevetodd joined #salt
22:51 Linz_ joined #salt
22:52 exabytes18_ joined #salt
22:52 kstaken_ joined #salt
22:56 jaequery_ joined #salt
22:57 berto- is there an easy way to dump pillar data to a file from within a state?
22:58 redondos joined #salt
22:59 StDiluted can i match multiple grains in a pillar?
22:59 StDiluted in other words
23:00 StDiluted i want if role == mail and env = test , then mail domain is foo
23:01 baoboa joined #salt
23:01 KyleG joined #salt
23:01 wilkystyle joined #salt
23:03 berto- StDiluted: your pillar can be a python script that defines a run() function and then you can perform any logic you want.
23:03 jalbretsen joined #salt
23:03 StDiluted are you referring to an external pillar?
23:04 wilkystyle left #salt
23:05 berto- StDiluted: for example, my pillars/top.sls file includes foo, which is pillars/foo.sls; foo.sls contains a #!py shebang with def run()
23:09 StDiluted but I can't do {% if grains['roles'] == mail and grains['env'] == test %} ??
23:13 berto- this will likely work for AND: {% if grains['roles'] == 'mail' %}{% if grains['env'] == 'test' %} […] {% endif %}{% endif %}
23:13 berto- StDiluted: jinja is used for rendering, check out the docs here: http://jinja.pocoo.org/docs/
23:14 StDiluted understood, I have looked at the docs. I'm looking to include certain things in pillars depending on three variables
23:15 bemehow joined #salt
23:15 berto- StDiluted: definitely doable with straight python.
23:16 StDiluted yes, however, I'd rather not have to do that if I don't have to
23:17 sturdy joined #salt
23:20 benkay joined #salt
23:20 cxz joined #salt
23:21 benkay I have successfully installed a package by the name of 'calibre', with salt, but my attempts to get the also-installed package calibre-server to run are all ams fail
23:21 benkay http://paste.lisp.org/display/138155
23:22 benkay am I missing a particular thing? i keep getting the error 'the named service calibre-server is not available'
23:26 Valdo joined #salt
23:32 napperjabber joined #salt
23:32 [diecast] joined #salt
23:32 [diecast] joined #salt
23:33 carxwol joined #salt
23:39 aat joined #salt
23:43 Gifflen joined #salt
23:45 diegows joined #salt
23:46 kermit joined #salt
23:54 emocakes joined #salt

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