Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-05-08

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

All times shown according to UTC.

Time Nick Message
00:00 aw110f 2014.1.3
00:01 cvbge joined #salt
00:01 Ryan_Lane right. I was going to suggest opening an issue, but you already commented on an existing one :)
00:02 techdragon joined #salt
00:02 forrest joehh, are you around?
00:03 cvbge left #salt
00:04 forrest Ryan_Lane, did that __salt__ command work for you?
00:04 Ryan_Lane I ended up not needing it
00:04 forrest ok cool
00:12 arthabaska joined #salt
00:13 arthabas_ joined #salt
00:16 Ryan_Lane https://github.com/saltstack/salt/pull/12615 \o/ just need security groups and normal instance creation and I think I have most of the functionality covered.
00:16 Ryan_Lane hm. and maybe ssh key management
00:17 Ryan_Lane and maybe support for elbs to manage their own route53 entries
00:25 tdilly joined #salt
00:27 tdilly I would like to change a minion's ID, what all needs to take place on the minion?
00:27 joehh forrest: yes
00:27 __number5__ Ryan_Lane: did you have a state/module deal with AWS VPC?
00:28 joehh guessing at your question - doing ubuntu packaging today
00:28 jcsp joined #salt
00:29 forrest joehh, I'm not doing any packaging, was just curious if you knew why on universe for ubuntu 14.04 you knew why they have 0.17.5 as the latest
00:29 forrest apparently I can't grammar today
00:30 joehh there is some sort of auto sync between debian testing and ubuntu
00:30 joehh when the cut off for trusty occerred, 0.17.5 had been synced
00:31 forrest oh I see, how long will it be before they update it again?
00:31 NullWagon joined #salt
00:31 joehh also, it was also an aim to get that in - aiming for a late version of a "stable" release rather than a new buggy release
00:32 joehh I'm not sure - for the non LTS releases, it hasn't be updated at all - leading to problems
00:32 joehh might be different for an LTS release though
00:32 oz_akan_ joined #salt
00:34 forrest ok thanks joe
00:35 tdilly To answer my own question: Looks like changing the FQDN seems to be enough :^)
00:38 joehh forrest: similar thing coming up for debian in about 6 months with freeze of jessie for release
00:38 joehh aiming/hoping for a late helium release there
00:39 elfixit joined #salt
00:45 sgviking joined #salt
00:47 faldridge joined #salt
00:49 bemehow joined #salt
00:50 forrest joehh, cool!
00:50 rick_ joined #salt
00:50 LordOfLA joined #salt
00:53 joehoyle joined #salt
00:53 frasergr_ joined #salt
00:54 malinoff joined #salt
00:57 rupsky___ joined #salt
00:57 meteorfo_ joined #salt
00:58 jforest joined #salt
01:03 faldridge joined #salt
01:04 rallytime joined #salt
01:04 catpigger joined #salt
01:06 Ryan_Lane __number5__: no VPC support yet
01:07 fragamus joined #salt
01:09 conan_the_destro joined #salt
01:14 NullWagon joined #salt
01:14 jnials joined #salt
01:26 arthabaska joined #salt
01:33 oz_akan_ joined #salt
01:35 oz_akan__ joined #salt
01:37 UtahDave joined #salt
01:37 schmutz joined #salt
01:37 UtahDave hey, carmony!  got your msg
01:38 carmony UtahDave: So is what is in develop going into the next release?
01:38 UtahDave yep!
01:38 carmony So that includes the Saltfile stuff huh?
01:39 whitepaws joined #salt
01:39 UtahDave everything.  did saltfile not make it into the last release?
01:40 carmony It actually might have
01:40 carmony it was really close
01:40 UtahDave ah
01:43 Ryan_Lane joined #salt
01:45 carmony UtahDave: Yeah, its not in the 2014.1 branch
01:45 jalbretsen joined #salt
01:47 UtahDave ok, yeah, then it will definitely be in the next full release. I think we're wanting to get an RC out in a couple weeks
01:47 UtahDave carmony: have you tested it in develop?
01:52 mateoconfeugo joined #salt
01:53 UtahDave joined #salt
01:54 carmony UtahDave: I need to
01:55 bhosmer joined #salt
01:55 UtahDave that would be good. to make sure it's working in the next release
01:55 carmony UtahDave: the code is there
01:55 carmony let me test that right now
01:55 UtahDave cool;
01:56 elfixit joined #salt
01:59 UtahDave joined #salt
02:05 JordanRinke so, I have only ever really applied states to a few machines at a time, but I need to blow out a change to 500 right now... is there a way to apply highstate and get a condenced output?
02:06 KyleG joined #salt
02:06 KyleG joined #salt
02:09 JordanRinke found it
02:09 JordanRinke state_verbose
02:09 JordanRinke and state_output
02:10 \ask joined #salt
02:11 JordanRinke i dont know why I ask, the answer is pretty much always, that exists
02:11 war2 joined #salt
02:13 ravibhure joined #salt
02:13 sinuhe joined #salt
02:14 JordanRinke ohhh that did not like | tee at aaallll
02:15 UtahDave :)
02:15 faldridge joined #salt
02:16 UtahDave JordanRinke: It was odd not seeing you at the Castle yesterday!
02:16 JordanRinke haha, yeah, I miss it sometimes, how was your visit?
02:16 UtahDave Good!  too short.  Flew in monday and flew out tuesday afternoon
02:17 JordanRinke ouch that is a rough turn around
02:17 UtahDave As usual, Rackspace was a wonderful host
02:18 Bandikoto joined #salt
02:19 JordanRinke how was the weather? heard it was starting to get too hot there already
02:28 druonysus joined #salt
02:28 druonysus joined #salt
02:28 feiming joined #salt
02:33 taterbase joined #salt
02:38 tr_h joined #salt
02:40 UtahDave joined #salt
02:40 UtahDave JordanRinke: It was warm, but there was a really nice breeze, so it wasn't bad
02:41 JordanRinke ah nice, how goes the internal war at Rackspace... ansible vs salt
02:42 JordanRinke I have to split actually, we can pick up tomorrow.
02:43 UtahDave cool
02:50 sroegner joined #salt
02:52 ipalreadytaken joined #salt
02:52 alunduil joined #salt
03:01 Networkn3rd joined #salt
03:15 ajw0100 joined #salt
03:19 war2 joined #salt
03:19 gildegoma joined #salt
03:23 KyleG joined #salt
03:23 KyleG joined #salt
03:28 Networkn_ joined #salt
03:31 malinoff joined #salt
03:44 mateoconfeugo joined #salt
03:48 pydanny joined #salt
03:48 catpiggest joined #salt
03:56 ipalreadytaken joined #salt
03:58 ipalreadytaken joined #salt
03:59 travisfischer joined #salt
04:02 mgw joined #salt
04:04 UtahDave joined #salt
04:04 rupsky___ joined #salt
04:05 ckao joined #salt
04:15 war2 joined #salt
04:27 che-arne joined #salt
04:32 cruatta joined #salt
04:35 ajw0100 joined #salt
04:40 xinkeT joined #salt
04:42 ajw0100 joined #salt
04:42 chuffpdx_ joined #salt
04:44 travisfischer joined #salt
04:50 sroegner joined #salt
05:03 artificialexit joined #salt
05:04 travisfischer joined #salt
05:06 stanchan joined #salt
05:07 jnials joined #salt
05:13 war2 joined #salt
05:15 jnials joined #salt
05:27 mgarfias joined #salt
05:31 arthabaska joined #salt
05:36 schimmy joined #salt
05:38 engblom When running Debian testing (Jessie) what saltstack repository do you recommend? Jessie seem to not have an official package: http://debian.saltstack.com/
05:38 engblom Should I use the package for Sid or Wheezy?
05:40 Eugene I'd use Wheezy(prev-stable?)
05:40 Eugene The newer one would have version reqs higher than the sytem
05:41 schimmy joined #salt
05:41 Eugene Akin old software still runs on new hardware, but at abstraction layers(which is really soft vs hard; next being hard vs silicon-nonrearrangableish)
05:43 engblom Thanks, I will see how it will work
05:45 jnials joined #salt
05:47 martoss joined #salt
05:48 tr_h joined #salt
05:50 anuvrat joined #salt
05:50 joehh engblom: sid
05:52 joehh engblom: it should be able to migrate directly in testing
05:52 n8n joined #salt
05:53 rallytime joined #salt
05:55 joehh engblom: check now - there should be a jessie repository
05:56 engblom joehh: Thanks!
05:56 joehh use:
05:56 joehh deb http://debian.saltstack.com/debian jessie-saltstack main
05:56 joehh or deb http://debian.saltstack.com/debian jessie-saltstack-2014-01 main
05:56 jeremyBass left #salt
05:56 joehh let me know if you have any probs as I haven't yet had a chance to test it
05:57 engblom I got it installed now... soon the testing will begin
05:58 travisfischer joined #salt
06:00 joehh good to hear
06:01 artificialexit joined #salt
06:02 picker joined #salt
06:07 saurabhs left #salt
06:08 quist joined #salt
06:12 schimmy1 joined #salt
06:14 epcim joined #salt
06:16 schimmy joined #salt
06:32 schimmy1 joined #salt
06:33 cruatta joined #salt
06:40 briner joined #salt
06:50 ph8 joined #salt
06:51 sroegner joined #salt
06:51 gildegoma joined #salt
06:57 Etch joined #salt
06:57 anuvrat joined #salt
07:00 ph8 joined #salt
07:00 walkingeagle joined #salt
07:07 smcquay joined #salt
07:08 xintron joined #salt
07:17 zain_ joined #salt
07:17 tharkun joined #salt
07:19 bhosmer joined #salt
07:24 DaveQB joined #salt
07:24 jnials joined #salt
07:26 sfello joined #salt
07:26 slav0nic_ joined #salt
07:27 TOoSmOotH joined #salt
07:29 linjan joined #salt
07:30 bram__ joined #salt
07:34 _ruben joined #salt
07:44 CeBe joined #salt
07:46 fragamus joined #salt
07:49 martoss joined #salt
07:49 kriptin quit
07:49 kriptin q
07:51 martoss1 joined #salt
07:53 Daemonik joined #salt
07:54 mgarfias joined #salt
07:54 jnials joined #salt
07:55 _ale_ joined #salt
08:02 harobed joined #salt
08:08 nkuttler heh, wait.. no apache/htpasswd module in the latest release? am i mising something?
08:11 mgarfias joined #salt
08:16 scott_w joined #salt
08:21 MrTango joined #salt
08:23 kzx1 joined #salt
08:30 topochan joined #salt
08:35 mgarfias joined #salt
08:38 Katafalkas joined #salt
08:40 kermit joined #salt
08:48 cofeineSunshine hi
08:48 cofeineSunshine is there easy way to move file from salt master to salt minion using salt-run runner
08:48 cofeineSunshine ?
08:51 MrTango joined #salt
08:52 sroegner joined #salt
09:05 xmj with regards to files, can I specify a source: with http(s):// protocol instead of salt:// ?
09:06 jnials joined #salt
09:07 xmj RTFM says yes. nice
09:17 babilen xmj: Don't use it for /etc/sudoers ;)
09:17 TyrfingMjolnir joined #salt
09:18 Katafalk_ joined #salt
09:19 xmj babilen: no such thing
09:24 Katafalk_ joined #salt
09:26 xmj How can I make salt tell my *why* a certain user could not be created, instead of just returning False?
09:31 nkuttler xmj: run the minion with -l debug?
09:33 xmj well that worked
09:36 giantlock joined #salt
09:56 viq engblom: if you want I just pushed a simple update to 2014.1.4 - untested due to current issues with m2crypto on -current
09:57 micko joined #salt
10:03 Teknix joined #salt
10:03 it_dude joined #salt
10:04 slav0nic joined #salt
10:04 it_dude joined #salt
10:07 viq WTF? I have a bunch of minions that just don't try to connect to master... even though telnet from them to master works
10:07 babilen Hi, I just wanted to start using reactors and run into http://paste.debian.net/98165/ when I try to use eventlisten.py -- Am I missing something? Is it working for you? (2014.1.4 master and minions)
10:08 babilen viq: Anything interesting if you run "salt-minion -l debug" ?
10:09 babilen http://paste.debian.net/98166/ that is (sorry)
10:09 viq babilen: nope. I even made it trace, only thing it says is initiating some grains modules, unable to run dmidecode and lspci, "Attempting to authenticate with the Salt Master at <IP>", and then timeouts. The thing is, the machine does not generate outgoing packets
10:10 babilen dmidecode and lspci shouldn't cause this
10:10 viq For what it's worth the minion os an OpenVZ container - but I had minions in other openvz containers work
10:10 babilen Any firewall blocking outgoing traffic? (check "iptables-save" output)
10:11 viq iptables -nvL is empty
10:11 babilen ugh, I don't like OpenVZ - too many "strange" problems with that. But I don't want to simply blame OpenVZ now either
10:11 viq babilen: and again, telnet salt.master 4505 works
10:11 babilen viq: It's typically better to check "iptables-save" fwiw
10:12 babilen yeah
10:12 viq Ah, I guess I see why iptables-save is better. But yeah, everything there is ACCEPT
10:13 babilen I interpret your comment "the machine does not generate outgoing packets" as "I captured traffic with tcpdump and don't see outgoing packets" -- Is that correct?
10:14 babilen viq: btw, colleagues and me are now happily using "salt-run fileserver.update" thanks for mentioning that yesterday :)
10:15 viq babilen: http://paste.debian.net/hidden/0507253e/
10:15 viq babilen: yeah, I am running tcpdump on master, I see incoming packets when I do telnet, I see no packets when I restart salt-minion
10:16 viq babilen: glad to hear :)
10:16 babilen The "the current user cannot execute it" bit is weird
10:16 viq babilen: that's openvz weirdness
10:16 viq or cgroups, or whatever
10:16 babilen Please elaborate
10:16 viq # dmidecode
10:16 viq # dmidecode 2.9
10:16 viq /dev/mem: Operation not permitted
10:16 babilen ah
10:19 babilen Well, I can't see anything in that log apart from "I tried my best, but ran into a timeout" -- Do you see outgoing packets on the minion?
10:19 TyrfingMjolnir joined #salt
10:19 viq I don't have tcpdump on the minion, but someone who knows the infrastructure better said he does not see packets on next hop
10:21 viq So the best I was able to come up with so far is WTF
10:26 TyrfingMjolnir joined #salt
10:29 babilen viq: I would probably continue with a little Python program that uses 0mq to send messages and to check if you see outgoing packets on the minion. If that doesn't work there is obviously something wrong with your minion that is unrelated to salt.
10:31 viq mhmm
10:31 viq Seeing if a restart of the container will help, in a good IT debugging fashion ;)
10:31 babilen viq: Essentially something like http://paste.debian.net/98171/
10:32 babilen haha
10:33 babilen Any idea about eventlisten.py and why it might not work on my box?
10:34 fivethreeo viq hostname or ip in /etc/salt/minion ?
10:34 babilen cf. http://docs.saltstack.com/en/latest/topics/reactor/index.html + http://paste.debian.net/98166/
10:35 cruatta joined #salt
10:35 babilen fivethreeo: Line 35 in the paste somwhow hints that it managed to get hold of the master's IP (assuming the edited IP was actually correct)
10:38 fivethreeo having a similar problem with corosync now, about to find a developer of corosync and slap him :P
10:38 viq fivethreeo: hostname. And telnet to that hostname works
10:38 fivethreeo ah
10:39 babilen viq: Any difference if you change that to IP? Was the IP address correct? Is the Python snippet above working with the master's IP? Did the restart change anything?
10:41 viq babilen: IP address is correct, but I guess trying won't hurt
10:41 viq restart didn't change anything, didn't try the snippet yet
10:45 viq babilen: that snippet, should I run the same thing on both master and minion, or ?
10:46 orbit_darren joined #salt
10:46 war3 joined #salt
10:48 jpaetzel_ joined #salt
10:48 rlarkin|2 joined #salt
10:48 ccase_ joined #salt
10:48 orbit_darren joined #salt
10:49 miqui_ joined #salt
10:49 robins joined #salt
10:50 Valda joined #salt
10:50 babilen viq: The idea was more or less to run it on the minion
10:50 bhosmer joined #salt
10:50 bones050_ joined #salt
10:50 babilen viq: Receiving is not part of it
10:50 yml_ joined #salt
10:51 rnts_ joined #salt
10:51 viq ah, ok
10:51 n0arch_ joined #salt
10:51 AlcariTh1Mad joined #salt
10:51 rawtaz_ joined #salt
10:52 topochan joined #salt
10:52 orbit_darren joined #salt
10:52 viq babilen: http://dpaste.com/00NA73G/
10:53 sroegner joined #salt
10:53 viq babilen: where test.py is your paste with IP changed to hostname of salt master. Or do I need to put IP there?
10:53 babilen no, the actual IP in there
10:53 babilen err
10:54 viq same thing with IP
10:54 babilen and 127.0.0.1 ?
10:54 viq same
10:54 cyrusdav- joined #salt
10:54 crashmag_ joined #salt
10:54 joehh1 joined #salt
10:56 babilen viq: Ah, I get the same thing ... sorry, my hacked together script is too buggy :-/
10:56 babilen I wonder why it worked in a interactive shell before
10:56 robawt1 joined #salt
10:56 beardo joined #salt
10:59 sealibora joined #salt
11:01 scristian joined #salt
11:02 scristian hi all, how is recommended to manage multiple projects with salt? a master for each project ? or a shared repository with all states and use roles? thank you
11:03 viq scristian: first, what do you mean by project?
11:04 orbit_darren joined #salt
11:04 honestly_ joined #salt
11:04 sashka_u1 joined #salt
11:04 scristian I mean project, like a website built with django, and another project built with php
11:04 Heartsbane_ joined #salt
11:04 yidhra_ joined #salt
11:05 scristian right now I have a single master and I use role and a shared repository for both, and a role for each project, so I share same states
11:06 viq Personally I'd keep doing that
11:06 crop joined #salt
11:07 orbit_david joined #salt
11:07 whitepaws_ joined #salt
11:10 viq Or if you abstracted some of the stuff into formulas you could use those
11:19 gammalget joined #salt
11:19 uestra joined #salt
11:28 jcsp joined #salt
11:29 che-arne joined #salt
11:30 jrdx joined #salt
11:30 crashmag joined #salt
11:37 gammalget joined #salt
11:39 ghartz joined #salt
11:39 _ale_ joined #salt
11:40 funzo joined #salt
11:40 linjan joined #salt
11:40 gildegoma joined #salt
11:42 martoss joined #salt
11:42 cruatta joined #salt
11:44 nardev joined #salt
11:45 nardev babilen,
11:45 nardev thank you
11:45 babilen nardev: Hi
11:45 babilen nardev: https://github.com/saltstack/salt-winrepo would, for example, be a (small) collection of "packages" for Windows.
11:45 nardev babilen, i don't know if you understood my problem...
11:46 to_json joined #salt
11:46 nardev i have informational system hosted in linux... and since my smartass admin made all 400 email accounts in our company to be hosted online in office 365 i need
11:46 babilen nardev: It just sounded as if you want to automate a number of tasks such as user creation, the installation of software and other things on remote boxes and salt came to mind. IISTR that salt is one of the few systems that also support Windows, but it belongs to set of software that also comprises cfengine, puppet, chef, ansible, ... if you've heard of those.
11:47 nardev some way to connect to powershell remotely from my server to execute something
11:47 bhosmer joined #salt
11:47 nardev yes but n a remote box i don't have much freedom,...
11:47 nardev ti's some microsoft service as i was explained, that only allows them to connect, and execute some command...
11:48 nardev i don't know if i can position anything there :(
11:48 ilako joined #salt
11:48 robawt1 joined #salt
11:48 xt joined #salt
11:48 Linuturk joined #salt
11:48 masterkorp joined #salt
11:48 babilen nardev: Yeah, I understand that your immediate need is to "run command FOO in powershell on HOST1" (ask about that in ##windows), but I simply wanted to introduce you to a system that would allow you to manage a lot more on your remote boxes
11:48 nardev babilen, http://technet.microsoft.com/en-us/magazine/hh750396.aspx
11:48 nardev babilen, that is great,.. i might need this too...
11:48 nardev my sysadmin is so smart that i need to help him often :D
11:49 babilen nardev: I don't think that salt supports that right now, but it has functionality to run arbitrary commands (on Linux at least) and you could write recipes for that too
11:50 nardev i'm going through the docs...
11:50 babilen nardev: In a way I am not the best person as I am in the lucky position that I never have to work with Windows clients which unfortunately also means that I don't know much about that
11:50 nardev cool
11:51 honestly [A
11:52 nardev i wonder why win server exists at all :D
11:53 babilen nardev: You can, for example, do things such as "salt '*' cmd.run "Get-ChildItem C:\ " shell='powershell'" (execute command "Get-ChildItem C:\ " on all minions and use "powershell" as shell for that) -- There are definitely people who use salt to manage Windows machine and it might make sense to find a more experienced person ...
11:53 tessellare joined #salt
11:53 babilen There is a friendly mailing list at https://groups.google.com/forum/#!forum/salt-users and you could just ask there.
11:54 nardev babilen, cool :) gona post in some forum to see ... thank you.. i really didn't hear for babilen before
11:54 babilen nardev: See http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.cmdmod.html#salt.modules.cmdmod.run for the docs on cmd.run
11:55 babilen nardev: http://docs.saltstack.com/en/latest/contents.html is the beginning :)
11:55 topochan joined #salt
11:57 uestra joined #salt
11:58 Vijay_ joined #salt
11:58 Vijay_ hi
11:59 Vijay_ i have ImportError: No module named mako.exceptions error in salt mine get mako teplate
11:59 Vijay_ installed mako in both master and minion
11:59 babilen nardev: http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.cmdmod.html#salt.modules.cmdmod.script shows how to execute arbitrary powershell scripts via salt
12:01 ekristen joined #salt
12:02 nardev babilen, can i buy you a chocolate ?
12:02 nardev :D
12:02 babilen heh
12:03 * babilen is happily eating a stoats oats bar and doesn't need anything else
12:08 Vijay_ can i get some help on salt mine get please
12:08 TyrfingMjolnir joined #salt
12:08 Vijay_ really need some help
12:09 jnials joined #salt
12:09 babilen Vijay_: I am strictly using jinja so no idea why it can't find mako ... It is typically a good idea to paste the *entire* error to, say, http://paste.debian.net and to include other information about what you are trying to achieve and what you've done so far.
12:13 leventyalcin joined #salt
12:14 Vijay_ Hi babilen, i am trying to get salt minion's mine data using mine.get , in some site i read using mako it can be done, here are the settings
12:15 Vijay_ or, can please let me know how to convert this to jinja format ?
12:15 Vijay_ % for minion, peer_grains in salt['mine.get']('*', 'grains.items').items(): % if "hadoopmaster" in peer_grains["roles"]: minion peer_grains["fqdn"] % endif % endfor
12:16 Vijay_ this checks for hadoop master roles and put the data in a file on minion through sls file
12:17 babilen Vijay_: http://jinja.pocoo.org/docs/templates/#for
12:17 sgviking joined #salt
12:17 Vijay_ this is what i am trying to achive
12:17 Vijay_ http://stackoverflow.com/questions/20897796/using-the-output-of-salt-to-be-used-as-input-for-an-sls-state-or-pillar/20940053#20940053
12:18 leventyalcin Vijay_: this syntax for mako
12:18 thunderbolt joined #salt
12:18 stewpot_ joined #salt
12:18 ZombieTwiglet joined #salt
12:18 akoumjian joined #salt
12:18 Nazzy joined #salt
12:18 jbub joined #salt
12:18 zirpu joined #salt
12:18 jgelens joined #salt
12:18 Jarus joined #salt
12:18 cb joined #salt
12:18 leventyalcin not for jinja
12:18 leventyalcin try to add
12:18 leventyalcin - template: mako
12:19 leventyalcin and make sure mako installed
12:19 Vijay_ i did that and changed the renderer settings to yaml_mako in both master and minion
12:19 Vijay_ and double check the mako installation
12:19 Vijay_ my master is ubuntu and client is rhel5.4
12:21 vbabiy joined #salt
12:23 jakubek how to read in state file names of UP interfaces?
12:35 TyrfingMjolnir joined #salt
12:37 vbabiy joined #salt
12:40 chenrano2002 joined #salt
12:42 TyrfingMjolnir joined #salt
12:43 andrej joined #salt
12:45 jslatts joined #salt
12:45 fivethreeo jakubek: https://github.com/saltstack/salt/blob/87b277f349a4c22cb8d60a4f69b905e919ac91d4/salt/utils/network.py#L531 - you may have to write some grains
12:47 pydanny joined #salt
12:51 cruatta joined #salt
12:53 Vijay_ hey babilen
12:53 Vijay_ i got it
12:53 Vijay_ root@myserver1:/srv/salt# cat myhostsjinja {% for minion, grains in salt['mine.get']('*', 'grains.item').items() %} {% if "hadoopmaster" in grains["roles"] %} {{ grains["fqdn"] }} {% endif %} {% endfor %}
12:53 Vijay_ this worked for me
12:53 jakubek fivethreeo: thx
12:53 sroegner joined #salt
12:59 faldridge joined #salt
13:04 scott_w yo, when i try to do sudo salt state.highstate i'm getting: "Failed to authenticate, is this user permitted to execute commands?"
13:04 ghartz_ joined #salt
13:05 scott_w if i run sudo salt-call state.highstate on the minion, then it works fine
13:05 obimod joined #salt
13:05 resmike joined #salt
13:08 ipmb joined #salt
13:14 vejdmn joined #salt
13:20 jeffasinger joined #salt
13:20 orbit_darren joined #salt
13:22 kaptk2 joined #salt
13:23 mpanetta joined #salt
13:23 jaycedars joined #salt
13:26 TyrfingMjolnir joined #salt
13:26 resmike joined #salt
13:27 mpanetta joined #salt
13:28 jaycedars joined #salt
13:29 GradysGhost joined #salt
13:30 lz-dylan joined #salt
13:33 Luke_ joined #salt
13:34 TyrfingMjolnir_ joined #salt
13:37 Networkn3rd joined #salt
13:37 sfello joined #salt
13:41 quickdry21 joined #salt
13:46 danielbachhuber joined #salt
13:47 jeffasinger joined #salt
13:50 gq45uaethdj26jw6 joined #salt
13:55 tarfik joined #salt
13:55 david_orbit joined #salt
13:57 tarfik Hi, I have question about tests. It is possible to write integration or unit test that checks my own sls config files?
13:58 Networkn3rd joined #salt
13:58 scoates joined #salt
13:59 Ahlee whiteinge: oi
14:02 E7 joined #salt
14:03 viq tarfik: look up kitchen-salt
14:04 samux joined #salt
14:04 E7 Has anyone encountered an issue with a salt push to a widows minion where it is returning false changes/differs?
14:04 tarfik viq: thanks
14:04 gothix_ hey all i want to map software to be installed on minions based on custom grains on ythe minions where do i do this mapping?
14:05 viq gothix_: jinja map, or pillar, or just plain in sls file
14:06 samux hello all
14:07 Ahlee this is teh way we move core.py to _grains/ and muddle with it directly
14:07 ajprog_laptop joined #salt
14:08 Etch joined #salt
14:08 jaimed joined #salt
14:08 samux i think i have a quite common question, however it seems i can't find a good response to it: i'd like to set up some variable globally for any minion and i would like to do that from sls files so that those variables would be available later
14:09 ghartz_ samux, use "grains.present" ?
14:10 samux the most common example is how to set something like  role=web withouth using    salt 'hostname' grains.setval role web or things like that
14:11 gq45uaethdj26jw6 joined #salt
14:11 oz_akan_ joined #salt
14:11 samux ghartz: looks like what i'm looking for
14:12 samux ghartz: is it the best way to do that? looks a bit too much "implicit"
14:12 repl1cant joined #salt
14:12 ghartz_ this is what I use actually. Dunno if it's the best way
14:13 ghartz_ but "grains" states are here for a purpose :)
14:14 E7 left #salt
14:15 viq samux: pillars?
14:15 samux ghartz: that's what i thought
14:15 samux viq: actually i tried a pillar but it didn't worked
14:15 viq oh?
14:16 samux viq: this is the /srv/pillar/top.sls i did
14:16 samux base:
14:16 samux '*':
14:16 samux - dns1: 192.168.21.253
14:17 samux but salt '*' pillar.items
14:17 samux doesn't return me dns1
14:18 scoates joined #salt
14:18 viq samux: no, just like with states, in top you assign an sls file, and then in that set the pillar value
14:19 epcim joined #salt
14:20 Etch joined #salt
14:20 ndrei joined #salt
14:20 Etch joined #salt
14:20 [diecast] joined #salt
14:21 Glitch joined #salt
14:23 scoates joined #salt
14:24 resmike When will 2014.1.4 be available in epel-testing?
14:24 samux viq: yep it worked
14:25 samux so grains and pillar are really overlapping
14:26 viq samux: well, kinda, maybe
14:26 viq samux: grains are information about the minion that the minion knows. pillars are the information (variables) for minion that master knows about and gives the minion from on high
14:28 samux viq so in this case, pillar are best fit
14:28 samux but grains could work too
14:29 whiteinge Ahlee: (belated) oi
14:29 viq samux: from the conceptual side I like pillars more, but be aware that pillars are a bit costly for master, so the more it has to process the slower it will be
14:32 Ahlee whiteinge: eh, nevermind.  Will open a ticket if this hack job doesn't work.  If the hack job works i'll open a pull against develop
14:32 whiteinge alrighty then
14:33 Ahlee bascially, unicode character in windows hostname causes exception through api, salt-call, but not grains.items run from master
14:33 Ahlee er, not hostname, osfullname
14:34 Ahlee so, try: excpet block all the things
14:34 epcim joined #salt
14:38 vbabiy joined #salt
14:38 thedodd joined #salt
14:39 gmoro joined #salt
14:40 whiteinge ah
14:41 racooper joined #salt
14:41 whiteinge someone filed a related-sounding ticket about chinese characters last night
14:42 Ahlee https://github.com/saltstack/salt/issues/12611 ?
14:42 Ahlee if so, that was Andrew
14:42 Ahlee and that's the same issue.
14:43 Ahlee just tried to monkey patch core.py by adding a try:except around osfullname, dropping it into _grains/ and pushing it out, but that didn't work so hot
14:43 Ahlee so back to the drawing board
14:44 druonysus joined #salt
14:44 druonysus joined #salt
14:47 whiteinge doh
14:47 whiteinge there was an issue on the salt-api repo that sounds like this. i added a cross-ref
14:47 mateoconfeugo joined #salt
14:47 jnials joined #salt
14:48 aiqa joined #salt
14:48 uestra joined #salt
14:48 nkuttler joined #salt
14:49 rupsky___ joined #salt
14:51 Ahlee ah, sorry, didn't follow
14:51 samux viq, ghartz : it's working, thanks for the help !
14:51 Ahlee i'll get time next sprint to look at it if it hasn't been by then
14:51 Ahlee but for now, back to what pays the bills
14:54 jeffrubic joined #salt
14:54 sroegner joined #salt
14:55 bemehow joined #salt
14:57 elfixit joined #salt
14:59 hernantz joined #salt
15:00 superted666 joined #salt
15:00 wendall911 joined #salt
15:00 KennethWilke joined #salt
15:01 _gothix_ joined #salt
15:01 hernantz howdy! with this setup http://pastebin.com/eriNw3te, i'm getting an error: Service postgresql uses non-existent option "enabled".  Perhaps "enable" option was intended?
15:01 clark42 joined #salt
15:02 clark42 left #salt
15:02 cruatta joined #salt
15:03 KennethWilke hernantz: the error message is correct, it is enable, not enabled
15:03 KennethWilke just need to drop that d and you're good to go
15:03 jnials joined #salt
15:03 Ansem left #salt
15:04 KennethWilke hernantz: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.service.html#salt.states.service.running
15:04 hernantz KennethWilke, did it ever was "enabled", i've been using this config on ubuntu 12.04, i want to be sure this change is backwards compatible
15:04 hernantz checking
15:05 KennethWilke hernantz, there is also a service.enabled state function
15:05 KennethWilke but if you use it within service the optional parameter is enable
15:05 KennethWilke within service.running*
15:05 MTecknology An an ext_module, what going to be the quickest and fastest way to get a list of all boxes matching a specific id?
15:08 theo-slc joined #salt
15:08 MTecknology The docs indicate I should be able to import salt and have salt.wheel, but that's not available
15:08 MTecknology I lied...
15:09 pdayton joined #salt
15:09 moos3 can anyone explain this why i'm getting this The state "iptables" in sls symp is not formed as a list
15:09 taterbase joined #salt
15:09 it_dude joined #salt
15:10 manfred curl -F 'f:1=<-' ix.io < /path/to/sls/file
15:11 hernantz KennethWilke, oki doki :O
15:15 moos3 anyone see anything wrong with this https://gist.github.com/moos3/76afa53b351cb90a4119 it doesn't seem to like the iptables:
15:16 TyrfingMjolnir joined #salt
15:17 viq moos3: you're missing '- ' before enable and disabled
15:18 jcockhren If anyone has any input: https://github.com/saltstack/salt/pull/12620
15:19 moos3 viq do i need a - in front service too ?  No function declared in state "service" in sls symp
15:20 viq moos3: don't think so
15:22 frasergraham joined #salt
15:23 samux hmmm i might have found a bug: if you want to deploy a file and that user/group is in ldap salt will return an error
15:23 moos3 viq https://gist.github.com/moos3/76afa53b351cb90a4119 now bitches about service
15:24 manfred moos3: don't have a state module selected
15:24 manfred moos3: service.running
15:24 manfred or add a - running above - enabled: True
15:25 moos3 manfred i'm trying to either disabled or enable the service
15:25 manfred you still need to select a function from the service state.py
15:25 manfred https://github.com/saltstack/salt/blob/develop/salt/states/service.py
15:26 manfred you cant just select service, also need the state function
15:26 manfred https://github.com/saltstack/salt/blob/develop/salt/states/service.py#L256
15:26 manfred or
15:26 manfred or you could remove the enable: True, and just have service.enabled
15:26 manfred and service.disabled
15:26 uestra joined #salt
15:27 conan_the_destro joined #salt
15:27 ajolo_ joined #salt
15:27 bemehow_ joined #salt
15:28 manfred moos3: http://ix.io/caG
15:28 manfred or reverse them
15:28 moos3 oh nice thanks
15:29 Gareth morning morning
15:30 bemehow joined #salt
15:35 quickdry21 joined #salt
15:36 epcim joined #salt
15:36 quickdry21 joined #salt
15:37 ndrei joined #salt
15:43 ndrei joined #salt
15:43 jaycedars joined #salt
15:43 tligda joined #salt
15:47 jnials joined #salt
15:49 kermit joined #salt
15:49 anuvrat joined #salt
15:51 chenrano2002 left #salt
15:54 mateoconfeugo joined #salt
15:57 workingcats joined #salt
15:57 mgw joined #salt
15:59 lz-dylan joined #salt
16:01 fllr joined #salt
16:03 saurabhs joined #salt
16:03 KyleG joined #salt
16:03 KyleG joined #salt
16:04 mgarfias joined #salt
16:06 shm_get joined #salt
16:09 MrThrax joined #salt
16:11 meteorfox joined #salt
16:12 forrest joined #salt
16:13 jslatts joined #salt
16:18 oz_akan_ joined #salt
16:18 redondos joined #salt
16:18 redondos joined #salt
16:19 smcquay joined #salt
16:19 war2 joined #salt
16:19 davet joined #salt
16:20 joehillen joined #salt
16:21 bhosmer joined #salt
16:22 travisfischer joined #salt
16:23 oz_akan__ joined #salt
16:24 \ask joined #salt
16:25 obimod joined #salt
16:27 alunduil joined #salt
16:29 druonysuse joined #salt
16:29 druonysuse joined #salt
16:31 resmike joined #salt
16:32 * nkuttler notices he put too much config into pillars that really belongs in grains
16:33 nkuttler otoh it's convenient to have that in revision control.. hrm..
16:33 gsintay joined #salt
16:34 viq nkuttler: I think you can set grains from states
16:35 nkuttler viq: hm, that could be worth a shot
16:35 nkuttler but it'll have to wait anyway for when i have enough time to refactor things
16:35 robawt joined #salt
16:36 UtahDave joined #salt
16:37 [diecast] joined #salt
16:37 MrThrax left #salt
16:37 kermit joined #salt
16:37 theo-slc Is there a Jinja variable for the external FQDN for an AWS EC2 instance?
16:38 nkuttler theo-slc: fwiw, there is a fqdn grain
16:39 theo-slc The grain only gives the internal fqdn.  I also see a grain for the external IP, but not the external FQDN.
16:39 nkuttler oh
16:39 nkuttler not done much aws tbh..
16:40 nkuttler maybe that will change after the aws summit next week though
16:40 viq theo-slc: external IP grains was removed in 2014.1.4 from what I've seen
16:43 UtahDave theo-slc: There's a grain in the salt-contrib repo with a bunch of grains specific to EC2\
16:43 lz-dylan joined #salt
16:46 resmike joined #salt
16:47 theo-slc I found ec2_info.py and ec2_tags.py.  I could use both.  Any documentation on how to integrate these grains?
16:47 _gothix_ joined #salt
16:48 novastar2 joined #salt
16:51 UtahDave theo-slc: just drop them in  /srv/salt/_grains/    on your salt master  and then run   salt \* saltutil.sync_grains
16:54 novastar2 joined #salt
16:54 novastar2 left #salt
16:55 sroegner joined #salt
16:56 chrisjones joined #salt
16:56 n8n joined #salt
16:57 arthabaska joined #salt
16:59 anuvrat joined #salt
16:59 uestra joined #salt
16:59 quantumriff joined #salt
17:00 TyrfingMjolnir joined #salt
17:00 tempspace Anybody know what to do when getting this error to provision GCE with salt? Failed to get the output of 'gce.avail_locations()': 'invalid_grant
17:01 mgw joined #salt
17:01 zain_ joined #salt
17:01 resmike joined #salt
17:01 aw110f joined #salt
17:02 schimmy joined #salt
17:04 cruatta joined #salt
17:04 schimmy1 joined #salt
17:07 amahon joined #salt
17:07 tligda joined #salt
17:09 zain joined #salt
17:11 epcim joined #salt
17:12 eykd joined #salt
17:13 [diecast] joined #salt
17:13 eykd Is there an accepted idiom for executing an sql script? `cmd.script` seems targeted at shell scripts.
17:13 saltn00b joined #salt
17:16 leventyalcin left #salt
17:16 travisfischer joined #salt
17:16 tligda joined #salt
17:16 resmike joined #salt
17:17 viq eykd: maybe the mysql/postgresql modules ?
17:17 UtahDave joined #salt
17:17 rupsky___ joined #salt
17:19 eykd I’m using postgres, but the existing modules are focused on presence/absence of databases/users/groups/extensions.
17:20 viq well, there's http://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.postgres.html#salt.modules.postgres.psql_query
17:21 eykd Oh, hello. I’ve been looking at the states in http://docs.saltstack.com/en/latest/ref/states/all/index.html
17:21 ipmb joined #salt
17:22 viq Those are states, this is an execution module - which you can still call from a state
17:22 vbabiy joined #salt
17:23 tligda joined #salt
17:23 eykd OK, I hadn’t encountered that distinction before.
17:24 viq states are what you put in sls files, eg mystate.sls. execution is what allows you to do 'salt \* state.sls mystate'
17:25 eykd viq: so how would I use an execution module inside of mystate.sls?
17:26 eykd Would I use `postgres.db_create` in the same way I use `postgres_database.present`?
17:26 viq eykd: http://salt.readthedocs.org/en/latest/ref/states/all/salt.states.saltmod.html#module-salt.states.saltmod
17:28 viq eykd: so no, not the same way
17:28 viq you need to apply a certain degree of indirection in there , from what I understand
17:28 oz_akan_ joined #salt
17:29 eykd Hm, maybe I’ll use a shell script for now, and file an issue. :)
17:29 viq eykd: problem is, salt tries to be idempotent, and sql scripts usually aren't
17:30 eykd viq: If I’m doing `CREATE OR REPLACE FUNCTION …` that’s pretty idempotent. :)
17:30 viq sure ;)
17:30 viq have a look at cmd.wait and also unless/onlyif in there
17:31 schmutz joined #salt
17:31 eykd And for that matter, I could probably write a non-idempotent shell script if I put my mind to it.
17:31 krichardson joined #salt
17:31 eykd viq: Thanks for the help.
17:31 viq :)
17:31 resmike joined #salt
17:32 miles32 joined #salt
17:33 beardo joined #salt
17:35 eykd viq: fyi, https://github.com/saltstack/salt/issues/12638
17:37 Ryan_Lane joined #salt
17:38 viq eykd: although, in cmd.script you can specify the shell to use for execution. Maybe you could set that to psql ?
17:38 cruatta joined #salt
17:38 eykd Maybe. I’ll try that.
17:38 david_orbit left #salt
17:43 masterkorp hello
17:43 eykd viq: Nope, that doesn’t work. It tries to execute the script by path inside of psql. :) Oh well.
17:43 masterkorp guys how do maange your states version control wise
17:43 viq masterkorp: not sure what you mean, I use gitfs
17:44 masterkorp like we have a lot of custom logic, i would also be able to do pull request of logic that can be reused
17:44 eykd masterkorp: you can also keep common states as separate repos a la salt ‘formulas’.
17:44 resmike joined #salt
17:45 eykd e.g. https://github.com/saltstack-formulas/
17:45 masterkorp ok
17:46 [diecast] joined #salt
17:46 eykd So then your `gitfs_remotes` just has a list of all the git repos that you want to include on the master.
17:46 masterkorp and how do you keep them in sync and being pushed into salt master
17:46 Ryan_Lane whiteinge: https://github.com/saltstack/salt/issues/12419#issuecomment-42580363 <-- why is that a problem?
17:46 Ryan_Lane I actually can't tell why it would cause issues by reading it, which is where you were going with that :D
17:47 eykd masterkorp: I believe that the gitfs backend fetches updates automatically.
17:47 eykd http://docs.saltstack.com/en/latest/topics/tutorials/gitfs.html is a great introduction.
17:47 masterkorp thank you very much
17:48 masterkorp i want to implement a nice way to reuse stuff and keep company stuff private and be able to give back to the comunity
17:48 eykd That’s the way to do it. :)
17:49 Eugene I have a github repo of my state tree & pillar data, I keep two parallel branches
17:50 Eugene The public one(pepper) is where I do most of the new work, against a test env. Once it works I'll merge into my private branch(slug) and push that to my prod env
17:50 Eugene (never merging slug-->pepper, only pepper-->slug)
17:50 forrest Ryan_Lane, I actually just commented on that
17:50 forrest since when does that work?
17:50 Eugene It works good.
17:51 forrest two file declarations under a single idea is no bueno
17:51 forrest *ID
17:52 druonysuse is it okay to occasionally purge salt's jobs cache manually?
17:52 masterkorp Another question
17:52 masterkorp how do you test code ?
17:52 masterkorp is there an equivalent to test-kitchen ?
17:52 viq masterkorp: kitchen-salt ;)
17:52 Eugene Against my dev env - separate master+coupla minions.
17:52 Eugene If it breaks in prod, oh well, hotfix time.
17:53 Eugene (note: I do not meet any SLAs with this)
17:53 forrest viq, I wish that didn't require chef
17:54 viq forrest: no idea, haven't looked at kitchen-salt yet
17:54 thedodd joined #salt
17:54 forrest and lol at your comment viq
17:54 masterkorp yeah i tried it
17:54 masterkorp it didn't went quite well
17:55 forrest viq, I could be crazy, last time I tried two file declarations in the same ID, it didn't work, but I also haven't been around as much in a bit.
17:55 masterkorp i think a vagrant image as minion can work and a local salt master can work
17:59 TyrfingMjolnir joined #salt
17:59 Ryan_Lane UtahDave: so, no luck for the friday thing
18:00 Ryan_Lane UtahDave: salt folks need to get more involved with the operators list next go around
18:00 viq forrest: no, it doesn't work. I mean that for a new user it isn't obvious that 'file.managed' and 'file.replace' are the same thing and you can't use both in same state
18:00 Ryan_Lane the schedule was made based on interest from the community on the operators list
18:00 AviMarcus joined #salt
18:01 viq forrest: and I think that's what whiteinge is trying to say: the second form makes it more obious
18:05 forrest viq, oh i see, ok I thought he was saying that just makes it more clear
18:05 forrest in regards to how you lay it out
18:05 forrest but yea that is confusing, there's no clear thing that says 'hey avoid doing this.'
18:07 TheRealBill joined #salt
18:07 jaimed joined #salt
18:09 pjs joined #salt
18:10 erjohnso joined #salt
18:10 ajolo_ joined #salt
18:10 schimmy joined #salt
18:11 meteorfo_ joined #salt
18:12 dstokes left #salt
18:12 dancat joined #salt
18:12 schimmy joined #salt
18:12 ajolo__ joined #salt
18:14 logix812 joined #salt
18:15 jnials joined #salt
18:18 mgarfias joined #salt
18:18 pjs_ joined #salt
18:19 catpiggest joined #salt
18:20 layer3switch joined #salt
18:20 `ph8 joined #salt
18:21 junster joined #salt
18:23 busted joined #salt
18:26 jaycedars perhaps i'm not looking in the right place. but i don't see anything. if i use file.comment to comment out a line in a config file, how can i have this _not_ produce an error on subsequent runs of that state?
18:27 jaycedars oh wait. i'm a moron. i misread an error message.
18:30 layer3switch joined #salt
18:31 yaru22_ joined #salt
18:31 eriko joined #salt
18:32 harobed_ joined #salt
18:33 Eugene s/moron/human/
18:33 harobed_ joined #salt
18:34 harobed_ joined #salt
18:34 forrest you just need a rubber duck for your desk
18:35 harobed_ joined #salt
18:35 harobed_ joined #salt
18:36 Eugene $2.99 as an Add-On item! http://smile.amazon.com/dp/B000GUZC2A
18:37 forrest heh
18:37 jnials joined #salt
18:38 smcquay_ joined #salt
18:40 krichardson are any of the powers that be working on making https://media.readthedocs.org/pdf/salt/latest/salt.pdf slightly less concise? i know it's all pretty self-explanatory, but...
18:42 fragamus joined #salt
18:44 Amanda joined #salt
18:45 to_json what doesn't the diagram explain?
18:45 to_json there's big cubes and smaller cubes
18:46 to_json BAM, SALT EXPERT
18:47 echos joined #salt
18:50 seme joined #salt
18:53 krichardson to_json: i get that regarding the cubes, i guess i was just being thrown off by the specific orthogonality
18:56 sroegner joined #salt
18:59 smcquay joined #salt
19:06 AdamSewell_ joined #salt
19:08 kermit joined #salt
19:09 it_dude joined #salt
19:10 whiteinge this documentation refactoring is getting out of hand
19:11 whiteinge how do I get to the table of contents now? is it in the cube?
19:12 n8n joined #salt
19:12 eykd joined #salt
19:13 Gareth whiteinge: http://www.youtube.com/watch?v=Uh7tgX_Uaqs
19:15 Cidan whiteinge, docs.saltstack.com
19:15 theo-slc joined #salt
19:15 Cidan http://docs.saltstack.com/en/latest/contents.html
19:15 whiteinge lol
19:18 eykd OK, how does one set up chains of dependent commands? I’ve got a git repo, and if it changes, I want a script to run against it, and if that script runs, I want a search indexer to run after that. Ex: https://gist.github.com/eykd/8e91bf0467ba72374129
19:18 eykd Right now, I can’t get that search indexer to run.
19:20 it_dude joined #salt
19:21 eykd I also tried wait_in instead of prereq_in, same thing.
19:21 rlarkin|2 can someone offer me some guidance?  I have some environments defined in /etc/salt/master , and the result is my source://salt/path works either in highstate -OR- state.sls , but not both.
19:21 rlarkin|2 absolute vs relative
19:23 opapo joined #salt
19:25 anuvrat joined #salt
19:27 yusuket joined #salt
19:27 fragamus joined #salt
19:31 thedodd joined #salt
19:32 epcim_ joined #salt
19:34 eykd I’ve posted my question about dependency chains to stack overflow, if anybody’s interested in getting some points over there: https://stackoverflow.com/questions/23550914/setting-up-dependency-chains-in-saltstack-states :)
19:45 fivethreeo joined #salt
19:54 bhosmer joined #salt
19:55 kballou joined #salt
19:55 harobed joined #salt
19:56 harobed joined #salt
19:57 harobed joined #salt
19:57 stephas joined #salt
20:06 ipmb joined #salt
20:07 yusuket left #salt
20:09 jrdx joined #salt
20:10 druonysuse joined #salt
20:10 druonysuse joined #salt
20:15 tessellare joined #salt
20:18 it_dude joined #salt
20:18 vxitch joined #salt
20:18 vxitch left #salt
20:19 ajolo__ Hey guys
20:19 ajolo__ Any way of knowing which command is salt trying to execute right now in a minion ?
20:19 ajolo__ I'm having problems mounting and umounting s3fs
20:21 rushm0r3 joined #salt
20:22 Etch joined #salt
20:24 orbit_darren joined #salt
20:24 deares joined #salt
20:26 TyrfingMjolnir joined #salt
20:26 rushm0r3 is there a way to run compound commands from the cli ? ie: cmd.run x, cmd.script x.sh,y.sh
20:28 mgw joined #salt
20:29 sroegner joined #salt
20:29 Heartsbane_ basepi: ping
20:29 basepi Heartsbane_: pong
20:30 Heartsbane_ Sorry I am not current and in a meeting but I was asked to inquire on the status of the Windows minion has that released
20:30 Heartsbane_ Do you know?
20:30 whiteinge ajolo__: http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.running
20:31 Heartsbane_ I don't see 1.4 listed on the page
20:31 resmike joined #salt
20:31 whiteinge rushm0r3: salt '*' cmd.run,cmd.script x,x.sh
20:31 ndrei joined #salt
20:33 rlarkin joined #salt
20:35 Heartsbane_ I haven't seen UtahDave online lately
20:35 rushm0r3 joined #salt
20:36 ajolo__ whiteinge: thanks !
20:38 ajolo__ I need some help with this part of the state: http://pastebin.com/kuFPF8PR
20:38 ajolo__ I'm mounting that dir using s3fs
20:38 ajolo__ But I only need to mount it if it's not already mounted
20:39 ajolo__ I tried unless and onlyif but for some reason it tries to mount it regarding the output of unless and onlyif
20:39 ajolo__ what could be a correct unless option, something like mount | grep s3fs ?
20:41 meteorfox joined #salt
20:42 meteorfox joined #salt
20:43 miles32 left #salt
20:44 whiteinge ajolo__: that should do it, i think
20:44 whiteinge what do you see in the state output? does it look like your unless clause is being executed?
20:45 bhosmer joined #salt
20:45 ajolo__ whiteinge: I'm running debug on the minion, after sometime I notice the only thing returning is the ps -ef
20:46 ajolo__ I have to mannually umount and then the highstate continues running
20:46 ajolo__ So, - unless: mount | grep s3fs - cmd.run: mount /usr/...
20:46 ajolo__ Right ?
20:46 lz-dylan joined #salt
20:46 resmike joined #salt
20:47 whiteinge yeah
20:47 whiteinge can you tell if it is hanging on the mount call in the unless arg or the one in the name arg?
20:48 whiteinge you should see one or the other show up in the minion debug output
20:48 oraqol1 joined #salt
20:49 ajolo__ let me check
20:49 scristian joined #salt
20:51 ajolo_ joined #salt
20:51 kaptk2 Can somebody explain how the libvirt.keys is supposed to work?
20:54 jimklo joined #salt
20:54 ajolo__ joined #salt
20:54 forrest whiteinge, regarding your comment on that issue, I didn't realize that you were showing that as an example of failure
20:54 forrest rather that we should change all instances to that
20:55 whiteinge ah! gotcha :)
20:55 jimklo anyone have problems with the archive.extracted state doing strange things to ownership?
20:55 basepi Heartsbane: sorry for my slow reply (i got distracted), but I don't think he's had time
20:56 basepi He's been at Rackspace partnerpalooza this week
20:56 ajolo__ whiteinge: I think the problem is before the mounting thing, it hangs in file.directory and our little friend clean: True
20:56 ajolo__ :P
20:57 oraqol1 Hi guys, I have a strange question.  I have a database table sorted by serverID with an arbitrary number of column values.  I'd like to take each row and construct a unique grains file with each column  being a grain then propogate those grains files to each minion according to the serverID.  Does this make sense?  Is this possible?  Best way?
20:57 ajolo__ Is there any "unless" or something to check if directory already exists and if not, create it ?
20:58 oraqol1 Basically, I'm trying to dynamically assign grains according to database values about each minion.
20:58 it_dude joined #salt
20:59 whiteinge ajolo__: how about file.directory without the clean arg then a cmd.run with an rm -rf inside that dir? (it's a workaround -- assuming that clean arg is really supposed to be there)
20:59 ajolo__ whiteinge: it was legacy :P it's not suppoused to delete anything. The problem is that I'm doing a git pull and then I need to create an empty directory to use as a mountpoint
21:00 ajolo__ So first I do a file.directory to create it, and then mount
21:00 gothix_ joined #salt
21:00 bhosmer joined #salt
21:00 ajolo__ I'd like to check if the directory exists before running file.directory
21:00 ajolo__ (I can always do it from a cmd.run)
21:01 Heartsbane basepi: k I will email him
21:01 jimklo okay... I think i found my issue with archive.extracted, but not sure how to solve... is there a way to have tar execute as a non-root user when trying to satisfy the archive.extracted state... apparently the tar archives I have were created with the -p option...
21:01 Heartsbane thanks
21:01 to_json joined #salt
21:01 basepi Heartsbane: cool
21:01 resmike joined #salt
21:03 zirpubolci joined #salt
21:03 whiteinge ajolo__: i guess you could do a check in jinja like  {% set exists = salt['file.directory_exists'](the_path) %}. i'd prefer the cmd.run route though. simpler, more error-tolerant
21:03 ajolo__ whiteinge: great, thanks !
21:07 oz_akan__ joined #salt
21:08 it_dude joined #salt
21:08 oraqol1 I think I can probably just build something from scratch, but if theres already a built in salt utility, that would be great :]
21:08 garthk joined #salt
21:10 mgw is anybody using ldap pillar (http://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.pillar_ldap.html)? I'm looking at the code to figure out what that config file is supposed to look like, but not quite getting it.
21:11 martoss joined #salt
21:12 oraqol1 left #salt
21:13 whiteinge oraqol1: if you can do pillar instead of grains, you could whip up a quick external pillar module to query that db. that workflow is do-able with grains but pillar was really designed for that kind of thing
21:14 kermit joined #salt
21:14 BigBear joined #salt
21:16 resmike joined #salt
21:17 BigBear Hi I am following the windows install instructions on http://docs.saltstack.com/en/latest/topics/installation/windows.html and the website for step 9 M2Crypt is down. and the way back machine tells me it has been missing since late in 2013. where can I get a pre-compiled M2crypto for 64-bit python 2.7?
21:22 jimklo BigBear: how are you trying to install M2Crypt?
21:24 sroegner joined #salt
21:24 jimklo BigBear: try installing via pypi: https://pypi.python.org/pypi/M2Crypto/0.22.3
21:25 resmike joined #salt
21:25 BigBear jimklo: I had downloaded the msysgit in step 2. (that link was also broken btw) then this seems to want me to build it under msysgit. but have no success.
21:25 BigBear jimklo: OK, thanks will give that a try
21:28 jimklo BigBear: FWIW, I've never installed salt on Windows... but have installed M2Crypto a number of times on Windows... you may have to use easy_install..
21:28 BigBear I am totally new to this. Learned about salt this afternoon. I am probably missing something in the big picture.
21:29 BigBear if i run y slat-master on a centos linux and have a number of managed windows minions will I have to folow thoe 20+ steps on each before they can join and connect to salt-master and be configured as directed?
21:31 smcquay joined #salt
21:32 timoguin BigBear: 20+ steps?
21:32 BigBear jimklo: how exactly do it use pypi to install https://pypi.python.org/pypi/M2Crypto/0.22.3 ?
21:32 timoguin the EXE installer has all the dependencies bundled
21:32 BigBear timoguin: I am referring to the 20 + steps mentioned in the windows install instructions. http://docs.saltstack.com/en/latest/topics/installation/windows.html
21:33 jimklo BigBear: as long as you have python setuptools installed, you should be able to use `easy_install M2Crypto`
21:33 timoguin BigBear: you don't have to do all that unless you are trying to build your own installer from source
21:33 BigBear jimklo: is pypi = easy_install ?
21:33 timoguin the EXE handles all of that
21:34 BigBear timoguin: thanks - silly me - LOL - I thought this looked a bit too involved ;-)
21:34 jimklo BigBear: pypi is the master Python module repository
21:35 Networkn3rd joined #salt
21:35 BigBear jimklo: but if i run easy_install M2Crypto it errors out saying that it can't find vcvarsall.bat ?
21:36 jimklo sounds like your general build environment isn't setup right..
21:37 jimklo like timoguin suggests you probably only need to do this if you are trying to build an installer
21:37 timoguin yeap
21:38 jimklo however... there are loads of other things that work with easy_install and need to build potentially
21:38 cewood joined #salt
21:38 jimklo typically if you have visual studio installed... there's a visual studio shell that sources that file
21:39 BigBear so which build env shoudl I go for? I have jsut added ms vc++ 12.0 express - so now have a version of mingw32 (or msysgit to be precise)
21:39 jimklo you either need to put vcvarsall.bat on the path or run easy_install from within the visual studio command shell, however YMMV
21:40 anuvrat joined #salt
21:40 BigBear so even after the reboot aftr installing visual c++ express it still says it can't find vcvarsall.bat
21:40 BigBear ok, thanks - makes sense - it's getting late - took a long detour ...
21:41 randeepJalli joined #salt
21:41 elfixit joined #salt
21:42 randeepJalli I have a quick question, what's the format for comments in a SLS file?
21:42 randeepJalli is it a '#' or does it matter?
21:44 taterbase joined #salt
21:45 gildegoma joined #salt
21:45 timoguin randeepJalli: {# . . . #} for jinja
21:48 forrest as a heads up if you're on ubuntu 14.04, looks like there is an issue if you're using a proxy to try and add a repo, but it's not a salt problem
21:49 leventyalcin1 joined #salt
21:50 randeepJalli cool thanks!
21:50 jimklo joined #salt
21:51 gothix_ okay i have an odd situation for some reason a package is not being found in a repository where it exists
21:54 UtahDave joined #salt
21:55 leventyalcin1 I'm trying to concat a string in a template but it only gets first value. Does it make sense to anybody? http://pastebin.com/A4h2xSpe
21:57 mgorman joined #salt
21:57 to_json joined #salt
21:57 UtahDave leventyalcin1: try using   ~    instead of   +
21:57 mgorman Hello #salt. Trying to setup salt-cloud with our VPC. The only piece i'm missing is IP addresses. How do you assign them in the cloud.profile.d/ config files? tried numerous combinations with no luck.
21:58 mgorman should say, using EC2 provider.
21:58 BigBear what else could I be missing? I now have the "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC" in my path and in cmd I can type  vcvarsall and the prompt returns -showing that it found it. but if I type easy_install M2Crypto swigwin  comes back with about 20 lines of "warning 454" lines and it all ends in the line "SWIG\_engine.i(168) : Warning 454: Setting a pointer/reference...
21:58 BigBear ...variable may leak memory.
21:58 BigBear error: Setup script exited with error: Unable to find vcvarsall.bat"
21:59 jimklo joined #salt
21:59 leventyalcin1 UtahDave: I changed it with {% set listen = listen ~ grains['ip_interfaces'][ip][0] ~ ":8080 " %} but same result
22:00 forrest join #salt-devel
22:02 mgarfias joined #salt
22:02 tharkun joined #salt
22:03 UtahDave leventyalcin1: what's the value of    ip   ? in there?  ip_interfaces is a dictionary
22:03 UtahDave BigBear: what are you trying to do on Windows?  I think I missed some earlier parts of the conversation
22:03 jimklo BigBear: http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat
22:06 leventyalcin1 UtahDave: It's a string
22:06 leventyalcin1 apache_vhosts:
22:06 leventyalcin1 default:
22:06 leventyalcin1 interfaces:
22:06 leventyalcin1 - eth0
22:06 leventyalcin1 - lo
22:06 jimklo can anyone tell me how to make the archive.extracted state use a non-root user?
22:06 obimod joined #salt
22:07 UtahDave hmm.  whiteinge, do you have a suggestion for leventyalcin1?
22:07 * whiteinge looks
22:08 whiteinge leventyalcin1: you can use {% set %} from within a for loop. jinja has pretty strict scoping rules
22:08 whiteinge can't*
22:09 UtahDave jimklo: It doesn't look like archive.extracted has an option for running a another user.  Maybe you could follow up with a file.directory with the correct permissions you want
22:10 bhosmer joined #salt
22:10 it_dude joined #salt
22:10 leventyalcin1 whiteinge: humm! I googled to how can i concat string in jinja but couldn't find anything. Any ideas?
22:11 jimklo UtahDave: yeah... i was trying to avoid that... but yeah I think thats what I need to do... for some reason, passing tar_options --owner=<user> --group=<group> doesn't work either...
22:11 whiteinge leventyalcin1: the concatenation operator is ~
22:11 stephas joined #salt
22:11 whiteinge leventyalcin1: what's your end-goal for that "listen" variable?
22:11 UtahDave jimklo: Might not be a bad idea to open an issue requesting that feature.
22:11 jimklo UtahDave: and I have archives that were created with `-p`
22:12 BigBear jimklo: thanks. now it finds compiler and tries building M2Crypto and ends up with 500+ lines of unresolved externals for the linker . guess need to go find python folks that can hel[p me set up a sane python pypi extension build environment.
22:12 whiteinge leventyalcin1: i take it you have more than one virtualhost you want that value for?
22:13 leventyalcin1 whiteinge: yupp!
22:13 toastedpenguin joined #salt
22:13 jimklo BigBear: yes... python + Windows + anything that needs to comppile with VS == many sleepless nights.
22:14 leventyalcin1 whiteinge: I just wanna listen right ip addresses for a virtualhost
22:14 BigBear jimklo: so do "most" use mingw or msysgit build environments or cygwin instead?
22:14 jimklo BigBear: FWIW... i usually install python on Windows the Cygwin route - however not sure if that method is 'salt' compativle...
22:14 whiteinge leventyalcin1: what is the pillar used for there?
22:15 pdayton1 joined #salt
22:15 sgviking joined #salt
22:15 leventyalcin1 whiteinge:
22:15 leventyalcin1 apache_vhosts:
22:15 leventyalcin1 default:
22:15 leventyalcin1 interfaces:
22:15 leventyalcin1 - eth0
22:15 leventyalcin1 - lo
22:16 UtahDave BigBear: Are you trying to install Salt on Windows from scratch?  we have a Windows installer
22:18 whiteinge leventyalcin1: right, what is it used for though? why do you have eth0 and lo definined in your pillar?
22:19 deares joined #salt
22:20 jimklo UtahDave: where's the right place to open an issue? GitHub?
22:20 UtahDave jimklo: yeah,    github.com/saltstack/salt/issues
22:22 pydanny joined #salt
22:23 leventyalcin1 whiteinge: it could make easier than changing monitoring sciprts etc. but i guess it's easy to change other stuff lol
22:25 whiteinge leventyalcin1: in your pastebin you're looping over what looks like ip addresses: {% for ip in pillar['apache_vhosts']['default']['interfaces'] %}
22:25 whiteinge but your pillar example doesn't contain ip addresses
22:25 whiteinge so i'm confused as to what data we're working with and what the end-goal is
22:26 faldridg_ joined #salt
22:26 DaveQB joined #salt
22:31 leventyalcin1 whiteinge: I only getting interface names from pillar and then finding interface ip addresses from grains. there will be couple of web servers for this vhost. i'll use eth0 and lo for a vhost and eth1 for another one
22:31 BigBear UtahDave: yes I think I was reading too fast and missed a few things ;-)
22:31 UtahDave Yeah, unless you're specifically wanting to develop new Salt features on Windows, I would just use the Salt Windows installers
22:32 alunduil joined #salt
22:32 cruatta_ joined #salt
22:32 anuvrat joined #salt
22:33 _gothix_ joined #salt
22:33 BigBear UtahDave: I ws follwoing the Windows install instructions. and it seemed to be about 20+ steps involved. never picked up that once the installer is on the system I am almost good to go. ;-) so I kept working my way down the page and ws getting into a deepert and deeper rabbit hole. ;-)
22:33 whiteinge leventyalcin1: so the machine running apache will have an ip address per vhost and you're pulling all that out of grains, yes?
22:33 UtahDave BigBear: oops!  sorry about that.
22:34 jnials joined #salt
22:34 BigBear UtahDave: where can I leave feedback on the detailed things I found in those instructions that were too old and websites that have since gone away etc. to help clean up those instructions ?
22:35 UtahDave BigBear: well, the docs are in the Salt repo itself, so if you have updates you can make, that would be awesome.
22:35 UtahDave BigBear: Otherwise, you can open an issue here:   github.com/saltstack/salt/issues
22:37 leventyalcin1 whiteinge: i don't. grains gives ip_addressees dictionary itself.
22:39 pdayton joined #salt
22:40 wendall911 joined #salt
22:42 faldridge joined #salt
22:42 ahammond is there an easy way to do something like for ip in grains.ipv4: if not ip.is_private: do useful things
22:43 ahammond having the IP be a python https://docs.python.org/dev/library/ipaddress.html object would work perfectly here.
22:43 * ahammond hates that we're still pretending strings are sufficient in 2014
22:44 jcockhren ahammond++
22:44 ahammond seriously, would it be impossible to have objects that support a str() method by default? Because... that'd be sexy.
22:45 jcockhren there is
22:45 jcockhren __repr__
22:45 jcockhren __str__
22:46 jcockhren no trollin
22:47 jcockhren not*
22:51 AndChat-216489 joined #salt
22:51 tligda I need help with a salt-call command that is failing. It works when I use salt on the master and it fails strangely when I use it salt-call on the minion. Error message is here: http://pastebin.com/ATTj2s33
22:55 tligda Something about "coercing to Unicode"
22:55 whiteinge ahammond: there's an ip address class in salt.utils.network that you could make a quick execution module that returns a list of those objects
22:55 whiteinge looks like it might be a back-port of the lib you linked...
22:56 whiteinge doesn't answer your question about why that's not builtin, of course. :)
22:56 ahammond whiteinge I think I actually wrote that. uh... how do I do that in a state .sls?
22:57 * ahammond has been away from salt for almost a year
22:57 jcockhren hehe
22:57 obimod joined #salt
22:58 whiteinge ah. :)   you'd have to wrap it with a quick execution module
23:00 bones050 joined #salt
23:01 ajprog_laptop joined #salt
23:07 tligda After a little more testing, it seems to have to do with having a comma in the command for cmd.run
23:09 whiteinge ahammond: http://paste.fedoraproject.org/100315/95905391
23:09 whiteinge put that in /srv/salt/_modules
23:14 meteorfo_ joined #salt
23:16 jcockhren timoguin: I figured out the issue
23:17 theo-slc Will file.rename accept wildcards?
23:20 jcockhren maybe one od the salt devs can verify this:
23:23 jnials joined #salt
23:24 jcockhren is the usage of __salt__['config.get'] in salt code suppose to traverse the configuration like: minion pillar, minion config, master config?
23:25 jcockhren and did that change in 2014.1+
23:29 UtahDave jcockhren: yeah, it should go most specific to more general,  minion config - pillar - master config
23:30 jcockhren hmmm
23:32 jcockhren https://github.com/saltstack/salt/pull/12620 the __salt__['config.get'] in this pull isn't retieving the config values from the master for this returner
23:34 sroegner joined #salt
23:34 theo-slc Can I overwrite standard modules by placing them in /srv/salt/_MODULES  example tomcat.py?
23:35 jcockhren hmmm
23:35 yaru22_ joined #salt
23:36 jcockhren ah. I see: https://github.com/saltstack/salt/issues/12641
23:36 jcockhren timoguin: ^ this is what I was hitting
23:38 frasergr_ joined #salt
23:41 yaru22_ joined #salt
23:42 yaru22__ joined #salt
23:45 bhosmer joined #salt
23:45 ahammond whiteinge thanks!
23:51 leventyalcin joined #salt
23:53 whiteinge theo-slc: yes indeed
23:54 obimod joined #salt
23:58 zain_ joined #salt

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