Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-11-09

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

All times shown according to UTC.

Time Nick Message
00:08 scott_w joined #salt
00:12 karlgrz joined #salt
00:12 karlgrz Hey all, I'm seeing errors running salt-bootstrap that I wasn't seeing earlier this afternoon...what do I need to do to purge what it installs?
00:13 karlgrz Can I just use pip?
00:13 whitepaws under what circumstances should a job request end up with a "Minion did not return" mesage?
00:13 whitepaws i can't tell when i should expect that vs . "Execution is still running on ...."
00:13 whitepaws is there a timeout i should adjust?
00:15 m0hit joined #salt
00:16 pniederw joined #salt
00:16 cdcalef joined #salt
00:17 pniederw how do I install salt-ssh via the ubuntu-ppa? neither the salt-master nor the salt-minion package has it.
00:20 m0hit joined #salt
00:23 higgs001 joined #salt
00:29 cachedout joined #salt
00:30 packeteer salt-ssh package
00:30 packeteer # apt-cache search salt-ssh
00:30 packeteer salt-ssh - remote manager to administer servers via salt
00:43 whitepaws interesting, if I strace a running job salt-minion, it immediately dies
00:43 whitepaws and tells the master
00:43 whitepaws ZMQError: Interrupted system call
00:45 ctdawe joined #salt
00:46 pipps__ joined #salt
00:53 pipps_ joined #salt
00:55 mdasilva1 joined #salt
00:55 kellnola joined #salt
01:00 pniederw packeter: I've tried `apt-get install salt-ssh`, but it can't find that package.
01:01 Gifflen joined #salt
01:01 mgw joined #salt
01:02 pniederw now `apt-get update` gives me: W: Failed to fetch http://ppa.launchpad.net/saltstack/salt-daily/ubuntu/dists/precise/Release.gpg  Unable to connect to ppa.launchpad.net:http:
01:03 Brew joined #salt
01:03 ebodine can't even reach https://launchpad.net - anyone know anything?
01:03 pniederw same for me
01:04 pniederw http://www.downforeveryoneorjustme.com/ also says it's down
01:06 kellnola I just hope it isn't Amazon us-east-1 again
01:06 hvn joined #salt
01:08 redondos joined #salt
01:08 redondos joined #salt
01:09 pniederw http://www.isitdownrightnow.com/launchpad.net.html says that launchpad has been down since 5 hours
01:11 mdasilva joined #salt
01:16 ebodine launchpad down due to a power failure; hope their SLA is tight - https://twitter.com/launchpadstatus/status/398980619880775680
01:16 elfixit joined #salt
01:19 Gifflen joined #salt
01:19 hvn left #salt
01:31 pipps joined #salt
01:31 mufa joined #salt
01:31 cdcalef joined #salt
01:35 jcockhren how do you all feel about a syndic grain?
01:35 mufa hi, I'm new to salt. Is there a way to generate a random string on each minion, update a user password with that string and either save it to a file, or present on stdout? If yes, how?
01:35 higgs001 joined #salt
01:52 bemehow joined #salt
01:54 pdayton joined #salt
01:55 khodgson joined #salt
01:59 mdasilva1 joined #salt
02:03 Brew joined #salt
02:04 pniederw tried to install salt HEAD via salt-boostrap, but now I'm getting: error: can't copy 'doc/man/salt-cloud.1': doesn't exist or not a regular file  * ERROR: Failed to run install_ubuntu_git()!!!
02:04 mwillhite joined #salt
02:05 mdasilva joined #salt
02:07 mdasilva2 joined #salt
02:08 ajw0100 joined #salt
02:08 pniederw it's frustrating into how many problems I run with salt
02:09 joehh pniederw: is that latest one due to launchpad being down and being unable to install dependencies?
02:10 ipmb joined #salt
02:11 pniederw I'm not sure. it looks like salt-bootstrap gets pretty far, but ultimately it fails with: ERROR: Failed to run install_ubuntu_git()
02:12 NV hrm, is salt-ssh supposed to require msgpack?
02:12 pniederw maybe this can be neglected, but whenever I execute a salt command, I get a stack trace
02:12 pniederw so either that's the problem, or HEAD is broken
02:12 joehh or both :(
02:12 pniederw the error I get when executing a salt command is: ImportError: No module named libcloud.compute.types
02:13 pniederw I get this even when I just type "salt"
02:13 joehh if you look at what basepi said a few hours ago
02:13 joehh they are merging salt-cloud into salt at the moment
02:13 redondos joined #salt
02:13 redondos joined #salt
02:14 joehh doc/man/salt-cloud.1 does not currently exist inn the repo
02:14 joehh so I guess the merge is part way through
02:14 pniederw ok, thanks for the info. salt really needs a tested nightly build.
02:15 ebodine NV: salt-ssh is not supposed to require msgpack, still open issue - https://github.com/saltstack/salt/issues/7913
02:16 joehh they run regular tests on jenkins and there are nightly ubuntu builds (but they are on launchpad)
02:16 joehh but with a merge like this there are going to be times when HEAD/tip/.. is broken
02:16 joehh unfortunately :(
02:16 pniederw is there any way to identify a recent good build? is there a ci server that publishes build results?
02:18 mgw joined #salt
02:18 joehh I suspect you can run salt-bootstrap for a particular branch
02:18 joehh the 0.17 branch is likely to be ok
02:19 joehh I think: salt-bootstrap git 0.17
02:19 joehh but I could be wrong
02:19 pniederw I need a bugfix that was committed two days ago or so. will that have made it onto the 0.17 branch?
02:20 NV hrm, i have sudo: True in the roster file for a host, but it doesn't appear to be sudoing
02:21 NV salt-ssh host -r whoami returns my user, not root
02:21 NV doing sudo whoami returns root though
02:21 NV 0.17.1
02:22 joehh not sure, best to look on github
02:23 hazzadous joined #salt
02:24 NV yeah, did a quick search and found nada
02:24 NV not sure if the sudo feature was only added after 0.17.1, or if it's a bug
02:24 joehh pniederw: ^^
02:24 joehh NV: I suspect it is a bug, I seem to remember the option being there in 0.17.0
02:26 ndivad left #salt
02:29 ravibhure joined #salt
02:30 jalbretsen joined #salt
02:34 ravibhure1 joined #salt
02:35 kellnola joined #salt
02:39 alunduil joined #salt
02:41 pipps joined #salt
02:46 ajw0100 joined #salt
02:49 mgw joined #salt
03:00 redbeard2 joined #salt
03:01 khodgson joined #salt
03:02 NotreDev joined #salt
03:12 kellnola joined #salt
03:19 faldridge joined #salt
03:23 heewa joined #salt
03:28 pniederw joehh: I've been told the nightlies aren't any more stable than any other commit
03:29 pniederw I'd expect a nightly to pass all tests, otherwise it shouldn't be published
03:30 heewa joined #salt
03:32 joehh pniederw: that would be nice
03:33 joehh you're right, they are just a naive build - as long as the build succeeds they go up
03:33 joehh the build could run the tests, but doesn't at the moment
03:35 joehh looks like launchpad is up again
03:35 joehh if the bugfix you are after is in a module or state, you could probably put the file from git into _modules or _states and sync it out
03:36 joehh otherwise, you can use file.managed to copy that file over the top of the old version on the minions...
03:36 Teknix joined #salt
03:37 joehh hacky, but effective as a temporary fix
03:37 m0hit joined #salt
03:38 pniederw I'm not fighting a bug in production. I haven't managed to get that far.
03:39 dccc joined #salt
03:40 lineman60 joined #salt
03:44 Baribal_ joined #salt
03:45 zandy joined #salt
04:07 lemao joined #salt
04:07 Savagedlight joined #salt
04:12 redbeard2 joined #salt
04:13 lesnail joined #salt
04:14 faldridge joined #salt
04:20 redondos_ joined #salt
04:21 bhosmer joined #salt
04:23 faulkner joined #salt
04:31 racooper joined #salt
04:34 mwillhite joined #salt
04:44 jimallman joined #salt
04:45 jimallman joined #salt
04:45 jjasinski_ joined #salt
04:46 zandy joined #salt
04:49 jjasinski_ hey all, can I use a 0.17 salt-master to operate on a 0.16 salt-minion?
04:50 lesnail joined #salt
04:52 grep_awesome still learning the ropes on states. is it possible to have one state dependent upon another?
04:53 bemehow joined #salt
04:54 anuvrat joined #salt
04:54 shinylasers joined #salt
04:54 Jahkeup grep_awesome: definitely! check out http://docs.saltstack.com/topics/tutorials/walkthrough.html#salt-states for some simple examples
04:56 Jahkeup in fact if you haven't already I highly recommend reading through the walkthroughs on docs.saltstack.com. There are some great beginning concepts explained there
04:56 Jahkeup grep_awesome: or checkout https://github.com/ShawnMilo/saltdemo for an 'interactive' demo and intro
04:57 grep_awesome I've gone through them briefly, but haven't quite got it all put together yet
04:57 grep_awesome thanks though
04:58 grep_awesome looks like includes are what I was looking for http://docs.saltstack.com/topics/tutorials/states_pt3.html
04:58 grep_awesome I think
04:58 grep_awesome thanks
04:58 Jahkeup np
04:59 Jahkeup wait, you're looking to include other state files? or require states?
05:01 Jahkeup bbl
05:02 shinylasers joined #salt
05:04 bemehow joined #salt
05:04 jjasinski_ hey all, does anyone know if there is a ppa 0.17 release for Saucy yet?
05:06 jjasinski_ (I don't see one in: https://launchpad.net/~saltstack/+archive/salt, but I don't know if I'm looking the the right place)
05:07 micko joined #salt
05:07 jphall joined #salt
05:07 namtab_ joined #salt
05:08 axiom_ joined #salt
05:08 gamingrobot_ joined #salt
05:09 brucewang joined #salt
05:09 dork_ joined #salt
05:10 viq_ joined #salt
05:10 jtrucks_ joined #salt
05:10 yml_ joined #salt
05:10 Tropolis joined #salt
05:10 _ioni joined #salt
05:11 worstadm1n joined #salt
05:11 bemehow joined #salt
05:14 jjasinski_ Just wondering if there's a way to install salt 0.17 on ubuntu 13.10… or is installing from the github source the only way to go for now
05:17 jjasinski_ ?
05:19 canci_ joined #salt
05:20 scooby2_ joined #salt
05:20 joonas_ joined #salt
05:21 joonas joined #salt
05:26 bemehow joined #salt
05:28 m0hit joined #salt
05:28 xl1 joined #salt
05:33 xl1 left #salt
05:33 zandy joined #salt
05:35 heewa joined #salt
05:41 ajw0100 joined #salt
05:49 jjasinski_ joined #salt
05:49 redondos joined #salt
05:49 redondos joined #salt
05:50 ajw0100 joined #salt
06:01 joehh jjasinski_ missed you again
06:01 joehh packages there for saucy
06:08 jjasinski_ joined #salt
06:10 joehh jjasinski_: caught you!
06:10 joehh jjasinski_: packages are now up for saucy
06:10 jjasinski_ :-) Awesome!
06:11 joehh the package version contains contains raring so not surprised you didn't find it
06:11 joehh it/them
06:11 jjasinski_ Ah, ok, that's why I didn't see it
06:12 jjasinski_ Thank you! I'll give it a try
06:14 joehh missed you by about a minute yesterday
06:15 jjasinski_ Thanks for the update… sorry I missed you
06:15 joehh let me know if you have any probs as I copied it from raring - should be identical
06:16 joehh no worries
06:22 jjasinski_ joehh - the new package seemed to install cleanly on both the master and minion.
06:25 joehh good to hear
06:29 fys joined #salt
06:31 faldridge joined #salt
06:56 scalability-junk joined #salt
06:57 cachedout joined #salt
07:05 Furao joined #salt
07:08 xt joined #salt
07:15 ctdawe joined #salt
07:21 Furao joined #salt
07:25 jjasinski_ joined #salt
07:28 m0hit joined #salt
07:29 m0hit_ joined #salt
07:38 tty-1 joined #salt
07:43 jimallman joined #salt
07:45 sciyoshi1 joined #salt
07:57 scott_w joined #salt
08:04 IJNX joined #salt
08:11 sebgoa joined #salt
08:21 sgviking joined #salt
08:27 xl1 joined #salt
08:28 m0hit joined #salt
08:28 balboah joined #salt
08:38 creich joined #salt
08:58 shinylasers joined #salt
09:21 diegows joined #salt
09:26 Furao joined #salt
09:28 m0hit joined #salt
09:30 creich joined #salt
09:52 xl1 left #salt
10:01 Niichan joined #salt
10:03 redondos joined #salt
10:03 redondos joined #salt
10:09 lemao joined #salt
10:13 scott_w joined #salt
10:15 mufa joined #salt
10:17 zandy joined #salt
10:17 tty-1 joined #salt
10:26 scott_w joined #salt
10:30 ravibhure joined #salt
10:32 scott_w joined #salt
10:35 ravibhure joined #salt
10:38 scott_w joined #salt
10:51 sgviking joined #salt
11:12 kellnola joined #salt
11:13 Teknix joined #salt
11:21 ravibhure1 joined #salt
11:24 ravibhure joined #salt
11:28 m0hit joined #salt
11:53 faust joined #salt
11:58 santagada joined #salt
12:28 m0hit joined #salt
12:32 harobed joined #salt
12:32 ricicle left #salt
12:37 scott_w joined #salt
12:41 mapu joined #salt
12:51 helderco joined #salt
13:21 hvn joined #salt
13:26 harobed_ joined #salt
13:28 m0hit joined #salt
13:29 helderco joined #salt
13:34 mwillhite joined #salt
13:47 heewa joined #salt
13:48 oraqol joined #salt
13:49 oraqol Hi guys, I love salt stack, rolling out minions to a few datacenters, so far have it on 150+ nodes, but I'm running into a bit of trouble :/
13:49 oraqol I was wondering if maybe one of you fine fellows might be able to help me?
13:50 oraqol In particular, I'm trying to retroactively add a grain to a subset of this collection of nodes, so I'm just adding it to /etc/salt/grains
13:50 oraqol just something like this
13:50 oraqol test: test
13:51 oraqol but when i run salt -G "test:test" test.ping
13:51 oraqol nothing returns
13:51 oraqol any idea what I could do to fix this
13:51 oraqol I've already restarted the salt-minion -d
13:56 zooz joined #salt
13:58 oraqol oops, nvm.  I think I was using a protected key value
13:58 oraqol changed the grain to an other keypair and works great now
13:58 oraqol this is the best thing EVER, btw.  Can't wait until you guys roll out monitoring for it
13:59 oraqol gonna be EPIC!
13:59 oraqol ok bye guys, keep up the good work
13:59 scott_w joined #salt
14:02 khodgson joined #salt
14:05 gwar9999 joined #salt
14:07 markm joined #salt
14:09 giantlock joined #salt
14:17 bhosmer joined #salt
14:21 jkleckner joined #salt
14:28 m0hit joined #salt
14:29 khodgson joined #salt
14:29 giantlock joined #salt
14:32 heewa joined #salt
14:32 khodgson joined #salt
14:34 jbub joined #salt
14:35 bezaban salt is wonderful!
14:35 Jahkeup bezaban: yes!
14:35 bezaban rolled it out on test network now :)
14:37 bezaban does it make sense to run it on dhcp/dns server?
14:37 bezaban could set up another machine
14:38 bhosmer joined #salt
14:38 Jahkeup its really up to you I start on a shared service machine in my env but have since moved it off to its own host
14:38 Jahkeup *started
14:38 bhosmer joined #salt
14:39 amahon joined #salt
14:39 bezaban yeah. this is part of a network makeover, re-doing some other infrastructure.  Need to think about it
14:39 khodgson joined #salt
14:39 bezaban or.. adding infrastructure should I say
14:40 bezaban the network has outgrown itself and they've not really had a competent linux admin inhouse
14:40 Jahkeup either way with salt it gets quite exciting and enjoyable to watch your states set things up and configure themselves!
14:41 bezaban getting to that part now
14:41 Jahkeup ah, that's never good, similar here except they claimed that they had a "solaris" guy..who ended up knowing nothing
14:41 khodgson joined #salt
14:42 Jahkeup once you get there its so fabulous, I can't think of not using salt. Chef sucks compared to salt, imho
14:42 mdasilva joined #salt
14:43 mdasilva1 joined #salt
14:43 mdasilva joined #salt
14:48 mbrgm joined #salt
14:49 mbrgm hi! is there some sls management tool for saltstack, like there is berkshelf for chef?
14:49 jjasinski_ joined #salt
14:51 _ikke_ mbrgm: What should it specifically do what salt itself doesn't yet?
14:52 _ikke_ From what I read, the salt state itself does this already
14:52 khodgson joined #salt
14:53 helderco joined #salt
14:54 mbrgm _ikke_: well, atm i'm developing lots of the formulas myself or pull them from the saltstack-formulas github repos. but this involves manual clones, copying etc. berkshelf manages chef cookbooks and lets you specify a set of dependencies using a metadata file. i wondered if there was such a tool for saltstack formulas...
14:54 _ikke_ Not that I know of
14:54 _ikke_ (But I'm just using salt myself for a few days)
14:57 khodgson_ joined #salt
15:02 NV mbrgm: manual clones/copying? pff - just define the git repos in your master config as a gitfs root ;)
15:12 mwillhite joined #salt
15:17 micah_chatt joined #salt
15:21 bhosmer joined #salt
15:23 santagada left #salt
15:26 hvn joined #salt
15:26 hvn left #salt
15:28 m0hit joined #salt
15:31 mbrgm joined #salt
15:32 mbrgm NV: so basically, i have to create a separate entry in gitfs_remotes for each repo from the saltstack-formulas github account?
15:33 NV yup
15:33 mbrgm or is the bigger plan to merge all of these individual repos into saltstack/salt-states.git?
15:33 NV no the latter is old and deprecated
15:33 mbrgm okidoke
15:33 NV the git way is lots of smaller repos over one big repo
15:34 NV :D
15:34 cachedout joined #salt
15:34 _ikke_ correct
15:34 mbrgm yup, i favor this approach, too.
15:36 mwillhite joined #salt
15:37 mbrgm NV: and the gitfs_root option is an individual option for each repo, right?
15:39 mbrgm so with the saltstack-formulas/... repos, do i have to specify the subdirectory for each individual repo or will they be searched recursively anyways?
15:44 jkleckner joined #salt
15:50 hazzadous joined #salt
15:56 pniederw joined #salt
16:01 pniederw is develop still broken? getting the same exception as yesterday whenever I invoke salt (ImportError: No module named libcloud.compute.types)
16:09 jkleckner joined #salt
16:09 jimallman joined #salt
16:10 heewa joined #salt
16:17 bemehow joined #salt
16:21 zandy joined #salt
16:21 cachedout joined #salt
16:24 bhosmer joined #salt
16:25 dccc joined #salt
16:25 mdasilva joined #salt
16:26 xmltok joined #salt
16:28 m0hit joined #salt
16:29 thelorax123 joined #salt
16:31 mdasilva joined #salt
16:31 scott_w joined #salt
16:31 mdasilva1 joined #salt
16:32 heewa joined #salt
16:33 cro joined #salt
16:34 bwq joined #salt
16:36 helderco_ joined #salt
16:37 thelorax123 joined #salt
16:42 bhosmer_ joined #salt
16:44 m0hit joined #salt
16:46 heewa joined #salt
16:47 bhosmer joined #salt
16:48 thelorax123 joined #salt
16:48 jimallman joined #salt
16:51 thelorax123 joined #salt
16:53 heewa joined #salt
16:54 thelorax123 joined #salt
16:55 bemehow joined #salt
16:55 heewa joined #salt
16:55 cnelsonsic joined #salt
16:58 Heartsbane joined #salt
17:00 heewa joined #salt
17:00 thelorax123 joined #salt
17:01 khodgson joined #salt
17:04 thelorax123 joined #salt
17:13 micah_chatt joined #salt
17:14 hazzadous joined #salt
17:16 foxx joined #salt
17:19 heewa joined #salt
17:25 NotreDev joined #salt
17:31 bhosmer joined #salt
17:36 matanya joined #salt
17:38 jbub joined #salt
17:38 micah_chatt joined #salt
17:44 mpanetta joined #salt
17:45 thelorax123 joined #salt
17:49 NotreDev joined #salt
17:49 micah_chatt joined #salt
17:51 thelorax123 joined #salt
17:52 mapu joined #salt
17:52 khodgson joined #salt
17:52 thelorax123 joined #salt
17:56 heewa joined #salt
17:56 pass_by_value joined #salt
18:00 ddv joined #salt
18:08 mdasilva joined #salt
18:10 blee joined #salt
18:12 thelorax123 joined #salt
18:15 Tekni joined #salt
18:15 scott_w joined #salt
18:21 thelorax123 joined #salt
18:23 hazzadous joined #salt
18:25 mdasilva joined #salt
18:26 thelorax123 joined #salt
18:31 redondos joined #salt
18:31 redondos joined #salt
18:31 thelorax123 joined #salt
18:31 mpanetta joined #salt
18:33 thelorax123 joined #salt
18:33 heewa joined #salt
18:33 redondos joined #salt
18:33 redondos joined #salt
18:35 smccarthy joined #salt
18:36 thelorax123 joined #salt
18:44 bhosmer joined #salt
18:46 ajw0100 joined #salt
18:50 thelorax123 joined #salt
18:51 khodgson joined #salt
18:51 Kareem joined #salt
18:52 backjlack joined #salt
18:55 Voziv joined #salt
18:56 Kareem joined #salt
18:57 Guest12 joined #salt
18:58 redondos joined #salt
18:59 khodgson joined #salt
18:59 xinkeT joined #salt
18:59 josephholsten joined #salt
19:02 thelorax123 joined #salt
19:04 ggoZ joined #salt
19:04 Kareem joined #salt
19:12 thelorax123 joined #salt
19:16 khodgson joined #salt
19:16 nmistry joined #salt
19:18 pass_by_value left #salt
19:21 thelorax123 joined #salt
19:21 v0id_ joined #salt
19:25 redondos joined #salt
19:25 redondos joined #salt
19:26 thelorax123 joined #salt
19:41 Ryan_Lane joined #salt
19:46 troyready joined #salt
19:47 jimallman joined #salt
19:47 bhosmer joined #salt
19:50 ckao joined #salt
19:51 redbeard2 joined #salt
20:00 khodgson joined #salt
20:07 sebgoa joined #salt
20:10 thelorax123 joined #salt
20:16 thelorax123 joined #salt
20:22 thelorax123 joined #salt
20:24 redondos joined #salt
20:25 forrest joined #salt
20:25 hhenkel Hi all, how would one add a "exclude=nginx*" line to a (yum) pkgrepo ?
20:26 forrest I don't think that's supported currently hhenkel
20:26 forrest at least not that I can find in the docs
20:29 forrest hhenkel, I've created an issue for it: https://github.com/saltstack/salt/issues/8380
20:30 forrest hhenkel, if you're on a yum based system you could also use file.managed on your yum.conf, and add it to the bottom
20:30 thelorax123 joined #salt
20:31 hhenkel forrest: Thanks, maybe it would be useful to specify that a package should not be installed from that exact repo
20:31 forrest Feel free to add a comment =)
20:31 bhosmer joined #salt
20:32 hhenkel forrest: k, file.managed on the yum.conf or manage the repo file with that?
20:32 forrest actually it looks like it supports kwargs...
20:32 forrest file.managed on your yum.conf if you still plan on using pkgrepo.managed
20:33 forrest hhenkel, actually try this
20:33 hhenkel forrest: I'm new to salt, currently playing around. I know python so kwargs means I could a random key = value pair?
20:34 forrest exactly
20:34 forrest try this hhenkel, - exclude: nginx*
20:34 forrest see if adding that as an option sets the = line correctly when you run it would you?
20:34 forrest then I can know whether to update my issue or not
20:36 hhenkel forrest: Is there something like --dry-run in salt?
20:36 forrest you can do --test
20:36 honestly "test=True"
20:36 thelorax123 joined #salt
20:36 forrest yea sorry
20:36 forrest fail there hhenkel, thanks honestly :P
20:36 micko joined #salt
20:37 honestly hhenkel: for full magic test mode, ssh to the minion and run "salt-call -l debug bla.module.foo argument test=True"
20:38 hhenkel honestly: I got a minion only setup to play around so that's exactely what i've been looking for... ;)
20:38 honestly ah
20:38 jcockhren anyone has an example state that uses module.run?
20:39 Voziv carmony; what version of php do you use with salt?
20:40 finisherr joined #salt
20:40 finisherr left #salt
20:40 finisherr joined #salt
20:40 finisherr left #salt
20:41 forrest jcockhren, nope, but I made an issue request for more docs, so that's super helpful for you right? RIGHT!
20:41 jcockhren forrest: I'm working through the use-case to use pillar based schedules to make DB backups
20:42 forrest interesting...
20:42 thelorax123 joined #salt
20:42 forrest that sounds cool
20:42 jcockhren anndd. I think I just figured out module.run
20:42 jcockhren \o/
20:43 jcockhren I'll make a pull request on the docs
20:43 forrest awesome, https://github.com/saltstack/salt/issues/8381
20:43 forrest attach it to that if you do please.
20:43 jcockhren also, I'm defining states for sites deployed
20:43 forrest then we can close it
20:43 jcockhren b/c deployed is a "state"
20:44 jcockhren I think this will be a good example of schedule backups in two ways:
20:44 jcockhren 1. Scheduler calling a state
20:45 hhenkel forrest: Seems like that is working...what also is intriguing is, that salt managed to alter the one entry and not to remove all of the file.
20:45 jcockhren 2. scheduled events -> reactor controlled overstate
20:46 forrest hhenkel, you mean for your pkgrepo.managed?
20:46 forrest So that's one of the weird things about pkgrepo.managed, it leaves content in there
20:46 forrest you have to use absent it you want to trash stuff.
20:46 hhenkel okay, that is a good info
20:47 hhenkel I've been working a bit with puppet before...that is slightly different... ;)
20:47 forrest yep
20:47 forrest I have also worked with puppet, so I understand
20:49 hhenkel At work we're currently expermenting with puppet in our env...some things totally suck there.
20:49 forrest hhenkel, yea I am not a fan
20:49 forrest do you operate in multiple datacenters in geographiclocations?
20:49 forrest *geographic locations
20:50 hhenkel Nope, two datacenters in a "normal" range...but we're currently running sles. ;)
20:50 forrest ahh I was gonna say, if you have multiple regions be careful with puppet, if the time keeping is off (say the US to Singapore), it will randomly decide not to run on your Singapore machines
20:50 forrest because the 'time' is wrong
20:51 hhenkel I've worked with puppet 3 years ago and I hoped it became more "stable", in terms of tools...
20:51 hhenkel ...but when I look for example at facter it still is a pain in the ...
20:52 hhenkel We got a lot of service ips configured and it seems like facter is not able to enumerate all interfaces with their ips in a correct way.
20:52 forrest yeaaaaaaa
20:54 hhenkel And we installed the recent version of facter.... :(
20:54 thelorax123 joined #salt
20:54 hhenkel Do you know what the options are, to have salt running on a sles system?
20:56 hhenkel I saw that there are pacakges for sles sp2 / 3 but we still got systems running sless without sp or with sp1 ... :(
20:57 forrest I actually don't, my best recommendation would be to use the bootstrap: https://github.com/saltstack/salt-bootstrap
20:57 forrest I don't know enough about sles to provide much help there
20:59 hhenkel okay, is it possible to upgrade salt then via bootstrap as well?
20:59 forrest ehhhhhhhhhhh sort of? In the sense you would pull the tag from git
20:59 forrest but it's not really a legit way to upgrade.
21:00 NotreDev joined #salt
21:00 thelorax123 joined #salt
21:00 tty-1 joined #salt
21:00 hhenkel Sounds not like an option to use it with 400+ nodes then...
21:01 forrest I would say no, you might want to start a discussion on the mailing list regarding a package for the version you need.
21:01 forrest maybe they just weren't built by the maintainer due to lack of demand.
21:02 isomorphic joined #salt
21:02 hhenkel forrest: https://build.opensuse.org/package/show/home:thatch45/Salt ;)
21:02 Kareem joined #salt
21:03 forrest hasn't been updated in a while
21:03 forrest which seems odd.
21:03 thelorax123 joined #salt
21:04 hhenkel Yes, and it is the same as with newer puppet versions...it seems to be a problem to get it working with sles 11 or sles 11 sp1
21:05 sciyoshi1 joined #salt
21:05 forrest well, how old is that release now?
21:06 hhenkel I would guess that sles 11 was released 2008 or 2009 ...
21:06 forrest gotcha
21:06 khodgson joined #salt
21:07 hhenkel SLES 11 => 23. March 2009
21:07 hazzadous_ joined #salt
21:07 hhenkel SLES 11 SP1 => 2. June 2010
21:08 hhenkel Maybe it is a option to install it once in a virtualenv as a minion and package it via rpm then.
21:10 thelorax123 joined #salt
21:13 thelorax123 joined #salt
21:16 rambius joined #salt
21:17 linjan joined #salt
21:18 rambius hello guys
21:18 thelorax123 joined #salt
21:18 rambius i've just installed salt on FreeBSD
21:19 rambius and I am having issues with it: when i run "salt 'denica.lan' pkg.install vim" it throws an error
21:19 rambius the error is ValueError: need more than 1 value to unpack
21:19 rambius any ideas how to make that work?
21:20 _ikke_ rambius: try pkg.installed vim
21:20 rambius Tried it:
21:20 rambius root@denica:/usr/ports/editors/vim # salt 'denica.lan' pkg.installed vim
21:20 rambius denica.lan:
21:20 rambius "pkg.installed" is not available.
21:21 _ikke_ rambius: http://docs.saltstack.com/ref/modules/all/salt.modules.freebsdpkg.html#salt.modules.freebsdpkg.install
21:22 _ikke_ It says pkg.install <name> should work
21:22 rambius thank you
21:22 rambius i will read it
21:22 thelorax123 joined #salt
21:25 thelorax123 joined #salt
21:25 anuvrat joined #salt
21:27 tty-1 joined #salt
21:29 DredTiger joined #salt
21:37 thelorax123 joined #salt
21:40 lesnail joined #salt
21:41 thelorax123 joined #salt
21:49 jslatts joined #salt
21:51 thelorax123 joined #salt
21:55 redbeard2 joined #salt
22:10 m0hit joined #salt
22:13 ajw0100 joined #salt
22:14 redbeard2 joined #salt
22:16 ndivad joined #salt
22:16 thelorax123 joined #salt
22:17 ndivad Can anyone help me do salt-run commands from the python api?
22:17 ndivad salt.runner.RunnerClient takes a opts varible and I can figure out what to put in it
22:18 ndivad Context: writing a service that spins up cloud compute instances on demand and configures them with state.highstate. I want to wait until manage.up says the node is up before running highstate
22:20 thelorax123 joined #salt
22:21 bezaban hohumm, loving this.  Moving a bunch of machines from static IP address to DHCP, well what do you know; grab the mac and IP address with salt, generate host entries in the dhcp server and push dhcp config.
22:21 _ikke_ bezaban: How are you generating those host entries?
22:21 bezaban didn't actually do it yet, just rolled it out in test, but there are solutions for mostly everything
22:22 bezaban _ikke_: bash
22:22 _ikke_ bezaban: right
22:22 bezaban for dhcpd.conf, isc-dhcp
22:22 bezaban up until now my server management has all been a set of bash scripts really :/
22:22 ajw0100 joined #salt
22:25 thelorax123 joined #salt
22:27 thelorax123 joined #salt
22:28 _ikke_ Yeah, fur us also
22:28 mdasilva1 joined #salt
22:28 mufa joined #salt
22:29 thelorax123 joined #salt
22:33 thelorax123 joined #salt
22:35 mdasilva joined #salt
22:37 mdasilva1 joined #salt
22:39 scott_w joined #salt
22:41 ndivad Anyone looking through IRC logs for a solution for above issue: use salt.config.client_config('/etc/salt/master') as the opts for salt.runner.RunnerClient.
22:49 nkuttler ndivad: what do you mean?
22:49 nkuttler give me a string to grep for if you like?
22:49 ndivad well I've been using salt.client.LocalClient
22:49 ndivad to run highstate
22:49 ndivad and I want to check that the minion is up first
22:50 ndivad so I planned to use salt.runner.RunnerClient to call the manage.up runner
22:50 ndivad RunnerClient takes an extra argument, which is what I was asking about
22:50 ndivad make sense?
22:52 finisherr joined #salt
22:53 finisherr How do I list the grains and their values on remote machines?
22:53 ndivad Or did you mean my comment about IRC logs? I meant that I had found the solution and was posting it there for future peeps
22:53 finisherr something like grains.ls but including the values
22:53 ndivad finisherr: grains.items
22:53 finisherr ndivad: easy enough. Thanks
22:54 finisherr Ha, seeing that in the docs now
22:54 finisherr too impatient
22:55 foxx[cleeming] joined #salt
22:55 foxx[cleeming] joined #salt
22:56 finisherr joined #salt
22:59 bezaban _ikke_: ikke as in not?
23:01 bezaban whois says ON, probably not the scandinavian work
23:01 bezaban word*
23:01 finisherr joined #salt
23:03 _ikke_ bezaban: nop
23:03 _ikke_ bezaban: It's dutch
23:21 scott_w joined #salt
23:21 NotreDev joined #salt
23:27 jcockhren is there a known way to pull the current date from within jinja?
23:27 scott_w_ joined #salt
23:27 gasbakid joined #salt
23:29 mdasilva joined #salt
23:29 EugeneKay Pretty sure you can just do {{ datetime.strftime("blah") }}
23:38 jcockhren EugeneKay: unfortunately, that isn't working in {% %}
23:39 jcockhren trying to do something like: {% set tod = datetime.strftime("%m%d%Y_%H%M") %}
23:39 EugeneKay Might need to import the mod somewhere; never fiddled with that
23:41 micko joined #salt
23:43 mdasilva1 joined #salt
23:47 thelorax123 joined #salt
23:50 mdasilva joined #salt
23:50 mufa is salt broken on centos 6.4?
23:51 scott_w joined #salt
23:52 thelorax123 joined #salt
23:53 NotreDev joined #salt
23:55 hazzadous joined #salt
23:56 mufa no, just me being stupid
23:56 thelorax123 joined #salt
23:59 jcockhren pydsl it is

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