Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-08-31

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

All times shown according to UTC.

Time Nick Message
00:16 TheCodeAssassin joined #salt
00:17 dthom91 joined #salt
00:20 zonk1024 i swear… the gitfs breaks ever 2 weeks
00:21 bhosmer joined #salt
00:23 ninkotech joined #salt
00:23 saurabhs joined #salt
00:23 littleidea joined #salt
00:38 ricicle joined #salt
00:45 ninkotech joined #salt
00:54 saurabhs joined #salt
00:55 littleidea joined #salt
00:57 oz_akan_ joined #salt
00:58 terminalmage joined #salt
00:59 littleidea joined #salt
01:04 ninkotech joined #salt
01:06 saurabhs joined #salt
01:13 asimakov joined #salt
01:17 jdenning joined #salt
01:34 littleidea joined #salt
01:41 dthom91 joined #salt
01:41 santagada joined #salt
01:54 littleidea joined #salt
02:02 [diecast] joined #salt
02:05 xl joined #salt
02:18 vipul joined #salt
02:20 Boohbah joined #salt
02:22 mmilano joined #salt
02:24 zonk1024 joined #salt
02:30 mwillhite joined #salt
02:31 littleidea joined #salt
02:32 seubert left #salt
02:39 shadowsun forrest
02:44 zonk1024 http://docs.saltstack.com/topics/tutorials/multimaster.html needs to mention the pub key as well as the pem
02:45 zonk1024 IRC, you're unwanted QA
02:45 zonk1024 your*
02:47 jesusaurus zonk1024: do you mean in the Note?
02:47 jesusaurus oh, in the copy, yeah
02:51 shadowsun zonk1024: no you don't
02:52 whit joined #salt
02:53 shadowsun zonk1024: it'll autogenerate the pub key from the pem
02:53 shadowsun zonk1024: I suppose you might have to delete the pub key if you've already run the second master
02:57 littleidea joined #salt
02:58 horus_plex joined #salt
02:58 pdayton joined #salt
02:58 horus_plex According to the docs, we're suppose to be able to use pillar backed with git
02:59 horus_plex from what I can tell, only the git:// protocol is usable. Has anyone had any luck with using ssh
02:59 horus_plex ?
03:04 horus_plex nevermind. found: https://github.com/saltstack/salt/issues/3745
03:04 shadowsun horus_plex: yes I have
03:04 shadowsun horus_plex: using 0.16.3
03:04 horus_plex oh!
03:05 shadowsun horus_plex: what's the error you're getting?
03:05 shadowsun Ohhhh
03:05 shadowsun pillar data.
03:05 shadowsun Sorry. i'm tired
03:05 horus_plex yeah
03:05 horus_plex I got a bit excited
03:05 shadowsun yeah
03:05 shadowsun So did I
03:06 shadowsun I'm using gitfs backend for file
03:06 mmilano left #salt
03:06 horus_plex using gitfs for states works perfectly
03:06 horus_plex I'd like to do th same with pillar.
03:06 shadowsun I just got multimaster with gitfs for files working.. states is my next step
03:07 shadowsun Oh hey
03:07 shadowsun read the end of that issue  you pasted.
03:07 horus_plex what do you mean "multimaster with gitfs for files"?
03:07 shadowsun "Should we close this issue, as we can now use git for pillar? Or do we still want to extend the existing gitfs as well?"
03:08 horus_plex yeah. hence my never mind. I think's planned for 0.17
03:08 shadowsun https://github.com/saltstack/salt/pull/5769
03:08 shadowsun It was pulled in 2 months ago
03:08 mgw joined #salt
03:09 horus_plex maybe I'm the one that's tired
03:11 oz_akan_ joined #salt
03:11 shadowsun I think it might be in 0.16.3
03:11 shadowsun sec
03:11 shadowsun lesse
03:11 shadowsun it would be salt/pillar/git_pillar.py
03:12 shadowsun lib/python2.6/site-packages/salt/pillar/git_pillar.py
03:12 shadowsun ext_pillar: - git: master git://gitserver/git-pillar.git
03:12 shadowsun it's there.
03:12 shadowsun So
03:12 shadowsun try git+ssh://
03:13 shadowsun git+ssh://user@servername/repo
03:13 shadowsun and make sure there's an id_rsa key it can just use to connect.
03:14 forrest joined #salt
03:15 forrest shadowsun, you around?
03:22 shadowsun forrest: yeah
03:22 forrest Did you figure out the gitfs thing?
03:22 shadowsun forrest: it was a freakin cPane/Centos problem all along
03:22 shadowsun so much rage.
03:22 forrest what exactly was it?
03:23 shadowsun So gitpythin slurps stderr
03:23 forrest ok
03:23 shadowsun and that comparison is apparently its way of reporting a problem. Point it at an ssh server that times out and you'll get the same messed up error
03:23 shadowsun so in /etc/bashrc is this line, all by itself
03:23 shadowsun mesg y
03:23 shadowsun so.. much...frustration
03:23 forrest so you added that line?
03:23 shadowsun no
03:24 shadowsun You have to properly WRAP that line
03:24 forrest what
03:24 forrest why
03:24 forrest lol
03:24 shadowsun because someone somewhere doesn't understand that the mesg command is only valid IF YOU HAVE A TTY.
03:24 shadowsun yeah
03:24 forrest that is dumb
03:24 shadowsun if tty -s; then mesg y; fi;
03:24 forrest so what did your command end up looking like?
03:24 shadowsun Same
03:24 shadowsun I just had to wrap mesg y in /etc/bashrc on the git server
03:24 forrest *facepalm*
03:25 forrest how did you end up finding it
03:25 forrest and you should seriously consider creating an issue on that, or adding a pull request to update the docs specifically for centos
03:25 forrest because that would suck for other people to try and fine
03:25 forrest *find
03:25 shadowsun I eventually always default back to "Fix the first understandable error first"
03:25 forrest hah
03:25 santagada joined #salt
03:25 forrest you were able to finally interpret part of that garbage?
03:25 shadowsun nope
03:26 shadowsun byt
03:26 shadowsun stdin: is not a tty
03:26 shadowsun that's an error I can understand
03:26 shadowsun the crazy comparison thing, no freaking clue
03:26 shadowsun So I tracked down the bit I could understand.. and voila, the problem stopped exhibiting
03:26 forrest that's awful
03:26 shadowsun yeah.
03:26 shadowsun terrible error reporting
03:26 forrest Did you file an issue?
03:26 forrest because that's a show stopper right there
03:27 shadowsun I need to file multiple
03:27 forrest yea
03:27 shadowsun tbh
03:27 shadowsun and I'm going to
03:27 shadowsun just
03:27 shadowsun after I sleep
03:27 shadowsun -.-
03:27 forrest you're on the east coast?
03:27 shadowsun no
03:27 forrest or outside the states?
03:27 shadowsun cst
03:27 shadowsun but it's already been a 12 hour day
03:27 forrest gotcha
03:27 shadowsun I'm a trainer now, so
03:27 shadowsun messing with salt happens on top of that...
03:27 forrest physical?
03:27 shadowsun >.<
03:27 shadowsun nope
03:27 shadowsun linux admin
03:27 forrest gotcha
03:28 forrest I'll bug you again tomorrow so you don't forget then :P
03:28 forrest because I don't want to run into this 8 months down the line
03:28 forrest and be like 'shiiiiiiiit what was the fix!'
03:32 scalability-junk Partytime \o/
03:33 scalability-junk on monday the work will begin for 6 weeks 24/7 ;)
03:33 forrest What
03:34 scalability-junk forrest: I just wanted to state my happy state of being able to hopefully contribute some time to saltstack after monday ;)
03:35 forrest oh ok
03:36 scalability-junk forrest: but to your issues sending yourself an emal is something I do to remind myself of something. Perhaps that works for you too.
03:36 forrest I don't need to remember
03:36 forrest shadowsun does
03:36 forrest so that it actually gets fixed, I already made note of it
03:37 forrest email is filled with tons of 'from me, to me'
03:38 shadowsun forrest: cool
03:38 shadowsun lol
03:38 shadowsun heh
03:38 shadowsun mine is too
03:38 shadowsun In fact, there's an email in there with all of the specifics
03:39 forrest Is anyone in here going to devops in Atlanta? Or lives in Atlanta near the campus GT campus?
03:39 forrest minus 1 campus
03:47 shadowsun not I
03:49 forrest I was hoping to find someone who lived out there to rent their couch from :\
03:51 mwillhite joined #salt
03:51 shadowsun :/
03:51 forrest I thought you were gonna sleep
03:51 shadowsun no
03:52 shadowsun I'm gonna do nothing
03:52 aat joined #salt
03:54 Boohbah shadowsun: are you a nihilist?
03:56 shadowsun I didn't say I was going to experience nothing
03:56 shadowsun :P
03:57 saurabhs left #salt
03:59 liwen joined #salt
04:01 aat joined #salt
04:09 aantony left #salt
04:09 jalbretsen joined #salt
04:11 liwen joined #salt
04:13 robertkeizer joined #salt
04:14 dthom91 joined #salt
04:35 efixit joined #salt
04:42 dkubb joined #salt
04:47 zonk1024 is there a special namespace for custom modules? it's still just <module>.<function>   right?
04:48 zonk1024 i did a saltutil.sync_modules, which worked, but now I can't call the module...
05:02 Hemebond left #salt
05:05 carmony joined #salt
05:19 zonk1024 import error on module...
05:21 dsmwong joined #salt
05:29 [diecast] joined #salt
06:14 oz_akan_ joined #salt
06:15 robertkeizer joined #salt
06:17 liwen joined #salt
06:31 CheKoLyN joined #salt
06:36 balboah_ joined #salt
06:37 jpcw ll
06:37 jpcw erf
06:47 liwen_ joined #salt
06:55 zonk1024_ joined #salt
06:56 andrewclegg_ joined #salt
06:58 pmcg_ joined #salt
06:59 jeblair_ joined #salt
06:59 Jahkeup joined #salt
07:00 yidhra_ joined #salt
07:00 krissaxton joined #salt
07:01 dcolish_ joined #salt
07:01 loz_hurst joined #salt
07:02 axiom joined #salt
07:02 aptiko_ joined #salt
07:02 Zethrok_ joined #salt
07:02 cbloss_ joined #salt
07:02 stefw` joined #salt
07:02 jphall_ joined #salt
07:03 jodell_ joined #salt
07:03 txmoose_ joined #salt
07:04 isomorphic joined #salt
07:06 Linuturk_ joined #salt
07:11 shennyg joined #salt
07:12 cmthornton joined #salt
07:16 oz_akan_ joined #salt
07:17 carmony joined #salt
07:17 rhand joined #salt
07:17 Rorgo joined #salt
07:17 faulkner joined #salt
07:17 Sypher joined #salt
07:17 etw joined #salt
07:41 giantlock joined #salt
07:53 ProT-0-TypE joined #salt
07:54 ProT-0-TypE joined #salt
07:54 ProT-0-TypE joined #salt
07:55 ProT-0-TypE joined #salt
08:15 lemao joined #salt
08:31 alunduil joined #salt
08:50 TheCodeAssassin joined #salt
08:52 TheCodeAssassin joined #salt
08:54 asimakov joined #salt
09:11 puppet joined #salt
09:30 p3rror joined #salt
09:47 TheCodeAssassin guys is there anything wrong with this:  {% if salt['mysql.user_exists']('root', 'localhost', '') == True %} ?
09:47 TheCodeAssassin because sudo salt '*' mysql.user_exists 'root' 'localhost' '' works
09:48 MK_FG joined #salt
09:48 MK_FG joined #salt
09:59 TheCodeAssassin nvm forgot the line terminator
10:13 sephii joined #salt
10:14 sephii hey there, I'm trying to create a state file for my ssh authorized_keys. My idea would be to drop the keys in a directory and check in the sls file if it exists and put and ssh_auth block if it is. The problem is, I don't know what module I should use in my sls file to check for the presence of the keys. Should I use cp.hash_file?
10:18 alekibango joined #salt
10:21 awk joined #salt
10:23 awk left #salt
10:29 TheCodeAssassin sephii: can't you use the files state?
10:33 sephii TheCodeAssassin: my authorized keys file are in salt, so I don't know which path I should use with the files state
10:35 tca joined #salt
10:37 TheCodeAssassin joined #salt
10:42 sephii so I just tried with cp.hash_file and it seems to be working fine
10:44 TheCodeAssassin can you post the sls so i can see for reference?
10:45 ggoZ joined #salt
10:47 sephii TheCodeAssassin: sure: https://dpaste.de/Zmin7/ so it first looks for the ssh keys in the hostname directory and then falls back to the directory "shared"
10:49 TheCodeAssassin this is great
10:57 faust joined #salt
11:01 asimakov joined #salt
11:03 Outlander joined #salt
11:05 bhosmer joined #salt
11:10 ml_1 joined #salt
11:11 malinoff joined #salt
11:23 gildegoma joined #salt
11:25 xl left #salt
11:29 malinoff joined #salt
11:37 ProT-0-TypE joined #salt
11:37 asimakov joined #salt
11:41 faust left #salt
11:49 tracphil joined #salt
11:50 tracphil What is the best way to install salt on Ubuntu and keep up with current releases?
11:56 aleszoulek joined #salt
11:58 tuxIO joined #salt
12:05 TheCodeAssassin joined #salt
12:08 TheCodeAssassin guys
12:08 TheCodeAssassin why is this not allowed? http://pastebin.com/q7j71eDa
12:09 ggoZ joined #salt
12:13 asimakov joined #salt
12:17 tracphil joined #salt
12:18 aleszoulek TheCodeAssassin: You should put require on 'state' level. Not on a identifier level..
12:18 aleszoulek So either on sed, or on managed...
12:22 TheCodeAssassin thnx aleszoulek
12:41 mmilano joined #salt
12:41 alekibango joined #salt
12:50 tracphil left #salt
12:51 aat joined #salt
13:08 ProT-0-TypE joined #salt
13:09 ProT-0-TypE joined #salt
13:12 mgw joined #salt
13:22 aat joined #salt
13:36 aat joined #salt
13:49 aat joined #salt
13:54 lvicks joined #salt
13:56 mgw joined #salt
14:10 malinoff joined #salt
14:22 littleidea joined #salt
14:24 lemao joined #salt
14:26 santagada joined #salt
14:30 mwillhite joined #salt
14:30 ProT-0-TypE joined #salt
14:31 ProT-0-TypE joined #salt
14:33 SIFTU joined #salt
14:38 ProT-0-TypE joined #salt
14:38 ProT-0-TypE joined #salt
14:39 ProT-0-TypE joined #salt
14:49 aat joined #salt
14:49 ProT-0-TypE joined #salt
14:53 whit joined #salt
14:57 mgw joined #salt
14:59 mwillhite joined #salt
15:00 ProT-0-TypE joined #salt
15:00 ckao joined #salt
15:03 zooz joined #salt
15:04 bhosmer joined #salt
15:06 ProT-0-TypE joined #salt
15:07 ProT-0-TypE joined #salt
15:09 Pate_ joined #salt
15:16 santagada joined #salt
15:24 santagada joined #salt
15:25 Pate_ Hello Salt users! My first time here. I am using Saltstack + TeamCity to deploy a medium-sized Python app on EC2 with various roles.
15:25 gatoralli joined #salt
15:28 mgw joined #salt
15:31 dthom91 joined #salt
15:35 ricicle joined #salt
15:42 berto- joined #salt
15:48 vbabiy joined #salt
16:02 copelco joined #salt
16:05 liwen joined #salt
16:10 Gifflen joined #salt
16:28 druonysuse joined #salt
16:28 druonysuse joined #salt
16:34 HaxCore joined #salt
16:36 carmony joined #salt
16:37 mgw joined #salt
16:38 dthom91 joined #salt
16:53 vbabiy joined #salt
17:00 liwen joined #salt
17:03 mmilano joined #salt
17:04 carmony joined #salt
17:10 mmilano joined #salt
17:24 anteaya joined #salt
17:27 liwen_ joined #salt
17:34 carmony joined #salt
17:35 chrisgilmerproj joined #salt
17:40 chrisgilmerproj left #salt
17:53 gildegoma joined #salt
17:54 mike25ro joined #salt
17:59 druonysuse joined #salt
18:03 liwen joined #salt
18:05 CheKoLyN joined #salt
18:08 ricicle joined #salt
18:11 gldnspud joined #salt
18:12 djn joined #salt
18:15 gldnspud joined #salt
18:16 robertkeizer joined #salt
18:18 berto- joined #salt
18:22 liwen joined #salt
18:44 zonk1024 No module named salt-scripts?
18:45 zonk1024 salt.scripts*
18:46 zonk1024 wtf!?
18:47 zonk1024 did someone break salt?
18:49 ricicle joined #salt
18:50 mannyt joined #salt
19:02 zonk1024 think a broken tab completion did it somehow. salt 'blah*\t   == oops
19:04 liwen joined #salt
19:19 lvicks joined #salt
19:23 zonk1024 purged, reinstalled, keys and configs copied back, master/slave kicked over, fabric to kick over other slaves. gg.
19:24 zonk1024 5 different watch jobs written and it's 12:23 on day 1 of a 3 day weekend. time to relax. ty salt.
19:30 zooz joined #salt
19:31 mgw joined #salt
19:41 tuxIO joined #salt
19:42 gatorall1 joined #salt
19:44 littleidea joined #salt
19:50 forrest joined #salt
19:50 StDiluted joined #salt
19:54 Eugene Before running a highstate, I go through with test=True to see what would happen. However, I've set state_output: mixed; is there a way to get Full output for just the test run?
19:55 Eugene Or to change the state_verbose setting that is used, as long as I'm at it(to hide states that have no change)
19:56 Eugene Oh --state-output flag. Aduh
19:56 dthom91 joined #salt
19:56 Eugene Though I note there is no --state-verbose
19:58 Eugene Annnnd that's not in 16.0, of course.
19:58 * Eugene sits in corner, cries
19:58 qba73 joined #salt
19:59 Eugene No wonder I didn't see it in the man page
20:00 gldnspud joined #salt
20:04 liwen joined #salt
20:13 Outlander joined #salt
20:14 mannyt joined #salt
20:18 matanya joined #salt
20:18 vbabiy joined #salt
20:21 Jahkeup joined #salt
20:25 lemao joined #salt
20:28 dthom91 joined #salt
20:29 Eugene Next question: who do I have to kill to get the EPEL packages updated?
20:35 Jahkeup joined #salt
20:39 Jahkeup joined #salt
20:42 Jahkeup_ joined #salt
20:43 Jahkeup__ joined #salt
20:46 Jahkeup joined #salt
20:49 Jahkeup joined #salt
20:54 dthom91 joined #salt
20:55 vbabiy joined #salt
21:02 aat joined #salt
21:05 liwen joined #salt
21:05 mwillhite joined #salt
21:18 Jahkeup joined #salt
21:21 [diecast] joined #salt
21:24 aat joined #salt
21:27 Outlander joined #salt
21:42 tuxIO joined #salt
21:49 oz_akan_ joined #salt
21:53 slawek- joined #salt
21:54 slawek-_ joined #salt
21:55 forrest Eugene, use the develop commands to pull from github if you want a more recent version
21:55 forrest it takes about 3 weeks from when Herlo submits to EPEL and it gets approved on approved releases.
21:56 Eugene Ah, so it's Red Hat being slow.
21:56 forrest no
21:56 forrest It has to bake in the test section of EPEL for a few weeks unless someone uses their 'rep' to push it through
21:56 Eugene That's what I siad. :-p
21:56 forrest then once it has it's cleared to go forward and gets pushed to production
21:57 Eugene I'm not scared of using an external yum repo, but I avoid `make install` like the plague. yum was invented for a reason ;-)
21:58 forrest https://github.com/saltstack/salt-bootstrap
21:58 forrest just download the bootstrap shell script, pass the options you want, and you're good to go for the update usually.
21:58 forrest if you're on RHEL 6 you need to enable the optional repo.
21:59 Eugene Last I pawed through that it just enabled the epel repo
21:59 forrest not if you use the options
22:00 forrest you can pull directly from git.
22:00 Eugene ....which I just said is what I'm avoiding.
22:00 forrest You could download from the EPEL test repo if the most recent version is in there, you can't have everything here.
22:01 forrest unless you wanna go build some packages in EPEL, then use your rep to push through the release from test -> stable.
22:01 Eugene Oh, I forgot they provide -testing
22:01 forrest yea on cent and rhel
22:02 Eugene It's been a while since I've enabled that repo
22:04 Eugene What's the usual lag between get and -testing?
22:04 forrest Totally depends on Herlo
22:04 forrest he's usually pretty good about getting stable releases built and headed over to the testing repo.
22:04 * Eugene nods
22:05 * Eugene runs off to file.managed his epel.repo
22:06 forrest Are you on cent or RHEL?
22:06 Eugene Neither. Scientific Linux.
22:06 forrest ahh ok
22:07 aat joined #salt
22:07 Eugene It confuses people enough to convince them I know what i'm doing :-p
22:08 forrest *shrug* it's basically the same
22:09 Eugene Yup. It's the little differences that matter, such as `yum install epel-release` vs `wget && yum localinstall`
22:10 dthom91 joined #salt
22:23 Jahkeup_ joined #salt
22:25 lemao joined #salt
22:26 Jahkeup__ joined #salt
22:27 littleidea joined #salt
22:54 kenbolton joined #salt
23:15 dthom91 joined #salt
23:18 littleidea joined #salt
23:21 aat joined #salt
23:23 kenbolton joined #salt
23:24 Jahkeup__ hey with cmd.script - onlyif: "exit 1"  actually run onlyif actually exited 0?
23:29 forrest Can you rephrase the question?
23:30 Jahkeup forrest: I think I found the answer here https://github.com/saltstack/salt/blob/develop/salt/states/cmd.py#L226
23:30 forrest fool
23:30 forrest *cool
23:30 forrest lol
23:30 Jahkeup but that should mean that if my onlyif cmd returns anything other than 0 it should stop right?
23:30 Jahkeup that is not exec
23:31 forrest well, it returns the same result though
23:31 forrest the result is still true
23:31 Jahkeup I mean if I have a cmd.script that has an onlyif: exit 1, the script shouldn't be run, correct?
23:32 forrest a shell script?
23:33 Jahkeup yea
23:33 forrest I realy don't know, because it returns a result of true regardless
23:33 forrest just with a comment of the execution failing
23:33 Jahkeup yes, but as far as the actually script running, it *shouldn't* run
23:34 forrest I would hope so :P
23:34 Jahkeup haha I shall test!
23:34 forrest unless I'm not understanding the logic, is it not performing as expected?
23:34 forrest ok cool, let me know, but yea you would think it won't run.
23:34 Jahkeup haven't tried just yet, exploring options :)
23:34 forrest ok
23:34 cmoberg joined #salt
23:40 StDiluted joined #salt
23:42 littleidea joined #salt
23:46 lazyguru joined #salt
23:57 oz_akan_ joined #salt
23:57 aat joined #salt
23:58 p3rror joined #salt
23:58 cmoberg joined #salt

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