Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-07-08

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

All times shown according to UTC.

Time Nick Message
00:01 DaveQB joined #salt
00:02 bemehow joined #salt
00:03 VictorLin joined #salt
00:03 avn_ why pillar directory can't be a subdir of state dir? Can I keep both of them in single git repo?
00:09 xt why would you want to?
00:13 TaiSHi avn_ make a git repo on /usr/local/whatever and link /srv/pillar and /srv/salt to whatever subdir you need
00:14 TaiSHi Or just change the value of file_roots and pillar roots to /usr/local/whatever/(salt|pillar)
00:14 TaiSHi And repo-it that way
00:14 dbanck joined #salt
00:15 jv115 joined #salt
00:15 jv115 left #salt
00:17 yano joined #salt
00:19 DanGarthwaite joined #salt
00:21 avn_ TaiSHi: thx for advice
00:23 bhosmer_ joined #salt
00:27 TaiSHi avn_: no prob, I have a /usr/local/project_name/(etc|srv) and I git everything
00:27 TaiSHi I don't change the file_roots nor pillar_roots, just link it
00:29 joevartuli joined #salt
00:31 ipalreadytaken joined #salt
00:32 joevartuli left #salt
00:34 Shenril joined #salt
00:42 bhosmer_ joined #salt
00:48 arknix joined #salt
00:51 mateoconfeugo joined #salt
00:52 otter768 joined #salt
00:54 joevartuli joined #salt
00:55 joevartuli joined #salt
00:56 joevartuli joined #salt
01:10 keyvan joined #salt
01:14 aw110f joined #salt
01:15 oz_akan_ joined #salt
01:16 ajprog_laptop1 joined #salt
01:16 errr left #salt
01:19 mateoconfeugo joined #salt
01:19 emostar i'm using salt cloud with ec2 and i'm trying to find a way to create a new EBS volume from a snapshot and mount it when i provision a new server. Currently I have the EBS volume creation working, but I'm not sure how to mount it.
01:20 emostar Looking at http://docs.saltstack.com/en/latest/topics/cloud/aws.html#volume-management it provides some examples, but i'm not sure where i am supposed to put the device and mount_point items.
01:20 emostar can someone provide some syntax fo rthose yaml snippets?
01:21 nhubbard emostar: do you have it attaching to the server?
01:21 emostar nhubbard: yes, it shows up when i run 'lsblk' on the server
01:21 emostar but i'd like for it to automatically mount
01:22 nhubbard that is easy enough
01:22 nhubbard this is what I use on Rackspace Cloud Servers for mounting the data partition on my elasticsearch nodes, it's just in a state file: http://pastebin.com/jw5ZC9sn
01:22 nhubbard should be able to adapt that to just mount, or anything
01:23 emostar nhubbard: yeah, that looks like it would work... any idea what the docs are talking about though? it sounds like it should be able to do the mounting in the cloud.profiles for me though.
01:23 emostar https://gist.github.com/mathrawka/1ef5273688f8f13224bc is what i have now
01:23 manfred emostar: should just use the mount state
01:24 manfred emostar: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.mount.html
01:24 manfred emostar: mounting in the cloud.profile sense, soundes like it is just attaching the device to the server, not mounting it inside the device
01:24 manfred that would be an os level thing, and wouldn't be done through the cloud api
01:25 nhubbard emostar: oh I see that, try adding a: mount_point: /mnt/my_ebs to the block_device_mapping
01:25 nhubbard might work, I have no experience with AWS though since I only use rackspace
01:25 emostar manfred: ok, then perhaps the docs should be updated to reflect that?
01:25 manfred oh
01:25 manfred hrm
01:25 manfred it looks like it can mount it
01:25 manfred ¯\(°_o)/¯
01:25 manfred that i have no idea
01:25 emostar nhubbard: i tried that, but it gave an EC2 error about unknown parameter... it was sending that in the request to ec2 it looked like
01:26 manfred i do not see mount_point mentioned in the ec2 driver
01:26 manfred https://github.com/saltstack/salt/blob/develop/salt/cloud/clouds/ec2.py
01:26 emostar manfred: yeah, looks like it can... grep -R mount_point . in the source shows nothing
01:26 emostar manfred: yep, i went through most of that file too :)
01:27 manfred yup, i only see it referenced in the aws.rst, and no where else
01:27 manfred can you make a bug report about the documentation please?
01:27 emostar manfred: is that in a separate repo?
01:28 manfred no, it is just in the saltstack/salt repo
01:28 emostar ok, filing now
01:28 manfred kk, thanks
01:28 mgw joined #salt
01:30 emostar manfred: https://github.com/saltstack/salt/issues/14021
01:31 emostar meanwhile, i'll use the snippet nhubbard gave to mount
01:31 manfred thanks, i tagged the guy who should know what is going on there
01:31 emostar or the states.mount...
01:32 emostar manfred: you work at Rackspace on the cloud team?
01:32 manfred i work on one of the dedicated teams, but I do a lot with cloud
01:32 manfred and rackconnect
01:32 nhubbard manfred: you're a racker?
01:33 emostar does rackspace sponsor saltstack? or just a hobby of yours?
01:33 nhubbard so am I
01:33 manfred emostar: yeah, i just really liked it when I found it, not a sponser, though we have a room for the documentation sprint
01:33 manfred http://www.eventbrite.com/e/saltstack-documentation-sprint-tickets-12010895913
01:33 manfred nhubbard: if you want to join on thursday
01:34 xinkeT joined #salt
01:35 emostar manfred: i've been using salt for nearly 2 years... struggled a bit at first because other than docs and some repos on github, there aren't a lot of examples of how people use it
01:35 otter768 joined #salt
01:35 emostar still not sure of some of the best practices though
01:36 manfred ¯\(°_o)/¯
01:36 manfred i started in February, and mostly just started contributing
01:36 manfred cause i liked the code base https://github.com/saltstack/salt/graphs/contributors
01:38 emostar well i'm glad it is continuing to grow... i hate when i find out a great program goes abandoned
01:41 mgw joined #salt
01:51 acabrera joined #salt
01:53 yomilk joined #salt
02:10 aw110f joined #salt
02:11 ark joined #salt
02:14 bhosmer joined #salt
02:17 higgs001 joined #salt
02:28 Nexpro1 joined #salt
02:31 joevartuli joined #salt
02:32 chromakode I'm having trouble getting file.managed's contents_pillar to work with salt-ssh
02:32 chromakode it looks like the pillar data isn't making it to the salt-ssh minion :(
02:33 chromakode any suggestions for how to check what pillar data is being sent?
02:34 yomilk joined #salt
02:35 manfred chromakode: i don't believe pillars work through salt-ssh yet
02:35 manfred so... can't do that yet
02:35 chromakode heh, that would seem to corroborate what I'm seeing here :)
02:35 gzcwnk can i set minion names in the top.sls file so only they execute prt of the top?
02:36 gzcwnk so f I wanted only specific minions ie database servers to execute oracle.sls
02:36 chromakode manfred, thanks. I suppose I'll have to hack something together with contents...
02:37 manfred gzcwnk: you need a more specific name then, or have something more general.
02:37 manfred gzcwnk: all of my servers that have the grain os:Ubuntu get build-essential and python-apt package, and only the ones with db in their name have the database setup
02:38 gzcwnk I have this, I assuem my syntax is wrong  http://pastebin.com/13uzWH4D
02:39 manfred gzcwnk: you have a seperate environment in there too
02:39 manfred remove the oracle: line, and just have the vuwunicopatch03:\n  - oracle2
02:39 gzcwnk sorry but "seperate Environment" means nothing to me
02:40 manfred gzcwnk: http://docs.saltstack.com/en/latest/ref/states/top.html
02:40 manfred base, dev, qa, prod are example environments in there
02:40 manfred you are setting up a base: environment and an oracle: environment
02:40 gzcwnk yeah im reading that, i cant make sense of it
02:41 manfred you only want a base environment
02:41 manfred gzcwnk: http://ix.io/dir
02:41 manfred this should work
02:41 manfred as long as your oracle
02:41 manfred minion is named vuwunicopatch03 exactly
02:41 gzcwnk yeah i set that just trying it now
02:42 gzcwnk I guess I'll do a #oracle just to make it human understandable
02:43 gzcwnk well it didnt barf....thanks
02:44 gzcwnk off to kickstart and do a proper test  :D
02:46 garthk joined #salt
02:47 andrej joined #salt
02:49 mateoconfeugo joined #salt
02:50 chromakode manfred, fwiw, I figured out a nice gross hack to work around it: https://gist.github.com/chromakode/e6baee16d87cad494921
02:52 manfred hrm... if that works, i think it would work will file.managed... cause the pillar data is just sent to the minion
02:52 ramishra joined #salt
02:53 manfred the jinja is rendered on the minion iirc, so it should still have to render the {{ pillar[] }}
02:53 manfred ¯\(°_o)/¯
02:53 chromakode manfred, you mean just using source: with file.managed? I thought that was bad practice for key files
02:53 manfred no, it should use contents_pillar
02:53 manfred if it can get it in {{ pillar[] }} in a state file, which is rendered on the minion iirc...
02:53 manfred oen second
02:53 chromakode hmm, the jinja in the state file seems to be rendered on the master, but contents_pillar happens on the minion
02:54 chromakode I also tried using a source: with a jinja2 template, but that got rendered on the minion too
02:57 manfred chromakode: if you check /var/cache/salt/minion/files you should see the full file cached there
02:57 manfred with the jinja not rendered iirc
02:57 chromakode on the minion?
02:58 manfred yeah
02:58 chromakode hmm, that directory doesn't exist on my salt-ssh minion
02:58 chromakode I wonder if it doesn't get created via that transport
02:59 chromakode what I discovered is that /tmp/.ssh/salt_state.tgz contains the rendered states in lowstate.json
02:59 manfred curl -F 'f:1=<-' ix.io < files/base/vim.sls
02:59 manfred http://ix.io/dit
02:59 kedo39 joined #salt
02:59 manfred chromakode: that may be how they get around it
02:59 manfred but yeah, with zmq, it caches without rendering
03:00 chromakode interesting, that is disappointing
03:00 chromakode I was hoping to hack something that wouldn't be broken in either salt mode
03:00 manfred so my guess is, somehow salt-ssh renders it, but with zeromq it doesn't
03:00 chromakode well, I guess the minion would have everything it needed to render properly anyway.
03:00 manfred chromakode: the contents: | with the indent should work on both
03:00 manfred yes
03:00 chromakode gotcha :)
03:00 kedo39 joined #salt
03:00 chromakode it occurred to me that in salt-ssh it only ships the files it uses, I could just use file.managed and pillars be damned
03:00 manfred i was just saying, that in regular salt, it renders the low state data on the minon
03:01 chromakode gotcha, thanks!
03:01 manfred np
03:01 chromakode this has been very informative
03:01 chromakode presumably someday salt-ssh will ship down pillar data too, at which point these hax won't be necessary
03:02 manfred chromakode: yeah, eventually
03:02 manfred now... it is 10pm... i should really go aquire dinner
03:02 manfred and stop fiddling with redis
03:02 chromakode enjoy! thanks for your thoughts.
03:03 manfred np
03:03 manfred good luck
03:03 chromakode thanks!
03:04 logix812 joined #salt
03:07 ajw0100 joined #salt
03:12 snuffeluffegus joined #salt
03:17 snuffeluffegus joined #salt
03:27 Andy___ joined #salt
03:29 thayne joined #salt
03:30 fllr joined #salt
03:33 ipalreadytaken joined #salt
03:35 troyready joined #salt
03:44 catpiggest joined #salt
03:46 Luke_ joined #salt
03:49 logandg joined #salt
03:55 djinni` joined #salt
03:56 dude051 joined #salt
04:00 ecdhe joined #salt
04:01 ecdhe Any links for using an minion's IP address in a state?
04:01 mateoconfeugo joined #salt
04:02 bhosmer joined #salt
04:03 manfred you can just call it from a grain
04:03 ecdhe manfred, sample syntax?
04:04 manfred http://stackoverflow.com/questions/18360528/how-to-get-ip-address-of-hostname-inside-jinja-template
04:04 ecdhe Seem like everyone would need to do this at one point but I couldn't find an example.
04:05 ecdhe Thanks!
04:05 manfred google saltstack grains get ipaddress
04:07 Luke_ joined #salt
04:13 schimmy joined #salt
04:18 schimmy joined #salt
04:21 oz_akan_ joined #salt
04:23 ecdhe manfred, {{ salt['network.ip_addrs']('eth0')[0] }} was what I was looking for.
04:24 ecdhe thanks for pointing me down the right path!
04:24 manfred 2np
04:24 manfred np*
04:38 kianrp joined #salt
04:39 jalbretsen joined #salt
04:43 kianrp Is it possible to have minion speciifc pillar data?
04:43 nkuttler kianrp: certainly
04:45 kianrp nkuttler: I have a problem where state.highstate is failing to complete due to missing pillar attrubute
04:46 nkuttler kianrp: what's exact error?
04:46 nkuttler i guess check if the attribute exists in your sls files
04:48 kianrp Error: Jinja variable 'dict object' has no attribute 'world'
04:49 __number5__ kianrp: try to manually sync pillar using saltutil.sync_all/sync_pillar
04:49 kianrp I could not find it in the slat-call pillar.data output
04:52 ramteid joined #salt
04:55 kianrp I just ran a grep on the cached sls file for "world", don't find it being set in the sls files. I see the value being used like pillar[world][world_id]
04:56 __number5__ kianrp: can you paste you code to somewhere like pastebin?
05:00 kianrp {% if pillar['world']['world_id'] == 'foo' %} is where it fails to find the "world"
05:02 allanparsons joined #salt
05:02 kianrp which piece of code should i put there?
05:09 felskrone joined #salt
05:10 ml_1 joined #salt
05:14 yomilk joined #salt
05:14 nkuttler kianrp: you probably want http://docs.saltstack.com/en/latest/ref/states/vars.html#pillar
05:15 nkuttler or just like in python, if 'key' in dict
05:18 fxhp joined #salt
05:22 oz_akan_ joined #salt
05:25 anuvrat joined #salt
05:25 jnials joined #salt
05:27 ecdhe manfred, thanks again.  With your help, tonight I tamed another corner of my world with salt.
05:29 azylman joined #salt
05:32 bemehow_ joined #salt
05:41 malinoff joined #salt
05:41 krow joined #salt
05:50 bhosmer joined #salt
05:52 acabrera joined #salt
05:53 jdmf joined #salt
05:56 jnials joined #salt
05:56 jnials joined #salt
05:58 yomilk joined #salt
06:01 jnials joined #salt
06:04 picker joined #salt
06:05 ramishra joined #salt
06:21 ex4n1m0 joined #salt
06:23 oz_akan_ joined #salt
06:23 yomilk joined #salt
06:25 kermit joined #salt
06:27 mgw joined #salt
06:33 fllr joined #salt
06:37 yomilk joined #salt
06:37 arknix joined #salt
06:39 jhauser joined #salt
06:45 meganerd I accidentally pasted "salt-run winrepo.update_git_repos" and now my salt instance seems to be using the git repository and failing.   How can I reverse this?
06:46 rawzone joined #salt
06:48 meganerd never mind, deleted the salt-winrepo.git/ folder in /srv/salt/win/repo and all is well again.
06:48 meganerd the wmi_provider from git seems broken
06:48 aquinas joined #salt
06:52 oz_akan_ joined #salt
06:56 fllr joined #salt
06:58 dualinity joined #salt
06:58 schimmy joined #salt
07:03 schimmy1 joined #salt
07:12 yomilk joined #salt
07:13 hotbox joined #salt
07:15 slav0nic joined #salt
07:16 bhosmer joined #salt
07:16 Ryan_Lane joined #salt
07:17 joevartu_ joined #salt
07:18 alanpearce joined #salt
07:18 mateoconfeugo joined #salt
07:18 ml_1 joined #salt
07:20 martoss joined #salt
07:21 ndrei joined #salt
07:22 martoss left #salt
07:24 martoss1 joined #salt
07:29 linjan joined #salt
07:33 xsteadfastx joined #salt
07:34 Kenzor joined #salt
07:36 pdayton joined #salt
07:38 bhosmer joined #salt
07:48 chiui joined #salt
07:48 darkelda joined #salt
07:48 darkelda joined #salt
07:56 oz_akan_ joined #salt
07:56 fllr joined #salt
07:59 TheThing joined #salt
08:03 meganerd joined #salt
08:07 krow joined #salt
08:17 jhauser joined #salt
08:26 Lomithrani joined #salt
08:32 santosh joined #salt
08:32 santosh left #salt
08:40 davidone joined #salt
08:44 CeBe joined #salt
08:56 fllr joined #salt
08:56 oz_akan_ joined #salt
08:57 N-Mi joined #salt
08:57 N-Mi joined #salt
09:10 krow joined #salt
09:11 dangra joined #salt
09:11 ggoZ joined #salt
09:16 TheThing joined #salt
09:16 martoss1 joined #salt
09:26 bhosmer joined #salt
09:29 davromaniak joined #salt
09:30 davromaniak hello
09:30 davromaniak is it possible to run a command only if a managed file was modified ?
09:30 giantlock joined #salt
09:30 davromaniak I'm searching through documentation and some blogs but I can't find anything
09:31 davromaniak in my case, if the "/etc/resolvconf/resolv.conf.d/tail" file is modified during a state.highstate, I need to have "resolvconf -u" to be run
09:37 ze- davromaniak: probably with a watch instead of require :)
09:38 ze- davromaniak: http://docs.saltstack.com/en/latest/ref/states/requisites.html#watch
09:38 davromaniak something like "cmd.run: .... watch: - file:/etc/resolvconf/resolv.conf.d/tail"
09:38 babilen davromaniak: cmd.wait
09:39 davromaniak babilen: ok
09:40 davromaniak I'm trying this
09:40 davromaniak thanks, it's working :)
09:42 TheThing joined #salt
09:56 fllr joined #salt
09:57 oz_akan_ joined #salt
10:15 drico_ joined #salt
10:15 drico_ hi
10:16 drico_ it's not possible to have multiple source for file.recurse like in file.managed ?
10:23 JohanR joined #salt
10:26 JohanR Hm, How do I define the private key in the pillar? I'm I supposed to convert the private key to one single row key or define it with cr+lf somehow in the pillar? - State: https://github.com/saltstack-formulas/users-formula
10:37 pdayton joined #salt
10:40 diegows joined #salt
10:56 fllr joined #salt
10:58 oz_akan_ joined #salt
10:58 _fllr_ joined #salt
11:01 masterkorp Hey
11:01 masterkorp any using kitchen-salt ?
11:02 masterkorp how do you test formulas that need an external formula ?
11:04 jdmf I'm using SSH-KEYS, distributed by Salt. Now I need to REPLACE a key, not add a new one - how do I do that? (here is my ssh config part: http://paste.ubuntu.com/7764997/)
11:10 Sacro The Paste you are looking for does not currently exist.
11:10 Sacro oh, you included )
11:10 alanpearce joined #salt
11:11 jalaziz joined #salt
11:11 Sacro jdmf: change present to absent, add another present?
11:11 masterkorp Sacro: http://paste.ubuntu.com/7764997/
11:12 masterkorp you link grabber is weird :P
11:12 masterkorp *your
11:13 Sacro it's only Roxterm :(
11:14 bhosmer joined #salt
11:14 masterkorp i use urxvt with the link grabber plugin
11:17 jdmf Sacro: Thanks, this might be a solution.
11:17 yomilk joined #salt
11:18 logix812 joined #salt
11:18 jdmf Sacro: I'm looking for a simple solution replacing this key. My hope is with an option for replacing it..
11:19 viq jdmf: or use something like https://gist.github.com/gravyboat/638b69b90c010dbdf929
11:22 jdmf viq: updating the entire file, might work also.. :)
11:22 jdmf Thanks all..
11:26 alanpearce joined #salt
11:31 Sacro jdmf: there's no 'replace' function, only 'add' and 'remove'
11:31 Sacro You could create a 'replace' of your own
11:34 oz_akan_ joined #salt
11:34 Hell_Fire joined #salt
11:35 krow joined #salt
11:51 bhosmer joined #salt
11:54 mpanetta joined #salt
11:56 mpanetta_ joined #salt
11:56 fllr joined #salt
11:56 ark joined #salt
12:07 Lomithrani joined #salt
12:08 vbabiy joined #salt
12:15 arknix joined #salt
12:15 jas- joined #salt
12:21 che-arne joined #salt
12:27 Hell_Fire joined #salt
12:28 jnials joined #salt
12:30 Luke_ joined #salt
12:32 arknix joined #salt
12:40 alanpearce joined #salt
12:41 bhosmer_ joined #salt
12:46 workingcats joined #salt
12:49 arknix joined #salt
12:49 tkharju2 joined #salt
12:54 vbabiy joined #salt
12:55 jslatts joined #salt
12:56 jslatts joined #salt
12:56 fllr joined #salt
13:00 racooper joined #salt
13:01 tkharju3 joined #salt
13:01 blarghmatey joined #salt
13:01 miqui joined #salt
13:03 jslatts joined #salt
13:03 fllr joined #salt
13:06 tkharju4 joined #salt
13:07 mgw joined #salt
13:09 rocket joined #salt
13:13 scoates joined #salt
13:17 happytux_ joined #salt
13:19 tkharju joined #salt
13:23 kivihtin joined #salt
13:24 rocket left #salt
13:25 jnials joined #salt
13:27 mapu joined #salt
13:34 ramishra joined #salt
13:37 arknix joined #salt
13:39 aquinas joined #salt
13:40 Ahlee I'm guessing not, else we'd hear moeore about it but anybody else seeing random segfaults from minions?
13:40 kivihtin joined #salt
13:40 Ahlee i'm running all my linux hosts through supervisord to restart on fail
13:40 Ahlee but, i'd prefer it not segfault.
13:41 jaimed joined #salt
13:42 Lomithrani joined #salt
13:43 arknix joined #salt
13:45 Linuturk joined #salt
13:46 ajprog_laptop1 joined #salt
13:46 joehh Ahlee: haven't seen it, which distro?
13:46 Linuturk Are there any modules targeted at Rackspace Cloud Load Balancers, or other services like Networks, Backup, Monitoring? or is it limited to what's provided by the salt.cloud Rackspace (1st gen), openstack/nova for 2nd gen?
13:46 Ahlee RHEL6
13:47 joehh the obvious place is the zmq packages, but i guess you are not doing anything unusual there
13:47 Ahlee ~600 linux minions
13:47 Ahlee Yeah, that's what I'm leaning towards.
13:48 Ahlee Should look at what it'd take to replace zmq with straight multicast
13:48 Ahlee though i'd be on my own since none of hte cloud users could use
13:48 joehh the next major release should have a new transport available (RAET)
13:48 Ahlee Yeah
13:48 Ahlee so sometimein 2015 it should be stable enough for prod
13:49 Ahlee for the daring
13:49 joehh :)
13:49 Ahlee looking forward to RAET, but also terrified given the encryptuon lessions learned
13:49 joehh basedon that comment,which release are you using - we're still on 0.17
13:49 Ahlee 0.17.5
13:49 joehh agreed
13:50 joehh is your network stable?
13:50 Ahlee Very.
13:50 joehh we have seen some issues when minions have trouble with the network
13:51 joehh but not for awhile
13:51 Ahlee all arrista/10G, no cloud, etc
13:57 arknix joined #salt
14:02 MTecknology viq: fixit!  I tried using my modified version of your gitlab state.    http://dpaste.com/2P8J1Z7    Actually... it seems like git is returning exit status 1 with that command but not saying why.
14:03 MTecknology 1 actually seems to be what's returned when there are no errors. :S
14:03 viq MTecknology: try 'echo $?' after that last command
14:03 viq huh
14:03 MTecknology yup, returns 1
14:04 viq are you sure it succeeded?
14:04 MTecknology If I do something else, it actually yells at me
14:04 anuvrat joined #salt
14:04 MTecknology not 100% sure, no
14:05 MTecknology I don't actually know what it looks like when it succeeds
14:05 v0rtex joined #salt
14:05 arknix joined #salt
14:06 cods joined #salt
14:06 kaptk2 joined #salt
14:06 MTecknology 4. the section or key is invalid (ret=1),
14:06 housl joined #salt
14:06 jalbretsen joined #salt
14:07 MTecknology So... the man page says that either the section or key is invalid. It's not yelling at me when I run the command.
14:07 viq but returns 1
14:07 viq maybe there are some verbose flags you could try?
14:08 vejdmn joined #salt
14:10 MTecknology nope :(
14:10 cods Probably a dumb question (I'm not used to Salt): Does __salt__['cmd.run']('foo') always runs the command 'foo' on the machine itself? If yes, what's the point instead of simply doing os.sytem('foo')? (especially if the output doesn't interest me)
14:10 MTecknology It seems like either master or origin should be getting appended to this command
14:10 aquinas joined #salt
14:12 zeit joined #salt
14:12 zeit hi salt
14:13 zeit is anyone available to help me with a gitfs issue (i.e. salt can’t fetch repos) ?
14:13 viq zeit: ask, don't ask to ask
14:15 zeit ok then : I have gitfs configured as my (only) backend on my master, with a “git+ssh://“, which won’t work (“GitPython exception caught while fetching: 'Error when fetching: fatal: Could not read from remote repository.' returned exit status 2:”)
14:16 zeit I can git clone the same repo without error
14:16 zeit and the auth log on the server hosting the repo shows no error when salt is connecting
14:17 MTecknology viq: looks like it was a bug in salt
14:17 MTecknology /was/
14:17 zeit “was” as in “not anymore” ?
14:18 MTecknology yup
14:18 zeit Well I installed it from the PPA 2 days ago
14:20 viq MTecknology: ok
14:20 MTecknology viq: Thanks for helping me maintain sanity! I anxiously await your gitlab-ci formula! :D    Can I offer cash to help entice you into something you're not really interested in?
14:20 viq zeit: paste the URI you're using
14:21 viq possibly sanitized, but with all the / and : in place
14:21 zeit I followed the steps given here : http://docs.saltstack.com/en/latest/topics/installation/ubuntu.html
14:21 zeit using teh add-repository command
14:21 viq zeit: your gitfs URI, I don't care how you installed at this moment
14:21 zeit OK
14:22 zeit git+ssh://git@gitlab.lpma.math.upmc.fr:zeigeist/lpma-salt-states.git
14:22 viq zeit: just as I thought, you need to use / and not : as the repo separator
14:22 viq so it should be git+ssh://git@gitlab.lpma.math.upmc.fr/zeigeist/lpma-salt-states.git
14:24 kivihtin joined #salt
14:24 rallytime joined #salt
14:25 zeit I changed it and it does work now
14:26 zeit Thank you viq ! I found no reference to this before you told me
14:27 viq zeit: check the URIs in the examples
14:30 zeit viq: I do see it now
14:33 meganerd joined #salt
14:36 mateoconfeugo joined #salt
14:41 thayne joined #salt
14:42 meganerd joined #salt
14:43 kivihtin joined #salt
14:45 Linuturk I wish saltstack shipped with some default states to manage itself. something to call to boostrap a node as a minion using salt-ssh. a state or two to ensure the latest stable minion and master pair were in use
14:46 tkharju1 joined #salt
14:47 meganerd joined #salt
14:47 timwillis left #salt
14:48 thedodd joined #salt
14:49 ipmb joined #salt
14:49 dude051 joined #salt
14:51 ramishra joined #salt
14:52 kballou joined #salt
14:53 babilen Shouldn't config.option use data from pillar too? I have a correctly set pillar, but config.option comes back empty
14:54 babilen Linuturk: https://github.com/saltstack-formulas/salt-formula
14:54 babilen + http://docs.saltstack.com/en/latest/topics/tutorials/salt_bootstrap.html
14:55 darkelda joined #salt
14:55 Linuturk that salt-formula doesn't seem well maintained
14:55 Linuturk there are 9 pending issues and 3 pull requests
14:55 Linuturk no update in months
14:56 babilen Write your own, it isn't particularly hard
14:56 babilen I know that sucks as an answer, but it is the best recommendation I can give you right now.
14:57 Linuturk I know that. The ability to write your own doesn't exclude the benefits of having salt salt itself, natively and fully tested as part of salt core
14:57 TheRealBill_ joined #salt
14:58 quickdry21 joined #salt
14:59 arknix joined #salt
14:59 meganerd joined #salt
15:02 fllr joined #salt
15:03 viq Linuturk: on one hand, yes. On another, on which platforms?
15:03 Linuturk the same platforms salt-bootstrap supports today
15:05 malinoff joined #salt
15:10 arknix joined #salt
15:15 ipalreadytaken joined #salt
15:16 jslatts joined #salt
15:17 martoss joined #salt
15:20 intellix joined #salt
15:20 ajw0100 joined #salt
15:24 davet joined #salt
15:24 jslatts joined #salt
15:24 druonysus joined #salt
15:26 smcquay joined #salt
15:28 aberdine joined #salt
15:29 mgw joined #salt
15:30 wigit joined #salt
15:31 Luke_ joined #salt
15:37 arknix joined #salt
15:45 ajolo joined #salt
15:45 martoss joined #salt
15:47 azylman joined #salt
15:51 ramishra joined #salt
15:54 kermit joined #salt
15:55 schimmy joined #salt
15:56 druonysuse joined #salt
15:58 schimmy1 joined #salt
15:58 darkelda joined #salt
15:58 mapu I am looking to manage a .repo file- specifically, epel-erlang.repo. The source is an http URL. Howver, I am getting an error:
15:59 mapu Unable to determine upstream hash of source file
15:59 mapu What is best way to handle this- I do not see a generated hash on the site.
15:59 kermit1 joined #salt
16:00 viq mapu: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkgrepo.html
16:00 krow joined #salt
16:02 pdayton joined #salt
16:03 bhosmer joined #salt
16:04 tligda joined #salt
16:04 db joined #salt
16:04 scoates joined #salt
16:05 KyleG joined #salt
16:05 KyleG joined #salt
16:05 dangra_ joined #salt
16:07 timoguin mapu: if you're doing a managed file, you can download the file and run md5sum against it to get the hash
16:09 mapu I am not sure the best way to add this repo: ttp://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo
16:09 mapu http that is. Should I be doing a file.managed or can I do pkgrepo.managed ?
16:09 Eureka_ joined #salt
16:09 viq mapu: personally I would probably go with pkgrepo
16:10 joehillen joined #salt
16:10 mapu ok. that seems the “saltier” way and I like
16:14 malinoff joined #salt
16:17 mapu Imust have my syntax incorrect- pastebin to my enrty in the .sls file, and the error: http://pastebin.com/MTyFVKUt
16:18 viq mapu: re-read http://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkgrepo.html
16:18 bhosmer joined #salt
16:18 Nazzy is it just me, or is git master currently borked?
16:18 viq you don't give URL to repo _file_, you give URL and rest of settings for _repo_
16:18 viq ie. what you'd find _in_ the repo file
16:18 Nazzy I'm trying to work out exactly what's upsetting one of my installs
16:18 savvy-lizard joined #salt
16:19 darkelda joined #salt
16:19 darkelda joined #salt
16:21 helderco joined #salt
16:21 mapu viq: ok- so essentially I need to break out the contents of the .repo file. This doesn’t download and place the repo file as I expect. That bscially would only be done if I swicth back to “file.managed”. Am I understanding correctly?
16:21 che-arne joined #salt
16:21 jnials joined #salt
16:21 bmatt mapu: pkgrepo.managed is pretty well-baked. what's not working correctly?
16:22 helderco Hi. Is it possible in a salt state to check if a file in salt:// exists, with jinja?
16:22 thayne joined #salt
16:22 viq mapu: ye
16:22 viq erm
16:22 Luke joined #salt
16:22 viq mapu: yes, file.managed says "put this file over there". pkgrepo says "manage a repository with the settings I will tell you"
16:23 mapu right. Ok.
16:23 zeit joined #salt
16:24 conan_the_destro joined #salt
16:25 mapu bmatt:  the goal is to take these manual steps and have them be handled by salt: wget -O /etc/yum.repo.d/epel-erlang.repo http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo
16:25 bhosmer joined #salt
16:25 Eureka_ mapu if you want to do it that way you can use something like cmd.run
16:25 mapu So- was looking at the best method to add that repo- whether it is pkgrepo or file.managed
16:25 Nazzy ah, found my issue ... dev-python/requests isn't in my deps ¬_¬
16:26 ipalread_ joined #salt
16:26 Eureka_ mapu: In my environment i use pkgrepo. I like having it in salt and having it easily salt managed.
16:26 viq mapu: either file.managed, but you have to know the checksum of the file, or pkgrepo, where you define the contents of the repo. Or just plain brutforce cmd.run with wget, like Eureka_ mentioned
16:26 dangra joined #salt
16:26 mapu ok. I am feeling like pkgrepo seems like the cleanest way
16:27 mapu but yes- all 3 would work
16:27 mapu thanks for everyone’s imput- much appreciated.
16:32 darkelda joined #salt
16:33 azylman joined #salt
16:34 Kenzor joined #salt
16:34 mateoconfeugo joined #salt
16:34 jnials_laptop joined #salt
16:37 zeit left #salt
16:40 bhosmer_ joined #salt
16:43 Tween joined #salt
16:45 penguin_dan joined #salt
16:45 Ahlee anybody else seen (and dug into) why sometimes minions will return u'The function <whatever> is running as PID <pid> and was start at <time stamp> with jid <jid>' that matches the JID?
16:45 Ahlee so basically, it's returning that it's the same
16:48 Ahlee Oh.  Two minion processes on that system
16:48 Ahlee one running in foreground, onerunning in background
16:49 housl joined #salt
16:51 felskrone joined #salt
16:53 troyready joined #salt
16:55 shaggy_surfer joined #salt
16:56 CyanB joined #salt
16:56 CyanB Well then.  This is apparently a popular channel.
16:56 chrisjones joined #salt
16:57 CyanB Do I want to start asking stupid questions?
16:57 KyleG it is popular
16:57 KyleG you just joined
16:57 CyanB true.
16:58 CyanB I'm sort of delving into the world of "do i want to use salt or not".. heh
16:58 CyanB so many options, and none of them really play super-nice with sol10
16:58 KyleG It's easy enough to setup and test
16:58 viq CyanB: you want to use automation. Use one that makes most sense for you
16:58 CyanB yeah.
16:58 KyleG I've tested salt with Illumos SmartOS zones, works fine
16:58 CyanB oh, agree wholeheartedly.
16:58 CyanB one of the things that doesn't seem super clear yet, even by glancing at the documentation
16:58 KyleG It's python so it'll work on any platform really.
16:58 CyanB is stuff like "if I have 10 systems, host01 through host10, with different IPs"
16:59 CyanB .. and a common config file across all 10
16:59 CyanB except they're not so common
16:59 KyleG You can do all sorts of interesting stuff
16:59 KyleG I separate my configs by hostname
16:59 CyanB there are bits in that config that are system dependant (like IP)
16:59 KyleG because all my hostnames determine the server type
16:59 schimmy joined #salt
16:59 CyanB nod, i use a standard naming schema for different applications
16:59 KyleG I also have stuff in my configs for different operating systems so I can mix and match. If os == freebsd put this config here if it's solaris put it here
16:59 CyanB but .. there are still system-specific differences (again, IPs)
16:59 CyanB what if you dig down a little deeper
16:59 KyleG right
17:00 KyleG Grains provide you with a ton of information
17:00 CyanB like /etc/ssh/sshd_config - ListenAddress x.x.x.x
17:00 KyleG http://docs.saltstack.com/en/latest/topics/targeting/grains.html
17:00 CyanB so grains give you that granularity
17:00 CyanB which is probably where that name came from
17:00 che-arne|2 joined #salt
17:00 KyleG indeed
17:00 CyanB anyone actively using sol10 w/salt? :D
17:00 CyanB python support ain't exactly a peach in sol10
17:00 CyanB or ruby for that matter
17:00 shaggy_surfer joined #salt
17:00 KyleG I figure Illumos is close enough, right?
17:01 KyleG Like I said, worked fine there
17:01 KyleG You can always just use pip or easy_install to install salt
17:01 KyleG and make your own SMF manifests for the minion/master
17:01 KyleG although I believe there are manifests available
17:01 CyanB nod.
17:01 CyanB i haven't played with opencsw that much.  haven't really had to, my env has been pretty static.
17:01 CyanB and the bits that aren't.. self-built.
17:01 CyanB but it seems like the smart way would be to go the csw route.
17:02 CyanB illumos is likely closer to sol11 than 10
17:02 CyanB (ie: uses 'pkg', right?)
17:02 KyleG it uses pkgin
17:02 manfred there was just something about smf going through the issue tracker the other day being added or patched...
17:02 Ryan_Lane joined #salt
17:02 CyanB tbh, if i've got something that'll give me the ability to do remote execution, and file sanitization..
17:02 CyanB i'd already be ahead of the game
17:03 CyanB i guess i have a new project to play with.
17:03 KyleG Salt is really powerful in the right hands
17:03 schimmy joined #salt
17:03 manfred ^^
17:03 * manfred can't wait for raet
17:03 CyanB i suspect if you're a total python tool, you can probably still get by
17:03 manfred http://www.youtube.com/watch?v=SI5J43UkarM
17:03 CyanB plenty of examples to work from
17:03 KyleG Honestly I don't think I'm even using 100% of the features as best as I could after using it for almost 2 years
17:04 KyleG so many features
17:04 manfred ^^
17:04 manfred and if it doesn't do the thing you want, make a feature request, cause it probably could
17:04 KyleG yup
17:04 CyanB python2 vs python 3
17:05 zain_ joined #salt
17:05 manfred python2 now
17:05 CyanB issues one way or the other?
17:05 manfred raet will allow it to be python3
17:05 kermit joined #salt
17:05 manfred if you don't install M2Crypto
17:05 manfred but it is not yet python3 compatible
17:05 manfred http://www.meemes.com/sites/default/files/styles/large/public/soon%20ostrich.jpg?itok=8BxBuXmq
17:06 TheRealBill joined #salt
17:06 jrdx joined #salt
17:06 * manfred smashes head into desk... logs into rhel 4.9 box
17:06 schimmy1 joined #salt
17:12 m____s joined #salt
17:13 oz_akan_ joined #salt
17:13 vejdmn joined #salt
17:14 renoirb joined #salt
17:19 ml_1 joined #salt
17:19 davet joined #salt
17:19 yomilk joined #salt
17:21 aw110f joined #salt
17:28 Ahlee Anybody know if there's plans for when halite will no longer recommend running against develop?
17:29 azylman_ joined #salt
17:29 to_json joined #salt
17:29 mgw joined #salt
17:31 scoates joined #salt
17:34 happytux joined #salt
17:39 TheThing joined #salt
17:43 jslatts joined #salt
17:43 oz_akan_ joined #salt
17:46 krow joined #salt
17:51 azylman joined #salt
17:53 eliasp meh… https://www.youtube.com/watch?v=SI5J43UkarM stops playing (using HTML5 playback) at 3:45 … youtube-dl to the rescue
17:54 azylman_ joined #salt
17:54 eliasp meh^2 … doesn't work too…
17:57 chiui joined #salt
17:58 austin987 joined #salt
17:58 m1crofarmer joined #salt
18:00 alexthegraham joined #salt
18:02 dangra joined #salt
18:03 koyd joined #salt
18:03 pdayton joined #salt
18:07 mineralz joined #salt
18:07 mineralz howdy,
18:07 mineralz quick question, is there a module that can give a head count of all my minions, rather than piping it to wc -l?
18:09 tkharju2 joined #salt
18:11 Eureka_ mineralz: salt-run manage.up should do the trick.
18:18 arknix joined #salt
18:18 manfred doesn't give you a count
18:19 manfred mineralz: that should be more easily done once raet is finished.
18:21 jalaziz joined #salt
18:23 ndrei joined #salt
18:25 mineralz nice thanks
18:25 Ryan_Lane manfred: raet will be able to give info about node counts for successes and failures?
18:26 manfred Ryan_Lane: raet is supposed to allow for constant monitoring of nodes being up and down, and allowing for minions to talk between each other
18:27 Ryan_Lane nice
18:30 ckao joined #salt
18:30 bhosmer_ joined #salt
18:35 arthabaska joined #salt
18:38 vbabiy joined #salt
18:41 thedodd joined #salt
18:42 kermit joined #salt
18:43 schimmy joined #salt
18:44 bhosmer joined #salt
18:46 schimmy1 joined #salt
18:49 meteorfox joined #salt
18:51 hobakill joined #salt
18:51 chrisjon_ joined #salt
18:52 arknix joined #salt
18:52 anuvrat joined #salt
18:52 hobakill Salt IRC !!!!!!!!!!! guys and gals - when i reboot my master, i can no longer ping minions without first restarting salt-minion service. we are on 2014.1.5 for master and minions
18:53 beardo joined #salt
18:54 hobakill zmq is 3.2.4 on both master and minion
18:54 MTecknology salt-cp is NOT intended to broadcast large files, it is intended to handle text files. salt-cp can be used to distribute configuration files.    hrm.... I wonder if 12MB across a T1 counts as a large file...
18:55 ggoZ joined #salt
18:57 * TaiSHi is curious on the results of MTecknology's question
18:57 MTecknology I'm trying to push Salt-Minion-2014.1.5-win32-Setup.exe to 179 box.
18:58 TaiSHi Why not (windows-version-of-curl) it ?
18:58 TheThing Because there is no (windows-version-of-curl)
18:59 TaiSHi I use Windows and I agree.
18:59 TaiSHi But there is always an cygwin's exe version of wget!
19:00 MTecknology Then you need to get cygwin on there too
19:01 MTecknology salt-cp "ldps.0040.good-sam.com" '/root/Salt-Minion-2014.1.5-win32-Setup.exe' 'C:/salt-installer.exe'   Gives the output {} and nothing else and no file copied. :(
19:01 jaimed joined #salt
19:03 MTecknology looks like it times out... Why would it time out? :S  It should be a 10 second transfer
19:03 MTecknology [INFO    ] jid 20140708140201542416 minions set(['ldps.0040.good-sam.com']) did not return in time
19:03 MTecknology sorry, didn't mean to paste that.   *grumble*
19:06 MTecknology It almost feels like I'm running into a firewall problem, but there's no firewall running on the minions.
19:06 TaiSHi It's windows :P
19:06 TaiSHi Are you targeting a single minion ?
19:07 pholbrook joined #salt
19:09 MTecknology ya
19:09 toastedpenguin joined #salt
19:10 pholbrook If I have a directory of files accessed via the salt fileserver, is there any way in a state to just iterate over all those files without explicitly naming them in the pillar?  IE, if I have a directory salt:/myapp/configs with a bunch of files, I'd like to write a state that does something to each file in there (such as make sure it's present in a particular directory)
19:11 pholbrook i know I could create a pillar data structure with those file names, but then I'd have to update that data structure everytime I dropped a file in my fileserver directory.
19:15 MTecknology that'll work
19:15 MTecknology TaiSHi: I created a state to push it down.
19:16 MTecknology dirty hack, but... whatever, it'll work. :)
19:16 TaiSHi Show me :P
19:17 * TaiSHi is watching a plane almost torn in half another plane
19:18 diegows joined #salt
19:19 MTecknology cp /root/Salt-Minion-2014.1.5-win32-Setup.exe /srv/data/salt-installer.exe; vim /srv/data/salt-installer.sls  (salt-installer:\n\t file.managed:\n\t\t - name: C:\salt-installer.exe\n\t\t - source: salt://salt-installer.exe); salt 'ldps.*' state.sls salt-installer
19:21 TaiSHi And how is it working ?
19:22 MTecknology 94% success pushing 12MB to 178 hosts via T1
19:22 MTecknology not bad
19:23 TaiSHi That's some improvement from 0% :P
19:23 horus_plex almost 100% better. :D
19:25 MTecknology It looks like it actually did work on the others, they just didn't respond quick enough
19:25 MTecknology again... T1
19:25 TaiSHi yay
19:26 chrisjones joined #salt
19:28 dualinity joined #salt
19:29 kermit joined #salt
19:29 MTecknology Now the fun command...    salt -v 'ldps.*' cmd.run 'C:\salt-installer.exe /S /master=salt.domain.tld' >log
19:30 MTecknology heh.... apparently my timeout was way too low... :(
19:31 KyleG yeah...
19:31 xzarth_ joined #salt
19:31 KyleG I always add -t 360 -v
19:31 KyleG to the end of my salt commands, lol
19:33 MTecknology WOOHOO!!!!!!!
19:33 MTecknology I just updated 176 windows boxes to 2014.1.5! :D
19:38 MTecknology effing great... I can run salt-call state.highstate from any linux box and it works perfect. I can run salt-minion -l debug and it works perfect. However, if I run salt '<minion_id>' test.ping, it times out and salt-minion -l debug shows nothing.
19:38 happytux joined #salt
19:40 anotherZero joined #salt
19:44 koyd MTecknology: are you sure the minion is authed ? do a salt-key -L and check for its key
19:46 MTecknology koyd: yup, salt-call state.highstate wouldn't work otherwise and salt-minion -l debug shows the connection getting made and doing everything it's supposed to.
19:48 koyd MTecknology: thought you were calling salt-call from the local minion. If it's the master then it should work afaik
19:48 MTecknology yes, I am, but that requires authentication with the master
19:49 arknix joined #salt
19:54 MTecknology damnit... and now I get why
19:54 MTecknology I want a drink...
19:54 TaiSHi I'm drinking mate
19:55 TaiSHi But what did you figure out?
19:55 vbabiy joined #salt
19:55 TaiSHi Can you delete a ssh key from a user with salt ?
19:56 TaiSHi Because DO sets up the instances with a root with ssh key, and I don't want it there
19:57 racooper TaiSHi,  does this help? http://docs.saltstack.com/en/latest/ref/states/all/salt.states.ssh_auth.html
19:57 TaiSHi It does
19:57 TaiSHi I'm using a formula
19:59 TaiSHi Meh, I disabled root login on ssh so screw it, will deal with that kind of stuff later on
20:01 arknix joined #salt
20:01 diegows joined #salt
20:03 koyd MTecknology: what was the problem? firewalling?
20:04 picker joined #salt
20:07 notpete__ Hey, I was looking through the documentation for salt-cloud and ran into something which didn't make sense.
20:07 notpete__ http://docs.saltstack.com/en/latest/topics/cloud/config.html#migrating-configurations
20:07 notpete__ At the end of the section, the part below "This new configuration syntax even allows you to have multiple cloud configurations under the same alias, for example:"
20:10 notpete__ I'd like to use create a provider conf that allows me to change just the region.
20:13 Eureka_ joined #salt
20:15 bhosmer joined #salt
20:15 a1j why salt.modules.grains.append removes previous value?
20:15 a1j is it intended? How to append value without removing previous one?
20:16 thedodd joined #salt
20:19 lauris joined #salt
20:19 zach joined #salt
20:20 lauris hi
20:20 a1j hm weird Function grains.setvals is not available
20:21 a1j docs say it is new in 0.17, i'm using  2014.1.3
20:21 rogst joined #salt
20:21 mpanetta a1j: try grans.setval
20:21 mpanetta no s
20:21 mpanetta er grains.setval
20:21 mpanetta heh
20:27 dstanek left #salt
20:28 ajolo_ joined #salt
20:29 m1crofarmer joined #salt
20:29 a1j mpanetta: yes setval is working.
20:30 a1j mpanetta: trying to figure out if i can store server role in grains and how to add new role without whacking all previous ones. Seems like custom grains are broken, easier to write own module.
20:31 mpanetta Hmm
20:31 mpanetta SHouldn't be.
20:31 vxitch joined #salt
20:32 vxitch hello! i'd like to get a listing of all minions' hostnames in one of my states, is this possible?
20:32 Eureka_ a1j: You could use file.append to put it onto the minion then reload the minion?
20:32 lauris offline documentation is not generated properly - https://media.readthedocs.org/pdf/salt/latest/salt.pdf
20:32 lauris are you aware of this?
20:32 Eureka_ vxitch: You should be able to do that using salt-mine and jinja templates.
20:33 vxitch Eureka_: thanks! i'll look into that and come back if i have questions
20:33 Eureka_ vxitch: you will need to enable salt-mine on all minions via the minion config file. Then something like this inside your state file should do it. {% for host, ip in salt['mine.get']('node_type:db1', 'network.ip_addrs', expr_form='grain').items() %} db.url=jdbc:postgresql://{{ ip[0] }}:5432/${db.name} {% endfor %}
20:34 a1j Eureka_: dirty. I better create some special dir like roles/ and create files there with role names. Then return that via array with custom grain module. No need to reload anything then.
20:34 Eureka_ vxitch: that example will locate the IP address for a server in a group of servers with a node_type of db1 (a grain)
20:34 Eureka_ a1j: i agree ;) there are a few things that seem buggy atm.
20:35 a1j Eureka_: like salt mine if you have more than 1 master hehe.
20:35 vxitch Eureka_: er wait, i need to use postgres for this?
20:35 Eureka_ a1j: your telling me. I just submitted a git bug for multi-master messing up salt reactors.
20:36 Eureka_ vxitch: No, that is just an example that would allow you to automatically get the IP of a server in a group and insert it into an applications configuration file. The {{ ip[0] }} just lists the IP address found.
20:36 helderco joined #salt
20:37 vxitch great :) thanks! seems like what i need
20:37 Eureka_ vxitch: Sure. Let me know if you need any other help. Ill try my best ;) Im learning too haha.
20:38 vxitch i mean id rather have a more elegant solution. what i'm trying to achieve in the end is create the dirs and empty files for syslog-ng to be able to log properly from remote hosts. because if a file doesn't exist it complains and doesn't create it
20:38 vxitch i haven't been able to find a solution for that from the syslog-ng side, so im resorting to creating the dirs manually
20:38 vxitch which, is hacky and makes me sad
20:39 Eureka_ vxitch: I thought that syslog-ng has a method that allows it to auto-create? I feel like ive done that before.. Also, checkout greylog2 if you havnt already. Its nice!
20:39 Eureka_ vxitch: ohh i know. Use rsyslogd not syslog-ng. Thats what I was using and it can auto-generate directories based on regex using hostnames and whatnot.
20:40 vxitch create_dirs(yes
20:40 vxitch )
20:40 vxitch there is it! thank you!
20:40 vxitch got, docs for syslog-ng are awful and sparse. and seems like they change with every version
20:40 Eureka_ vxitch: gladly ;) ive been doing the admin thing for far too long o.0
20:40 Eureka_ vxitch: yeah.... Actually I think they do.. a lot... -.-
20:41 vxitch does greylog2 provide a logging server or is it just a pretty dashboard
20:41 a1j if i have array  in grains such as role: [ role1, role2 ] how to address that with -G in salt?
20:42 TaiSHi meh
20:42 Eureka_ vxitch: its the dashboard and parsing/alerting system. That is, unless they have changed it a lot latley.
20:42 TaiSHi I have to push a single file (rrsync) and since I'm using all formulas I feel bad for making an exclusive sls
20:47 mpanetta I don't think -G will work with arrays
20:47 mpanetta Right now we only use a single role per minion.  Never tried multiples.
20:52 maddslacker joined #salt
20:53 maddslacker anyone know if saltstack can interface with vmware orchestrator?
20:53 maddslacker I've looked on the website and can't find anything specific
20:54 a1j it works with arrays, but for some reason it ignores grains from /etc/salt/grains   weird.
20:54 Eugene Im gonna say no.
20:54 Eugene salt-cloud has limited interface with the vsphere api for provisioning
20:55 maddslacker that's what I needed, I think
20:55 a1j maddslacker: http://docs.saltstack.com/en/latest/ref/clouds/all/
20:55 maddslacker I need something for provisining, but it's a multi-tenant cloud environment
20:56 maddslacker alj, that answered my question, thanks
20:56 maddslacker left #salt
20:59 a1j why /etc/salt/grains work for salt-call but dont work for salt ?
21:00 Eureka_ a1j have you restarted your salt-minion after editing /etc/salt/grains ??
21:01 a1j grr.
21:02 a1j yep that fixed it.
21:02 Eureka_ Figured it might ;) that file is only read on load for salt-minion. I believe salt-call reads it every time it runs.
21:02 a1j cant keep restarting it, i need 2-nd config management system to manage salt then.
21:03 Eureka_ I have heard of people using monit to watch the salt daemons http://mmonit.com/monit/
21:03 Eureka_ I know it seems silly but we do what we must o.0
21:04 a1j ok time for custom grain module then.
21:04 smcquay joined #salt
21:08 dimeshake is anyone using salt as part of their monitoring infrastructure? I'm just thinking about simplification - if we've already got an agent (salt-minion) installed, I'd like to avoid extra software if possible
21:09 dimeshake and would also like to avoid opening ports to each minion for other traditional solutions
21:09 dimeshake seems salt might make a good transport for that sort of thing
21:09 kermit joined #salt
21:09 vxitch can i inject the minion's hostname in a cmd.run call from the salt cli?
21:10 Eugene i stick with nagios native nrpe for returners because salt doesn't distinguish as easily between timeout and down
21:10 Eugene you can call $(hostname) on your subshell
21:10 vxitch .........duh
21:10 vxitch haha thank you!
21:10 benturner joined #salt
21:11 dimeshake Eugene: nrpe might be just the ticket
21:11 gothix_ joined #salt
21:12 jnials joined #salt
21:14 babilen Just to make sure: If I use salt['config.option']('foo.bar') that should also get me the value of 'foo:bar' on the pillar shouldn't it?
21:15 babilen Well, __salt__['config.option'
21:15 babilen that is
21:15 manfred i believe you want foo:bar, not foo.bar
21:15 manfred nope
21:15 manfred nevermind, you are correct
21:16 wendall911 joined #salt
21:16 babilen manfred: No, I triple checked that (it looked weird). For some reason I can get the top level pillar data, but nothing "deeper" in there even though I've seen it being used in multiple modules
21:18 chrisjones joined #salt
21:19 babilen Thank you for looking into that, I'll debug in detail tomorrow. It surely is just something trivial (but "pillar.item foo:bar" works?!)
21:25 codysoyland Hi, I tried using salt-cloud to launch a newer aws instance type (t2.small) but it failed with "salt-cloud: error: There was a profile error: The specified size, 't2.small', could not be found." -- where is this list of instance types? If I upgrade salt, will it get a new list? I'm running salt 2014.1.4
21:25 Linuturk codysoyland: do you see it when you run salt-cloud --list-sizes ec2 ?
21:25 Linuturk I think that's the command
21:25 manfred it is
21:26 manfred replace ec2 with your provider name
21:26 Linuturk then, just plug in the name attribute for the size you want, into your cloud profile
21:27 codysoyland it throws an exception when I run that: "TypeError: avail_sizes() takes at least 1 argument (0 given)"
21:27 codysoyland (sudo salt-cloud --list-sizes aws)
21:27 codysoyland when i run it with ec2 instead, I see a list of instance types, but not the T2 ones
21:28 Linuturk not sure
21:28 manfred which driver are you using?
21:29 manfred ec2 or libcloud-aws or boto_ec2?
21:29 Linuturk does the aws/ec2 driver rely on libcloud too? maybe a version issue?
21:29 manfred the libcloud-aws one does
21:29 codysoyland my custom provider is based on "provider: aws" -- I guess that's libcloud?
21:29 manfred maybe
21:29 manfred one second
21:30 manfred codysoyland: it is https://github.com/saltstack/salt/blob/develop/salt/cloud/clouds/libcloud_aws.py#L80
21:30 manfred codysoyland: try the ec2 driver
21:31 manfred codysoyland: http://docs.saltstack.com/en/latest/topics/cloud/aws.html
21:31 codysoyland ok, I recall having trouble with the ec2 one many months ago, then switching to aws. i can give it a try again
21:32 codysoyland is there a preferred or more supported driver for ec2 out of the 3 that exist?
21:33 manfred i think the ec2 is prefered
21:33 codysoyland manfred: thanks, I'll give it a try
21:33 manfred because boto in 2014.1 wasn't ready afaik, and libcloud is dumb
21:36 codysoyland yeah, I get the same error
21:37 ipmb joined #salt
21:37 manfred can you double check if you get the same error in 2014.1.5 or .6 that was just released, and if you do, can you create a bug report?
21:37 codysoyland oh, I just noticed by grepping salt's codebase that the size map is hardcoded in salt/cloud/clouds/ec2.py
21:37 codysoyland and the T2 instance types are not there
21:37 manfred ahh
21:38 manfred oh right
21:38 manfred they were doing that to speed it up iirc
21:38 manfred or lib cloud doesn't let you query sizes, which also wouldn't suprise me
21:39 codysoyland should i file a bug report to update the list?
21:43 ipmb joined #salt
21:44 krow joined #salt
21:48 dimeshake is there any way to easily profile salt -- get an output of each state and see how much time each took during a highstate, for example?
21:48 vbabiy joined #salt
21:54 jslatts joined #salt
22:00 vxitch left #salt
22:06 fivethreeo joined #salt
22:07 a1j hm it seems like my grain cache wont expire
22:10 logix812 joined #salt
22:10 manfred dimeshake: that is available in helium
22:13 dimeshake neat
22:16 kermit joined #salt
22:18 TheRealBill joined #salt
22:19 dualinity hey guys, im wondering about the eh permissions of salt minions
22:19 dualinity in some of the documentation it displays: "salt '*' pkg.install vim"
22:19 dualinity it seems like the master has all the rights?
22:20 dccc joined #salt
22:20 happytux joined #salt
22:24 bhosmer_ joined #salt
22:24 bhosmer joined #salt
22:24 dimeshake manfred: i figured out what was causing the memory bloat on salt-minion
22:24 dimeshake had nothing to do with rhel5. file.directory: recursive permissions has an odd behavior that seems to do it. like it's reading every file in the directory into memory
22:26 manfred nice
22:26 manfred dimeshake: yes, that is fixed later iirc...
22:26 manfred ¯\(°_o)/¯
22:31 arthabaska joined #salt
22:31 dualinity I have to constantly use sudo for each like salt \* test.ping?
22:32 DaveQB joined #salt
22:32 bhosmer__ joined #salt
22:33 smcquay joined #salt
22:33 Blacklite makes sense - you wouldn't want anyone but root executing salt commands
22:33 Blacklite even if it's just a ping
22:36 Ryan_Lane dualinity: it depends
22:36 Ryan_Lane you can configure your master to allow commands to be run by non-root users as well
22:37 Ryan_Lane dualinity: http://docs.saltstack.com/en/latest/ref/configuration/master.html#client-acl
22:37 oz_akan__ joined #salt
22:38 dualinity hmmm thanks guys
22:39 dualinity i basically just want to be able to allow myself (host) to run a single command with a single variable argument
22:39 dualinity on loads of minions
22:39 dualinity minions need to feel safe :)
22:39 TheThing joined #salt
22:44 arknix joined #salt
22:46 felskrone joined #salt
22:47 krow joined #salt
22:47 bhosmer joined #salt
22:47 mapu joined #salt
22:53 Outlander joined #salt
22:58 yomilk joined #salt
22:58 ipmb joined #salt
22:58 aquinas joined #salt
23:02 arknix joined #salt
23:22 yomilk_ joined #salt
23:25 elfixit1 joined #salt
23:30 mr_keke joined #salt
23:33 bhosmer joined #salt
23:34 shaggy_surfer joined #salt
23:36 Hell_Fire joined #salt
23:37 aherzog joined #salt
23:37 kermit joined #salt
23:39 mosen joined #salt
23:51 ajprog_laptop1 joined #salt
23:52 BrendanGilmore joined #salt
23:56 shaggy_surfer joined #salt

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