Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-10-30

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

All times shown according to UTC.

Time Nick Message
00:00 glyf joined #salt
00:02 SheetiS joined #salt
00:12 bluenemo_ joined #salt
00:12 bluenemo_ joined #salt
00:15 aparsons joined #salt
00:16 ekristen joined #salt
00:21 esotericalgo joined #salt
00:26 zlhgo_ joined #salt
00:27 troyready joined #salt
00:28 alex-mesos joined #salt
00:35 jalaziz joined #salt
00:37 zlhgo_ joined #salt
00:38 bhosmer_ joined #salt
00:40 hasues joined #salt
00:43 TheThing joined #salt
00:45 darvon joined #salt
00:54 TheThing joined #salt
00:56 ajolo joined #salt
00:56 Ch3LL_ left #salt
01:01 hasues So when I'm trying to use salt-cloud with vsphere to provision a VM, I get this error
01:01 hasues None@<IP>'s password: Usage: salt-cloud
01:01 hasues Claims there is a profile error, and that there is a wrong password.
01:02 hasues Where do I configure this?
01:02 noooob https://github.com/SS-archive/salt-states this is very helpful;
01:03 hasues /etc/salt/cloud I have defined user, password, ssh_key_name, ssh_key_file...
01:03 pjs joined #salt
01:03 hasues It looks like it is trying to use "None" as a user?
01:03 hasues Should I create a None user on the image?
01:03 hasues If so, what privileges should it have?
01:04 loz-- joined #salt
01:05 hasues Similar issue to https://github.com/saltstack/salt/issues/13232
01:05 ek6 joined #salt
01:05 [vaelen] joined #salt
01:06 aqua^mac joined #salt
01:09 pjs joined #salt
01:09 knot joined #salt
01:14 Cidan joined #salt
01:14 g3cko joined #salt
01:16 zsoftich_ joined #salt
01:16 nliadm joined #salt
01:17 borgstrom joined #salt
01:17 loz-- joined #salt
01:23 berto- joined #salt
01:25 JPaul joined #salt
01:26 hardwire joined #salt
01:26 anotherZero joined #salt
01:29 primechuck joined #salt
01:29 forze joined #salt
01:29 glyf joined #salt
01:30 nitti joined #salt
01:31 racooper joined #salt
01:34 skarn joined #salt
01:35 aparsons joined #salt
01:37 aquinas joined #salt
01:37 BossR joined #salt
01:39 elfixit joined #salt
01:49 noooob_ joined #salt
01:49 noooob_ goodnews
01:49 noooob_ i have a plan.
01:50 noooob_ got my environment prepped. notes noted... will play with it more in the morning.
01:50 noooob_ thanks for the help?
01:50 noooob_ yes... def not a q.. :D
01:51 smcquay joined #salt
01:54 hasues joined #salt
01:54 hasues left #salt
01:57 nitti joined #salt
01:58 aparsons joined #salt
02:00 anotherZero joined #salt
02:00 racooper joined #salt
02:09 Nexpro joined #salt
02:10 BossR joined #salt
02:12 malinoff joined #salt
02:16 MugginsM joined #salt
02:39 crocket joined #salt
02:40 crocket In https://bpaste.net/show/52f30321b80b , sls: master.libvirt can't be required even if it exists.
02:40 crocket master.libvirt is a directory that contains init.sls
02:40 crocket master.libvirt is executed, but pkg state fails to require sls: master.libvirt
02:47 ilbot3 joined #salt
02:47 Topic for #salt is now Welcome to #salt | 2014.1.13 is the latest | Help us test the 2014.7 RC! http://bit.ly/salt-rc | Please be patient when asking questions as we are volunteers and may not have immediate answers | Channel logs are available at http://irclog.perlgeek.de/salt/
02:52 zach joined #salt
02:53 crocket O
02:56 gmcwhistler joined #salt
02:57 crocket It seems include is not processed by sls requisites.
02:59 srage joined #salt
03:00 davet joined #salt
03:01 racooper joined #salt
03:08 Nexpro1 joined #salt
03:11 bhosmer joined #salt
03:22 TheThing joined #salt
03:22 glyf joined #salt
03:24 lz-dylan so I know it's still RC, but is anyone packaging up Helium into dpkgs? :)
03:27 ramishra joined #salt
03:28 mdasilva joined #salt
03:31 ramishra joined #salt
03:37 BossR joined #salt
03:41 ramishra joined #salt
03:45 anteaya joined #salt
03:45 sav joined #salt
03:45 favadi_ joined #salt
03:55 ingwaem joined #salt
03:56 crocket Does anyone know how to simulate keyboard input to a shell program in salt?
03:59 bezeee joined #salt
04:09 garthk Trying to install a .deb file for software with a dash in it; getting “The following packages failed to install/update: X” where X is the part of the name before the dash.
04:11 ramishra joined #salt
04:12 glyf joined #salt
04:16 noooob__ joined #salt
04:16 jalbretsen joined #salt
04:16 noooob__ gath are you stil showing that error?
04:17 noooob__ you may want to see what dependencies your package has... looks like its trying to run a graphical environment, perhaps grab a different libvirt src
04:19 ramishra joined #salt
04:26 TyrfingMjolnir joined #salt
04:30 garthk noooob: finally figured it out: I had the truncated name in the sources:\n- X: salt://X-Y…
04:31 jalaziz joined #salt
04:37 thayne joined #salt
04:44 cmthornton joined #salt
04:59 perfectsine joined #salt
05:00 bhosmer joined #salt
05:00 nitti joined #salt
05:04 thayne joined #salt
05:19 TyrfingMjolnir joined #salt
05:19 crocket How do you simulate keyboard input to shell in salt?
05:35 ghanima joined #salt
05:36 epcim_ joined #salt
05:38 mfournier joined #salt
05:46 malinoff crocket, expect
05:47 crocket malinoff, I'm running pempty
05:47 malinoff crocket, i'm not sure what is this
05:47 crocket malinoff, Do you know how to do a partial match on a prompt?
05:47 TheThing joined #salt
05:47 crocket I can't match the last line of a multiline prompt.
05:48 malinoff crocket, i really don't understand what are you talking about :) http://pastie.org is a nice tool to show an example
05:49 crocket malinoff, I need to automate https://bpaste.net/show/763ff68d4fa6
05:49 crocket The first prompt is on the line 18.
05:50 malinoff crocket, write expect script
05:52 crocket malinoff, I just wrote https://bpaste.net/show/686e6f080b44 which doesn't match a first prompt.
05:53 malinoff crocket, i'd suggest to use pure expect, not pexpect
05:53 malinoff crocket, you should try to add a sleep(0.02) before the first prompt
05:54 crocket malinoff, pexpect takes care of timeout.
05:55 malinoff crocket, all issues i had with expect were about timeouts
05:55 crocket malinoff, Does expect require X?
05:55 crocket Because it requires tcl.
05:55 malinoff crocket, i don't remember
05:55 crocket Never mind
05:55 crocket malinoff, I just needed to write the right regex.
05:56 crocket It was a regex match.
05:56 malinoff http://regexr.com
05:57 alice|wl joined #salt
06:03 alice|wl hello, I d like to have a dict in pillar from multiple files. like dokuwiki./srv1: srv1.sls and dokuwiki./srv2: ind srv2.sls. So I can foreach over pillar.get( 'dokuwiki' )
06:03 alice|wl is that possible?
06:06 alice|wl oh, reading the docs the sls files should be merged, so no problem. I m just missing something
06:07 Leonw Hi... small question...
06:07 Leonw the comunication between the master and the minions... Is it encrypted?
06:07 aurynn yes
06:07 Leonw Nice! :)
06:07 Leonw thanks
06:07 Leonw :D
06:10 crocket Does file.copy support salt:// protocol in source?
06:10 crocket The reference doc doesn't say nothing about it.
06:16 eightyeight joined #salt
06:18 active8 joined #salt
06:24 crocket OK
06:24 crocket Does anyone know how to make salt execute stateA before stateB only if stateB executes?
06:25 aurynn that doesn't make sense
06:29 crocket OK
06:29 crocket aurynn, prereq does it!!!
06:29 babilen why do you ask then?
06:29 crocket If stateA pre-requires stateB, I can do it.
06:29 crocket babilen, I just remembered it after I asked the question.
06:30 crocket babilen, This is the first time I used prereq.
06:30 babilen tmi
06:30 crocket So, it could take time to remember prereq.
06:40 mdasilva joined #salt
06:49 bhosmer joined #salt
06:49 ghanima curious anyone around that explain how to create custom grain modules
06:49 ghanima i am looking at the reference http://docs.saltstack.com/en/latest/topics/targeting/grains.html
06:50 ghanima i am running salt locally in development mode and when trying to push the grains module nothings gets pushed to the minion but i don't see any error
06:50 ghanima ithis after i increase the log level to debug
06:56 duncanmv joined #salt
06:57 babilen ghanima: Custom grains are super easy: https://www.refheap.com/92468 is one example for LACP, but you just implemenent a "foo" function that returns a dictionary that sets "foo" to the value you want. You would then place that in _grains/ and sync it to your minions with saltutil.sync_grains (which is run on highstate). If you need it to be synced earlier you can use a reactor as detailed on ...
06:57 babilen ... http://docs.saltstack.com/en/latest/topics/reactor/#syncing-custom-types-on-minion-start
06:58 ghanima babiien: thanks man
06:58 colttt joined #salt
06:59 ghanima babiien: your example doesn't use a dunder dictionary
07:00 ghanima is there a reason why it does
07:00 ghanima n't
07:05 Furao joined #salt
07:07 BossR joined #salt
07:12 babilen ghanima: Whatfor would it use it?
07:13 babilen https://github.com/saltstack/salt/blob/develop/salt/grains/core.py has many examples of the "core" grains
07:14 babilen (and IRC clients support tab-completion of nicknames, try "bab<TAB>")
07:14 babilen ^ most
07:15 ghanima babilen: wow that is awesome thanks for  the tip
07:15 ghanima babilen: one other question my file_root is set in /srv/salt/base i presume my _grains should be placed in that subdir
07:15 trikke joined #salt
07:16 epcim_ joined #salt
07:30 linjan joined #salt
07:41 b1nar1_ joined #salt
07:45 lcavassa joined #salt
07:47 Valdo joined #salt
07:51 slav0nic joined #salt
07:54 flyboy joined #salt
07:56 ramishra joined #salt
08:01 ntropy joined #salt
08:06 ghanima anyone online
08:09 AirOnSkin I am - though I probably won't be of much help. I'm quite new to Salt...
08:09 oyvjel joined #salt
08:10 ghanima AirOnSkin: soooo trying to write a custom grain grain module
08:11 ghanima but i want to apply it to all minions.... from what I read in order to sync grains I have to sync highstate first and need a top.sls
08:11 ghanima but I can't find is exactly how do I define my top.sls file for a grain module
08:13 malinoff ghanima, you can use salt \* saltutil.sync_all with no top.sls defined
08:15 ghanima malinoff: so when i run that command i don't see the _grains directory created on the minion
08:15 crocket I don't know what is wrong with https://bpaste.net/show/fab6f83e6580
08:15 ghanima and there is no error on the minion side or the master
08:15 crocket On line 38, I see "[ERROR   ] Recursive requisite found"
08:16 malinoff ghanima, it should be in /var/cache/salt
08:17 ghanima malinoff: so when i go to that directory i see the base directory that i have defined for file_roots
08:17 ghanima but i don't see the directory _grains
08:17 malinoff ghanima, idk - try to increase the verbosity
08:17 ghanima its on debug
08:18 ghanima should i increase to garbase
08:18 CycloHex joined #salt
08:22 CycloHex Morning, everyone. I'm trying to write a bash script, which includes some salt commands.. Whenever I run my script, however, the command gets parsed fine, but I get an error stating that the command wasn't found
08:22 CycloHex Is it possible to write scripts with salt commands? (eg salt '*web*' test.ping
08:22 CycloHex )
08:25 ShibMcNe CycloHex: isn't it just a PATH problem with your script env ?
08:25 ghanima malinoff: so from what i see  i am getting the file error when starting the minion
08:25 CycloHex that salt isn't included in my PATH?
08:25 ghanima 2014-10-30 03:23:10,058 [salt.loader      ][TRACE   ] Skipping /home/chancock/pydev/saltdev/var/cache/salt/minion/extmods/grains, it is not a directory
08:26 ghanima just this be dynamically created after you install salt-minion
08:26 ShibMcNe CycloHex: if you replace "salt '*web*' test.ping" with "which salt", does it ouputs salt's path ?
08:26 ghanima 2014-10-30 03:23:11,227 [salt.loader                              ][TRACE   ] Skipping /home/chancock/pydev/saltdev/var/cache/salt/minion/extmods/returners, it is not a directory
08:26 brayn joined #salt
08:27 CycloHex only if I don't use quotes
08:27 CycloHex So it's a quoting issue
08:27 CycloHex bleh :(
08:27 ShibMcNe my quotes where just there for clarity purpose, I don't think this is a quoting issue
08:28 ShibMcNe what is the exact error message you are getting ?
08:29 CycloHex I had quotes around my command, that's why it didn't pârse right
08:29 mdasilva joined #salt
08:29 ShibMcNe ho, ok =]
08:29 CycloHex but now I want to salt '*foo*' bar.baz pillar="{eggs:{'id': 'cheese'}}
08:30 CycloHex but that is just too many quotes.. And I haven't done a lot of quote escaping yet.. So I'll just keep on searching the web on how to escape these quotes without surrounding the command in quotes
08:32 ShibMcNe I don't see any issue with those quotes, appart from the missing " at the end.
08:33 ShibMcNe if you need to escape something in bash use \
08:33 CycloHex But can I just declar eit like this in bash, no, right?
08:34 tomspur joined #salt
08:34 ShibMcNe http://docs.saltstack.com/en/latest/topics/releases/0.13.0.html#command-line-pillar-embedding
08:34 crocket Never mind
08:34 crocket I fixed the errors
08:36 CycloHex ShibMcNe: cli isn't the same syntax as bash-script
08:36 CycloHex sadly enough
08:37 karimb joined #salt
08:37 ShibMcNe CycloHex: err, isn't bash the default shell for CLI on your system ? ^^
08:38 bhosmer joined #salt
08:38 CycloHex yes, but I'm running a script.. and in that script, quotes are interpreted in another way than when you just give the command on the cli itself
08:38 ShibMcNe do you use this shebang at the start of your script : #!/bin/bash ?
08:39 CycloHex yes, I do
08:39 CycloHex but using salt 'foo' test.ping will not work
08:39 CycloHex in my script
08:39 CycloHex on cli itself it works, though
08:40 ShibMcNe if you are using bash interactively and execute your script with bash, the outcome should be the same
08:40 CycloHex well it obviously isn't ^^
08:41 ShibMcNe have you tried to run it with #!/bin/bash -x ?
08:41 fbraad joined #salt
08:42 CycloHex thanks!
08:42 CycloHex ShibMcNe: this worked for me.. I was looking for such an option
08:42 kno joined #salt
08:43 ShibMcNe this option enables debug output
08:43 CycloHex really weir dthat this works, then
08:43 ShibMcNe and if you disable it again ?
08:47 PI-Lloyd joined #salt
08:54 CycloHex What the.. It works without the -x now as well.. But I've used a more simple command.. I think I'll have ot escape my quotes, but that doesn't work really well either..
08:56 CycloHex when +I paste my lines in my test-script, it works.. How is that even possible :s It works now, so thanks, ShibMcNe
08:57 ShibMcNe CycloHex: an invisible character may have slipped in your original script
08:58 CycloHex Is that even possible :s
08:59 ShibMcNe you can use cat -v to check for those
09:00 crocket left #salt
09:08 ndrei joined #salt
09:09 badon joined #salt
09:10 cliff-hm joined #salt
09:12 Furao joined #salt
09:26 ggoZ joined #salt
09:27 lothiraldan joined #salt
09:30 bhosmer joined #salt
09:38 alex-mesos joined #salt
09:41 alex-mesos joined #salt
09:46 felskrone joined #salt
09:48 wnkz joined #salt
09:55 N-Mi joined #salt
09:57 ramishra joined #salt
09:59 j-saturne joined #salt
10:00 MohShami joined #salt
10:01 MohShami hey guys, I'm trying to use "salt '*' --sebset=1", which targets one of the hosts, but that host is always the same, the manpage says random, I can't find any documentation for the format, what am I missing?
10:08 ingwaem MohShami: is that the correct spelling ? sebset? I've never seen it myself personally
10:09 bhosmer_ joined #salt
10:09 MohShami ingwaem: Sorry my bad, --subset=SUBSET
10:10 MohShami any idea what SUBSET should look like?
10:11 jhauser joined #salt
10:11 ingwaem you could do it with a partial glob, or target a set of minions based on a grain value
10:12 ingwaem although I'm not sure, I hadn't seen that switch before, although I must admit I haven't had to randomly select a sub set of minions before :)
10:12 ingwaem I'll do some quick poking too
10:13 maptz1 joined #salt
10:15 linjan joined #salt
10:15 maptz1 Hi there! In fact you're right there is a lot of people here. I can continue my first salt install :D
10:17 ingwaem MohShami: I see it also refrenced here slightly differently, but seems yes, should be a 1: http://docs.saltstack.com/en/latest/ref/clients/
10:17 ingwaem SLC.cmd_subset('*', 'test.ping', sub=1)
10:18 mdasilva joined #salt
10:18 ingwaem MohShami: seems we might be misunderstanding the feature entirely however...seems this might be the first request for it: https://github.com/saltstack/salt/issues/804 in there it's a subset of a selection of minions to process at once, like a batch limit
10:19 MohShami ingwaem, I see, so it does not randomize the selection
10:19 MohShami I was hoping it would
10:19 ingwaem MohShami: so from what I read on the "issue", selecting * will call them all, then setting subset of 1 would process the command on each minion sequentially...and if it was 5 it would do blocks of 5
10:20 ingwaem I think to select a random minion you would want to look more into the glob targeting
10:20 ingwaem the * can be replaced with many other values, including partial values, grains, pillars, etc
10:20 MohShami I see, so test.ping in this case would run on all of them but the a single result will be returned, right?
10:21 peters-tx joined #salt
10:22 ingwaem i'm not completely sure at this point...still poking
10:23 MohShami ingwaem, I'm thinking about building a salt-based monitoring system, and this feature would have been handy
10:24 ingwaem MohShami: what does it have to actually do? select a random minion out of all of them?
10:25 ingwaem MohShami: I've been building a system too but heavily utilizing the api so that I can decouple everything...so I would call a list of minions (unless already stored in db), and then randomly select one out of that
10:25 lothiraldan_ joined #salt
10:25 MohShami well, the system has to do two types of checks, check_http on my servers, which already have salt-minion, so I'd just do salt -G 'role:web' cmd.run 'check_http' --returner redis
10:25 MohShami the second part is to monitor things where I can't have salt-minion, switches, routers, ... etc
10:26 MohShami so I might do something like salt '*' --subset 1 cmd.run 'check_ping router1' --returner redis
10:26 MohShami ingwaem: ^
10:26 k3ys3r after a bit of advice on structuring/best practice.  I am looking to move our multipath configuration into salt.  We have 3 locations that each have a SAN they talk to, so 3 different multipath.conf files (with >100 aliases in each).  Is it best to just have 3 copies of multipath.conf in seperate dirs - ie multipath.location.multipath.conf or just have 1 and try and utilise pillars for *all* those seperate entries....?
10:27 MohShami ingwaem: makes sense? do you think I should do a different approach?
10:30 lothiraldan joined #salt
10:30 ingwaem MohShami: the first part should be ok, since you're saying to all your web servers do do this ping, the second I guess is still work in progress, but not sure about the final...since you're monitoring you should already know what machines you have in the stack...I have a similar table which keeps track of the machine names, and then I have another process which uses salt ping every five minutes, calling each minion in the taregeting
10:30 ingwaem glob: salt (minion1,minion2,minion3) test.ping....otherwise if a machine isn't connected to salt then it won't show up in the list, so would be hard to look up and determine an issue...just my thoughts...but seems like an intersting situation
10:31 fbraad joined #salt
10:31 ingwaem there must be somethign for randomly targeting within a sub range though, perhaps during the day us time would help since the salt guys will be online then and have a much larger knowledge base than my poking at salt to watch it jiggle :)
10:32 alex-mesos joined #salt
10:32 MohShami ingwaem, I'll be keeping a table with machines in redis, if a machine has a late result, I should get an alarm
10:32 MohShami ingwaem, but yeah the design is still a work in progress
10:32 alex-mesos joined #salt
10:32 intellix joined #salt
10:33 ingwaem MohShami: then you can store the machine names, and then use them when targeting...you could also randomize the result out from the database at execution time so that it's a machine you know that should exist to execute the command.
10:34 MohShami ingwaem, very interesting idea, I'll just use my code to randomize
10:34 MohShami ingwaem, but I'll have to make sure to handle multi-master operation
10:34 ingwaem use salt-syndic
10:35 MohShami I think this would be a very interesting project, but it will require a lot of development
10:35 MohShami I'm very unhappy with the state nagios is in ATM
10:35 ingwaem MohShami: syndic allows you to set up masters, and master of masters, if any get a command and they are part of the syndic then they will pass the commands on to the relevant master to deliver and run
10:35 ingwaem oh yea :) monitoring can be a nightmare
10:36 ingwaem I work on tons of client side synthetic monitoring...can it do this, can it do that, rather than just a service repsponding :)  however that's my job so I won't bore you with shop
10:36 MohShami ingwaem: I was thinking that for the time being I could use the result of "salt-call -l warning --out=yaml publish.publish '*' state.show_highstate" to generate the required nagios configuration files
10:37 MohShami ingwaem: I'm always happy to share ideas :)
10:39 ingwaem :) yea
10:44 pestouille joined #salt
10:47 giantlock joined #salt
10:54 CeBe joined #salt
11:01 bhosmer_ joined #salt
11:02 SheetiS joined #salt
11:05 ramishra joined #salt
11:09 AirOnSkin Our company is behind a proxy. The system wide environment variables (http_proxy, https_proxy, HTTP_PROXY, ...) are configured in /etc/profile.d/proxy.sh. When I'm connected to the host via SSH an run 'yum -y install telnet' it works. When I try to install the package via salt.states.pkg.installed the package can't be installed...
11:10 AirOnSkin In what way does Salt honor proxy environment variables?
11:10 AirOnSkin Or would I define a proxy for the salt minion in this case? Because all connections to the outside world need to go over that proxy...
11:13 pestouille_ joined #salt
11:14 scottpgallagher joined #salt
11:16 viq yum you say....
11:17 viq AirOnSkin: it would appear you can put proxy config in yum.conf
11:18 viq http://www.cyberciti.biz/faq/centos-redhat-fedora-linux-using-yum-with-a-proxy-server/
11:19 viq http://wiki.centos.org/TipsAndTricks/YumAndRPM?highlight=%28proxy%29#head-ea1fc5d78f578114f4843e57627ebae9cc4fcb5a
11:19 viq And since you already have salt in place, it shouldn't take long to have that config in place accross all your machines ;)
11:21 lcavassa joined #salt
11:26 darvon joined #salt
11:27 pdayton joined #salt
11:29 hobakill joined #salt
11:29 jhauser joined #salt
11:33 ph8 joined #salt
11:39 gmcwhistler joined #salt
11:40 jhauser joined #salt
11:44 mdasilva joined #salt
11:50 ze- arg. seems --subset and -b don't do well together.
11:52 aqua^mac joined #salt
11:55 darvon joined #salt
11:58 pdayton joined #salt
12:08 AirOnSkin viq: yeah, I know about that. I wanted to know if there is something in Salt to configure, but I guess I'll just put in in yum.conf
12:09 linjan joined #salt
12:12 ggoZ joined #salt
12:15 intellix joined #salt
12:15 miqui joined #salt
12:17 eliasp now this is interesting: https://code.facebook.com/posts/844436395567983/introducing-osquery/
12:17 eliasp this _could_ serve as a generic interface to get grains from the OS without all the current hackery happening in some of the grains…
12:17 eliasp besides that, it's a generic approach which could also be used by others (e.g. Puppet Facts) or in monitoring, so this could de-duplicate all the efforts for developing Grains/Facts/etc.
12:19 eliasp so all we'd have to do to get a grain from the OS: write an SQL query for it
12:19 Nexpro joined #salt
12:19 eliasp osquery will take care of all the ugly details
12:20 eliasp sure, we'd still have custom set grains, but for all OS/hardware related things, this could be really nice
12:22 glyf joined #salt
12:30 CycloHex How can I print a jinja variable ( {% set foo = bar %} ) inside another jinja black ( {% for id in pillar.get['id: FOO']
12:31 CycloHex jinja block*
12:31 pdayton joined #salt
12:31 CycloHex the FOO should be the printed variable
12:36 X86BSD joined #salt
12:40 mr_chris joined #salt
12:47 bhosmer joined #salt
12:48 Twiglet joined #salt
12:48 vejdmn joined #salt
12:48 karimb joined #salt
12:49 cpowell joined #salt
12:50 mr_chris joined #salt
12:52 vejdmn joined #salt
12:53 vbabiy joined #salt
12:54 b1nar1 joined #salt
12:57 tmmt joined #salt
12:57 t0rrant joined #salt
12:57 N-Mi joined #salt
12:57 N-Mi joined #salt
12:57 CSa joined #salt
12:58 vbabiy joined #salt
12:58 borgstrom joined #salt
13:00 glyf joined #salt
13:00 moodperson joined #salt
13:00 lothiraldan joined #salt
13:01 crane joined #salt
13:03 racooper joined #salt
13:04 crocket joined #salt
13:04 crocket hi
13:05 crocket Does salt virt runner require libguestfs even if qemu-nbd is available?
13:07 glyf joined #salt
13:10 bhosmer joined #salt
13:10 micah_chatt joined #salt
13:10 nitti joined #salt
13:10 teebes joined #salt
13:12 micah_chatt_ joined #salt
13:12 dmccc joined #salt
13:13 borgstrom joined #salt
13:17 mdasilva joined #salt
13:20 ndrei joined #salt
13:22 nbari joined #salt
13:23 dork joined #salt
13:23 nbari hi all, how can I print/echo variables in a state ?
13:24 nbari while running salt 'test-minion' state.sls test test=True -l debug I would like to see the vars on console
13:24 nbari any idea ?
13:26 bbnix joined #salt
13:26 vejdmn joined #salt
13:26 marnom joined #salt
13:28 babilen nbari: Use state.show_sls
13:28 nbari thanks let me search about it
13:28 crocket How do I execute salt.modules.aptpkg in an orchestrate state?
13:28 crocket salt-run state.orchestrate blah
13:29 pestouille joined #salt
13:29 hosom left #salt
13:30 babilen nbari: http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.state.html#salt.modules.state.show_sls (in case your google-fu is weak)
13:30 fbraad joined #salt
13:32 Furao joined #salt
13:32 pestouille_ joined #salt
13:33 vejdmn joined #salt
13:34 mpanetta joined #salt
13:37 borgstrom joined #salt
13:38 fbraad left #salt
13:39 ckao joined #salt
13:39 XenophonF what kind of crazy escaping do i need to do to get a file.managed state working under windows?
13:41 krak3n` joined #salt
13:41 aqua^mac joined #salt
13:43 perfectsine joined #salt
13:43 eliasp XenophonF: just forward slashes should work fine for windows paths
13:44 XenophonF eliasp: I'm getting the error "Unable to manage file: Objects of type 'int' can not be converted to Unicode."
13:44 eliasp XenophonF: could you nopaste your state?
13:44 XenophonF let me put together a state.single example
13:44 viq "could you not paste your state?" ;)
13:45 eliasp ;)
13:45 TyrfingMjolnir joined #salt
13:46 XenophonF gah it's probably the user or group i'm passing
13:46 XenophonF never mind - i need to rework the file ownership/permissions
13:48 tk75 joined #salt
13:49 Setsuna666__ joined #salt
13:49 Bateau_ joined #salt
13:53 babilen viq: http://nopaste.info/ ← immediately thought of that
13:53 tk75 joined #salt
13:53 babilen http://nopaste.linux-dev.org/ rather
13:54 ntropy is there a syntax style guide for salt?
13:54 rubenb joined #salt
13:55 ntropy or how do you nest if / for etc statements so they're readable?
13:55 iggy ntropy: whatever works best for you
13:55 borgstrom joined #salt
13:56 XenophonF eliasp: yeah it was the unix file permissions i was trying to apply on windows
13:56 XenophonF duh
13:57 eliasp ;)
13:59 duncanmv joined #salt
14:00 racooper joined #salt
14:01 scottpgallagher is there a way to run salt '*' git.pull and pass your credentials though?
14:03 desertigloo joined #salt
14:05 pdayton joined #salt
14:05 vejdmn joined #salt
14:07 iggy you are going to give your git credentials to every machine you manage?
14:08 dude051 joined #salt
14:08 scottpgallagher so i have 4 webservers i need to have them all do a simutanious git pull but can't use ssh keys as i'm behind a proxy server so what would be nice is to do a salt '*' git.pull <path> -username= -password=
14:09 iggy you can only use ssk keys
14:10 iggy ssh
14:10 scottpgallagher ok thanks...will see if i can work it through the proxy then
14:10 viq joined #salt
14:11 kermit joined #salt
14:12 jaimed joined #salt
14:12 elfixit joined #salt
14:14 iggy scottpgallagher: have you tried putting it in the url? i.e. git://user:pass@host/path/to.git
14:14 iggy or something
14:19 vejdmn joined #salt
14:21 pestouille joined #salt
14:21 AxelFooley joined #salt
14:22 AxelFooley hi guys
14:22 penguin_dan joined #salt
14:22 AxelFooley is it possible to insert grains into static configuration files to push to the minions?
14:22 rypeck joined #salt
14:23 AxelFooley for example, i would like to insert the 'fqdn' grain into the exim4 configuration file
14:25 mdasilva AxelFooley: look into jinja renderers
14:25 mdasilva AxelFooley: http://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.jinja.html
14:25 pestouille_ joined #salt
14:25 flyboy82 joined #salt
14:26 iggy AxelFooley: you want the fqdn of the host running  the minion? or you want the fqdn of some other host (i.e. a mail relay)?
14:26 bezeee joined #salt
14:26 AxelFooley i would like to set the "hostname" option of exim4, to be equal to the fqdn of the host running the minion
14:26 AxelFooley the mailname
14:27 vejdmn joined #salt
14:28 babilen AxelFooley: You can refer to grains['fqdn'] for that
14:30 AxelFooley so in my case i could use a state like that, am i wrong? http://pastebin.com/X5G0Sbgq
14:32 Ahrotahntee AxelFooley: you don't need to use context, the grains variable is in scope in the file
14:32 AxelFooley please explain me Ahrotahntee
14:33 Ahrotahntee AxelFooley: in the config file: {{grains['fqdn']}}
14:34 AxelFooley so, when the exim config file will be pushed to the minion, the fqdn grain will be rendered with its value, right?
14:36 mbrgm joined #salt
14:37 XenophonF i keep patching my Salt 2014.1.13 installs with stuff from 2014.7 :)
14:37 mbrgm hi! when I add a formula as a gitfs remote, is it mirrored to the server? i.e. what happens when there is no internet connection?
14:38 XenophonF mbrgm: minions cache a copy of the states that apply to them
14:38 crocket left #salt
14:38 mbrgm XenophonF: but the server does not?
14:38 XenophonF whether they get those SLS files via Git or ZMQ is irrelevant
14:39 XenophonF mbrgm: IIRC for gitfs file roots, clients go directly to Git for the state info
14:39 iggy mbrgm: yes, the master caches them
14:39 XenophonF but I might not understand how that works correctly
14:39 iggy the master checks out, then the minions pull from the master
14:39 XenophonF i sit corrected
14:40 XenophonF thanks iggy!
14:40 iggy you wouldn't want every one of your minions hitting your git server individually
14:40 TheThing joined #salt
14:40 XenophonF i just looked and i got confused by the output of one of my git states
14:40 XenophonF duh
14:40 XenophonF sorry for the confusion
14:47 UtahDave joined #salt
14:47 StDiluted joined #salt
14:48 AxelFooley putting {{grains['fqdn']}} into the configuration file doesn't work
14:49 AxelFooley i get {{grains['fqdn']}} instead of the real hostname
14:54 mgw joined #salt
14:54 nbari how can I see the final state after jinja parse-it
14:55 nbari or how could I debug an state t
14:56 AxelFooley salt -l debug 'minion' state.sls state
14:56 AxelFooley and it will print in stdout all the informations
14:56 nbari how could i add a log.info(my vars) within the state ?
14:57 thedodd joined #salt
15:03 ndrei joined #salt
15:03 druonysus joined #salt
15:03 druonysus joined #salt
15:03 sjaredj joined #salt
15:06 thayne joined #salt
15:07 Ozack1 joined #salt
15:07 rojem joined #salt
15:07 racooper joined #salt
15:09 rojem joined #salt
15:09 jalbretsen joined #salt
15:16 CycloHex is it possible to give a minion access to an entire folder of pillars?
15:19 Setsuna666__ CycloHex: What do you want to do exactly ?
15:19 CycloHex I have pillar-files that are minion-specific (/srv/pillar/specific/{{ id }})
15:19 housl joined #salt
15:20 CycloHex the minions with the matching id get access to that pillar file.. but I have another minion that should have access to all of these specific pillars
15:20 lcavassa joined #salt
15:20 CycloHex downside is that these pillar-files are exactly the same, just the values are different.
15:21 ggrieves joined #salt
15:21 CycloHex So I think I'll have to change the top-key of those pillars to be something unique, Setsuna666__
15:21 Setsuna666__ You can either put jinja conditions in your pillar top.sls or use the file tree external pillar module
15:21 b1nar1 joined #salt
15:22 CycloHex jinja conditions in my pillar top?
15:22 iggy yeah, I think I'd probably be looking at an external pillar for something like this (unless you only have a handful of minions)
15:22 CycloHex haven't worked with external pillars yet.
15:22 CycloHex But I'll start learnign then :D
15:23 Setsuna666__ Yeah, you can use all the jinja conditions (if, else etc.) and salt function inside the pillar top.sls. It might not be the best solution, since it can get quite messy, so the best approch would be the external pillars
15:23 Setsuna666__ {% if salt['grains.get']('edge-cloud-db-cluster') is defined %}
15:23 Setsuna666__ - db.cluster.{{ salt['grains.get']('edge-cloud-db-cluster') }}
15:23 Setsuna666__ {% endif %}
15:23 Setsuna666__ Here is an example
15:23 Setsuna666__ that we use to a specific case, in our pillar top.sls
15:25 hybridpollo joined #salt
15:25 CycloHex yes, I have that setup as well, but now I want another minion to have access to the entire db.cluster folder
15:27 Setsuna666__ External pillars allows you to store pillar informations in storage type other than YAML/sls files. For example, you can store data in mysql or in a file tree structure, where folders are top level keys and file names, keys, and contents, values.
15:27 Setsuna666__ Since the file_tree external pillar module is new, it is not available yet in a version of salt, so you'll need to install it manually. You can get the module here: https://github.com/saltstack/salt/tree/develop/salt/pillar
15:28 conan_the_destro joined #salt
15:28 CycloHex yes, I was already taking a look at it
15:28 CycloHex thanks Setsuna666__
15:29 Setsuna666__ You'll need to follow theses guidelines (http://docs.saltstack.com/en/latest/topics/development/external_pillars.html) and add an extension_modules parameters in your master configuration file
15:30 Setsuna666__ With the file_tree module, you can store information on a per-host or nodegroups configuration.
15:30 aqua^mac joined #salt
15:30 CycloHex thank, Setsuna666__
15:31 Setsuna666__ CycloHex: No problem, don't hesitate to ask if you have any more questions
15:31 tligda joined #salt
15:32 jab416171 joined #salt
15:36 Setsuna666 joined #salt
15:37 stan_k joined #salt
15:43 mpanetta Are any of the maintainers of the nginx formula in the saltstack-formulas repo around?
15:43 mpanetta I'm trying to use nginx.ng and I'm running in to issues.
15:45 hasues joined #salt
15:47 TyrfingMjolnir joined #salt
15:47 AirOnSkin Should I define what state gets executed first in the top.sls (maybe with a require) or rather in the states files itself (require another state?)
15:47 hasues left #salt
15:49 lothiraldan joined #salt
15:49 iggy I really dislike formula writers that use 1 and 2 character variable names... this isn't a yaml/jinja minification contest
15:50 XenophonF agreed
15:54 bezeee joined #salt
15:56 smcquay joined #salt
16:04 davet1 joined #salt
16:04 XenophonF i'm getting the error "IndexError: list index out of range" when I try to use the win_servermanager.installed state
16:04 XenophonF https://bpaste.net/show/b67fb3199b70
16:06 mgw joined #salt
16:06 ksalman joined #salt
16:06 XenophonF i can reproduce the problem with the command "salt uxedevntsvr08.irtnog.net state.single win_servermanager.installed name=Web-Server"
16:09 hobakill hey UtahDave how's it been? question. should service.restart work on windows 2008 r2 boxes running 2014.1.11?
16:09 XenophonF "ret[splt[0]] = splt[2]" looks like a typo
16:10 XenophonF https://github.com/saltstack/salt/blob/2014.1/salt/modules/win_servermanager.py#L35
16:10 hobakill the reason i ask is that i can do a service.stop and service.start and that works fine....but a service.restart comes back as "False"
16:11 iggy XenophonF: probably not... I'm not familiar with powershell output, but it looks like they are expecting output like "foo = bar" or something
16:11 iggy what kind of output do you get if you run the command manually?
16:12 XenophonF iggy: actually, i think it's supposed to be a comparison
16:12 XenophonF == not =
16:12 XenophonF here's the caller - https://github.com/saltstack/salt/blob/2014.1/salt/modules/win_servermanager.py#L97
16:12 iggy either way
16:13 XenophonF yeah
16:13 XenophonF hang on let me patch this real quick brb
16:13 lcavassa joined #salt
16:13 iggy <character(s)><space><character(s)><space><character(s)>
16:17 srage_ joined #salt
16:20 XenophonF iggy - looks like the server is pending restart because i removed a feature
16:20 XenophonF https://bpaste.net/show/0747b132b5cb
16:20 XenophonF but the _parse_powershell_list function in modules/win_servermanager.py can't parse the error
16:20 aparsons joined #salt
16:20 XenophonF so the user gets an IndexError at the salt CLI
16:21 troyready joined #salt
16:21 iggy XenophonF: so... salt isn't broken, but it could return a better error message
16:22 XenophonF yup, as soon as i logged into the server, Server Manager popped up confirming the removal of the role
16:22 XenophonF iggy: exactly
16:22 iggy open an issue about it with as much output as you can
16:22 XenophonF I will
16:22 XenophonF it will be a problem if removing roles via win_servermanager
16:23 XenophonF b/c in some cases windows will need to reboot, then acknowledge the feature removal post-reboot
16:23 XenophonF not sure how that works
16:23 tomspur joined #salt
16:25 XenophonF iggy: so now that i've acked servermanager, the state works - https://bpaste.net/show/5545e8744379
16:28 BossR joined #salt
16:28 tomspur_ joined #salt
16:29 tomspur_ joined #salt
16:29 KyleG joined #salt
16:29 KyleG joined #salt
16:31 dalexander joined #salt
16:31 PI-Lloyd anyone know how salt mine works with a syndic setup? Does it work just the same as if there were only a single master, or is each syndic responsible for the mine data of it's minions and if so can minions connected to other syndics use that data?
16:31 dark_hel1et joined #salt
16:32 thayne joined #salt
16:32 jngd joined #salt
16:32 AxelFooley joined #salt
16:32 iggy XenophonF: did the previous operation (that was waiting to be acked) run via salt or did you do it by hand?
16:34 mbrgm can I check whether a minion has a given state?
16:34 iggy minions _have_ all states
16:35 mbrgm i.e. in top.sls I specify host1 to have the 'foobar' state. now I want to check (in a formula for another host) whether host1 has this state
16:36 iggy not that I know of
16:36 iggy we use roles for that kind of stuff, then assign based on the role and the other host can look up the roles in salt mine
16:38 ndrei joined #salt
16:38 imanc hey folks - I'm familiar with jinja2 and writing custom template tags/filters, but I'm wondering if I create say a custom tag, how do I register it and where do I put it, in salt?
16:39 iggy damn, I just saw this the other day and didn't write it down
16:40 imanc hmm, some googling tells me it's not that easy
16:41 ghanima joined #salt
16:43 vlcn imanc, what are you trying to use the tag for?
16:43 vlcn Typically it would be used with a reactor, I think
16:43 vlcn (at least thats how I'm using tags)
16:44 mbrgm iggy: ok, one different approach: can I use the role thing in a jinja template, e.g. "for all hosts having role webserver'...
16:44 iggy mbrgm: yes
16:45 iggy {%- set hosts = salt['mine.get']('roles:mon', 'network.get_hostname', 'grain') %}
16:45 mbrgm what I'm trying to achieve is: I want to have a directory on the backup-server for every backup-client, which is then exported via nfs. so I need to know which hosts have the backup-client role
16:46 mbrgm ah, ok. so this should be sufficient for that task?
16:46 iggy setup your mine functions to have network.get_hostname (or whatever info you need) and you should be good to go
16:48 mbrgm iggy: ok, ty
16:48 mbrgm gtg
16:48 mbrgm cya
16:49 dave_den joined #salt
16:50 wt joined #salt
16:50 iggy anybody know who's responsible for intothesaltmine.org or saltstarters.org ?
16:59 ghanima I am trying to do a salt query that upgrades an rpm package on machines that have a specific facter version can I do a salt query that allows me to do this on a subset of machines.
16:59 alex-mes_ joined #salt
17:01 mdasilva joined #salt
17:03 murrdoc joined #salt
17:03 thomasmckay joined #salt
17:04 ndrei joined #salt
17:04 nitti_ joined #salt
17:04 Gareth morning morning.
17:04 thomasmckay trying to start master as a service i get this "[salt.master      ][WARNING ] Caught signal 15, stopping the Salt Master" repeated a couple times and it fails to start
17:05 thomasmckay this is 2014.1.13 on f19. running 'salt-master -l all' from prompt it seems to run fine, though the one minion i have never shows up
17:06 thomasmckay googling is failing me and i've been pouring over http://docs.saltstack.com/en/latest/topics/troubleshooting/minion.html
17:06 thomasmckay any pointers for further debug?
17:06 XenophonF iggy: does this explain the problem I had with PowerShell earlier in an easy-to-understand way? https://github.com/saltstack/salt/issues/17041
17:07 XenophonF thomasmckay: what's signal 15 on your operating system?
17:07 XenophonF nevermind, it's SIGTERM
17:08 iggy XenophonF: looks good... I mostly wanted to make sure you had the actual output from the command in there
17:08 faust joined #salt
17:08 XenophonF thomasmckay: anything else in the logs before that? you should be able to start salt as a service without any trouble
17:08 diegows joined #salt
17:08 iggy should make it easier for someone without access to any windows kit to look into it
17:09 XenophonF iggy: i don't mind adding more detail if necessary
17:09 iggy nah, you got it
17:09 thomasmckay XenophonF: http://fpaste.org/146571/68898014/ nothing jumps out at me (i'm less than 2 hours into this, though :)
17:10 XenophonF thomasmckay: but aside from that, are you sure the minion knows how to contact the master?
17:10 XenophonF thomasmckay: and have you accepted the minion's key on the master?
17:10 iggy the master is failing to start and you're looking at docs for troubleshooting the minion
17:10 XenophonF thomasmckay: see line 13 in your paste
17:10 thomasmckay the minion key never appears (salt-key -L is always empty). nmap shows ports open, ping works, "salt" resolves
17:11 iggy try "sudo salt-master -l debug" and see if anything pops out at you (warning: increase your scrollback buffer before that ;)
17:11 XenophonF thomasmckay: is the master running a minion?
17:11 thomasmckay if i run salt-master from prompt it loops forever w/ lines 11-13
17:11 thomasmckay XenophonF: i did not start a minion on the master, should i?
17:12 iggy not necessary
17:12 XenophonF thomasmckay: i agree with iggy, it isn't necessary, but running a minion on the master would eliminate the possibility of any network-layer problems
17:12 thomasmckay roger that, trying now
17:13 iggy do you see anything in "salt-key -L"?
17:14 thomasmckay just the three subject lines w/ nothing listed. minion is looping on [WARNING ] SaltReqTimeoutError: Waited 60 seconds
17:15 aw110f joined #salt
17:16 iggy that means the master isn't accepting it
17:16 iggy did you accept the key for the minion?
17:18 zlhgo joined #salt
17:18 thomasmckay iggy: what command am i supposed to be running? i thought salt-key -L would list out keys master knew about and then i could -A to accept them all
17:19 iggy yes
17:19 iggy are you not seeing any unaccepted?
17:19 thomasmckay iggy: correct, no keys listed at all
17:19 aqua^mac joined #salt
17:19 thomasmckay accepted, unaccepted, and rejected all blank
17:19 iggy start checking the other normal suspects (firewall on the hosts, in between, etc.)
17:20 thomasmckay master and minion are on the same host now. firewalld stopped, setenforce off
17:20 UtahDave joined #salt
17:21 bhosmer joined #salt
17:21 iggy oh wait
17:21 iggy shut down the master
17:22 wendall911 joined #salt
17:22 iggy then check to see if there are any other master's running in the background somewhere
17:24 TheThing joined #salt
17:25 thomasmckay iggy: nothing. have to run but will poke at it some more later
17:25 Ryan_Lane joined #salt
17:25 micah_chatt joined #salt
17:28 alex-mesos joined #salt
17:30 ndrei joined #salt
17:30 felskrone joined #salt
17:40 baniir joined #salt
17:41 jalaziz joined #salt
17:41 TyrfingMjolnir joined #salt
17:42 snuffeluffegus joined #salt
17:43 mgw is cachedout around?
17:43 paha joined #salt
17:45 beneggett joined #salt
17:46 Gareth morning morning
17:46 mgw morning
17:47 Gareth mgw: rare to see cachedout in here.
17:47 mgw Gareth: yeah...
17:47 snuffeluffegus joined #salt
17:47 mgw https://github.com/saltstack/salt/issues/17006 < does anyone know how to get the process output he's talking about?
17:48 mgw ps does not show it
17:49 * Gareth looks
17:51 repl1cant joined #salt
17:52 Gareth mgw: Don't know off hand.
17:53 UtahDave joined #salt
17:57 jY mgw: you want the tree view?
17:57 mgw JY I got that
17:57 jY if so its f so ps auxf
17:57 mgw updated the ticket
17:58 mgw but cachedout was saying I could see the process purpose
17:58 Ahlee how would you even mesaure MWorker vs _clear_old_jobs
17:58 Ahlee oh
17:58 Ahlee it says role apended
17:58 mgw right
17:58 Ahlee i r dumb
17:58 mgw but i don't see that in ps
17:58 mgw with any flags I can think of
18:01 troyready joined #salt
18:03 aheintz joined #salt
18:03 cpowell joined #salt
18:08 bhosmer joined #salt
18:08 TheThing joined #salt
18:08 BossR joined #salt
18:09 BossR joined #salt
18:14 mapu joined #salt
18:16 bhosmer joined #salt
18:18 nitti joined #salt
18:18 funzo joined #salt
18:20 kirindave joined #salt
18:21 wendall911 joined #salt
18:21 kirindave Does anyone here have experience with the docker modules? I'm having trouble getting one state working right.
18:21 lowkeyliesmith joined #salt
18:26 druonysuse joined #salt
18:31 alex-mesos joined #salt
18:34 cberndt joined #salt
18:37 bhi joined #salt
18:46 eriko joined #salt
18:47 CeBe1 joined #salt
18:49 mr_chris joined #salt
18:50 baniir joined #salt
18:58 mr_chris joined #salt
19:02 BossR joined #salt
19:02 bbnix joined #salt
19:02 aparsons joined #salt
19:04 tk75 joined #salt
19:05 tk75 joined #salt
19:06 dooshtuRabbit joined #salt
19:08 wendall911 joined #salt
19:08 aqua^mac joined #salt
19:10 druonysus joined #salt
19:10 druonysus joined #salt
19:11 baniir joined #salt
19:11 tk75 joined #salt
19:11 thomasmckay after performing the steps here, is there a service i need to restart? http://docs.saltstack.com/en/latest/topics/troubleshooting/master.html#salt-master-stops-responding
19:12 aparsons joined #salt
19:14 aparsons_ joined #salt
19:16 abe_music joined #salt
19:17 garthk joined #salt
19:19 daxius joined #salt
19:20 aw110f joined #salt
19:22 shookees joined #salt
19:28 johtso joined #salt
19:32 ndrei joined #salt
19:37 clayk joined #salt
19:37 dalexander joined #salt
19:37 rodrigc joined #salt
19:38 clayk Hello. Trying to run git clone via a SLS file and keep getting a state git.clone is unavailable -- what am I missing here?
19:38 lahwran joined #salt
19:38 clayk I am able to run a git.clone from CLI with the same parameters
19:38 rodrigc I attended the Saltstack meetup in San Jose at Cisco a few days ago.  Just wanted to say thanks to Salstack and Cisco for putting that together and hosting it.  It was very informative
19:39 mdasilva joined #salt
19:40 clayk nm path issue possibly sorry for the noise
19:41 jalaziz joined #salt
19:42 srage joined #salt
19:43 nitti joined #salt
19:45 fragamus joined #salt
19:51 epcim joined #salt
19:55 bbnix joined #salt
19:55 cpowell is anyone here on the saltstack-formulas team?
19:58 iggy there are a few people
20:03 BossR joined #salt
20:03 aparsons joined #salt
20:03 glyf joined #salt
20:03 nitti joined #salt
20:04 aparson__ joined #salt
20:07 iggy basepi: UtahDave: either of you guys know if the meetup at Cisco the other night was recorded (or know who to ask)?
20:13 bhosmer joined #salt
20:13 rap424 joined #salt
20:15 intellix joined #salt
20:16 ghanima I am testing saltstack in development mode and I am trying to push my custom grain from file_root to my minion but from what I can discern from the logs nothing gets pushed from what I read it says in order for highstate to sync a top file has to be created first. Since this is just a grains module that needs to be sync I am not sure exactly what would be in the top.sls
20:16 ghanima do I really need it
20:16 vejdmn joined #salt
20:17 duncanmv joined #salt
20:18 SheetiS ghanima: are you using a state file to handle this grain being pushed? Like this? http://docs.saltstack.com/en/latest/ref/states/all/salt.states.grains.html
20:18 SheetiS if so, then it needs to be in your top to know where to target it if you want it to run on highstate
20:19 ghanima SheetiS: no I am not what I want to do is push a grains module I wrote
20:19 ghanima and then with salt-call try to execute it to confirm that it works
20:19 ghanima so I am trying to push that module from my master to my minion
20:19 ghanima in dev mode
20:19 SheetiS all if you wrote a module
20:20 SheetiS salt <target(s)> saltutil.sync_all
20:20 SheetiS that should sync custom grains modules etc
20:20 SheetiS then test
20:20 SheetiS s/all/ahh
20:22 bhosmer joined #salt
20:22 alex-mesos joined #salt
20:23 sjaredj joined #salt
20:23 vejdmn joined #salt
20:24 bhosmer_ joined #salt
20:24 ghanima SheetiS: so if I read this correctly http://docs.saltstack.com/en/latest/topics/targeting/grains.html
20:24 ghanima it says Custom grains will not be available in the top file until after the first highstate. To make custom grains available on a minion's first highstate, it is recommended to use this example to ensure that the custom grains are synced when the minion starts.
20:25 ghanima since this module would be creating new grains I presume that this would be custom no?
20:26 epcim joined #salt
20:27 BossR joined #salt
20:29 SheetiS ghanima: yeah you can use the reactor example to force the sync
20:29 bhosmer_ joined #salt
20:30 SheetiS but to just test that it is working, you can just do the command I said (http://docs.saltstack.com/en/latest/topics/targeting/grains.html#syncing-grains documents it) just to make sure your custom grain is working before setting up a reactor
20:31 iggy it says highstate, but that's not the only thing that syncs custom modules
20:31 teebes joined #salt
20:31 iggy (I suspect they left out the nauseatingly long list of everything that _can_ kick off a sync to avoid confusing people)
20:32 SheetiS yeah highstate and manually doing sync_(grains|all) gives you the gist
20:33 lz-dylan hey folks
20:34 lz-dylan I'm trying to manage an elasticsearch docker container with saltstack, and since that has a datastore attached, I'd like to use a mapped volume (like 'docker run -v /host/filesystem/location:/container/filesystem/location').
20:34 lz-dylan How do I express that in Salt? I can see how to map ports, but not volumes.
20:37 murrdoc1 joined #salt
20:38 SheetiS lz-dylan: the salt docker module supports volumes on 'create_container' (which looks to be what you may need), let me look and see how/if that is currently mapped into the states
20:38 P0bailey joined #salt
20:38 bhosmer joined #salt
20:38 iggy it is
20:39 P0bailey joined #salt
20:39 murrdoc joined #salt
20:39 iggy running has a "volumes" arg (That takes a list of volumes)
20:39 lz-dylan sweet! is that in 2014.1 or Helium?
20:39 lz-dylan also, is that documented somewhere that I didn't see?
20:40 iggy http://docs.saltstack.com/en/latest/ref/states/all/salt.states.dockerio.html#salt.states.dockerio.running
20:40 SheetiS lz-dylan: it'd be for 2014.7
20:40 ingwaem joined #salt
20:40 SheetiS but I've had success pulling back the dockerio state and module into /srv/salt/_(modules|states) to use the new sauce.
20:41 SheetiS iggy++ that was the link I was about to share.
20:41 lz-dylan ...I feel a little silly having already stared at that page and missed that... thanks!
20:45 kballou joined #salt
20:45 teebes joined #salt
20:48 jalaziz joined #salt
20:50 thomasmckay after performing the steps here, is there a service i need to restart? http://docs.saltstack.com/en/latest/topics/troubleshooting/master.html#salt-master-stops-responding
20:50 thomasmckay i don't want to bounce something unnecessarily at the moment
20:51 iggy are you running zeromq < 2.1.11 ? (that's like 6 years old)
20:54 alex-mesos joined #salt
20:54 bbnix joined #salt
20:55 ghanima SheetiS: when I run the saltutil.sync_grains
20:55 ghanima I am seeing the following error
20:55 ghanima Skipping /home/chancock/pydev/saltdev/var/cache/salt/minion/extmods/grains, it is not a directory
20:56 thomasmckay iggy: zeromq3-3.2.4-1.fc19.x86_64
20:57 aqua^mac joined #salt
20:57 thomasmckay iggy: i read this "If you're running a ZeroMQ version greater than or equal to 2.1.9" as "if i have 3.2.4 i should do these steps"
20:57 ghanima Do I need to manually create this directory
20:57 jalaziz joined #salt
20:57 ghanima from what I can see this is the only error in my log when I try to sync the grains
20:57 thomasmckay iggy: so maybe typo as you're right, the first sentence and the next don't jive
20:58 SheetiS ghanima: you wrote a custom grains module you said, correct?  How did you go about it?  http://docs.saltstack.com/en/latest/topics/targeting/grains.html#writing-grains outlines a folder structure and generic python syntax for it.
20:58 MrFuzz joined #salt
21:00 iggy thomasmckay: I think that's saying if you are running something between 2.1.9 and 2.1.11, you can work around with those steps
21:00 iggy with zmq-3* you should be fine
21:01 thomasmckay iggy: i see. so doing that doesn't have a chance of fixing my issue :) crushed!
21:01 thomasmckay i'm spinning up a couple RHEL VMs to see if maybe it's just my f19 laptop that is misbehaving
21:01 MugginsM joined #salt
21:01 lz-dylan iggy SheetiS :: the 'volumes' argument works a treat on 2014.1.13 as well. Thanks a bunch!
21:02 SheetiS lz-dylan: Ahh since all of the dockerio stuff changed a lot in 2014.7, I've been keeping mine sync'd with whatever is in the 2014.7 branch as custom modules :)
21:02 SheetiS glad it worked for you
21:02 thomasmckay iggy++ thanks for help
21:05 tf198_ joined #salt
21:05 ghanima SheetiS: I modified the facter.py module that comes with salt-contrib
21:06 jalaziz joined #salt
21:10 jhauser joined #salt
21:11 bezeee are there any known issues with the hg.latest state?
21:11 bezeee i can't for the life of me get it to work on rc4: https://gist.github.com/brianz/33c9105d034418fd4491
21:12 SheetiS ghanima: and you have it in /srv/salt/_grains/facter.py or your equivlaent folder on your master to sync out to the minions plus tested the module for syntax errors etc via at least pylint if nothing else?
21:13 iggy bezeee: did you make sure the remote host fingerprint was in _root_'s ~/.ssh/known_hosts and that you had keys setup right?
21:13 bezeee yup
21:14 bezeee i can hg clone by hand without problems
21:14 iggy try running with -l debug?
21:14 druonysuse joined #salt
21:15 karimb joined #salt
21:15 ghanima SheetiS: sooooo It is in the file_root directory similar to what you have listed above... I did not run pylint on it. please note I am running salt-master and salt-minion in a virtualenv environment. I presumed that facter.py should work without fail however when running pylint
21:15 ghanima I do see the following error
21:16 ghanima F:  1, 0: Unable to import 'salt.utils' (import-error)
21:16 ghanima F:  2, 0: Unable to import 'salt.modules.puppet' (import-error)
21:16 ghanima F:  3, 0: Unable to import 'salt.modules.cmdmod' (import-error)
21:16 ghanima Hope that is not to much text
21:17 SheetiS is that while inside the virtualenv?
21:17 ghanima SheetiS: yes that is correct
21:17 bezeee iggy: nothing of interest in the log file with -ldebug
21:17 bezeee i updated the gist: https://gist.github.com/brianz/33c9105d034418fd4491
21:17 ghanima when I built virtualenv I didn't have pylint installed. so it could be a path issue
21:18 mapu joined #salt
21:18 SheetiS might have to install pylint into the virtualenv via pip.  I always mess that part up to test
21:19 ghanima hmm so it looks like virtualenv sees the system pylint already installed on my system
21:19 ghanima (saltdev)chancock@chancock-N550JV ~/pydev/saltdev/srv/salt/base/_grains $ pip install pylint
21:19 ghanima Requirement already satisfied (use --upgrade to upgrade): pylint in /usr/lib/python2.7/dist-packages
21:19 ghanima Cleaning up...
21:20 ghanima I promise I won't paste anymore text in the channel I know that is bad ettiquette... sorry for the spam
21:20 aparsons joined #salt
21:21 SheetiS hmm
21:22 SheetiS not sure why it cannot import the salt stuff if you are inside the virtualenv and salt is as well.
21:22 druonysuse joined #salt
21:22 druonysuse joined #salt
21:26 ghanima SheetiS: pylint had /usr/bin/python not /usr/bin/env python
21:27 ghanima SheetiS: this is the new error
21:27 ghanima ************* Module facter
21:27 ghanima C:  1, 0: Missing module docstring (missing-docstring)
21:27 ghanima C:  8, 0: Invalid constant name "log" (invalid-name)
21:27 ghanima W: 11,15: Access to a protected member _run_quiet of a client class (protected-access)
21:27 ghanima W: 12,19: Access to a protected member _run_all_quiet of a client class (protected-access)
21:29 jalaziz joined #salt
21:34 bbnix joined #salt
21:43 andrej joined #salt
21:44 SheetiS ghanima: those are all okish results.  Convention and Warnings
21:47 lz-dylan SheetiS: Okay, I take it back...things aren't all happy in Docker-managed-by-Salt land. How do I turn 2014.7's docker management into custom modules? Just grab salt/states/dockerio.py from github and drop it into _states...?
21:47 ghanima SheetiS: just to confirm my file_root: /home/chancock/pydev/saltdev/srv/salt/base/_grains
21:48 ghanima in my master file I have it set to
21:48 MrFuzz hey guys/gals, Im trying to understand external pillars and after going through the documentation I found the example of http://docs.saltstack.com/en/latest/topics/development/external_pillars.html#example-configuration
21:48 beneggett joined #salt
21:48 lz-dylan (mostly wondering if that'll override what's already in 2014.1)
21:48 ghanima I found it I screwed the the file roots
21:50 MrFuzz after adding the that line to master config file, do I need to re-highstate saltmaster and then the minions?
21:50 SheetiS lz-dylan: drop the state one in _states and the module one in _modules then sync them.  I think it should override.
21:52 DaveQB joined #salt
21:53 rojem joined #salt
21:53 XenophonF man I could really use a set of states for IIS right about now
21:55 ingwaem https://github.com/saltstack/salt-contrib/blob/master/states/iis.py
21:56 XenophonF ingwaem: you rock
21:56 ghanima ok I set up my file_roots to
21:56 ghanima file_roots:
21:56 ghanima base:
21:56 ghanima -  /home/chancock/pydev/saltdev/srv/salt/
21:57 XenophonF ingwaem: why is this not in salt yet?
21:57 ghanima that would mean my base would be /home/chancock/pydev/saltdev/srv/salt/base/
21:57 ghanima right
21:57 XenophonF oh it uses appcmd and not powershell
21:57 XenophonF hm
21:57 lz-dylan SheetiS: it does indeed override, or at least appears to. (it broke when I just synced the state, and started working again when I synced the module also). but when I run the state, it still doesn't bind volumes properly. :(
21:57 ingwaem ahh ok
21:57 lz-dylan statefile: https://gist.github.com/arubis/c7f97ba7255ce8fd0b44
21:58 lz-dylan running goes clean and gets all green, and a 'docker ps' reveals that the container is running, but it doesn't touch my /data/elasticsearch/.
22:00 aparsons_ joined #salt
22:02 aparsons joined #salt
22:02 mosen joined #salt
22:02 cliff-hm joined #salt
22:03 ghanima FINALLY it worked total user error but finally figured it out
22:03 lz-dylan Should I be using 'binds' instead?
22:05 ghanima Just curious in salt what is the purpose of a dundar dictionary as a opposed to a regular
22:05 ghanima what are the pros and cons
22:07 lz-dylan answered my own question. 'binds' works great. :)
22:07 duncanmv joined #salt
22:11 glyf joined #salt
22:11 ghanima lol what would be the salt-call command to execute a grain function
22:15 notbmatt joined #salt
22:18 beneggett joined #salt
22:19 CeBe1 joined #salt
22:23 racooper joined #salt
22:23 dalexand_ joined #salt
22:24 kermit joined #salt
22:25 berto- joined #salt
22:27 notbmatt joined #salt
22:29 jalaziz joined #salt
22:30 druonysus joined #salt
22:31 glyf joined #salt
22:31 MrFuzz is there a config option somewhere than enables/disables external pillars? or do I just need to add the ext_pillar: etc etc to the master conf file?
22:31 basepi iggy: sorry for the late reply. Unsure if it was recorded, but I want to watch it as well so I'll investigate.
22:31 lz-dylan ghanima: not to be a smartass, but potentially `cat /etc/salt/grains`
22:32 mgw MrFuzz: are you using a built in ext pillar?
22:32 aurynn is using [ -e /somefile ] in my "unless" checks in cmd.run (since creates: isn't in a release yet) unwise?
22:32 MrFuzz yes, Im trying to use cmd_json
22:33 mgw MrFuzz: that should be all that's needed
22:33 mgw What's happening? Nothing?
22:34 MrFuzz I believe that nothing is happening. when using the example - cmd_json: 'echo {\"arg\":\"value\"}' from the documentation
22:34 mgw ghanima: salt-call grains.setval ?
22:34 mgw or do you mean something else?
22:35 mgw MrFuzz: anything in the master's log?
22:35 MrFuzz will check
22:39 lz-dylan Hmm.... does docker.built path: know how to use salt:// URLs, or does it strictly want HTTP(S)?
22:39 lz-dylan I'm getting an EOF error when I specify using salt://, and it at least reads the file (then errors out elsewhere) using HTTP.
22:44 druonysuse joined #salt
22:46 aqua^mac joined #salt
22:47 tcg-nick joined #salt
22:48 TheThing joined #salt
22:48 basepi iggy: Matt has requested the recording, and we will release it when we have it
22:49 ggoZ joined #salt
22:50 decwrl joined #salt
22:53 iggy basepi: danke
22:53 basepi bitte
22:54 thomasmckay iggy: fyi, a RHEL6 salt-master happily accepted the raspberry pi minion. must be something wonky w/ my fedora19 laptop
22:54 tf198_ joined #salt
22:55 MrFuzz ok so in the master log, the command is running and it’s returning the proper values, which are {"arg":"value”}. what I was expecting was that those values would be written into the pillar file where I had the cmd_json
22:56 murrdoc joined #salt
22:57 MrFuzz should those values be written into the pillar file?
23:02 smcquay joined #salt
23:02 jhauser joined #salt
23:04 giantlock joined #salt
23:07 aparsons joined #salt
23:08 ggillies hi does anyone know why salt-bootstrap doesn't support RHEL 7
23:08 ggillies it says
23:08 ggillies * ERROR: Stable version is not available on RHEL 7 Beta/RC. Please set installation type to git.
23:09 ggillies but RHEL 7 has been GA (not beta/rc) for a while now, and the packages in EPEL 7 seem to work fine
23:09 aurynn probably because rhel7 is a beta/rc
23:09 aurynn and it hasn't been updated yet
23:09 ggillies rhel7 isn't a beta/rc??
23:10 aurynn is "GA" a supported, shipping release? (I don't actually know)
23:10 ggillies yep
23:10 ggillies we shipped it june 10th
23:10 ggillies http://www.redhat.com/en/about/press-releases/red-hat-unveils-rhel-7
23:10 ggillies sounds like it's just a simple update/pull request that needs to be done
23:10 ggillies I'll look at lodging something
23:10 aurynn then the bootstrap hasn't been updated yet
23:11 ggillies yep that's fine
23:11 ggillies just wanted to make sure there wasn't some horrible known issue I wasn't aware of
23:11 ggillies thanks
23:11 aurynn I don't know, sorry
23:11 ggillies yep understood
23:11 aurynn I'm mostly in the ubuntu world
23:11 Singularo joined #salt
23:26 nickjj joined #salt
23:28 charlyy joined #salt
23:29 charlyy Hi everybody, i'm facing a know bug with pam_mount and the "su" command. http://tiny.cc/6rfkox it only happens when i'm logged in with "su - username" command, on login cifs homedir is mounted but unmount is failing at logout. If someone have an idea of a potential workaround, help would be greatly appreciated :)
23:29 charlyy the actual error is: pam_mount(spawn.c:128): error setting uid to 0
23:34 debian112 joined #salt
23:36 rojem joined #salt
23:39 bhosmer joined #salt
23:39 wt joined #salt
23:40 aparsons joined #salt
23:42 TyrfingMjolnir joined #salt
23:58 mdasilva joined #salt
23:58 Scott joined #salt

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