Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-03-21

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

All times shown according to UTC.

Time Nick Message
00:03 yomilk joined #salt
00:22 seev joined #salt
00:22 JDiPierro joined #salt
00:22 al joined #salt
00:24 dalexander joined #salt
00:29 ndrei joined #salt
00:44 fbettag joined #salt
00:50 baweaver joined #salt
00:54 ajw0100 joined #salt
00:54 pipps joined #salt
00:57 desposo joined #salt
01:00 mikaelhm joined #salt
01:00 dendazen joined #salt
01:02 Vynce is there a straight up "count minions" or do you jsut test.ping | wc ?
01:03 iggy manage.up might be better
01:04 KyleG if you want to count the up minions
01:04 KyleG if you want to count minions in general, I bet salt-key would be the fastest
01:04 iggy true story
01:05 KyleG salt-key -l acc | wc -l
01:05 KyleG subtract 1
01:05 KyleG profit
01:05 KyleG -l ARG, --list=ARG  List the public keys. The args "pre", "un", and
01:05 KyleG "unaccepted" will list unaccepted/unsigned keys. "acc"
01:05 KyleG or "accepted" will list accepted/signed keys. "rej" or
01:05 KyleG "rejected" will list rejected keys. Finally, "all"
01:05 KyleG will list all keys.
01:06 Vynce I got:     'manage.up' is not available.
01:06 iggy it's a runner
01:06 KyleG We can get even fancier
01:06 KyleG for i in /var/cache/salt/master/minions/* ; do echo $i ; done | wc -l
01:06 Vynce which means it leaves without paying its bill?
01:06 iggy so... sudo salt-run manage.up
01:07 iggy ls /var/cache/salt/master/minions/ | wc -l
01:07 KyleG or that
01:07 KyleG smartass
01:07 KyleG lol
01:07 Vynce oh, hey, with manage.up (or.status) they're even pre-sorted for me. sweet.
01:08 iggy huh, so they are
01:08 iggy never noticed
01:08 iggy #SSCE
01:08 Vynce say something charles enjoys?
01:09 iggy close enough
01:09 Vynce oh, that's my ops motto.  Salt Stack: Close Enough
01:09 _JZ_ joined #salt
01:10 KyleG you only highstate once that's the motto ***** yolo
01:10 KyleG lol
01:10 iggy A couple of us got our SaltStack Certified Engineer certifications at saltconf and have been taking shots at each other for not knowing shit
01:10 iggy but since I'm the only one here, I have to harass myself
01:11 Vynce *that's* my motto for a different situation. \ :
01:11 KyleG salt is easy at first
01:12 KyleG then you realize the thing has thousands of different buttons (elevator analogy)
01:12 KyleG lol
01:12 TyrfingMjolnir joined #salt
01:12 iggy yeah, and getting even more
01:12 KyleG yup
01:12 * iggy welcomes beacons
01:12 KyleG I've been using salt for almost 2 and a half years now
01:13 KyleG i probably know 10% of it
01:13 KyleG Maybe I should look into that certified engineer stuff, does it include materials/training or is it just a test?
01:14 iggy I did it at "the conf" and there was a day of training+2 shots at the test
01:14 iggy think it was $500 for that
01:14 iggy don't know how they do it on a regular basis
01:14 bhosmer_ joined #salt
01:15 KyleG nice
01:16 KyleG I'm heading home, have a great weekend :)
01:16 iggy ditto\
01:16 aparsons joined #salt
01:21 baweaver joined #salt
01:28 baweaver joined #salt
01:30 baweaver joined #salt
01:34 hasues joined #salt
01:36 hasues left #salt
01:36 timoguin joined #salt
01:39 I3olle joined #salt
01:40 itru joined #salt
01:49 otter768 joined #salt
02:02 Vynce hm.
02:02 catpiggest joined #salt
02:02 rome_390 joined #salt
02:03 Vynce is there an easy way to get, for each grain key, a list of unique values that exist among your minions?
02:03 Vynce (or for a particular key?  there are actually only 3 i care about for this)
02:03 hemebond Vynce: You mean the key as a list of values and you only want unique values?
02:04 Vynce well, in my case the keys are single values
02:04 desposo joined #salt
02:05 Vynce but so if i have 5 mchiens with role "webserver" and 2 with role "db" id' the result of this would be "db,webserver"
02:05 Vynce (or something that returned something more like "webserver:5, db:2, undef:1" would also work.  this is for human consumption, so far, not scripting)
02:05 hemebond Oh.
02:06 hemebond You'd probably create a new dict and then make it a list.
02:06 hemebond Not sure how easy that would be in a Jinja template.
02:07 Vynce i don't really care what the data structure is. i'm wondering if there is anythign that currently returns this information in a form more conveneient than the many pages of spam i get from grains.items
02:07 Vynce yeah, if i have to code it, i'll jsut write a script that parses it out of grains.items.  i'm jsut wondering if such a thing already exists.
02:08 hemebond I doubt anything exists to do that.
02:08 hemebond grains are for use in states, so, scripting.
02:08 hemebond Would be simple to script though I think.
02:08 Vynce i don't see how that follows, but OK.
02:09 bbhoss so file.managed seems to be seeing some files, but not others. permissions are identical. What gives?
02:09 Vynce yeah, not too hard, just fiddly enough that if an existing tool already did it, i'd prefer that. ( :
02:09 hemebond It would only take a couple of lines of Python to get the output you want.
02:10 hemebond Very easy if this is for human consumption and now for use in a state file or similar.
02:10 hemebond bbhoss: What do you mean?
02:10 Vynce hemebond: er… maybe starting from someplace you know that i don't. i'd spend 10 or 15 lines just getting the data into a reasonable structure in python.
02:11 scbunn joined #salt
02:11 hemebond Vynce: Well, it depends on what your output looks like and what grains you're trying to read.
02:12 hemebond If you can paste up an extract somewhere I can have a look and try to advise.
02:12 hemebond Though I haven't needed to extract grains like this.
02:12 bbhoss hemebond: https://gist.github.com/bbhoss/d6092ce8f7411c3fe84e
02:12 bbhoss so all of the files except for the .db files copy correctly
02:13 bbhoss but no matter what I do it seems that the db files cannot be found
02:13 Vynce hm.  then i think i may not have communicated my desire clearly.  really not worth even as much effort as it has already taken, though.
02:13 bbhoss "Source file "salt://ldap/secmod.db" is not present" for example is the error
02:13 hemebond Vynce: Okay.
02:13 hemebond bbhoss: Can you show an "ls -al" of the ldap directory?
02:14 bbhoss hemebond: https://gist.github.com/bbhoss/b9e7e59238406fb5e599
02:16 hemebond bbhoss: Is there a reason you're using file.copy instead of file.managed? Is it a one-off copy?
02:16 bbhoss yeah, it just needs to go once, they're binary files. I am quite new to salt, FYI
02:16 bbhoss would managed work better?
02:16 hemebond Not if the file is going to change once deployed.
02:17 gladiatr joined #salt
02:18 bbhoss that worked, odd. Can you please explain why it was failing with copy?
02:18 hemebond I'm just reading up on copy (I usually require managed)
02:18 gladiatr meylor: you can use mine.update()
02:18 hemebond Are you running the latest version?
02:19 bbhoss I'm running a git checkout from yesterday
02:21 hemebond Directory exists?
02:21 bbhoss I don't understand what you mean
02:22 hemebond The destination directory, /var/ldap/
02:22 bbhoss yeah, I believe so
02:22 bbhoss wouldn't that be in the error message instead of complaining about the source? I would expect it to be
02:23 hemebond True.
02:23 bbhoss coulda been a bug
02:23 bbhoss got a holt of the wrong input
02:24 bbhoss another odd issue I'm having is that with ldap external authentication. test.ping and grains.items, etc work fine, but it fails when I try to run highstate
02:25 hemebond Have you tried a stable build of Salt?
02:25 hemebond If you have the Git version you could add some debug output, i.e., print statements :-)
02:26 bbhoss yeah, long story. I basically tried git to see if it would fix an issue I was having with ldap eauth, and it turns out it was just a documentation issue, which I fixed :)
02:26 bbhoss there is probably something in the logs, I'll look at it once I get a machine setting up with ldap properly
02:30 debian112 joined #salt
02:31 scbunn joined #salt
02:34 bbhoss hemebond: while I have you, is there some way easily I can just create a full files contents from the state? That file.prepend is causing me issues. That defaultdomain needs to just BE ops.mydomain.com, always. Seems like overkill to use file.managed and actually put a file in the fs, but that seems like the proper way forward
02:35 pipps joined #salt
02:36 timoguin joined #salt
02:37 hemebond bbhoss: You mean can you set file contents from within a state instead of referencing a file in salt:// ?
02:37 bbhoss yeah, it just seems a bit much to have to set all that up for basically echo "foo" > /etc/bar
02:38 hemebond Yes you can. http://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.managed
02:38 hemebond file.managed can take various things as the source.
02:38 esogas_ joined #salt
02:38 hemebond Including a pillar.
02:39 hemebond contents
02:39 dude051 joined #salt
02:40 hemebond The contents attribute can be used to set the contents of the file from within the state.
02:40 rvankleeck joined #salt
02:40 rvankleeck joined #salt
02:41 bbhoss ah, that's what I wanted. Guess I skimmed over that earlier, thanks
02:42 otter768 joined #salt
03:01 neogenix_ joined #salt
03:16 clintberry joined #salt
03:21 johtso joined #salt
03:28 heise joined #salt
03:31 JoshuaX joined #salt
03:36 timoguin joined #salt
03:46 ek6 joined #salt
03:51 ekristen joined #salt
03:54 MaliutaLap joined #salt
03:54 MaliutaLap left #salt
04:02 hal58th_ joined #salt
04:22 iromli joined #salt
04:29 badon joined #salt
04:32 favadi joined #salt
04:33 bhosmer_ joined #salt
04:38 germs_ joined #salt
04:40 refnode__ joined #salt
04:51 sunkist joined #salt
04:56 HoloIRCUser2 joined #salt
04:56 sunkist joined #salt
05:03 Hell_Fire_ joined #salt
05:05 micko joined #salt
05:05 evle joined #salt
05:18 dude051 joined #salt
05:22 mikaelhm joined #salt
05:24 dude051 joined #salt
05:24 Hell_Fire_ joined #salt
05:24 hintss left #salt
05:31 jerematic joined #salt
05:36 timoguin joined #salt
05:38 meylor using salt-cloud with a defined map. My salt-cloud keeps creating a new minion that already exists? anyone have any idea why that would happen?
06:00 JDiPierro joined #salt
06:01 scristian joined #salt
06:04 rvankleeck joined #salt
06:04 rvankleeck joined #salt
06:22 cmb joined #salt
06:32 jerematic joined #salt
06:37 thayne_ joined #salt
06:37 thayne joined #salt
06:47 otter768 joined #salt
06:49 dendazen joined #salt
06:51 pvmart joined #salt
06:54 pvmart left #salt
06:55 pipps joined #salt
07:09 MatthewsFace joined #salt
07:32 donmichelangelo joined #salt
07:36 timoguin joined #salt
07:40 favadi joined #salt
08:20 Furao joined #salt
08:29 nexsja^ joined #salt
08:36 fllr joined #salt
08:48 otter768 joined #salt
08:49 MatthewsFace joined #salt
08:50 Furao joined #salt
08:58 pipps joined #salt
09:09 rvankleeck joined #salt
09:09 rvankleeck joined #salt
09:15 __gotcha joined #salt
09:21 jerematic joined #salt
09:26 pipps joined #salt
09:29 nebo joined #salt
09:33 tomh- joined #salt
09:36 timoguin joined #salt
09:37 I3olle joined #salt
09:53 bhosmer_ joined #salt
09:55 ndrei joined #salt
10:03 flebel joined #salt
10:05 peters-tx joined #salt
10:12 aquassaut joined #salt
10:16 egil joined #salt
10:27 pipps joined #salt
10:32 linjan joined #salt
10:34 hemebond joined #salt
10:48 Diaoul joined #salt
10:48 amcorreia joined #salt
10:49 otter768 joined #salt
10:50 linjan joined #salt
11:03 CeBe joined #salt
11:05 johtso joined #salt
11:10 bluenemo joined #salt
11:10 bluenemo joined #salt
11:10 jerematic joined #salt
11:19 warpaint joined #salt
11:29 pipps joined #salt
11:30 losh joined #salt
11:36 Furao joined #salt
11:36 timoguin joined #salt
11:51 MatthewsFace joined #salt
12:11 jerematic joined #salt
12:26 mcescher joined #salt
12:29 pipps joined #salt
12:36 timoguin joined #salt
12:37 XenophonF joined #salt
12:39 scarcry joined #salt
12:39 rvankleeck joined #salt
12:39 rvankleeck joined #salt
12:44 andreyst joined #salt
12:46 flebel joined #salt
12:48 dopesong joined #salt
12:49 egil joined #salt
12:50 otter768 joined #salt
12:51 meylor joined #salt
13:01 dopesong_ joined #salt
13:02 warpaint joined #salt
13:03 dopesong_ joined #salt
13:04 dopesong joined #salt
13:06 jtang joined #salt
13:13 zwi joined #salt
13:19 thehaven joined #salt
13:24 MatthewsFace joined #salt
13:30 pipps joined #salt
13:31 XenophonF left #salt
13:36 timoguin joined #salt
13:59 warpaint joined #salt
14:00 jerematic joined #salt
14:05 renoirb joined #salt
14:10 robsavino joined #salt
14:19 bhosmer joined #salt
14:25 renoirb joined #salt
14:25 toastedpenguin joined #salt
14:25 MatthewsFace joined #salt
14:28 teskew joined #salt
14:31 pipps joined #salt
14:36 timoguin joined #salt
14:42 flebel joined #salt
14:46 pipps joined #salt
14:51 otter768 joined #salt
14:51 sunkist The user state moduler is complicated looking!
14:52 sunkist *module
14:52 sunkist I was looking at implementing a state and execution module for a shadow-file of a web app.
14:53 sunkist But it doesn't seem like there is an easy pattern to folllow in salt code.
14:53 sunkist Which makes me wonder which is better: a complicate custom module/state, or a complicated custom formula based on salt built-ins.
14:59 chandy joined #salt
15:05 nexsja^ joined #salt
15:06 mcescher joined #salt
15:11 duffolonious joined #salt
15:14 pipps joined #salt
15:15 evle joined #salt
15:19 scbunn joined #salt
15:19 renoirb joined #salt
15:22 jerematic joined #salt
15:30 dopesong_ joined #salt
15:31 brianfeister joined #salt
15:33 ccarney_ROCC joined #salt
15:36 timoguin joined #salt
15:46 ek6 joined #salt
15:51 thayne_ joined #salt
15:51 thayne joined #salt
15:53 renoirb joined #salt
15:54 rvankleeck joined #salt
15:54 ek6 joined #salt
15:58 ek6 joined #salt
16:00 kermit joined #salt
16:06 chandy joined #salt
16:09 JoshuaX joined #salt
16:11 slav0nic joined #salt
16:12 dopesong joined #salt
16:14 MatthewsFace joined #salt
16:14 ccarney_ROCC joined #salt
16:26 germs_1 joined #salt
16:32 duffolonious joined #salt
16:40 ek6 joined #salt
16:44 primechuck joined #salt
16:52 otter768 joined #salt
16:52 wincyj joined #salt
16:53 flebel joined #salt
16:58 fllr joined #salt
16:59 hasues joined #salt
16:59 hasues left #salt
17:03 Hell_Fire joined #salt
17:05 thayne joined #salt
17:05 thayne_ joined #salt
17:12 ndrei joined #salt
17:21 ndrei joined #salt
17:24 mt joined #salt
17:27 linjan joined #salt
17:30 MatthewsFace joined #salt
17:34 sl_ joined #salt
17:34 pipps joined #salt
17:36 sunkist joined #salt
17:36 timoguin joined #salt
17:37 pipps99 joined #salt
17:38 jerematic joined #salt
17:54 goodwill joined #salt
17:59 chandy joined #salt
18:01 ajw0100 joined #salt
18:12 evle joined #salt
18:15 primechuck joined #salt
18:19 bhosmer joined #salt
18:20 GabLeRoux joined #salt
18:21 chandy joined #salt
18:24 smcquay joined #salt
18:26 zwi joined #salt
18:29 linjan joined #salt
18:30 GabLeRoux Hey there, anyone already installed multiple php versions on a single centos using salt? I think it's possible to configure apache to use a single php version on mod_php and other ones in fcgi mode, but we can't install multiple php versions using package manager, should I move php once it's installed or something like that?
18:31 flebel joined #salt
18:36 timoguin joined #salt
18:40 jerematic joined #salt
18:45 mcescher joined #salt
18:46 CheKoLyN joined #salt
18:53 otter768 joined #salt
19:00 Furao joined #salt
19:03 jtang joined #salt
19:04 jtang1 joined #salt
19:10 warpaint joined #salt
19:10 dopesong joined #salt
19:16 MatthewsFace joined #salt
19:20 sc` GabLeRoux: if you really want to have multiple versions of php living together, you should build packages that do not install to the same places and use those
19:21 sc` it wouldn't surprise me if someone has already done the work
19:21 rvankleeck joined #salt
19:21 rvankleeck joined #salt
19:25 andreyst joined #salt
19:26 GabLeRoux @sc` Well I've search for this and couldn't find packages that can live with each others. I'm currently using webtatic to install php5.6, their packages are still conflicting each other. Custom rpm sounds good, I'll see if I can do this
19:27 flebel joined #salt
19:29 chandy joined #salt
19:29 GabLeRoux I've read on a couple of blog posts that best way is to compile them manually and place them in different folders, I don't really like this idea,, but I can live with that
19:32 bash124512 anyone can help me out with some python salt stuff ? :)
19:39 bash124512 question is : how do I get the path of the init.sls which has source: salt://filename so I can access filename
19:40 ckao joined #salt
19:40 jerematic joined #salt
19:42 dude051 joined #salt
19:45 warpaint joined #salt
19:47 armguy joined #salt
19:55 MaliutaLap joined #salt
19:55 MaliutaLap left #salt
20:04 dopesong_ joined #salt
20:05 thayne joined #salt
20:05 thayne_ joined #salt
20:08 jonher937 bash124512: I'm not following, what is it that you want to accomplish?
20:08 bash124512 nvm :)
20:08 bash124512 found it
20:08 jonher937 bash124512: OK, great :)
20:08 bash124512 __salt__['cp.get_file_str']
20:25 Fiber^ joined #salt
20:26 mikaelhm joined #salt
20:29 chandy joined #salt
20:31 warpaint joined #salt
20:31 zwi joined #salt
20:32 sc` GabLeRoux: you likely won't find out of the box packages that will work. you'll most likely have to build them yourself. fortunately, there is a plethora of spec files out there, some you might be able to leverage
20:36 timoguin joined #salt
20:40 zer0def joined #salt
20:46 mcescher joined #salt
20:54 otter768 joined #salt
21:16 micko1 joined #salt
21:17 scbunn joined #salt
21:27 Vynce joined #salt
21:29 jerematic joined #salt
21:30 chandy joined #salt
21:33 lucidd joined #salt
21:33 Hell_Fire joined #salt
21:35 pipps joined #salt
21:38 flebel joined #salt
21:39 mikaelhm joined #salt
21:42 Hell_Fire_ joined #salt
22:00 CheKoLyN joined #salt
22:03 bluenemo does gitfs_mountpoint ad described here http://docs.saltstack.com/en/latest/ref/configuration/master.html#std:conf_master-gitfs_mountpoint actually physically mount the git repo to a dir i specify? as in, what would I have to write for gitfs_remotes: - git@bla.com:foo.git  to be mounted to /srv/salt/production/foo  ?
22:03 kormoc joined #salt
22:03 kormoc joined #salt
22:04 kormoc joined #salt
22:05 bluenemo and how can I specify different branches to be used for diffent salt environments? as in, when I use - base: master  it works, but can I use - production: production as well to have master checked out in /srv/salt/base and production branch in /srv/salt/production?
22:05 kormoc joined #salt
22:05 bluenemo or do I missunderstand the use of gitfs?
22:06 kormoc joined #salt
22:07 kormoc joined #salt
22:08 kormoc joined #salt
22:09 kormoc joined #salt
22:10 kormoc joined #salt
22:11 kormoc joined #salt
22:12 kormoc joined #salt
22:13 aquassaut joined #salt
22:14 pravka joined #salt
22:15 JDiPierro joined #salt
22:18 nicksloan joined #salt
22:18 flebel joined #salt
22:20 pravka joined #salt
22:22 iggy bluenemo: it doesn't check them out there, it's a virtual thing... but it uses branches as env names by default
22:23 bluenemo ah ok. so if I have a prodcution and a foobar branch, I can always say:   env=production salt 'fo*' state.sls foobar?
22:23 bluenemo and the master branch will be base by default?
22:23 bluenemo do the pillar files then have to be present physically iggy?
22:24 iggy you can use git for pillars too
22:24 ccarney_ROCC joined #salt
22:24 bluenemo how can I use gitfs for pillars iggy ?
22:26 bluenemo iggy, in this example: http://paste.debian.net/162480/    when I say env=production, it will use the production branch? and by default master for base?
22:27 bluenemo as the mountpoint by default is salt://   can I use - mountpoint: pillar://nginx and use a repo which contains the nginx pillar data?
22:30 ccarney_ROCC I'm brand new to Salt and I am going through the tutorials. Can someone help me understand the ports? The tutorial says to open ports 4505 and 4506 on the master. My understanding is that the master communicates out 4505 and receives traffic in 4506. Is that right?
22:30 flebel joined #salt
22:35 iggy gitfs doesn't cross over with pillars
22:35 rvankleeck joined #salt
22:35 rvankleeck joined #salt
22:36 iggy ccarney_ROCC: sounds right
22:36 ccarney_ROCC Thank you.
22:36 bluenemo iggy, I cant follow you :( can you be more specific please?
22:42 iggy bluenemo: pillar:// isn't valid
22:45 bhosmer joined #salt
22:48 nicksloan joined #salt
22:51 dvestal joined #salt
22:55 otter768 joined #salt
22:55 aparsons joined #salt
23:01 aparsons joined #salt
23:02 mikaelhm joined #salt
23:07 yomilk joined #salt
23:14 germs_1 left #salt
23:18 jerematic joined #salt
23:25 scbunn joined #salt
23:27 thayne_ joined #salt
23:27 thayne joined #salt
23:29 darvon joined #salt
23:36 viq joined #salt
23:40 GabLeRoux joined #salt
23:50 yomilk joined #salt

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