Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-11-11

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

All times shown according to UTC.

Time Nick Message
00:04 chutzpah joined #salt
00:05 thelorax123 joined #salt
00:13 noob2 joined #salt
00:14 noob2 anyone have experience with adding repo's in their state files?
00:18 dvogt joined #salt
00:18 __number5__ noob2: what repo?
00:18 dvogt_ joined #salt
00:18 noob2 https://launchpad.net/~duh/+archive/golang
00:19 noob2 i can't seem to get the key to add properly
00:19 __number5__ are u using pkgrepo state?
00:19 noob2 lemme paste my state file
00:19 noob2 http://fpaste.org/53114/29176138/
00:20 noob2 it hangs for about 5 mins on that keyid line and then continues because ubuntu's key server fails to find it
00:21 dvogt_ joined #salt
00:22 noob2 __number5__: so i think the keyid is wrong but i'm not sure what to set it to :-/
00:24 __number5__ try remove dist, keyid, keyserver lines
00:24 __number5__ you can add it back after the rest is working
00:24 noob2 all that crap?
00:25 noob2 ok
00:27 smccarthy joined #salt
00:38 ndivad_ joined #salt
00:38 ndivad joined #salt
00:40 ndivad Anyone know if salt has a way to use the mysql states and the mysql returner, but have them pointing at different mysql servers?
00:40 ndivad they both seem to use the same variables from the config
00:41 ctdawe joined #salt
00:41 ndivad oh wait I can expicitly specify the server details in the state config
00:41 ndivad nm
00:42 noob2 :)
00:43 ndivad oh no, the 'host' refered to in states.mysql_grants is the host the client is connecting from ,not which server to manage
00:48 ndivad for future IRC log readers: you can pass connection_host, connection_user etc options to the mysql commands & states
00:49 higgs001 joined #salt
00:56 zandy joined #salt
00:57 honestly ndivad++
00:57 Ryan_Lane joined #salt
00:58 honestly thank you so much for not being http://xkcd.com/979/
01:03 hvn joined #salt
01:12 xmltok joined #salt
01:13 zandy joined #salt
01:19 mgw joined #salt
01:21 cachedout joined #salt
01:23 thelorax123 joined #salt
01:24 oz_akan_ joined #salt
01:29 noob2 honestly: second that :D
01:36 andrej Can I have the master listen on both IPv4 and IPv6?
01:44 jslatts joined #salt
01:45 xmltok joined #salt
01:48 malinoff joined #salt
01:48 hvn left #salt
01:53 BrendanGilmore joined #salt
02:09 mgw joined #salt
02:11 mwillhite joined #salt
02:20 Savagedbright joined #salt
02:25 pipps_ joined #salt
02:29 elfixit joined #salt
02:35 natewalck joined #salt
02:36 natewalck Evening
02:38 oz_akan_ joined #salt
02:39 pipps joined #salt
02:44 xl1 joined #salt
02:50 thelorax123 joined #salt
02:56 robbyt joined #salt
02:58 mwillhite joined #salt
03:16 malinoff Hi guys. Any ideas, how can I return a nested output from a function in a custom module? I run __salt__['state.sls'] in it, and right now I have very ugly output
03:18 cmthornton joined #salt
03:21 __number5__ malinoff: set your __output__
03:22 __number5__ https://salt.readthedocs.org/en/latest/ref/modules/index.html#printout-configuration
03:23 jetblack joined #salt
03:23 __number5__ sorry, it's __outputter__
03:23 mgw joined #salt
03:23 malinoff __number5__, Thanks!
03:24 __number5__ np
03:24 pdayton joined #salt
03:24 malinoff __number5__, Look like it changes nothing
03:26 __number5__ sorry, I might misread your question. Are you trying to get the result from __salt_['state.sls'] and return it from your own function?
03:26 ravibhure joined #salt
03:28 malinoff __number5__, yeah. Calling salt-call mymodule.run test --out=highstate returns correctly formatted output
03:28 malinoff __number5__, setting dunder outputter returns ugly formatted output
03:29 malinoff uh
03:29 __number5__ can you paste your code somewhere?
03:29 malinoff damn
03:29 malinoff salt can't properly output a decorated function
03:29 malinoff I'll open an issue
03:37 sgviking joined #salt
03:42 Baribal_ joined #salt
03:46 NotreDev joined #salt
03:55 Furao joined #salt
03:59 xmltok joined #salt
04:25 Furao_ joined #salt
04:28 tulu joined #salt
05:05 NotreDev if i have pkg.latest in N states, then during execution, the package system will be checked for updates N times. is it possible to reduce this to 1 check?
05:13 pdayton joined #salt
05:21 anuvrat joined #salt
05:23 Teknix joined #salt
05:34 efixit joined #salt
05:38 malinoff NotreDev, nope
05:38 NotreDev malinoff: doh!
05:41 bhosmer joined #salt
05:42 redondos joined #salt
05:42 redondos joined #salt
05:49 __number5__ NotreDev: filing a ticket, I think that's nice feature to have
05:51 IJNX joined #salt
06:00 Nexpro joined #salt
06:10 jalbretsen joined #salt
06:35 IJNX joined #salt
06:44 majoh joined #salt
06:55 linjan_ joined #salt
07:01 pdayton joined #salt
07:09 jkleckner joined #salt
07:13 lemao joined #salt
07:24 idkfa joined #salt
07:32 slav0nic joined #salt
07:32 slav0nic joined #salt
07:39 brianhicks joined #salt
07:40 NotreDev does targeting only work on the `top.sls` file or will it also work on other state files?
07:44 IJNX joined #salt
07:50 sebgoa_ joined #salt
07:54 IJNX How do you create user in some myscript.sls file?
07:55 IJNX I found salt.modules.useradd docs, but it contains only documents on how to run in with salt cmdline
07:56 IJNX should I create new id e.g. couchdbuser: and have it running a cmd: salt '*' user.add ....
08:00 giantlock_ joined #salt
08:03 Boohbah joined #salt
08:05 viq IJNX: you haven't been looking very hard ;) https://salt.readthedocs.org/en/latest/ref/states/all/salt.states.user.html
08:05 IJNX viq: much better docs you have
08:05 IJNX i had: http://docs.saltstack.com/ref/modules/all/salt.modules.useradd.html?highlight=add%20user#salt.modules.useradd
08:06 pears IJNX: in general for .sls files you'll need to stick with stuff under salt.states.*
08:06 viq IJNX: from there as well: http://docs.saltstack.com/ref/states/all/salt.states.user.html#module-salt.states.user
08:06 viq yeah, http://docs.saltstack.com/ref/states/all/index.html
08:06 IJNX ok
08:06 viq IJNX: what pears said, ^
08:09 viq Has anyone used syntax like here and had it work? https://github.com/clausa/salt-logstash/blob/master/elasticsearch.sls#L10
08:20 balboah joined #salt
08:21 ClausA viq: Yeah - check http://docs.saltstack.com/ref/states/all/salt.states.pkg.html
08:22 viq ClausA: yes, I did, but I have an almost exact copy of the file I linked to and it errors out. It downloads the file, but when it tries to install it there are some errors about some file missing
08:29 viq specifically http://pbot.rmdir.de/82yNeHoIRmQtKgKx1aLfTA
08:29 ggoZ joined #salt
08:31 ClausA viq: Hmm - can you paste the full output?
08:32 m0hit joined #salt
08:47 carlos joined #salt
08:47 ajw0100 joined #salt
08:50 pdayton joined #salt
08:50 IJNX hmm, checksum type is .ish file?
08:56 viq ClausA: full output of what exactly? This is all that appears in salt logs
09:00 viq ClausA: https://gist.github.com/viq/7410083 salt-call -l debug
09:04 Katafalkas joined #salt
09:14 lemao joined #salt
09:23 IJNX Is there "standard" way to check that make install has been done?
09:24 IJNX I'm downloading source and building it with salt. It failed to compile on first time and now salt doesn't want to rerun it. it just responds with "ok"
09:24 IJNX basically ./configure failed with some erlang version conflict.
09:30 IJNX hmm, seems I need to use cmd.run with some unless tag
09:43 IJNX Now this is interesting. When running the configure in minion shell directly, it passes. But when I run it using salt states it reports conflict with erlang version. And I have only one erlang installed via pgks…
09:44 mekstrem erlang \o/
09:45 IJNX couchdb uses it
09:46 IJNX "configure: error: The installed Erlang version must be >= R14B (erts-5.8.1) and <R17 (erts-5.11)"
09:46 mekstrem and what version of Erlang do you have now?
09:47 IJNX erl
09:47 IJNX Erlang R14B04 (erts-5.8.5)
09:48 bcc joined #salt
09:50 mekstrem hmm
09:50 IJNX http://pastebin.com/3NjA5EB0
09:55 viq IJNX: PATH issues?
09:55 m0hit joined #salt
10:01 aleszoulek joined #salt
10:16 JasonG_TA joined #salt
10:17 IJNX well are standard ubuntu paths invalid for salt?
10:18 Teknix joined #salt
10:21 IJNX hmm, where does salt-minion have it's search path stored?
10:22 eclectic_ Does someone here have recomendation re reading material / examples on how to manage iptables rules with salt? What I gathered was that there are some issues doing so(still?)
10:23 anitak joined #salt
10:23 kadel joined #salt
10:24 anitak1 joined #salt
10:30 junedm joined #salt
10:31 harobed joined #salt
10:34 IJNX viq: ideas how to fix the possible PATH problem?
10:35 Destro joined #salt
10:36 m0hit joined #salt
10:37 IJNX Ok, seems to be erlang path issue. salt-minion doesn't set HOME variable.
10:37 IJNX http://pastebin.com/NJFfGNa6
10:39 pdayton joined #salt
10:41 zandy joined #salt
10:42 mekstrem eclectic_: what issues? i use iptables with salt
10:42 zandy joined #salt
10:42 mekstrem eclectic_: nvm read your sentence wrong
10:43 IJNX cmd: HOME=/tmp ./configure works
10:48 jpcw joined #salt
11:01 lemao joined #salt
11:05 bhosmer joined #salt
11:08 dccc joined #salt
11:27 seb` joined #salt
11:35 zandy joined #salt
11:46 franky joined #salt
11:48 s0undt3ch joined #salt
11:50 scott_w joined #salt
11:57 m0hit joined #salt
12:02 Teknix joined #salt
12:02 matanya joined #salt
12:11 logix812 joined #salt
12:26 carlos joined #salt
12:26 hvn joined #salt
12:26 bhosmer joined #salt
12:27 hvn left #salt
12:32 Iwirada joined #salt
12:47 halfss joined #salt
12:49 xl1 left #salt
12:50 juasiepo joined #salt
12:56 tty-1 joined #salt
13:03 mwillhite joined #salt
13:09 mdasilva joined #salt
13:13 carlos joined #salt
13:14 bhosmer joined #salt
13:18 zandy_ joined #salt
13:26 sebgoa joined #salt
13:31 gasbakid joined #salt
13:33 tempspace Morning
13:41 m0hit joined #salt
13:41 mdasilva ola
13:44 blee joined #salt
13:45 Katafalkas joined #salt
13:47 Katafalkas joined #salt
13:48 Katafalkas joined #salt
13:50 Katafalkas joined #salt
13:50 ipmb joined #salt
13:50 elfixit joined #salt
13:52 whiskybar joined #salt
13:54 Katafalkas joined #salt
13:54 mbrgm joined #salt
13:55 mdasilva1 joined #salt
13:55 mbrgm hi! i have a problem using the mysql_grants state.it tells me that the grant query failed to execute, while it  can be executed on the minion using the mysql console. any ideas where to start?
13:56 mdasilva joined #salt
13:57 mdasilva joined #salt
13:59 mdasilva joined #salt
13:59 mdasilva1 joined #salt
14:05 mdasilva joined #salt
14:05 mdasilva joined #salt
14:07 juicer2 joined #salt
14:08 oz_akan_ joined #salt
14:08 Chocobo joined #salt
14:08 Chocobo joined #salt
14:09 IJNX mbrgm: run the command with salt '*' cmd.run "shellcommand"
14:10 juicer2 joined #salt
14:11 mbrgm IJNX: got masterless salt. strange thing is: although it says that the command could not be executed, the grants are in the db after running it.
14:11 gildegoma joined #salt
14:12 oz_akan_ joined #salt
14:14 mpanetta joined #salt
14:15 markm joined #salt
14:15 cachedout joined #salt
14:16 Brew joined #salt
14:17 racooper joined #salt
14:18 bhosmer joined #salt
14:19 brianhicks joined #salt
14:20 beardo joined #salt
14:22 Gifflen joined #salt
14:23 Kholloway joined #salt
14:23 mgw joined #salt
14:25 cachedout joined #salt
14:26 thelorax123 joined #salt
14:29 anitak joined #salt
14:35 quickdry21 joined #salt
14:36 mwillhite joined #salt
14:41 redbeard2 joined #salt
14:41 khodgson joined #salt
14:45 jkleckner joined #salt
14:45 sebgoa joined #salt
14:48 jslatts joined #salt
14:50 micah_chatt joined #salt
14:50 mdasilva joined #salt
14:51 anitak joined #salt
14:51 linjan_ joined #salt
14:52 mdasilva1 joined #salt
14:53 NotreDev joined #salt
14:54 snuffeluffegus joined #salt
14:55 itbuddha joined #salt
14:55 mdasilva joined #salt
14:56 mdasilva1 joined #salt
14:56 mdasilva joined #salt
15:02 m0hit joined #salt
15:06 bhosmer joined #salt
15:06 fwiles joined #salt
15:08 Ahlee so is there a way to jump in front of a job? i have all 20 of my worker_threads tied up doing a saltutil.sync_modules, which is gonna take a good 15 minutes to complete against these 200ish nodes
15:08 Ahlee during this time, my salt master is effecitvely useless, as I can no longer submit jobs, they'll just time out
15:08 carlos joined #salt
15:10 kaptk2 joined #salt
15:11 khodgson joined #salt
15:11 khodgson joined #salt
15:14 m0hit joined #salt
15:16 pdayton joined #salt
15:18 hvn joined #salt
15:19 bezaban just slowly learning the basics here, so bare with me
15:20 mgw joined #salt
15:20 amahon joined #salt
15:20 bezaban I have a state that makes sure users are in place (user.present).  I want the particular user to be in the group of their own name as is typical
15:21 bezaban but - groups: - sudo - username doesn't work
15:21 natewalck Morning
15:21 bezaban since it will fail adding the user to the group before it adds the user
15:21 bezaban should I do this with separate states?
15:22 bezaban and morning :)
15:23 bezaban this must be a common question
15:24 natewalck bezaban do you the group set to require the user?
15:24 bezaban no, very barebone setup. only a few packages and users now
15:24 natewalck have*
15:24 natewalck for the group
15:24 natewalck if you want group blah
15:24 natewalck and user blah
15:24 natewalck who is a member of group blah
15:25 natewalck you would have the user require the group
15:25 natewalck so that the group gets created first
15:25 natewalck then when the user gets created, it would add it to the group
15:25 bezaban makes perfect sense
15:25 bezaban I guess I'm just used to having that group created by default and that threw me off
15:26 bezaban created and populated :)
15:26 natewalck right
15:26 bezaban thanks. I'll do that
15:26 natewalck I would think the user provider would create the group
15:26 natewalck I am used to that as well
15:26 bezaban it does create the group if I run it without -group
15:26 bezaban but if I add it, it fails
15:26 natewalck I am not following
15:27 natewalck it does create the group by default
15:27 bezaban if I have user.present entries without the -group section it will work as expected.
15:27 natewalck but if you tell it not to create that group
15:27 natewalck are you adding it to more than its own group?
15:27 bezaban well expected as in 'as normal'
15:27 bezaban yeah, sudo too
15:28 backjlack joined #salt
15:28 natewalck if you only try to add it to sudo
15:28 natewalck does it work as expected?
15:28 amahon joined #salt
15:28 bezaban hmm, I thought that would remove the other groups
15:28 natewalck ah
15:28 natewalck I see
15:28 natewalck you are right
15:29 natewalck oh wait
15:29 bezaban no wait!
15:29 bezaban right. that works
15:29 natewalck ":If set to the empty list, the user will be removed from all groups except the default group."
15:29 natewalck I see
15:29 Gifflen joined #salt
15:29 natewalck default group
15:29 bezaban default group is a thing :)
15:29 natewalck I assume that is the group named as itself
15:29 bezaban wasn't a problem at all then really :s
15:30 bezaban I'm just slowly wrapping my head around this and keep overthinking everything
15:30 amahon joined #salt
15:30 natewalck Have you used a config management tool before?
15:30 natewalck or is this your first?
15:30 bezaban like I was wondering what all the other stuff that had to go in states was, then I realized that the examples I was looking at were complete states
15:30 bezaban this is my first
15:30 natewalck cool
15:30 natewalck yea, it takes a bit the first time
15:31 natewalck but after you grok it all, you can look at almost any CM system and figure out how it works
15:31 hhenkel Hi all, as far as I understandt there is work going on with halite to have a webfrontend with salt. What other options are there to have a frontend to provide some data to management (if possible self service)?
15:32 cro joined #salt
15:32 bezaban natewalck: that's nice. I'm very much enjoying it.  Only been at it for about a day, need to grasp the abstractions
15:32 whiskybar what is the fastest way of listing all minions on the master? Like salt '*' test.ping but without actually hitting them?
15:32 natewalck bezaban it'll come in time. I find that life without some sort of automation on the config side really sucks
15:32 natewalck (now that I get it)
15:33 kula whiskybar: i just list the accepted keys from salt-key
15:33 bezaban natewalck: most of the machines on this network need an overhaul, I figured this was a good time to put one to use instead of logging in to every one of them for every misconfiguration I notice
15:34 natewalck bezaban indeed! And no more remembering WTF you did on that one server you last touched 6 months
15:34 natewalck +ago
15:35 mgw joined #salt
15:35 jalbretsen joined #salt
15:36 bezaban first I'm setting everything up with salt, then generate host entries for dhcpd.conf by grabbing MAC + IP grains, then push
15:36 bezaban oops. quick enter
15:36 pdayton joined #salt
15:37 bezaban the plan is to set up everything with salt, then generate host entries for dhcpd.conf by grabbing MAC + IP grains, then push dhcp config so they can update internal DNS + SSH keys for logging in
15:37 Zuru joined #salt
15:38 bezaban at that point I should be able to actually start managing them
15:39 bezaban does that sound like a good way of doing it? :)
15:41 grep_awesome can I change the timeout for the salt command on console? I have some long running states that don't complete before the console says "screw it"
15:41 ctdawe joined #salt
15:42 bezaban possibly a little bit ambitious considering my knowledge of salt, but I'm a quick learner and doing it in test first
15:42 teskew joined #salt
15:44 natewalck bezaban and I can no longer be useful :)
15:44 natewalck I'm *just* starting to look at salt
15:44 natewalck more familiar with puppet
15:45 juasiepo joined #salt
15:46 mdasilva1 joined #salt
15:46 bezaban hehe :)
15:50 mattmtl joined #salt
15:50 mdasilva joined #salt
15:50 alunduil joined #salt
15:52 mdasilva1 joined #salt
15:52 carlos joined #salt
15:55 mdasilva joined #salt
15:57 UtahDave joined #salt
15:57 mdasilva joined #salt
15:58 krak3n` joined #salt
15:59 danielbachhuber joined #salt
15:59 Brew joined #salt
15:59 hvn left #salt
15:59 bemehow joined #salt
16:00 hhenkel Okay, I found salt-ui, anyone aware of a good project using it?
16:00 xt salt-ui is abandonware, halite is the replacement
16:01 Brew1 joined #salt
16:02 Brew1 joined #salt
16:02 hhenkel xt: okay, I saw halite, from the screenshots I saw it looked like a web execution tool. I'm looking for something that may provide management compatible reports... ;)
16:03 hhenkel I've played around with puppet / the foreman and it was quite nice to be able to point my boss to graphs of how clustered our env is... ;)
16:04 lemao joined #salt
16:05 gkze joined #salt
16:05 gkze how can I do a false unless conditional in cmd.run?
16:05 gkze is there an inverse of unless or?..
16:06 halfss joined #salt
16:07 gasbakid_ joined #salt
16:08 halfss joined #salt
16:09 halfss joined #salt
16:12 m0hit joined #salt
16:12 khodgson joined #salt
16:13 noob2 joined #salt
16:16 dangerousbeans joined #salt
16:16 dangerousbeans Hey salt people
16:16 dangerousbeans what's cooking?
16:17 gkze some meth
16:17 noob21 joined #salt
16:18 dangerousbeans <awkward footshuffle>
16:19 dangerousbeans so I'm having some shhhh problems
16:19 gkze the people of salt-world! awaken!
16:19 gkze I have questions
16:20 bhosmer joined #salt
16:20 dangerousbeans <tumbleweed.gif>
16:20 * gkze agrees
16:20 dangerousbeans I also have questions
16:20 tempspace gkze: did you get your answer about unless?
16:20 gkze nope
16:20 gkze looking through docs wasn't helpfult
16:21 gkze *helpful
16:21 patrek is there a way to use file.absent with a pattern? I'd like to remove all files ending with .prep under a directory
16:21 tempspace gkze: inverse of unless is onlyif
16:21 gkze ahh
16:21 gkze tyvm
16:23 tempspace dangerousbeans: I don't believe so
16:23 tempspace err
16:23 tempspace patrek: I don't believe so
16:24 dangerousbeans am trying to get salt-ssh to work on mac os, but it's freaking out about passwords
16:24 dangerousbeans as in, Mac os => Ubuntu server
16:25 gkze I was gonna say
16:25 gkze Salt on Mavericks should be fun
16:25 dangerousbeans https://gist.github.com/dangerousbeans/7415971
16:26 dangerousbeans so far only medium fun :C
16:26 tempspace patrek: to work around it you can use cmd.run to run an rm /dir/*.prep, with an onlyif of stat /dir/*.prep
16:27 patrek ok, thanks.
16:27 cachedout joined #salt
16:28 khodgson joined #salt
16:28 amahon joined #salt
16:34 kermit joined #salt
16:40 bhosmer joined #salt
16:40 bhosmer joined #salt
16:41 krak3n` hey guys, whats the best way to ensure a state runs absolutely last?
16:42 NotreDev joined #salt
16:43 jkleckner joined #salt
16:43 JasonSwindle joined #salt
16:46 mwillhite joined #salt
16:46 higgs001 joined #salt
16:48 Gifflen joined #salt
16:50 pipps_ joined #salt
16:50 ajw0100 joined #salt
16:51 rgbkrk joined #salt
16:53 giantlock_ joined #salt
16:54 xmltok joined #salt
17:03 clone1018 joined #salt
17:04 krak3n` trying to mitigate against https://github.com/saltstack/salt/issues/7987 by telling salt master service restart to be the absolutely last state to run, but order: last is not having much effect
17:05 khodgson joined #salt
17:07 redondos joined #salt
17:07 IJNX hmm, does order of ID's inside file have to be defined before referenced in same file?
17:07 pipps__ joined #salt
17:08 quickdry21 joined #salt
17:08 IJNX e.g. If I wait for dosomething:… - watch: cmd: script-a
17:08 harobed joined #salt
17:09 zz__ dangerous beans: can you ssh into the box without a password?
17:09 zz__ os@unaffiliated/redondos] has quit [Remote host closed the connection]
17:09 zz__ ah just saw the passwd :| hrmmm
17:11 UtahDave hhenkel: We've got several devs working halite to get reports like that going
17:11 harobed joined #salt
17:13 gasbakid joined #salt
17:14 redondos zz__: ?
17:16 vert joined #salt
17:16 KyleG joined #salt
17:16 KyleG joined #salt
17:17 vert12345 joined #salt
17:17 Iwirada left #salt
17:17 vert12345 Can salt-cloud provision windows VMs? The docs say it can but it keeps trying to ssh to the machines
17:19 druonysus joined #salt
17:19 druonysus joined #salt
17:19 jdenning joined #salt
17:20 troyready joined #salt
17:20 UtahDave vert12345: Yes, it can in the latest develop
17:20 UtahDave vert12345: what version are you using?
17:21 zz__ wat
17:21 zz__ hrm... copy paste issues it seems
17:21 Voziv If I run a command like "salt '*' pkg.install vim"  does it only affect the minion(s) once? (Is it like puppet where it's ensuring the package is installed)
17:21 vert12345 UtahDave: salt-cloud 0.8.9. The error i get is "SSH connection timed out: 900"
17:22 UtahDave vert12345: did you follow the docs here: http://salt-cloud.readthedocs.org/en/latest/topics/windows.html#configuration
17:22 UtahDave ?
17:22 vert12345 UtahDave: Yeah I did. My config does look a little different as it is for AWS
17:22 jacksontj joined #salt
17:23 UtahDave Voziv: when you run pkg.install vim  it will attempt to install vim each time because that is using the pkg execution module
17:23 Voziv I see
17:23 UtahDave Voziv:   try this      salt '*' state.single pkg.installed  name=vim
17:23 UtahDave that will do what you want
17:23 Voziv ah perfect
17:24 UtahDave vert12345: can you test against salt-cloud develop branch? I'm not sure that feature has been in a release yet
17:25 vert12345 UtaDave: I'll give it a try!
17:29 gasbakid_ joined #salt
17:30 dvogt joined #salt
17:33 pipps joined #salt
17:35 mdasilva1 joined #salt
17:35 frosty996 joined #salt
17:37 thelorax123 joined #salt
17:37 frosty996 Hi guys!  So, I've seen this issue a few times with 0.17.1: I get a nagios alert for too many processes on a server, log in to find a few hundred salt-minions sitting apparently idle.  Any idea what might be causing this?  Nothing interesting in the log and I didn't find anything similar in the github issue list
17:41 noob21 UtahDave: I got my autodock code posted up to github: https://github.com/cholcombe973/autodock  It uses the salt client to parallel query a cluster for stats and create new docker containers
17:43 cdcalef joined #salt
17:44 jhulten joined #salt
17:47 apergos what os?
17:47 * apergos fears to hear 'ubuntu'
17:47 apergos I've been slugging away at fedora pre-20 + docker + dockerinit-dynamic-linked-cause-can't-do-it-any-other-way
17:48 apergos still not quite there yet as a good build
17:48 apergos noob21:
17:49 noob21 apergos
17:49 noob21 what's up?
17:49 apergos what os (for autodock)?
17:49 noob21 apergos: sorry i should've mentioned that.  i built it on ubuntu
17:49 apergos argh rats
17:49 harobed_ joined #salt
17:49 noob21 but i imagine it'll work on fedora
17:50 apergos well no, see my comments just above pinging you
17:50 noob21 right now there's nothing ubuntu specific that i know of in there
17:50 Katafalkas joined #salt
17:50 apergos not yet it doesn't, need the devmapper stuff and it's a horrid ratsnest
17:50 noob21 oh :(
17:50 noob21 yucky
17:50 apergos ratsrats, I was hoping you had a workaround but ok, I'll do batttle with static build of devmapper a little later today I guess
17:50 apergos thanks
17:51 noob21 so what is the issue exactly?
17:53 noob21 apergos: i'm reading the opensource.com blog.  they said fedora deprecated aufs and removed it
17:53 apergos yes
17:53 noob21 oh and they settled on devmapper
17:53 noob21 ugh
17:53 apergos and ubuntu is likely to drop it in upcoming
17:54 noob21 really
17:54 apergos yeah exactly, so there's a branch with that stuff in it but then
17:54 apergos (yeah I read that someplace)
17:54 noob21 i wonder when docker 0.7 is gonna land then
17:54 apergos it only works if you run on the same distro + version that you built docker n
17:54 apergos which is not so helpful
17:54 apergos me too
17:54 noob21 how hard is it to get goLang working in fedora?
17:54 apergos well heh 1.1.2 see
17:55 apergos which means then you are stuck with dynamic build for dockerinit
17:55 apergos which opens the whole can of worms
17:55 noob21 what a mess
17:55 gasbakid_ joined #salt
17:56 bitz joined #salt
17:57 khodgson joined #salt
17:58 mdasilva joined #salt
17:58 noob21 apergos: i donno why but that reminds me i need to upload my docker container to the public repo
17:58 apergos nice
17:59 mdasilva1 joined #salt
17:59 Teknix joined #salt
17:59 JasonSwindle joined #salt
18:00 JasonSwindle left #salt
18:00 mdasilva joined #salt
18:00 pentabular joined #salt
18:00 noob21 apergos:  i should fire up a fedora vm and see how it behaves on there.  can you start a container at all?
18:00 gkze joined #salt
18:00 gkze I have an init.sls and I am putting stuff in there that I don't want to run every time
18:01 gkze a lof of unlesses and onlyifs
18:01 gkze in init.sls
18:01 apergos well it gets partway into the process, setting things up, creation,
18:01 apergos but dockerinit (run from within the container right?) fails
18:01 noob21 and then craps out?
18:01 apergos because I'm going with an ubuntu image
18:01 gkze how can one reference another sls from init.sls?
18:01 noob21 oh i see
18:02 gasbakid__ joined #salt
18:02 apergos and devmapper isn't even in the image :-D
18:02 noob21 so if you went with a fedora image it wouldn't need that right?
18:02 apergos (I looked)
18:02 apergos well depends which fedora image, if the path is right I might be ok
18:02 noob21 heh
18:02 apergos path and version of the library
18:02 apergos so don't fedora 18 cause that's probably not going to work
18:02 noob21 i noticed on the ubuntu image on an ubuntu server it also throws some silly error when starting.  it's not fatal or anything
18:02 apergos with f20 docker builds
18:02 noob21 i see
18:02 mdasilva joined #salt
18:03 apergos ah, for me it definitely was fatal: craps out, leaves the container behind, plus a ton of cruft
18:03 apergos well it's not 0.7, they did warn us
18:04 Ryan_Lane joined #salt
18:04 ctdawe joined #salt
18:05 mdasilva1 joined #salt
18:07 mdasilva joined #salt
18:08 jimallman joined #salt
18:08 mdasilva joined #salt
18:09 noob21 apergos: well any testing/patches are highly appreciated.  i only have a few hours a week to work on this
18:09 mdasilva1 joined #salt
18:09 kermit joined #salt
18:10 apergos well lemme get to where I can run a container off my ubuntu image and I'll let you know :-D
18:11 mdasilva joined #salt
18:11 mapu joined #salt
18:13 khodgson joined #salt
18:13 noob21 haha ok
18:13 mdasilva joined #salt
18:14 carmony good morning :)
18:15 mdasilva1 joined #salt
18:15 logix812 joined #salt
18:18 mdasilva joined #salt
18:18 AviMarcus joined #salt
18:20 mdasilva1 joined #salt
18:21 pentabular1 joined #salt
18:21 gasbakid_ joined #salt
18:22 mdasilva joined #salt
18:23 mdasilva1 joined #salt
18:23 mdasilva joined #salt
18:25 mdasilva1 joined #salt
18:26 mdasilva joined #salt
18:26 khodgson joined #salt
18:27 mdasilva1 joined #salt
18:27 gkze joined #salt
18:28 mdasilva joined #salt
18:28 pipps joined #salt
18:29 mdasilva1 joined #salt
18:29 Brew joined #salt
18:30 donatello joined #salt
18:30 patrek joined #salt
18:31 mdasilva joined #salt
18:31 ajw0100 joined #salt
18:32 mdasilva2 joined #salt
18:34 mdasilva joined #salt
18:35 blee_ joined #salt
18:41 TheRealBill joined #salt
18:44 mdasilva1 joined #salt
18:45 mdasilva joined #salt
18:45 mdasilva1 joined #salt
18:47 mdasilva joined #salt
18:48 mdasilva joined #salt
18:48 mdasilva1 joined #salt
18:49 donatello hi
18:50 nahamu any new guesses as to when 0.17.2 will be released?
18:50 donatello is there a way to use the salt-key functions from the python API?
18:51 cro nahamu: We're looking at this week sometime, we need to make sure that all the tests are passing.
18:51 jacksontj joined #salt
18:51 basepi yep, i'm working on getting the tests passing now.  was hoping for today for 0.17.2, but it may slip to tomorrow
18:53 djn joined #salt
18:53 cdcalef joined #salt
18:54 jacksontj joined #salt
18:54 zandy joined #salt
18:55 nahamu cro, basepi:cool, thanks
18:55 basepi np
18:55 basepi should be a good release.  *so* many bugfixes
18:56 jergerber joined #salt
18:59 splee joined #salt
19:00 djn joined #salt
19:00 khodgson joined #salt
19:03 amckinley joined #salt
19:03 [diecast] joined #salt
19:04 splee Hi all.  I'm looking for some good documentation on making salt masters HA - I've found Syndic, but the documentation doesn't seem very clear.  Does anyone have any pointers on this please?
19:05 TheRealBill splee: as I understand it, HA isn't the goal of Syndic. Syndic is for multiple layers of masters.
19:05 [diecast] joined #salt
19:06 djn joined #salt
19:06 splee TheRealBill: Hmm - ok.  *is* there an HA story for Salt masters yet?
19:06 NotreDev joined #salt
19:06 pipps_ joined #salt
19:06 khodgson joined #salt
19:06 TheRealBill splee:  You set up multiple masters, synchronize files as you deem needed (git c/o, NFS, etc.) and point minions at them
19:08 splee TheRealBill: ok, thanks.  So no automatic failover of minions to another master if a master goes down?  I believe all the keys would need to be reauthorized that way from what I understand.
19:08 TheRealBill splee: http://docs.saltstack.com/topics/tutorials/multimaster.html
19:08 TheRealBill splee: that is why you syncronize files. ;)
19:08 TheRealBill well, one reason.
19:08 splee TheRealBill: awesome thanks - not sure how I missed that.
19:08 TheRealBill splee: you're welcome.
19:08 * Gareth waves
19:10 splee Yup, that document is perfect.  Exactly what I was looking for.  I am excited, I think that was the last blocker to us using salt :)
19:10 * splee bids adieu to Chef
19:11 xmltok has anyone used a salt state to keep the keys synchronized?
19:12 _ikke_ what keys?
19:14 KyleG left #salt
19:17 nahamu presumably the keys in /etc/salt/pki/master/{minions,minions_pre,minions_rejected}
19:18 xmltok yeah, for the multimaster discussion that was going on
19:18 quickdry21 joined #salt
19:18 mdasilva joined #salt
19:19 MTecknology basepi: Since you seem to be around and might know... I have a question. With the pre-con courses, do you have to just pick one of those that you want to attend?
19:21 [diecast] joined #salt
19:22 rbstewart joined #salt
19:22 basepi MTecknology: yes, they're parallel
19:22 basepi MTecknology: so you can only take one, unfortunately.
19:22 gkze joined #salt
19:22 mbrgm joined #salt
19:22 basepi (as far as I know)
19:23 quickdry21 joined #salt
19:23 linuxnewbie joined #salt
19:23 basepi For those who aren't aware, Salt Conf is in January!  You should all come.  http://saltconf.com
19:24 sroegner joined #salt
19:24 Chris- joined #salt
19:25 zandy joined #salt
19:25 donatello are there any examples to use the salt-key functions from the Python API? I want to be able to remove minions programmatically
19:26 Voziv Is the minion file yaml?
19:27 vert12345 joined #salt
19:27 donatello Voziv: yes
19:27 Voziv thanks
19:27 vert12345 UtahDave: Updated to the develop branch in a fresh VM, still getting "Error: There was a profile error: Failed to connect to remote ssh"
19:28 vert12345 UtahDave: is there a way of forcing it not to use ssh and to use the other route?
19:28 MTecknology basepi: I get a discount for being a past contributor to salt, right? :D
19:28 MTecknology right?... :(
19:30 noob2 joined #salt
19:32 basepi MTecknology: hehe, that's not my department!  ;)
19:32 MTecknology *sniffle* no love
19:32 basepi MTecknology: as far as I know we don't really have any discounts going except for speakers.  =\
19:33 MTecknology I figured that would probably be the case. I'm a terrible speaker.
19:33 basepi Hehe
19:34 Chrisje joined #salt
19:34 scott_w joined #salt
19:34 gasbakid__ joined #salt
19:35 nahamu when I "pip install salt-cloud" why doesn't it pull in apache-libcloud? (shouldn't it?)
19:35 ddv left #salt
19:36 penguin_dan joined #salt
19:36 nahamu (and salt itself, for that matter...)
19:39 nahamu nevermind... "The merge happened on November 8th, 2013 in pull request #8352."
19:39 nahamu salt-cloud as a separate thing is going away...
19:39 Corey ##linux-ops
19:40 moos3 joined #salt
19:40 moos3 whats the best way to deploy yum repos using salt stack ?
19:41 abe_music joined #salt
19:41 Gareth MTecknology: easy solution.  Go up on stage.  Someone hands you the mic.  Look at the audience.  Say "Salt is awesome!"  Long pause..."I'm out!".  Drop the microphone and walk off stage.
19:42 Corey Gareth: Hey, that's my SCaLE talk.
19:42 Gareth Corey: Want to do the keynote in that style?
19:42 Chrisje joined #salt
19:42 Corey "So, Linux, right?  *pause* I got nothing."
19:42 Corey That would be hilarious on a number of levels.
19:43 Gareth Corey: even better if you shoot at a glance at me "Umm.  Can I have my money now?"
19:44 Corey That redefines "awkward"
19:46 kermit joined #salt
19:46 pipps joined #salt
19:47 Voziv I have to say, salt seems much easier than puppet
19:47 fuserr joined #salt
19:51 [diecast] joined #salt
19:51 noob2 Voziv: indeed :D
19:51 ckao joined #salt
19:52 noob2 left #salt
19:52 IJNX joined #salt
19:53 Voziv Does calling highstate normally take a long time? From what I can tell it runs my top.sls which only contains nginx
19:54 andrej Can I have the master listen for both IPv4 and IPv6 connections from minions?
19:55 zandy joined #salt
19:55 _ikke_ Voziv: Does it actual execute
19:56 _ikke_ ?
19:56 maj888 joined #salt
19:56 Voziv _ikke_: It's sitting at "Calling state.highstate... (this may take a while)" in my terminal (Part of vagrant up)
19:56 Voziv It's been about 10 minutes now
19:56 _ikke_ That's not normal
19:56 druonysus joined #salt
19:57 Chrisje joined #salt
19:57 higgs001 joined #salt
19:58 Voziv What would be a good approach to debugging this? Is there a log file I should look for somewhere?
19:59 mdasilva1 joined #salt
19:59 jhulten joined #salt
20:01 jhulten_ joined #salt
20:01 vert12345 No matter what i do i cant get salt cloud to bootstrap a windows VM... it's always trying to ssh! Am i missing something really obvious?
20:02 _ikke_ Voziv: There is, but you have to start salt in debug modes to get useful output
20:02 maj888 left #salt
20:02 Voziv I killed the high state call on my vagrant machine, going to call it from the command line instead. salt.verbose is set to true
20:04 isomorphic joined #salt
20:05 ajw0100 joined #salt
20:05 vert12345 has anybody used salt-cloud to provision windows based VMs?
20:07 giantlock joined #salt
20:10 Voziv Hmm, doing salt-call -l debug state.highstate gives me this: http://pastebin.com/KUj6Jx6h
20:10 Voziv cpu is sitting at 100% now, sitting at the end of that paste
20:12 backjlack joined #salt
20:15 andrej Voziv - the only time I've seen anything salt take a long time is when minions have gone away ... each missing minion adds its network timeout to the execution
20:16 Voziv andrej: This is a masterless setup afaik. A single minion working alone
20:16 andrej oh
20:17 Voziv my minion conf is "master: localhost  file_client: local"
20:17 Voziv on their own lines without quotes of course
20:17 carmony Voziv: you can run the minion in the foreground
20:17 UtahDave joined #salt
20:18 gmcwhistler joined #salt
20:18 pentabular joined #salt
20:18 gmcwhistler joined #salt
20:18 pipps joined #salt
20:18 Voziv running the minion in the foreground (salt-minion -l debug) doesn't show me anything when I do salt-call
20:18 gmcwhistler left #salt
20:19 maj888 joined #salt
20:19 carmony try salt-call --local state.highstate
20:21 jetblack joined #salt
20:22 oz_akan_ joined #salt
20:22 mdasilva joined #salt
20:22 bhosmer joined #salt
20:22 Voziv hmm, it says no top file found
20:23 Furao install 50 minions in parallels trough salt-cloud is tough on the cpu
20:27 alunduil_ joined #salt
20:28 pipps_ joined #salt
20:28 mdasilva1 joined #salt
20:29 josephholsten joined #salt
20:30 josephholsten left #salt
20:31 shea joined #salt
20:32 carmony Voziv: okay, what machine is the salt-minion running on?
20:33 Voziv the vagrant vm (ubuntu 13.10 x64 box). I just uninstalled the "vagrant-salt" plugin as I found out it's available as a native provider
20:34 Voziv well I think I found the issue
20:34 carmony what version of vagrant are you running?
20:34 carmony ok
20:34 Voziv It seems to be the shared folder
20:34 carmony ok
20:34 Voziv as soon as I tried to LS /srv/salt I get 100% cpu usage
20:34 Voziv And I'm using vagrant 1.3.5
20:35 carmony ok, so vagrant-salt comes built in with Vagrant 1.3.x
20:35 carmony so you don't need the plugin for that
20:35 Voziv yeah
20:35 penguin_dan Voziv, did you find any documentation on the native version of salt for vagrant?
20:35 Voziv penguin_dan: nope
20:36 penguin_dan Voziv: Darn.  I've had no luck with that either
20:36 Voziv Do you get the same issue?
20:36 utahcon is there no states for nfs, only the modules?
20:37 carmony Voziv: can you paste your vagrantfile?
20:38 Voziv carmony: http://hastebin.com/malecoduwu.rb
20:38 UtahDave utahcon: looks like nfs state hasn't been written yet
20:38 utahcon ok, that is what I thought I saw. Thanks for confirming.
20:39 UtahDave np, utahcon.  That's probably one we should finish up with a state.
20:39 carmony Voziv: when you boot up the machine, is there a config file /etc/salt/minion ?
20:39 UtahDave Furao: yeah, spinning lots of minions up with salt-cloud can be processor intensive.  lots of ssh connections
20:39 Furao UtahDave: it's more serving file
20:40 UtahDave Furao: with salt-cloud?
20:40 Furao oh no the master :)
20:41 Voziv carmony: Yeah, and it has the same contents as my minion file on my machine
20:41 carmony ok
20:42 Furao I deployed few hundred of VMs in the past few days and my bottleneck is CPU for serving files to minion
20:43 Furao Nov 11 20:43:14 vrc salt-cloud saltcloud.utils: Waiting for VM IP. Giving up in 00:-1:50
20:43 Furao negative time
20:43 Furao I like that :)
20:46 rbstewart joined #salt
20:48 Voziv A kind person on #vagrant pointed out that guest additions is needed on the box
20:48 Voziv I realized I used an image with no guest additions
20:49 carmony Voziv: ahhh
20:49 Voziv Is there a better place to find a 13.10 box?
20:50 carmony Voziv: yeah... one sec...
20:51 carmony Voziv: http://www.vagrantbox.es/
20:51 UtahDave Furao: lol.
20:51 Voziv yeah that's where I grabbed my 13.10 box but it doesnt have the guest additions
20:51 carmony really?
20:51 carmony virtualbox?
20:51 Voziv yeah
20:52 Voziv "Official Ubuntu 13.10 daily Cloud Image amd64 (Development release, No Guest Additions)"
20:52 UtahDave Furao: so that's just salt-cloud polling for the ip to be available from the cloud provider
20:52 Furao UtahDave: yes I went trough the code
20:52 Furao it's 5 VMs on a total of 100 that couldn't be created
20:52 Furao maybe I hit some rackspace limit
20:53 UtahDave Furao: and you think that's chewing up your cpu?
20:53 Furao no no it's really when the minions are state.highstate and asking from the master all those salt://files
20:53 jacksontj joined #salt
20:54 Furao UtahDave: salt-cloud, ssh, sshpass, and others just consume memory, what slow me down is really just CPU usage during file transfer
20:55 UtahDave ah, I see.
20:56 UtahDave are you pushing down lots of files in addition to your states?
20:56 jkleckner joined #salt
20:56 mdasilva joined #salt
20:56 Furao a lot in numbers and not in size
20:57 mdasilva2 joined #salt
20:58 blee joined #salt
20:58 Furao UtahDave: by the way, I kept in mind what you said regarding events and I switched few things over to salt-reactor this weekend and I had been able to slash a lot of code of my web app :)
20:59 mdasilva joined #salt
20:59 UtahDave Furao: Oh, yeah?  that's cool!
21:00 Furao and we're going back to that restaurant friday, the t-bone was so good :P
21:00 UtahDave my legs are still sore from hiking all over Hong Kong!   :)
21:00 Furao really? ahaha but you barely walked 6 hours
21:01 UtahDave lol, I know!
21:01 cewood joined #salt
21:01 Furao on a flat surface
21:01 UtahDave Mm. yeah, that's a fantastic restaurant.
21:05 rbstewart joined #salt
21:06 bemehow joined #salt
21:07 nahamu UtahDave: are you still there or are you back?
21:07 aleszoulek joined #salt
21:08 UtahDave nahamu: I'm back, now
21:08 UtahDave I was in Hong Kong for the OpenStack summit
21:08 jesusaurus UtahDave: how was it?
21:08 nahamu welcome back! :)
21:09 * jesusaurus wasnt able to make it
21:09 zandy joined #salt
21:09 gkotula joined #salt
21:11 UtahDave thanks, nahamu!
21:11 UtahDave jesusaurus: It was great! It was my first openstack summit.  They put on quite the conference
21:11 UtahDave I met a LOT of Salt users and learned more about openstack.
21:11 UtahDave it was a good week!
21:13 jesusaurus awesome
21:20 bemehow joined #salt
21:20 oz_akan_ joined #salt
21:21 oz_akan_ joined #salt
21:21 bitz joined #salt
21:22 gkotula_ joined #salt
21:23 Voziv Yay it finally works
21:23 Voziv I downgraded to 12.04
21:23 Voziv I'll have to make a new box later
21:23 jesusaurus what were you running before, Voziv ?
21:23 Voziv 13.10
21:23 Voziv ubuntu*
21:24 Voziv penguin_dan: If you had the same issue as me, you need to make sure you either install guest additions, or you use a box with it already installed
21:24 ipmb joined #salt
21:25 gkze joined #salt
21:26 gkotula_ Hello, is there a way to pass additional parameters to pkg.installed? (e.g. I am looking to append --installroot=/opt/foo)
21:26 kvbik i am looking for a best way to list all minions - on a minion itself.
21:26 kvbik how would you do it?
21:27 penguin_dan Voziv: I'm currently using 12.04 -- my question was more related to finding documentation about what is available.  I'm trying to figure out how to use salt in masterless mode and have it render some jinja templated things correctly.
21:27 penguin_dan Voziv: I was just seeing if you had potentially found some documentation about anything, I haven't been able to :\
21:28 pears kvbik: I don't think there's a way out of the box
21:28 pears you could hack up a thing where all the minion ids get stuffed into pillar
21:29 Voziv penguin_dan: you can use salt-minion in masterless by providing the minion conf with  master: localhost and file_client: local
21:29 Voziv then you can do salt-call --local state.highstate to run your top.sls
21:29 kvbik pears: is there a place like this? i'll be more than happy to use it in ext_pillar, so some pillar hack would be very useful..
21:29 jesusaurus kvbik: you might be able to use salt-mine to have all the minions report their existence and share it that way. but im not very familiar with salt-mine
21:30 jesusaurus kvbik: but from a security standpoint i would hesitate making that information available
21:32 UtahDave kvbik: you could use the Salt Mine, or the Peer system.  Depends on how "live" the data you need
21:32 jacksontj joined #salt
21:32 jhulten joined #salt
21:35 jhulten_ joined #salt
21:36 kvbik jesusaurus: let's say i am a secure environment ;))))))
21:39 gkze joined #salt
21:41 rgbkrk joined #salt
21:42 teskew UtahDave: congrats to you and the rest of the bunch for merging salt cloud into core.  awesome!
21:42 maj888 joined #salt
21:42 UtahDave teskew: yes!!  I've been pushing for that for months!  I was so stoked to see it merged!
21:43 UtahDave I think it's going to make both salt and salt-cloud more powerful
21:44 mkoistinen joined #salt
21:45 mkoistinen Hay all. Total Salt noob here... I'm trying to configure iptables using grains and failing miserably, can someone point me in the right direction? Here's the sls file: https://gist.github.com/anonymous/52bf13458f9d68dfdb1a
21:46 mkoistinen (There is a typo here etc -> eth, but that makes no difference)
21:46 mkoistinen I'm getting: SaltRenderError: Undefined jinja variable; line 20 in template
21:46 jacksontj joined #salt
21:48 Baribal joined #salt
21:49 thelorax123 joined #salt
21:51 jacksontj joined #salt
21:52 mdasilva joined #salt
21:53 aboe joined #salt
21:53 mdasilva1 joined #salt
21:54 mdasilva joined #salt
21:54 khodgson joined #salt
21:55 mdasilva1 joined #salt
21:55 pipps_ joined #salt
21:59 _ikke_ mkoistinen: Not sure for certain, but I don't think 'ip_interfaces:etc1' is correct
22:00 mkoistinen _ikke_: Thanks, i just found out I need to do: {{ grains['ip_interfaces']['eth1'] }}, if this helps anyone else.
22:00 _ikke_ right, that would make sense
22:00 NotreDev joined #salt
22:01 NotreDev can i break an extremely long line of text onto multiple lines in yaml - without newlines?
22:02 __number5__ mkoistinen: you can also use jinja dict shortcut {{ grains.ip_interfaces.eth1 }}
22:03 mkoistinen __number5__: Sweet! Thanks. Its all Python, I guess? I guess I was confused because of running: "salt '*' grains.get ip_interfaces:eth1"
22:03 NotreDev of course i could use the jinja2 replace filter
22:03 amckinley joined #salt
22:05 pipps__ joined #salt
22:06 __number5__ mkoistinen: that syntax is only available in jinja (inside {{}}), the template engine will translate it back to grains['ip_interfaces']['eth1']
22:07 mkoistinen Got it!
22:09 _ikke_ yeah, in python it would try to call the attribute, instead of the item
22:10 zandy joined #salt
22:11 erasmas joined #salt
22:12 jimallman joined #salt
22:12 erasmas I'm running a masterless minion with a synced _modules directory (I verified it's on the masterless minion and synced as expected), and the only file in there right now is a copy of the test.py module named mytest.py. however, if I call sudo salt-call mytest.ping, it says function not available
22:12 erasmas other than syncing _modules, what do I need to do in order to call a custom module?
22:14 pdayton joined #salt
22:17 NotreDev how can i store some (but not all) data in a git pillar
22:17 vkurup joined #salt
22:18 isomorphic joined #salt
22:21 jacksontj joined #salt
22:21 pipps_ joined #salt
22:24 __number5__ NotreDev: http://docs.saltstack.com/topics/tutorials/pillar.html
22:24 NotreDev __number5__: what is your experience level with salt? i don't know if you're trolling me, or don't understand my question?
22:25 __number5__ NotreDev: ignore me if you think that's trolling
22:25 NotreDev sounds good.
22:25 cdcalef joined #salt
22:26 ajw0100 joined #salt
22:26 NotreDev joined #salt
22:27 __number5__ erasmas: can you see your module when doing: salt-call --local sys.list_modules
22:28 ctdawe joined #salt
22:29 Ahlee so reasking my question from this morning - is there a way to prioritize/override executing states? If I call saltutil.sync_modules across all 200 nodes, I wind up with about 15 minutes of unreponsive salt as all 20 worker threads are busy plucking along
22:29 abe_music joined #salt
22:31 erasmas __number5__: nope, it's not there. I just tried running saltutil.sync_all and saltutil.sync_modules and it carries over the files, but it's still not listed in sys.list_modules
22:31 olliewalsh joined #salt
22:32 mgw I have something weird going on with pillar — pillar.data shows the item, but pillar.raw does not, even after a refresh_pillar, and pillar.get doesn't find it either
22:32 erasmas __number5__: the docs only say to put it in a "directory called _modules/ within the file_roots", which I believe I did correctly since it copies over the _modules directory in the main file roots folder
22:32 NotreDev i specify an external pillar as mentioned here (https://salt.readthedocs.org/en/latest/ref/pillar/all/salt.pillar.git_pillar.html#module-salt.pillar.git_pillar) but, calling `salt-call --local pillar.items` lists data from my /srv/pillar folder (even when salt-master is stopped, or restarted)
22:33 NotreDev i'm not sure how well gifts is supported, as it looks like there has been quite a bit of google discussion on it (https://groups.google.com/forum/#!topic/salt-users/nmVlTSHalpY)
22:33 NotreDev any tricks to getting it to work?
22:35 mgw erasmas: I'm just jumping in here… You're writing a custom execution module?
22:35 erasmas mgw: I'm trying to write a custom state module. right now it's just a copy paste of the test.py module that comes with salt, so I can make sure I can execute it as expected. I'm following the docs on http://docs.saltstack.com/ref/modules/
22:36 erasmas (I renamed it mytest.py to avoid name conflicts)
22:36 Ahlee erasmas: in your top.sls, do you have anything matching the host?
22:36 Ahlee erasmas: also, up your logging on a minion and verify there's not a problem with the python. Any compilation issues in the module and salt's not going to be happy.
22:37 erasmas Ahlee: it's a masterless minion, so I'm using salt-call only. everything else is working as normal (it's actually all with salty-vagrant, but I've been using masterless minion VMs for a while and everything else works as expected)
22:37 mgw erasmas: state modules go in _states
22:37 mgw not _modules
22:37 Ahlee Oops, jumped in a bit late. Apologies.
22:37 oz_akan_ joined #salt
22:37 erasmas mgw: maybe that's it. I'll test, thanks
22:38 mgw But the page you linked to is for execution modules I believe
22:38 erasmas mgw: is https://github.com/saltstack/salt/blob/develop/salt/modules/test.py an execution module or a state module?
22:38 oz_akan__ joined #salt
22:38 mgw execution
22:39 erasmas mgw: ok, so even if I'm not doing what I set out to do, I still don't see why that code, when put in <file_roots>/_modules, wouldn't be callable
22:39 pdayton joined #salt
22:39 mgw I'm not familiar with masterless config, unfortunately...
22:39 mgw But in a master-minion setup, that should work
22:40 erasmas hm. I see some old bugs relating to this. wonder if there was a regression at some point. I keep running into bugs
22:44 mgw basepi: after a saltutil.refresh_pillar, shouldn't pillar.raw and pillar.data return the same data (assuming no master-side errors compiling the pillar)?
22:45 basepi mgw: as far as i know, yes.
22:45 basepi raw does a limited refresh without actually syncing to the minion, if i remember correctly
22:45 basepi so assuming you've synced and pillar hasn't changes, yes.
22:46 UtahDave joined #salt
22:47 joehh have people been using salt-minion on windows server 2012?
22:48 halfss joined #salt
22:50 mgw basepi: this is weird — after restarting the master, everything is working fine again
22:50 mgw (0.17.1)
22:50 basepi joehh: i want to say yes, but don't know for sure
22:50 basepi mgw: possibly a caching issue?
22:51 mgw apparently
22:51 erasmas mgw: I tried putting a a copy of the cmd state module in _states/mycmd.py, ran the sync all, added mycmd.run to a state in my highstate, and re-ran highstate. everything else there executes, but it says "State mycmd.run... is unavailable"
22:51 erasmas so despite syncing correctly it's not found. does anyone know how else I can get a masterless minion to acknowledge custom state modules?
22:53 mgw erasmas: doe scmd.py have a "virtual" function?
22:53 mgw if so, you'll need to update your copy to return "mycmd" instead of "cmd"
22:53 mgw basepi: actually, stranger now… pillar.get, pillar.data, and pillar.raw all show the key
22:54 mgw but jinja is complaining
22:54 halfss_ joined #salt
22:54 erasmas mgw: no, I don't see it there. also I'm only doing that because there wasn't a simpler example for testing (I couldn't find any good tutorials on this and the one in http://docs.saltstack.com/ref/states/writing.html is incomplete)
22:54 basepi So you're using those commands in jinja?  Not on the CLI?
22:54 basepi mgw ^
22:54 joehh basepi: thanks - looks like there are a couple of issues in the tracker
22:55 joehh and that utahdave has at least run it - so that is a good start...
22:55 basepi joehh: yep.  sort by label "Windows" to see them all (unless I missed one somehwere -- very possible
22:55 basepi )
22:55 thelorax123 joined #salt
22:55 isomorphic joined #salt
22:55 basepi problem is that UtahDave is our only Windows guy, and he's stretched thin
22:55 basepi we really need to get more Windows talent.
22:55 mgw basepi: no, from cli
22:56 basepi mgw: oh, so jinja is complaining in the pillar compiler?
22:56 mgw for testing availability of the key
22:56 __number5__ erasmas: maybe try salt-call state.highstate first then mytest.ping?
22:56 basepi mgw: just wondering where jinja comes into it
22:56 __number5__ rememeber to use -l debug
22:57 mgw but then when I run state.sls, which compiles a jinja template,  it complains: "Undefined jinja variable; line 10 in template"
22:57 Cidan so about salt 0.17.2...
22:57 basepi mgw: there was at least one pillar issue in 0.17.1
22:57 Cidan because right now, salt-cloud is broken, and I really don't want to work off dev...
22:57 basepi mgw: i would recommend testing against `develop`
22:57 basepi mgw: if you're having troubles there
22:59 natewalck Curious, was Salt ready for Mavericks on Day 1?
23:01 mgw basepi: the problem was a misleading jinja error
23:01 mgw with <======== pointing to the wrong line
23:01 mgw I had an undefined subkey
23:02 mgw on an entirely different line
23:02 mkoistinen Hi again all. Guess what? I'm still a noob! Can anyone say why sls for mysql-server works great, except now iptables rules are made: https://gist.github.com/anonymous/4ddd3144be89fd75a04d
23:02 erasmas __number5__: I had tried that and it didn't work, but despite execution modules not doing what I want, my main use case is state modules. so now I'm using a state module in _states/ per the docs, and same basic issue with it not being found
23:02 basepi natewalck: we didn't specifically target mavericks, but nothing that salt interacts with really changed.  so it should work as well on mavericks as on mountain lion, etc
23:03 natewalck basepi Cool. Puppet took a huge dump on 10.9
23:03 basepi i can't recall any mavericks-related bug reports crossing my "desk"
23:03 natewalck so I was curious how Salt fared
23:03 basepi mgw: interesting.  guess that new jinja error reporting isn't perfect, which is unfortunate.
23:04 basepi mgw: in fact, could you potentially open an issue? if that error reporting is wrong, we either need to fix it or rip it out
23:04 mgw when we talk about Maverick — is it OS X 10.9 or Ubuntu 10.10? (Thanks Apple!)
23:04 basepi mgw: otherwise it's going to cause more grief than it fixes.
23:05 mgw basepi: yeah, I"ll open a ticket
23:05 basepi mgw: hehe, good thing it wasn's OS X 10.10, right?
23:05 erasmas so no one has an example of how to use a custom state module in a masterless minion? this is kind of a deal breaker for what I'm trying to do. any help would be greatly appreciated
23:06 dvogt joined #salt
23:06 erasmas whiteinge: or other nice people who might know ^^
23:06 ninkotech joined #salt
23:06 gkze joined #salt
23:06 kermit joined #salt
23:07 basepi erasmas: not sure if there's a _modules dir on masterless minion, but you could definitely put custom modules in the salt/modules/ directory where salt is installed.
23:07 basepi erasmas: hacky, but it definitely will work.
23:08 mgw basepi: It's al in the "s" I realized
23:08 mgw Maverick is Ubuntu, Mavericks is OS X
23:09 basepi mgw: true.  still, good thing it wasn't 10.10 because that would have added to the confusion.  =P
23:09 UtahDave joined #salt
23:10 zandy joined #salt
23:11 mgw basepi: in a test formula I'm writing, I get this error:         Comment:   Undefined jinja variable; line 372 in template
23:12 mgw I see that 372 frequently… is that a line number from a  python file called 'template'?
23:12 Cidan grr
23:12 Cidan why the fuck does salt bootstrap update all my packages?
23:14 basepi mgw: nah, the reason it's always named "template" is because somewhere along the way salt loses the filename and is just passing around a string
23:14 djinni` joined #salt
23:14 basepi so we just call it "template".  as far as i know, 372 holds no special meaning.  sounds like a coincidence to me.
23:15 mgw basepi: 372 is the getattr line in jinja2/environment.py
23:16 mgw on my system
23:16 __number5__ erasmas: Can you post your minion config somewhere? my masterless minion only has id and file_client: local two lines in it, and both _states and _modules working fine
23:17 mgw basepi: could salt be misinterpreting the exception?
23:17 mgw https://github.com/mitsuhiko/jinja2/blob/2.5-maintenance/jinja2/environment.py#L371
23:17 mgw (on my system it's a line off)
23:18 alunduil_ joined #salt
23:18 basepi mgw: it's possible.  try changing that file and see if the exception line changes?
23:18 jkleckner joined #salt
23:19 __number5__ mgw: you're using python2.5? salt only support 2.6.x ~ 2.7.x
23:20 mgw basepi: yep!
23:20 mgw __number5__: I was just showing the place in jinja2
23:20 mgw I'm on 2.7
23:20 basepi mgw: boom.  good to know.  add that to the issue, eh?
23:20 __number5__ :)
23:20 mgw I'm now reporting 375 after adding a few liens to environment.py
23:21 erasmas __number5__: it's essentially http://paste.ofcode.org/MCbqZv3P6KBFaSc4AqzUTT
23:22 erasmas __number5__: what salt are you on? I'm stuck on 0.16.x for various reasons right now
23:22 __number5__ erasmas: 0.17.1 & develop
23:23 __number5__ erasmas: but I don't think they changed between 0.16.4 and 0.17
23:23 erasmas __number5__: this wouldn't be the first bug I've found that was fixed in 0.17 :/
23:25 mgw basepi: nailed it further — it's when you access a subkey of a non-existent key: {{ foo.foo }} with no foo at all
23:26 bhosmer joined #salt
23:26 mgw But that's not my original problem
23:26 mgw haven't reproduced that yet
23:26 basepi interesting!  so it reports correctly without subkey?
23:26 NotreDev joined #salt
23:27 __number5__ erasmas: do you see anything in /var/cache/salt/minion/extmods/modules/ ?
23:28 erasmas __number5__: no, extmods is an empty dir here
23:29 whiteinge erasmas: (didn't skim the entire chat backlog) there's a config option in the minion config where you can list arbitrary directories on the file system and salt will load modules from those dirs
23:30 erasmas __number5__: my file roots base does carry over the _states directory as expected, but when I run a sync_all it doesn't seem to recognize it as a _states folder
23:30 erasmas whiteinge: does that include state modules then? Let me try that
23:30 mpanetta joined #salt
23:31 mkoistinen What steps should one take to find out why my SLS files are not working? I don't see any logs anywhere. =(
23:31 whiteinge erasmas: http://docs.saltstack.com/ref/configuration/minion.html#states-dirs
23:31 UtahDave joined #salt
23:32 mkoistinen Anyone have any advice for troubleshooting failing sls files?
23:32 whiteinge (catching up on the backlog.) __number5__'s suggestion to use file_client: local and the /srv/salt/_states dir should also work fine if you'd prefer that route
23:32 erasmas whiteinge: testing now, thanks. so does http://docs.saltstack.com/ref/states/writing.html only apply to master/minion?
23:32 NV mkoistinen: use salt-call on the minion to execute the state, you get a bunch more debug info
23:33 mkoistinen NV: Thanks!
23:33 jcockhren SO.
23:34 jcockhren Who wants to see an example of pillar backed scheduler + states that backup site dbs?
23:35 fuser joined #salt
23:35 jcockhren backup to s3 that is
23:36 jcockhren when it came to timebased naming of the db dumps, there was no sane way to execute any calls with yaml rendering. So this uses pydsl
23:36 whiteinge erasmas: that doc should still apply to a masterless minion with file_client: local in the minion config
23:36 jhulten joined #salt
23:37 NV pcarrier: mhmm?
23:38 frosty996 left #salt
23:40 erasmas whiteinge: I have file_client: local but it doesn't work. however, setting states_dirs explicitly did work. I can only guess this has to be a bug unless there's a step missing from the docs. how magic is the code that tries to find a _states folder in file_roots? I put it in the base and know it's there
23:40 cdcalef jockhren let me at that bad boy
23:41 jcockhren cdcalef:  on sec sanitizing
23:41 cdcalef don't worry you can trust me :}
23:44 modafinil Is there a way to mix in real python into an sls? (without writing the whole thing in python)
23:47 mgw basepi: I've reproduced the original issue, should I add it to the same ticket/
23:47 mgw Comment:   Undefined jinja variable; line 2 in template
23:47 mgw ---
23:47 mgw {{ pillar.bar }}
23:47 mgw {{ pillar.foo }}    <======================
23:47 modafinil afaik, i can't just .split() in jinja, but that's what I'd like to do :)
23:47 mgw bar is actually the undefined value
23:48 basepi kk, cool, thanks for adding that mgw
23:48 jcockhren modafinil: not that I know of. I don't think it's possible at the moment. pydsl and python renders don't allow piping to other renders
23:48 jcockhren modafinil: but it'll be great if it did!
23:49 modafinil is it possible to build a library of stuff that i pull in? or should i just bite the bullet and do everything in python
23:49 Cidan aslkdjasdlkj
23:49 modafinil already doing it in a few places, starting to feel inevitable :( (but I also haven't worked with jinja in a long time, so i'm probably missing stuff)
23:49 Cidan salt bootstrap overwrote my master config
23:50 oz_akan_ joined #salt
23:50 whiteinge erasmas: you should need just that one config line. what salt version? i use file_client: local when i develop (because it's faster) and i've seen it working on 0.17.0. (that's not to say there isn't something else causing it not to work for you)
23:50 thelorax123 joined #salt
23:50 jcockhren modafinil: states of one renderer and depend on states written in another render
23:50 MK_FG joined #salt
23:51 erasmas whiteinge: we're stuck on 0.16.3 right now. I do use file_client: local
23:51 jcockhren doesn't help as much... but
23:52 basepi mgw: oh, misread your message.  should you add it?  i dunno, do you think it's related?  it actually sounds like a different issue to me
23:52 basepi mgw: probably new issue, after all.
23:53 cbloss sometimes when I do a new highstate there is no output on the master. I check the minion and it is obvious the saltstate is still running. any idea what is causing this?
23:54 mgw basepi: too late, sorry
23:54 mgw They're probably loosely related
23:54 mgw I haven't looked at what Salt is doing, but I'm assuming it's trying to parse the text of an Exception
23:55 basepi No worries. We'll get it figured out in any case.
23:56 druonysus joined #salt
23:59 oz_akan_ joined #salt

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