Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-06-22

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

All times shown according to UTC.

Time Nick Message
00:00 KyleG Salt Genesis huh..
00:00 KyleG As a bare metal shop, that excites me. ^_^
00:00 KyleG It's definitely going to be required for the future success of salt
00:01 mgw Corey, UtahDave: It looks like someone already put the launchd stuff in pkg/darwin
00:01 KyleG Btw UtahDave, we've been given a go to start Salt Stack meetups here in LA, and my company will pay to host it at a place that can hold enough people!
00:01 KyleG a go ahead by my boss I mean
00:01 UtahDave KyleG: Nice!  that's awesome.
00:01 KyleG Pretty excited, I have to start thinking of what talks to give and stuff
00:01 mgw At least there're plists there that look like launchd plists to me
00:01 UtahDave Kyleg can I pm you?
00:01 KyleG absolutely
00:02 UtahDave mgw: have you been able to test the launchd stuff?
00:10 jpeach joined #salt
00:13 gwar9999 Is the Salt ui useful/mature yet?  I see that it's "pre-alpha" so I don't expect it to be perfect, but I wonder what the status/potential of it is?  Also, I haven't gotten too deep into the docs yet (always some fire to put out here before researching new stuff) but is all of the minion configs text-based or can they be stored in a db?
00:15 UtahDave gwar9999: It's somewhat useful, but we've just begun to make some big changes.
00:16 kermit joined #salt
00:18 gwar9999 UtahDave:  I'm hoping salt is awesome since we're currently a puppet-shop and I dig python far more than ruby.  Puppet is maddening at times so if we can find a promising alternative we'll likely switch, but it will take a lot since puppet is widely adopted here.
00:18 chrism salt is pretty awesome. :)
00:19 dave_den joined #salt
00:19 chrism you really don't need the UI tbqh
00:19 chrism although it'd be a nice perk
00:19 chrism for relevance, i replaced a chef server that took 6 months to get going, live and doing somewhat-complexish stuff with salt
00:19 chrism the base of my salt replacement was done in ~3-4 days
00:20 chrism then I spent time making it awesome
00:20 chrism =)
00:21 gwar9999 chrism: well foreman has some useful features, reporting, charts, audits and it's used a lot here.  We currently have over 5000 nodes that are manipulated with foreman.  It would be nearly impossible to configure the hosts manually.
00:21 chrism yeah tbqh the graphical aspects of salt are.... not there yet
00:22 UtahDave gwar9999: Salt does have a very good REST interface that you can tap in to with existing applications/Web applications
00:22 chrism aye, i've been meaning to look into that
00:22 chrism <--still learning
00:22 chrism hehe
00:22 UtahDave gwar9999: Salt will handle your 5000 nodes easily.
00:23 UtahDave Another user of ours has 7000 minions connected to one salt master. It takes only about 26 seconds to execute a command across all of them
00:23 gwar9999 UtahDave: I hope so, I still need to have the time to thoroughly research salt.
00:23 UtahDave That's not even taking into account other strategies to scale salt like the syndic.
00:23 chrism 26 seconds?
00:23 chrism damn
00:23 UtahDave And we haven't even started optimizing Salt for large infrastructures yet.
00:24 UtahDave that's just out of the box.
00:25 zonk1024 what's the trick to adding a ppa?
00:27 zonk1024 pkg.mod_repo?
00:27 terminalmage zonk1024: there's a pkgrepo state
00:27 terminalmage http://docs.saltstack.com/ref/states/all/salt.states.pkgrepo.html#salt.states.pkgrepo.managed
00:30 zonk1024 terminalmage: says not available… is it in dev, but not the ppa?
00:45 efixit joined #salt
00:45 terminalmage zonk1024: not sure. maybe it's not in 0.15.x
00:45 terminalmage I usually test from git
00:45 terminalmage :)
00:45 terminalmage since I am a dev
00:46 zonk1024 terminalmage: i think pkg.get_repo may have done it. let me figure out how i got it to work
00:46 Furao joined #salt
00:46 terminalmage zonk1024: how did you try running the state?
00:47 zonk1024 terminalmage: pkg.mod_repo ppa:chris-lea/python-boto
00:47 zonk1024 that did it
00:48 terminalmage ok
00:48 terminalmage I was referring to the state
00:48 terminalmage pkg.mod_repo is an execution function
00:48 terminalmage have you done anything with states yet?
00:48 zonk1024 i have, but not this.  just testing the exe bit first
00:49 terminalmage ok
00:49 zonk1024 not a whole bunch
00:49 zonk1024 give me this weekend.. haha
00:49 terminalmage you can't run pkgrepo.managed from the CLI
00:49 zonk1024 yeah
00:49 zonk1024 what is your guys' hitlist on modules?
00:49 terminalmage ok I didn't know if there was any confusion there
00:49 terminalmage hitlist/
00:49 terminalmage ?
00:49 zonk1024 high value / desired modules
00:52 terminalmage zonk1024: well to be honest, we've been in bugfix mode leading up to today's 0.16.0 release candidate
00:53 terminalmage is there a particular module that would be of use?
00:53 zonk1024 good question… think I just asked you that.  haha
00:53 terminalmage haha
00:53 lex__ joined #salt
00:53 terminalmage well we have a massive list of requests on the issue tracker
00:54 zonk1024 i need the "get_boss_to_aprove_salt" module
00:54 zonk1024 approve*
00:54 terminalmage zonk1024: just use sudo
00:54 terminalmage :)
00:54 terminalmage sudo approve salt
00:54 terminalmage "OK"
00:54 zonk1024 it's not a sandwich...
00:54 terminalmage hahahahaha
00:54 terminalmage I have that shirt
00:54 zonk1024 :)
00:54 terminalmage if only it were that easy
00:55 terminalmage if you want the boss to approve it, I would try setting up a demo
00:55 terminalmage that's what I did at my old job
00:55 zonk1024 i'm working on our cluster stuff.  i think i'm going to crack out and build it in salt this weekend… then show him on monday
00:55 terminalmage sounds like a fun weekend
00:56 terminalmage I'm heading to Michigan to see the Mythbusters Tour
00:56 terminalmage or I'd offer to answer questions
00:56 zonk1024 i hit yosemite and so call in another week for my 30th bday
00:56 zonk1024 :D
00:56 zonk1024 live in SF. hehe
00:56 terminalmage so cal?
00:57 zonk1024 southern california
00:57 terminalmage yeah I figured
00:57 terminalmage but you said "so call"
00:57 zonk1024 derp
00:57 terminalmage :)
00:57 terminalmage wife and I were just in socal
00:57 terminalmage last month
00:57 zonk1024 nice
00:57 terminalmage yeah we went to LA and Disney
00:57 terminalmage for our anniversary
00:57 zonk1024 i just moved there for a month, then here
00:57 zonk1024 interesting transition into this company
00:58 terminalmage nice
00:58 terminalmage I really need to go to SF to visit, I've only ever passed through
00:58 terminalmage connecting flights at SFO
00:58 zonk1024 have another meetup here.  i just missed the last one
00:59 terminalmage Well it would be quite a commute, as I live in the Chicago area
00:59 terminalmage Maybe I'll be able to make it out for PyCon
00:59 zonk1024 didn't utahdave come out?
00:59 terminalmage next year
01:00 terminalmage I think he did
01:00 terminalmage not sure
01:00 zonk1024 i missed pycon
01:00 zonk1024 and the dongle joke
01:00 terminalmage I just started working for SaltStack a couple weeks ago
01:01 zonk1024 so, i need like 3 or 4 salt states for our stuff this weekend, and maybe a custom module or two
01:01 zonk1024 nice
01:01 zonk1024 how do you like it there?
01:01 zonk1024 going to grab a beer real quick.  ahhhh startups… hehe
01:01 terminalmage very nice, my new commute of "Walk downstairs" beats the old one of "Drive 45 miles"
01:02 terminalmage and Chicago has one of the highest average gas prices, so not having to drive is a benefit
01:03 zonk1024 i leave my car at work and walk the 1.3 miles so i don't have to try to park… then get up before the street cleaners… ugg
01:03 terminalmage yeah, commuting sucks
01:04 terminalmage I used to work in downtown chicago, it cost less but took longer because you had to work around the train schedule
01:08 zonk1024 commuting sucks so bad.  my first job was a 45 min commute if i was speeding, which i was, for $.25 over min wage… so lame
01:09 zonk1024 programming is so nice… so nice
01:09 terminalmage yeah.
01:09 zonk1024 btw, you guys pretty much wrote the tool i envisioned.  it was reassuring to finally find it and not have to write it.
01:10 zonk1024 i don't know if i could in any practical amount of time
01:10 zonk1024 but it had to be fast (MQ) and secure.  map args to functions as transparently as possible...
01:11 zonk1024 and the gitfs makes me happy.
01:11 terminalmage yeah I haven't messed with gitfs much (it didn't like our gitolite setup at my previous job), but from what I've seen it is pretty awesome
01:14 zonk1024 i am using salt for my stuff to get up to speed before begging my boss. i run 2 rackspace cloud servers, a home server, and and old-ish laptop at home.  so, i use syndic to get around nat and need gitfs to get around syndic
01:14 zonk1024 or so i've been lead to believe
01:15 zonk1024 and it seems to work, so i'm inclined to believe
01:15 terminalmage :)
01:18 zonk1024 oh, and i use gitlab… although i'm still trying to iron out everything so it's clean and organized
01:18 zonk1024 such a bottom-up programmer. it's terrible.
01:18 zonk1024 afk for 5
01:27 EugeneKay Oy, gitlab.
01:34 avn joined #salt
01:35 zonk1024 EugeneKay: ??
01:36 EugeneKay Not a fan of it
01:38 lex__ joined #salt
01:41 chrism does anyone happen to know how salt-minion generates grains['fqdn']?
01:41 chrism before I go code diving =P
01:42 chrism def getting a funky FQDN that does not match the hostname
01:46 chrism oh god its parsing /etc/hosts
01:46 chrism well that explains that
01:47 avn Hi guys. I have a question. I have "extra" file_roots, in /etc/salt/master, and rule in my .sls  with recursive copy of salt://something/stuff   (and I have /srv/extra/something/stuff on master) but state.highstate complains about "source ... does not exists". How I can debug this case?
01:48 chrism so salt will look at the environment, and if you have multiple file roots, it'll go through them in order listed until it finds the state specified
01:48 chrism then it execs out of that dir
01:49 chrism so like if you have /srv/salt/base/blah/ and /srv/salt/states/blah/, and you try to exec 'blah' in highstate, it'll hit the first one and never touch the second
01:52 terminalmage chrism: I think it uses /etc/hosts
01:52 terminalmage but I know just where to look, lemme confirm
01:52 terminalmage chrism: it uses socket.getfqdn()
01:56 chrism yeah it does socket.getfqdn()
01:56 chrism which parses /etc/hosts
01:56 avn chrism: I have "file.recurse: - source: salt:/some/stuff" in my highstate. I have state in base, but stuff in other root
01:56 chrism but if you throw in a /etc/hosts entry w/ the IP of the server and a subdomain on there, it blows up
01:56 terminalmage yeah whenever we've seen some weird stuff in the minion id it has been because of /etc/hosts
01:56 avn (whole some/stuff in other root)
01:56 chrism breaks the salt-minion key setup, makes it re-authenticate
01:57 chrism fwiw just tested converting that to socket.gethostname() and it works as expected
01:57 chrism that uses the output of uname to grab it, not /etc/hosts
01:57 chrism avn: you can't split up a state like that
01:58 chrism if i'm understanding what you're doing that is, can you possibly pastebin the relevant configs? (obviously sanitize anything that needs to be)
01:59 chrism terminalmage: gonna try a pull request, i don't see any reason this might fail, but i don't really know the workings of salt or python that well either
02:01 terminalmage chrism: I think that getfqdn is the right way to go
02:01 terminalmage gethostname doesn't give you a FQDN
02:02 terminalmage I don't think
02:02 chrism well it depends what the kernel sees
02:02 chrism on my test VMs, kern return a fqdn
02:04 kleinishere joined #salt
02:04 chrism now i don't know if that's global across all distros
02:05 chrism or something specific to my config
02:06 chrism that appears to parse /proc/sys/kernel/hostname
02:06 chrism but i dunno how that's generated
02:06 terminalmage yeah me either
02:06 chrism AWWW YEAH GETTIN INTO KERNEL SOURCES
02:06 chrism =(
02:07 terminalmage well I'm gonna head out for the night
02:07 chrism g'nite =)
02:07 chrism i'll poke around if it seems sane, submit a pull request
02:07 terminalmage ok. just make sure it is well discussed, I think there is a reason we're using socket.getfqdn
02:08 terminalmage have a good weekend
02:08 chrism good call, maybe something more apropos for the mailing list
02:08 chrism you too =)
02:08 terminalmage yeahImages are not displayed. Display images below - Always display images from marc@saltstack.com
02:08 terminalmage Great!
02:08 chrism lol
02:08 terminalmage wtf
02:08 terminalmage somehow I just copied something from my email
02:08 terminalmage go home terminalmage, you're drunk
02:08 chrism lol
02:09 terminalmage the mailing list is a good place for this though
02:09 terminalmage before submitting a pull
02:09 terminalmage and thomas reads the mailing list more often
02:09 chrism aah
02:09 chrism good to know
02:09 terminalmage than other forms of communication
02:09 terminalmage have a good weekend
02:09 chrism argh imma have to pull kern sources to figure out how that's populated
02:09 chrism you too =)
02:10 terminalmage yeah or even just strace your python shell
02:10 chrism it just dumps to a syscall and the kern "magics'" it up
02:10 chrism already tried that one
02:10 chrism hehe
02:10 terminalmage magic, gotta love it
02:12 aat joined #salt
02:14 avn chrism: moment...
02:15 efixit joined #salt
02:18 avn chrism: https://gist.github.com/avnik/5835567
02:34 chrism oh, without actually setting up a quick test, it looks like /data/ is setup as an env, and not a state
02:35 chrism so when you do like salt://data/blobs/ as your recurse dir, what's really happening is salt is looking in /srv/salt/data/ and /srv/data/data/
02:35 chrism but not /srv/data/
02:35 chrism juggle your paths around a little bit, you're almost there =)
02:37 avn chrism: root names (in master config) also does matter?
02:42 chrism nah you should be able to leave those alone
02:44 avn chrism: ie if I replicate salt://foo/bar it will be search /srv/salt/foo/bar then /srv/data/foo/bar?
02:44 avn or salt://  is relative from .sls?
02:44 chrism I believe the first one is right
02:44 chrism er
02:45 chrism hld i'm confusing myself now =)
02:45 avn Can salt show all paths when it search something? (in logs? may  some debug option?)
02:45 chrism theres debug options, but they're a bit verbose
02:45 chrism you can always use -l debug to start either a minion or a master
02:46 avn most about network stuff
02:46 chrism you probably want to watch the minion
02:49 Slipo joined #salt
02:50 aranhoide joined #salt
02:51 avn chrism: Try to call cp.get_dir  salt://foo/bar /tmp/fpp  withoud any effect
03:08 ydavid joined #salt
03:14 kleinishere joined #salt
03:30 aat joined #salt
03:40 zonk1024 joined #salt
03:50 fragamus joined #salt
04:01 backjlack joined #salt
04:06 danielbachhuber joined #salt
04:33 dthom91 joined #salt
04:36 namkeen joined #salt
04:43 Lucas joined #salt
04:46 kstaken joined #salt
05:02 kleinishere joined #salt
05:20 melinath joined #salt
05:41 adotbrown joined #salt
05:41 akitada joined #salt
05:55 Nexpro joined #salt
06:03 auser joined #salt
06:22 UtahDave joined #salt
06:31 jefimenko joined #salt
06:31 azbarcea joined #salt
06:34 jafo joined #salt
06:35 efixit joined #salt
06:43 auser holla all
06:49 UtahDave hey, auser!
06:49 auser how goes UtahDave
06:49 auser you're up late
06:50 UtahDave pretty good!   Yeah, just catching up on some things I've been meaning to finish reading
06:50 auser ahh
06:50 auser cool dude
06:52 auser hopefully good stuff
06:52 linjan joined #salt
06:59 UtahDave yeah
07:00 UtahDave are you laying down some late night code?
07:01 Linuturk joined #salt
07:01 Linuturk o/
07:01 Linuturk http://www.reddit.com/r/sysadmin/comments/1gtjco/ansible_and_salt_a_detailed_comparison/ << I thought this article was a good read
07:10 UtahDave why's that?
07:12 Linuturk seeing a comparison is always a neat article. I didn't know about the security vunerabilities that were patched.
07:12 UtahDave ah
07:13 Linuturk and, it was cool to see state files vs ansible's format
07:14 UtahDave true
07:15 auser UtahDave: of course
07:16 auser nice comparison
07:16 Newt[cz] joined #salt
07:18 jacksontj joined #salt
07:21 jacksontj_ joined #salt
07:25 jacksontj joined #salt
08:13 kleinishere joined #salt
08:25 adotbrown joined #salt
08:32 mianos joined #salt
08:33 mianos hello, lots of salt done, 30 production and test machines all salted, different configs for master and slave databases, but I need some advice
08:33 mianos I want to use the same salt states for different clusters and stuff like the pg_hba.conf needs different addresses
08:34 mianos I've got my salt state in git so I'd like to have everything common
08:34 mianos is there a recommended way to use different configs for different complete salt clusters, but everything else the same
08:34 mianos environment variables?
08:42 mianos I would really like to template stuff using jinja based on the host I am running from
08:48 azbarcea joined #salt
08:48 az87c joined #salt
08:49 auser joined #salt
08:52 mianos for example, in production I want the /etc/environment to set a different proxy server address, in dev and test I want identical configuration, just different address of the proxy servers
09:09 akitada joined #salt
09:14 oliv_mc joined #salt
09:23 kallek joined #salt
09:38 oliv_mc joined #salt
09:38 hazzadous joined #salt
09:52 __gotcha joined #salt
09:52 __gotcha joined #salt
10:20 jeddi joined #salt
10:32 Slipo joined #salt
10:43 Slipo joined #salt
10:46 yidhra joined #salt
11:06 zooz joined #salt
11:06 zooz hey guys
11:06 zooz how do you manage grains?
11:06 zooz static ones I mean
11:06 zooz I have certain puppet facts which I would like to be exposed as grains
11:07 zooz (planning on building software deployment on top of salt)
11:12 adotbrown joined #salt
11:13 danielbachhuber joined #salt
11:29 jeddi joined #salt
11:33 JPmx joined #salt
11:35 zonk1024 zooz: saltutil.sync_grains ?
11:35 zooz I was thinking about setting up grains statically in /etc/salt/minion.d/puppet_facts.conf
11:35 zooz with puppet
11:36 zooz since I manage salt master/minion with puppet as well as the rest of the infrastructure configuration
11:38 zonk1024 puppet and salt?
11:38 zooz yeah
11:38 zooz salt is great for orchestration
11:38 zooz and it's great to be built on
11:43 adotbrown joined #salt
11:44 zonk1024 couldn't you just manage it as a file and sync it around?
11:44 zooz I could, but that wouldn't be very convenient
11:44 zooz I have some custom puppet facts
12:00 joehh noodles775: I've asked our sponsor to upload 0.15.3
12:00 joehh we seem to get about one in every two releases uploaded so hopefully 0.16.0 will make it
12:00 joehh (due in the next little while)
12:01 whiteinge joined #salt
12:11 akitada joined #salt
12:17 carmony joined #salt
12:32 zonk1024 what is the syntax to update all packages from a state file?
12:33 zonk1024 '*':
12:33 zonk1024 pkg:
12:33 zonk1024 - latest
12:33 zonk1024 ??
12:43 aranhoide joined #salt
12:43 zonk1024 this is going to bug me until i figure it out...
12:49 johnsocp joined #salt
13:05 mgw joined #salt
13:05 hazzadous zonk1024: just use cmd.run although you'll have to deal with cross dist issues yourself I guess
13:06 carmony joined #salt
13:06 hazzadous (not sure if there is a pkg way to do it)
13:06 zonk1024 you would think there would be...
13:21 __gotcha joined #salt
13:21 __gotcha joined #salt
13:22 danielbachhuber joined #salt
13:22 zonk1024 hazzadous: i think this gets called every minute though.  need something more clever
13:23 zonk1024 hazzadous: probably a crontab entry
13:24 jessep joined #salt
13:27 MasterNayru_ joined #salt
13:31 Newt[cz] joined #salt
13:37 oz_akan_ joined #salt
13:55 Slipo joined #salt
14:02 jkleckner joined #salt
14:05 aat joined #salt
14:16 danielbachhuber joined #salt
14:18 carmony joined #salt
15:12 _ilbot joined #salt
15:12 Topic for #salt is now Welcome to #salt - http://saltstack.org | 0.15.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/
15:44 _ilbot joined #salt
15:44 Topic for #salt is now Welcome to #salt - http://saltstack.org | 0.15.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/
15:54 mgw joined #salt
15:56 nrub joined #salt
16:17 Lucas_- joined #salt
16:39 aranhoide joined #salt
17:15 _ilbot joined #salt
17:15 Topic for #salt is now Welcome to #salt - http://saltstack.org | 0.15.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/
17:24 _ilbot joined #salt
17:24 Topic for #salt is now Welcome to #salt - http://saltstack.org | 0.15.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/
17:31 _ilbot joined #salt
17:31 Topic for #salt is now Welcome to #salt - http://saltstack.org | 0.15.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/
17:47 _ilbot joined #salt
17:47 Topic for #salt is now Welcome to #salt - http://saltstack.org | 0.15.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/
17:52 auser joined #salt
18:05 chrism mgw: yep
18:05 chrism mgw: they follow the same standards as states
18:07 zooz joined #salt
18:09 iilliinn joined #salt
18:14 jefimenko joined #salt
18:24 jessep joined #salt
18:24 oz_akan_ joined #salt
18:26 Tv` joined #salt
18:26 Tv` hi. i want to use salt for managing individual vms, not in a larger organization; i'm running salt-call --local and things are looking good.. is there any way to use gitfs with --local?
18:28 bauser joined #salt
18:32 kleinishere joined #salt
18:48 _ilbot joined #salt
18:48 Topic for #salt is now Welcome to #salt - http://saltstack.org | 0.15.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/
20:13 _ilbot joined #salt
20:13 Topic for #salt is now Welcome to #salt - http://saltstack.org | 0.15.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/
20:46 _ilbot joined #salt
20:46 Topic for #salt is now Welcome to #salt - http://saltstack.org | 0.15.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/
20:46 xinkeT joined #salt

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