Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-09-01

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

All times shown according to UTC.

Time Nick Message
00:01 sgviking joined #salt
00:09 liwen joined #salt
00:14 FL1SK joined #salt
00:25 mannyt joined #salt
00:28 cmoberg joined #salt
00:31 mannyt joined #salt
00:33 wolfpack joined #salt
00:40 liwen joined #salt
00:43 FL1SK joined #salt
01:00 jslatts joined #salt
01:11 liwen joined #salt
01:11 jslatts joined #salt
01:11 FL1SK joined #salt
01:22 mattmtl joined #salt
01:23 mattmtl left #salt
01:31 aat joined #salt
01:41 mmilano joined #salt
01:47 littleidea joined #salt
01:54 FL1SK joined #salt
02:12 liwen joined #salt
02:34 m_george|away joined #salt
02:35 logix812 joined #salt
02:36 wolfpack_ joined #salt
02:43 liwen joined #salt
02:58 Jahkeup joined #salt
02:59 forrest Did you get a chance to test that Jahkeup?
03:02 santagada joined #salt
03:13 lazyguru joined #salt
03:14 liwen joined #salt
03:19 kenbolton joined #salt
03:30 cmoberg joined #salt
03:30 aat_ joined #salt
03:31 mwillhite joined #salt
03:41 noob2 joined #salt
03:42 ccase joined #salt
03:51 santagada joined #salt
03:52 lemao joined #salt
04:01 isomorphic joined #salt
04:03 joehh ksalman: I looked at backporting it to lenny - I ran into trouble at quite a few places mainly due to the old python version
04:03 joehh it=salt
04:11 joshe joined #salt
04:11 aat joined #salt
04:13 liwen joined #salt
04:16 liwen joined #salt
04:23 cmoberg I'm working on a module to support the NETCONF protocol. Am thinking about using an existing python library (ncclient). What's the best practice for external dependencies in modules?
04:24 tuxIO joined #salt
04:34 efixit joined #salt
04:42 littleidea joined #salt
04:48 lemao joined #salt
04:49 aat joined #salt
04:51 sgviking joined #salt
04:56 cmoberg joined #salt
05:24 ccase joined #salt
05:34 liwen joined #salt
05:50 cmoberg joined #salt
05:51 gildegoma joined #salt
05:56 cmoberg joined #salt
05:59 dthom91 joined #salt
06:00 chrisgilmerproj joined #salt
06:05 liwen joined #salt
06:05 CheKoLyN joined #salt
06:16 mwillhite joined #salt
06:23 qba73 joined #salt
06:26 kenbolton joined #salt
06:30 oz_akan_ joined #salt
06:32 welby joined #salt
06:35 gatorall1 joined #salt
06:44 matanya joined #salt
06:45 alunduil joined #salt
07:00 liwen joined #salt
07:03 dthom91 joined #salt
07:12 mmilano joined #salt
08:02 matanya joined #salt
08:10 asimakov joined #salt
08:11 carmony joined #salt
08:19 liwen joined #salt
08:23 faust joined #salt
08:38 tuxIO joined #salt
08:44 p3rror joined #salt
08:52 ml_1 joined #salt
08:52 carmony joined #salt
09:05 terminalmage anyone ever had success doing a file.sed using capture groups and other things that require backslashes?
09:06 liwen joined #salt
09:33 tuxIO joined #salt
09:39 liwen joined #salt
09:47 isomorphic joined #salt
09:47 liwen joined #salt
09:50 liwen joined #salt
09:54 lemao joined #salt
10:02 faust left #salt
10:13 xmj joined #salt
10:13 Preston4tw joined #salt
10:14 xmj Failed to authenticate, is this user permitted to execute commands?
10:14 xmj Happens when I run salt through FreeBSD's etc/rc.d script. Everything works find if I run salt-master manually (with --log-level=debug).
10:14 liwen joined #salt
10:15 xmj How does that compute?
10:31 bhosmer joined #salt
11:06 qba73 joined #salt
11:12 zooz joined #salt
11:22 lemao joined #salt
11:27 faust joined #salt
11:35 jinrou joined #salt
11:54 carmony joined #salt
11:54 ggoZ joined #salt
12:01 mtg` joined #salt
12:04 Pate_ joined #salt
12:11 wolfpack_ is there a way to get the version of the installed saltstack?
12:12 copelco wolfpack_: test.version might work
12:12 copelco salt '*' test.version
12:13 wolfpack_ yep that did it
12:13 wolfpack_ thx
12:16 mtg` left #salt
12:18 wolfpack_ that appears to work for the version on the minions -is there a way to see the version on the server?
12:19 djn salt --version does the trick for me
12:19 djn wolfpack_: ^
12:32 liwen joined #salt
12:32 wolfpack_ thanks dijn
12:32 wolfpack_ djn
12:37 FL1SK joined #salt
12:42 felixhummel joined #salt
13:08 ml_1 joined #salt
13:09 ProT-0-TypE joined #salt
13:10 matanya joined #salt
13:12 msheiny joined #salt
13:15 Pate_ I deleted all my minion keys on the salt master. How do I re-accept some minion keys?
13:16 xmj the way you accepted them before? salt-key -A ?
13:16 Pate_ ah, they weren't showing up.
13:16 Pate_ took a while, but now they are.
13:18 Pate_ Is there a way to see a list of minions' hostnames/IPs that are actually connected to the master? (not necessarily accepted)
13:19 krissaxton joined #salt
13:21 pdayton joined #salt
13:23 xmj tried salt '*' test.ping ?
13:33 vbabiy joined #salt
13:35 felixhummel joined #salt
13:50 bkonkle joined #salt
13:50 Pate_ hi xmj, test.ping outputs connected minions' IDs
13:50 Pate_ I could ask each minion for its IP, but it seems like the master should know the remote IP?
13:51 krissaxton joined #salt
13:55 krissaxton joined #salt
13:55 linjan_ joined #salt
14:00 moondawg joined #salt
14:01 littleidea joined #salt
14:01 moondawg Anyone know of any development for exposing gnu's mknod for character, black, and fifo's for salt minions
14:03 msheiny joined #salt
14:11 aat joined #salt
14:19 ProT-0-TypE joined #salt
14:25 logix812 joined #salt
14:27 djn Pate_: you can use salt-run manage.up or .down respectively to see the minions' connectivity
14:29 djn this also gives you the minion ids though, but you don't have to compare the accepted keys with the output to know which ones are down
14:33 Pate_ djn, awesome! I didn't even know about salt-run manage
14:34 Pate_ I have a problem with the readability and relevance of IDs when running my master and minions on EC2
14:34 mwillhite joined #salt
14:35 Pate_ minions' initial IDs are assigned by their EC2 private hostnames
14:35 Pate_ but when those instances are stopped and started, hostnames change
14:35 Pate_ now, I can override those minion id's by hand
14:36 wolfpack joined #salt
14:36 Pate_ but I don't know if that's a scalable approach if I want to spin up instances as minions at-will to use for feature branch deployments
14:38 djn yes, you can configure this in the minions settings... you could manage the minions' config in a state, and assign a id that does not change... if thats the case for ip, you can use some grain containing that
14:38 tuxIO joined #salt
14:39 Pate_ how do I assign IDs with grains? I'm a bit cautious of templating the minion config file
14:39 Pate_ do I need to restart the minion to change ID and does it affect accepted keys on the master?
14:40 Pate_ nm, I can look into ec2_tags
14:40 Pate_ and template the /etc/salt/minion file with the master and ID on deploy.
14:41 djn yeah, I don't really know if thats a good idea either ;) you template the config, and schedule a service restart... the minion keys change of course and need to be accepted again... I don't know if you need to do something else, better wait for someone with more know how than me to answer this
14:41 djn I don't know a thing about ex2_tags, sorry
14:42 djn ec2_tags*
14:42 Pate_ ec2_tags is a grains module to access instance metadata as grains on EC2
14:43 lineman60 joined #salt
14:43 djn yeah, that would be perfect for what I just suggested... ask somebody what will hapen with the key exactly (or just test it with a single instance)
14:44 kenbolton joined #salt
14:46 djn I am templating the minion conf to (I can make a paste of the sls if you'd like), because I want the hostname in there and have some minions using ipv6 only, which needs to be specified
15:01 ckao joined #salt
15:01 Pate_ joined #salt
15:04 kenbolton joined #salt
15:05 Pate_ joined #salt
15:17 Pate_ thx djn. got it.
15:18 zooz joined #salt
15:20 Pate_ how do I upgrade to salt 0.17?
15:20 Pate_ I upgraded with apt-get to 0.16.3, but I'm missing grains.append.
15:30 djn you should read the topic of this channel, you may notice 16.3 is the latest ;)
15:31 p3rror joined #salt
15:31 Pate_ Isn't there a nightly build I can get access to?
15:31 krissaxton1 joined #salt
15:33 p3rror joined #salt
15:34 djn you can of course use the version from the develop branch, but I don't know if thats a good idea
15:38 dthom91 joined #salt
15:41 matanya joined #salt
15:41 matanya joined #salt
15:41 krissaxton joined #salt
15:47 jams1 joined #salt
15:47 jams1 Is salt-ci dead?
15:50 xmj i wonder, could I run salt in a jail that controls other jails?
15:50 xmj so as to minimize resource usage (and python packages) on the host :]
15:53 kenbolton joined #salt
15:55 boomboon joined #salt
15:58 CheKoLyN joined #salt
16:00 chrisgilmerproj joined #salt
16:00 chrisgilmerproj left #salt
16:04 logix812 joined #salt
16:06 matanya joined #salt
16:25 yano joined #salt
16:30 lemao joined #salt
16:30 ProT-0-TypE joined #salt
16:31 ProT-0-TypE joined #salt
16:40 carmony joined #salt
16:42 krissaxton joined #salt
16:43 KFDM joined #salt
16:44 lemao joined #salt
16:45 p3rror joined #salt
16:48 ggoZ joined #salt
16:51 jinrou_ joined #salt
16:53 bkonkle joined #salt
16:55 vbabiy joined #salt
16:57 copelco is there a clean way to upload your aws private key to the master for use with salt-cloud?
17:04 carmony joined #salt
17:10 matanya joined #salt
17:16 az87c joined #salt
17:17 az87c_ joined #salt
17:21 avienu joined #salt
17:25 avienu How can I have a salt state that only runs IF a certain file doesn't exist? Basically, I'm compiling an executable, and install it in the location. So, after I've done it the first time there's no need to do it again.
17:28 jams1 left #salt
17:35 zetsuboudev joined #salt
17:39 dthom91 joined #salt
17:43 krissaxton joined #salt
17:44 littleidea joined #salt
17:51 jinrou joined #salt
17:52 Pate_ @copelco, SSH?
17:59 Bosse joined #salt
18:00 copelco avienu: you can use unless/onlyif
18:01 copelco Pate_: yeah, ended up just SSHing manually, thought maybe I could do it through salt, but probably not worth it
18:12 mgw joined #salt
18:14 ktenney joined #salt
18:20 godog joined #salt
18:20 noob2 damn i love using salt.  it's so easy :)
18:20 xmj true, and it works under the most ridiculus configuration ;]
18:21 noob2 hehe
18:21 lazyguru joined #salt
18:21 TheCodeAssassin joined #salt
18:30 tuxIO joined #salt
18:42 forrest joined #salt
18:43 kenbolton joined #salt
18:43 mwillhite joined #salt
18:43 krissaxton joined #salt
18:44 robertkeizer joined #salt
19:11 dcolish joined #salt
19:11 anteaya joined #salt
19:12 linjan_ joined #salt
19:16 kenbolton joined #salt
19:20 kiorky uhm, is there a way to make a minion reread its config (eg to reload and read mysql params)
19:24 terminalmage Hey, I'm doing a Salt presentation tomorrow at DjangoCon. I just posted a Twitter and Google+ link to the mailing list. Retweets and +1s would be greatly appreciated. https://groups.google.com/d/msg/salt-users/YziN5u4SU_c/BNV-uOiB-9QJ
19:31 forrest Will you have the slides up on slidedeck or something afterwards terminalmage?
19:31 terminalmage forrest: yep. the presentation will be committed to the github repo along with all the SLS
19:31 forrest awesome
19:32 terminalmage I mean the slides, not the video
19:32 terminalmage if there even is video
19:32 forrest yea I figured you meant the slides
19:32 terminalmage yeah
19:32 terminalmage It'll be in ODF
19:32 terminalmage LibreOffice/OpenOffice required
19:32 forrest yea that's all I have anyways
19:32 forrest http://pyvideo.org/category/23/djangocon-2012
19:32 terminalmage sweet
19:32 forrest looks like they had videos last year
19:32 terminalmage ahh nice
19:33 terminalmage I figured that since it was a tutorial session, for which they are charging extra for admission, they wouldn't necessarily have video
19:33 terminalmage forrest: this is going to be a freaking awesome presentation
19:33 forrest lol
19:33 terminalmage whiteinge and I both put a ton of work into it
19:34 terminalmage one-command django app deployment using OverState
19:34 forrest oh cool
19:34 terminalmage yeah, including a multihost example where mysql grants are applied based on the IP addresses of the webservers
19:34 forrest was just gonna say I don't really use django, but any point in time where you guys have to use some of the cool functionality of salt I'm on board
19:34 terminalmage using the mine
19:35 terminalmage oh yeah this is going to have a LOT of stuff
19:35 forrest that will be cool, more mine examples are fantastic
19:35 terminalmage salt-cloud, gitfs, mine, overstate
19:35 forrest Are you going to convert the tutorial into examples within the docs at some point?
19:35 terminalmage possibly
19:35 forrest Anything extra on the salt mine is always awesome
19:36 terminalmage yeah I only just started messing with it yesterday to finish up the technical stuff
19:36 terminalmage forrest: if you're interested in looking at the SLS, it's up in (pretty much) it's final state here: https://github.com/terminalmage/djangocon2013-sls
19:37 terminalmage *its final state
19:45 _ilbot joined #salt
19:45 Topic for #salt is now Welcome to #salt - http://saltstack.org | 0.16.3 is the latest | Please be patient when asking questions as we are volunteers and may not have immediate answers - Channel logs are available at http://irclog.perlgeek.de/salt/
19:51 lempa joined #salt
20:07 mwillhite joined #salt
20:23 krissaxton joined #salt
20:23 ericdwhite joined #salt
20:26 TheCodeAssassin joined #salt
20:45 anteaya joined #salt
20:53 andrewclegg_ joined #salt
20:56 Damoun joined #salt
21:00 logix812 joined #salt
21:08 p3rror joined #salt
21:21 carmony joined #salt
21:37 carmony joined #salt
21:47 aat joined #salt
21:50 mwillhite joined #salt
22:00 bhosmer joined #salt
22:18 krissaxton joined #salt
22:23 littleidea joined #salt
22:23 anteaya joined #salt
22:28 bkonkle joined #salt
22:29 mike25ro left #salt
22:29 krissaxton joined #salt
22:35 lineman60 joined #salt
22:59 forrest Hey terminalmage, I'm looking at your djangocon stuff, and what does https://github.com/terminalmage/djangocon2013-sls/blob/master/mysql/client.sls mean when it references 'import mysql with context'? Is that just so it includes all the details regarding the values you've set?
22:59 forrest or is it so you can reference the values within as mysql.client and so on
22:59 terminalmage forrest: it's a jinja thing
22:59 terminalmage yeah
22:59 forrest ok, haven't used that before in jinja so I wasn't sure
22:59 terminalmage yeah, it was new to me too
23:00 forrest but I see it in the jinja2 docs here
23:01 cmoberg joined #salt
23:01 forrest that's a really cool usage of it, I hadn't thought of using a jinja mapping for mulitple OSs
23:01 terminalmage yeah, that was whiteinge's idea
23:01 terminalmage he did some really cool stuff
23:03 forrest So was there any specific reason that was chosen over the other standards in: https://github.com/saltstack/salt-states/blob/master/http/init.sls as an example? Or just the 'natural evolution'
23:04 forrest obviously the jinja mapping is much cleaner.
23:04 terminalmage well yeah. honestly that repo is in disuse
23:04 terminalmage the salt-states one
23:05 forrest oh did stuff get migrated elsewhere for the examples/prebuilt states?
23:06 terminalmage I honestly do not know
23:06 forrest fair enough
23:06 terminalmage and right now I'm on about 12 hours of sleep in the past 3 days so I can't think straight
23:06 terminalmage hahahahah
23:06 forrest heh
23:06 forrest Better get some sleep before you present
23:07 terminalmage yeah
23:07 terminalmage going to dinner soon
23:07 terminalmage then coming home and crashing
23:07 terminalmage finishing the last slide now
23:07 forrest hah
23:07 forrest last minute :D
23:07 terminalmage haha yep
23:08 keeeh joined #salt
23:08 terminalmage forrest: BTW, this was a pretty cool discovery I made this past week: https://play.google.com/store/apps/details?id=org.libreoffice.impressremote
23:08 forrest When you talk to whiteinge can you ask if the map.jinja is the new defacto way to do stuff instead of continually checking grains, or if he's just using it for specific projects?
23:09 forrest oh cool
23:09 terminalmage displays your slide notes as well as the slide itself on your device, so you can use it as a presentation companion
23:09 terminalmage well I know that whiteinge is working on a salty version of value mapping
23:09 terminalmage which might be the way we officially suggest that people go starting in 0.17.0
23:10 terminalmage but honestly, whatever works for you, is what you should be using
23:10 forrest yea I'm just curious
23:10 terminalmage if the jinja map stuff works better, by all means use it
23:10 forrest the mapping is pretty easy to understand, and keeps all that stuff in one place which is nice
23:10 terminalmage yeah
23:12 forrest just finished going through all the states, this is pretty slick. It shows a real project set up using salt which is awesome.
23:12 littleidea joined #salt
23:13 forrest Did you see that red hat is pushing puppet for their config management tool integration for the satellite 6 release in 2014?
23:14 forrest I signed up for the beta at work so I could complain that they aren't just putting in hooks for whatever config management users wanted.
23:14 terminalmage :)
23:14 terminalmage no I did not hear about that
23:15 forrest It's a bummer that's for sure
23:16 aat joined #salt
23:16 forrest It's not even that I hate puppet that much, it's just the lack of choice
23:16 terminalmage ahh
23:16 terminalmage well I *do* hate puppet
23:16 forrest lol
23:16 terminalmage My puppet hate drove me to Salt, and eventually scored me a job
23:16 terminalmage so I consider it to be "healthy" hate
23:16 forrest I wrote enough of it at my last job to hate it, but I try to keep an open mind for enterprise needs and all that
23:17 forrest trying to convince your coworkers to not go with puppet when it's going to be part of satellite is tough.
23:17 terminalmage yeah
23:17 terminalmage We were all CentOS for our Linux hosts at my last job
23:17 forrest Yea it was cent at my last job, RHEL at the current one
23:18 forrest I'm just going to tell them I refuse to deal with Ruby's crap
23:18 terminalmage but RHEL is trying to give people reasons to go RHEL
23:18 terminalmage haha
23:18 forrest some people like the enterprise support
23:18 terminalmage yeah, ruby is teh suck
23:18 forrest I don't know, it doesn't matter to me
23:18 forrest but I'll take free over paid any day, their support is worthless anyways
23:18 terminalmage yeah we subcontracted for a gov't project a few years back and they required RHEL 5
23:18 forrest Seriously, if they want to go with puppet, I'm not gonna bundle up all those gems and deal with all the deps.
23:19 terminalmage at my last job
23:19 forrest It's not bad, their lack of updating python annoys me the most probably
23:19 forrest I mean 2.6 is going onto rhel/cent 7
23:19 forrest wtf
23:20 terminalmage part of my presentation is going to be editing a CSS file, pushing to the git repo containing the django app and CSS, etc., and then pushing the new code out with a state.highstate
23:20 terminalmage it's pretty impressive
23:20 forrest where's that at in the repo?
23:20 terminalmage I don't usually like to toot my own horn, but we've put together something really nice here
23:20 terminalmage it's a different repo
23:20 forrest ahh ok
23:20 terminalmage look at foo/app.sls
23:20 terminalmage there's a git.latest
23:20 forrest I see it
23:21 terminalmage yeah I just pushed a change to it now to test
23:21 terminalmage going to revert it
23:21 terminalmage do you like my commit message?
23:21 forrest no
23:21 forrest you should be ashamed
23:22 terminalmage haha
23:22 terminalmage no I really don't like serifs
23:22 forrest so I assume you're going to just apply the update just via a normal salt '*' state.highstate run?
23:22 terminalmage that was me making fun of the type of person that would like serifs
23:22 forrest Yea I figured you don't, but it's a good example
23:22 terminalmage yeah, not with '*'
23:22 forrest well yea, specific host
23:22 terminalmage but with a globn
23:22 terminalmage glob
23:23 terminalmage yeah just push to the git repo and state.highstate, and blammo
23:23 terminalmage .... probably won't say "blammo" at the presentation
23:23 terminalmage that sounds weird when said out loud
23:23 forrest Yea I'm building out a blog currently with just a masterless minion and that was my plan there as well just to pull from the repo on updates with a highstate call
23:23 forrest You could make it work
23:23 forrest just point your finger at the screen like a gun
23:23 vbabiy joined #salt
23:23 forrest pretend there is recoil and such
23:24 terminalmage hehe
23:29 krissaxton joined #salt
23:37 mwillhite joined #salt
23:47 keeeh joined #salt
23:49 terminalmage ok, off to dinner
23:49 terminalmage later forrest
23:49 forrest later
23:50 aat joined #salt
23:53 alangarf joined #salt
23:56 CheKoLyN joined #salt
23:56 oz_akan_ joined #salt

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