Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-07-16

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

All times shown according to UTC.

Time Nick Message
00:17 StDiluted joined #salt
00:19 mgw1 joined #salt
00:25 dthom91 joined #salt
00:29 dahunter3 joined #salt
00:41 napperjabber joined #salt
00:46 aat joined #salt
00:47 bastion2202 joined #salt
00:47 clone1018 Hey whiteinge just let me know
00:53 keekz joined #salt
00:54 rlb what's the best way to make sure minions say in sync with respect to managed files and changes to salt://, given that a minion might be temporarily unreachable -- just a cron job, or is there a better way?
00:55 dthom91 joined #salt
00:56 EugeneKay rlb - http://docs.saltstack.com/topics/jobs/schedule.html
00:57 rlb EugeneKay: ok, thanks -- primarily, I just wanted to make sure that polling was appropriate.
00:58 rlb Is it customary to have a state that just includes all the other bits that need to be synced regularly, or do people just normally re-run highstate all the time?
00:59 rlb (suppose there's probably no simple answer...)
00:59 syngin i'm curious about that, but at a noobier level
01:00 syngin when you say "have a state that..." are you talking about the "base" state declaration?
01:00 rlb oh, I'm not very far along myself.
01:00 rlb syngin: I suppose I was mostly talking about a salt/foo.sls or salt/foo/init.sls.
01:01 rlb that you can just invoke directly
01:01 syngin oh
01:01 rlb i.e. "salt '*' state.sls foo"
01:01 syngin i've never invoked an sls directly - how's it done?
01:01 syngin ahh
01:01 syngin i just use highstate for everything
01:01 rlb right now I have a cronjob that does that for some small bits that need to be re-checked often
01:01 rlb but have no idea if that's not idomatic
01:02 syngin i'm lucky in that my servers don't really drift.
01:03 rlb I also wonder if states are more or less expected to be idempotent, and just normally re-run regularly -- i.e. if that's how you handle the fact that some minions might not "get it" the first time.
01:04 syngin that's how i see it.
01:05 syngin anyone using salt to manage systemd unit files?
01:06 kleinishere joined #salt
01:13 novel joined #salt
01:20 Nexpro joined #salt
01:22 whiteinge clone1018: i can't make it happen today. a coworker and i keep stepping on each other's toes. i apologize, man
01:22 rlb if I need to handle a managed file from two different states (i.e. both should watch it), how should that be done?  Should I just put the file.managed in its own state and inlude it from the other two?
01:22 rlb s/inlude/include/
01:23 whiteinge clone1018: he and i will be in the same location tomorrow and we'll get this hashed out. the release should be tomorrow...
01:26 clone1018 haha it's fine I guess :p
01:28 kenbolton joined #salt
01:30 maspwr joined #salt
01:33 whiteinge thanks. been sort of a frustrating day :P
01:36 syngin is there a way to execute commands if a managed file is changed on a minion?
01:36 syngin do i just put cmd.run in the same block?
01:37 oz_akan_ joined #salt
01:40 liuyq joined #salt
01:41 liuyq joined #salt
01:46 stevedb joined #salt
01:52 rlb is there a way to say that foo.sls completely depends on bar.sls, i.e. foo should only be run after all of bar is finished?
01:52 Jahkeup_ joined #salt
01:52 rlb (successfully)
01:52 kleinishere joined #salt
01:52 rlb syngin: watch?
01:53 rlb i.e. cmd.run: ... -watch file: blarg
01:53 rlb is that what you mean?
01:57 syngin rlb: yeah, maybe. i'm using file.managed for a systemd service unit and if i make changes to it, i need to reload the file and restart the service.
01:58 syngin rlb: does order do what you need? http://docs.saltstack.com/ref/states/ordering.html
02:01 rlb syngin: might be able to do it with that, but what I'm really trying to say is that "this server needs to be a web-server *before* it can start trying to become a whatever-web-service server.
02:02 rlb and while I *could* put "require web-server" statements into every relevant state in whatever-web-service.sls, I'd rather just say "don't bother with anything in whatever-web-service.sls" until all of web-server.sls is finished.
02:02 rlb i.e. I (think I) want a coarse-grain require (at the .sls level)
02:03 syngin ahh
02:05 rlb maybe I'm just thinking about it wrong, but that seems like something you might often want...
02:05 dthom91 joined #salt
02:06 rlb i.e. if you apt-get install wordpress or whatever, it's not going to do anything until the webserver install is finished because wordpress "Depeneds: webserver".
02:06 Jahkeup_ joined #salt
02:06 rlb s/Depeneds/Depends/
02:10 kstaken joined #salt
02:14 jdenning joined #salt
02:19 defunctzombie joined #salt
02:20 defunctzombie joined #salt
02:22 joonas joined #salt
02:22 maspwr joined #salt
02:27 raydeo joined #salt
02:30 Jahkeup__ joined #salt
02:35 kstaken joined #salt
02:45 kevinbrolly joined #salt
03:03 kleinishere joined #salt
03:09 dthom91 joined #salt
03:45 pentabular joined #salt
03:46 KyleG joined #salt
03:48 KyleG joined #salt
03:52 Shell left #salt
03:54 pentabular joined #salt
04:03 middleman_ joined #salt
04:08 jdenning joined #salt
04:09 kleinishere joined #salt
04:09 dthom91 joined #salt
04:25 auser joined #salt
04:33 pentabular joined #salt
04:38 raydeo joined #salt
04:47 lazyguru joined #salt
04:49 Nexpro1 joined #salt
05:10 dthom91 joined #salt
05:11 Ryan_Lane joined #salt
05:13 jdenning joined #salt
05:14 pentabular joined #salt
05:19 UtahDave joined #salt
05:23 rroa joined #salt
05:27 az87c joined #salt
05:30 pentabular joined #salt
05:44 balltongu joined #salt
05:45 pentabular1 joined #salt
05:49 UForgotten joined #salt
05:55 emocakes joined #salt
05:57 erasmas joined #salt
05:58 [vaelen] joined #salt
05:58 echos joined #salt
05:58 morganfainberg joined #salt
05:58 up_the_irons joined #salt
06:10 dthom91 joined #salt
06:14 agend joined #salt
06:18 kstaken joined #salt
06:20 cocoy1 joined #salt
06:22 cocoy1 left #salt
06:22 cocoy1 joined #salt
06:23 chuffpdx_ joined #salt
06:29 jacksontj joined #salt
06:49 pkruithof joined #salt
07:08 oliv_mc joined #salt
07:11 dthom91 joined #salt
07:15 LucasCozy joined #salt
07:41 dthom91 joined #salt
07:49 scott_w joined #salt
08:00 felixhummel joined #salt
08:01 LucasCozy joined #salt
08:04 carlos joined #salt
08:09 MrTango joined #salt
08:09 auser hey all
08:09 banjee joined #salt
08:15 az87c joined #salt
08:20 LucasCozy joined #salt
08:21 efixit joined #salt
08:21 pkruithof joined #salt
08:30 ede joined #salt
08:31 bemehow joined #salt
08:42 dthom91 joined #salt
08:44 chubrub joined #salt
08:52 Furao joined #salt
08:53 Furao left #salt
09:07 pkruithof joined #salt
09:31 rroa_ joined #salt
09:34 waverider joined #salt
09:34 scott_w joined #salt
09:35 jhauser joined #salt
09:37 rroa_ joined #salt
09:40 hazzadous joined #salt
09:41 Jason-AVST joined #salt
09:41 Jason-AVST is there a way to move nodegroup definitions OUT of the /etc/salt/master config file?
09:42 emocakes joined #salt
09:42 dthom91 joined #salt
09:45 jhauser joined #salt
09:52 whiskybar joined #salt
09:55 lemao joined #salt
10:02 Jahkeup_ joined #salt
10:11 faulkner joined #salt
10:12 dthom91 joined #salt
10:20 krissaxton left #salt
10:28 lemao what is the recommended way of downloading a file from a url? cmd.run if is there a more specific module?
10:29 nkuttler lemao: download it once on the master and distribute it?
10:29 lemao this is a 200Mb files :-)
10:29 lemao and various versions
10:29 nkuttler sounds like a reason not to download it with every minion?
10:30 nkuttler assuming you get it from some external host
10:34 lemao nkuttler: think of this file as an apt package that is not packaged as an aptitude package. I need to installed it
10:35 lemao nkuttler: so I need to download the file, place it in a temp folder, unzip it, add it as a service etc
10:40 jeddi by definition every minion will need to have it come through one of its interfaces - is the question whether it passes n times out of the master's, or some other location?
10:40 nkuttler well all i meant to say was to host the file yourself and not to hammer other servers. you could also look into building your own deb
10:40 nkuttler yeah
10:40 jeddi if so, i'd suggest the answer is based upon how the owner of the other location feels about n downloads versus how you feel about it coming n times out of your master(s)
10:40 emocakes joined #salt
10:40 jeddi if you want to do this kind of thing semi-regularly, a bittorrent type approach to distribution amongst your minions may be worth investigating.
10:41 jeddi again, much depends on your network topology and transit costs.
10:44 lemao let me change the question a bit: how would you use salt to install JBoss J2EE server? It's a one time installation so net topology or transit costs are not relevant.
10:44 jeddi lemao:  i'm not famliar with j2ee server - does it come as a tarball, or a native package for whatever platform you're on?
10:45 lemao no native package. It's a tarball or a zip file
10:45 jeddi lemao: and for bonus points - how often are you going to have to upgrade the 'package'?
10:45 lemao once in 3 months?
10:45 jeddi lemao: my *gut* feel, based on complete ignorance of how messy that particular package is (along with hubris and positive noises about it) would be to use fpm to package it yourself, and then push that package out.
10:46 jeddi that way you get some semblance of package / version management.  a cleaner install.  much easier to fix something on the install if you discover something wrong later.
10:46 jeddi lemao:  specifically this fpm  https://github.com/jordansissel/fpm
10:59 _ilbot joined #salt
10:59 Topic for #salt is now Welcome to #salt - http://saltstack.org | 0.16.0 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/
11:03 jhauser joined #salt
11:07 giantlock joined #salt
11:13 dthom91 joined #salt
11:18 aranhoide joined #salt
11:24 jslatts joined #salt
11:29 bhosmer joined #salt
11:32 emocakes joined #salt
11:35 canci joined #salt
11:39 diegows joined #salt
11:40 emocakes_ joined #salt
11:43 felixhummel joined #salt
11:44 KennethWilke joined #salt
11:51 Gifflen joined #salt
12:00 z3uS joined #salt
12:01 Sypher joined #salt
12:05 jhauser joined #salt
12:06 blee joined #salt
12:13 dthom91 joined #salt
12:14 ptman joined #salt
12:18 p3rror joined #salt
12:19 bemehow joined #salt
12:21 swa-home joined #salt
12:26 aranhoide joined #salt
12:26 napperjabber joined #salt
12:31 stevedb joined #salt
12:40 jslatts joined #salt
12:45 dthom91 joined #salt
12:46 aat joined #salt
12:51 mgw joined #salt
12:54 bemehow joined #salt
12:57 LyndsySimon joined #salt
13:02 jeffasinger joined #salt
13:04 bemehow joined #salt
13:07 Kholloway joined #salt
13:09 juicer2 joined #salt
13:10 ggoZ joined #salt
13:10 ipmb joined #salt
13:11 pkruithof joined #salt
13:12 diegows joined #salt
13:12 Jahkeup_ joined #salt
13:15 __gotcha joined #salt
13:16 rroa_ joined #salt
13:16 aat joined #salt
13:18 mgw joined #salt
13:19 timl0101 joined #salt
13:23 ggoZ joined #salt
13:24 Jahkeup__ joined #salt
13:24 tuxtoti joined #salt
13:27 racooper joined #salt
13:28 brianhicks joined #salt
13:32 JasonSwindle joined #salt
13:33 bostonian joined #salt
13:34 bostonian Is it possible to use an {% if ... or ... %} conditional in Salt?
13:34 bostonian E.g., {% if grains['fqdn'].startswith('...') or grains['fqdn'].startswith('...') %}
13:34 N-Mi joined #salt
13:35 KennethWilke bostonian: yes absolutely!
13:35 KennethWilke your synax is about right for it too, but lemme pull a link for you
13:35 KennethWilke syntax* rather
13:36 toastedpenguin joined #salt
13:36 KennethWilke bostonian: http://jinja.pocoo.org/docs/templates/#builtin-tests
13:37 bostonian KennethWilke: awesome, thanks!
13:37 KennethWilke bostonian: no problem :)
13:39 chubrub joined #salt
13:41 anteaya joined #salt
13:41 chubrub hey everyone ;] I'm trying to do something like this: cmd.run \n     - name: 'echo {{ pillar['users']['pub'] }} > /home/user/pub.pgp', but getting nasty     - UndefinedError: 'dict object' has no attribute 'pgp' :/ What I want to do is to pass pillar data to command fired on the minion
13:43 chubrub of course it's an example only, the point is to do: echo "key" | gpg --import, but I don;t want to keep keys on the server - only install keys to gpg keyring
13:43 mikedawson joined #salt
13:43 chubrub is it possible the way I do it?
13:44 KennethWilke yeah i think you can do it in a way similar to that by using the jinja templating for the cmd.run command
13:45 KennethWilke like: salt \* cmd.run template=jinja "echo {{ grains['hostname'] }}"
13:47 chubrub KennethWilke: thx. My idea is working also - I've made wrong call to pillar, it should be: {{ pillar['pub'] }}
13:48 ptman left #salt
13:48 mikedawson joined #salt
13:51 jbunting joined #salt
13:52 tpe11etier joined #salt
13:53 scalability-junk joined #salt
13:53 N-Mi joined #salt
13:53 N-Mi joined #salt
13:54 cwarner joined #salt
13:55 keith4 joined #salt
13:56 ipmb joined #salt
13:56 krissaxton joined #salt
13:57 aleszoulek btw jinja allows: {{ pillar.pub }}
13:57 aleszoulek Accessing dictionaries with dot . operator
13:59 rbstewart joined #salt
14:02 aberant joined #salt
14:05 jslatts joined #salt
14:05 __gotcha_ joined #salt
14:05 __gotcha_ joined #salt
14:06 __gotcha_ joined #salt
14:07 [diecast] joined #salt
14:07 [diecast] joined #salt
14:09 scalability-junk the best way to use setup salt minions is via the bootstrap script right? pkgs seem to be outdated on debian and ubuntu at least...
14:10 EugeneKay "best" is highly subjective
14:12 scalability-junk let's say mostly stable and more bleeding edge than working with the ubuntu 12.1.1 package ;)
14:12 scalability-junk *0.12.1.1
14:13 kho joined #salt
14:13 premera joined #salt
14:14 EugeneKay I'm not an Ubuntu guy myself, but I'm fairly certain there's a PPA maintained by Saltstack with a newer version
14:14 EugeneKay And that's all that the bootstrap does
14:15 kho joined #salt
14:16 kho joined #salt
14:16 jeddi scalability-junk: i'm using the standard approach defined on the salt site (not the bootstrap) and i'm getting current releases.
14:16 jeddi scalability-junk: i'm on debian wheezy, btw.
14:17 jeddi scalability-junk: specifically this guide http://docs.saltstack.com/topics/installation/debian.html
14:17 scalability-junk jeddi: ok by adding the ppa.
14:17 jeddi repository.
14:17 jeddi not everything that ubuntu has stolen from debian didn't have a name before hand.
14:17 scalability-junk EugeneKay: yeah, just wanted to know if bootstrap or ppq would be preferred.
14:18 scalability-junk *ppa
14:18 scalability-junk EugeneKay: ok great thanks
14:18 scalability-junk jeddi: thanks too
14:18 jeddi but yeah.  pretty easy to script that up too .. or build it into an image if you're running ami's or rackspace's equivalents.
14:19 ninkotech scalability-junk: debian sid has version 0.16 now
14:19 teskew joined #salt
14:19 scalability-junk kk
14:21 ipmb joined #salt
14:22 aranhoide joined #salt
14:22 ninkotech btw where i can find changelog for 0.16.0 ?
14:23 EugeneKay Sid is...... not recommended for production. At all. :-p
14:23 ninkotech sid is fun :D
14:23 quantumsummers|c joined #salt
14:23 quantumsummers|c joined #salt
14:24 ninkotech EugeneKay: i would say sid is as good as ubuntu stable :D
14:24 ninkotech and debian experimental = as bad as ubuntu unstable :D
14:24 EugeneKay That's a whole different point :-p
14:24 timl0101 joined #salt
14:27 pentabular joined #salt
14:27 ninkotech btw   . http://docs.saltstack.com/topics/releases/0.16.0.html
14:28 __gotcha_ joined #salt
14:29 jeblair joined #salt
14:29 krak3n`` joined #salt
14:34 devinus joined #salt
14:34 __gotcha joined #salt
14:34 __gotcha joined #salt
14:35 kermit joined #salt
14:41 racooper Is there a module or state to manage authconfig on RHEL/CentOS?
14:42 StDiluted joined #salt
14:47 masm joined #salt
14:51 conan_the_destro joined #salt
14:51 StDiluted morning
14:52 samsalt joined #salt
14:52 Jason-AVST i'm using pkgrepo.managed to create a repo.  I'd like to delete the existing one using pkgrepo.absent: -name: (name of existing repo) but this doesn't seem to be supported within the same .sls file.  Is this something that should work, but perhaps I have formatted incorrectly?
14:53 scalability-junk just to get it right. usually returning data is send to the master and is saved there? when using a returner like mysql instead of saved in the master it is saved in a connected database right?
14:54 scalability-junk something else is there some documentation on how to setup a multitier architecture with salt, which upgrades loadbalancer etc. when adding webservers etc.
14:57 EugeneKay racooper - none that I'm aware of; I use file.managed on /etc/pam.d/foo as needed.
14:57 racooper yeah that's what I was afraid of.  thanks.
14:57 woolcap left #salt
14:58 StDiluted scalability-junk: for scaling load balancer, etc, I think you will need to use Amazon tools in scripts
14:58 StDiluted I haven't seen any way to add to load balancers yet
14:58 scalability-junk StDiluted: you mean if I would use Amazon servers?
14:58 StDiluted ah well, yes
14:58 StDiluted haha
14:59 StDiluted if you're not, then other types of scripts
14:59 * scalability-junk is old fashioned and is hosting own hardware :D
14:59 iMil heya there
15:00 aberant joined #salt
15:00 iMil I am facing an (I think) interesting problem
15:00 iMil I'd like to add to the minions that are running MySQL a line to the minion conf file, no problem there, file.append handles this
15:00 iMil but in the same state
15:02 iMil I'd like to run some mysql operations, which need the minion to use teh previously added mysql configuration
15:02 iMil unfortunately, it is not refreshed soon enough, to the mysql states fail
15:03 iMil s/to/so/
15:04 jalbretsen joined #salt
15:06 Hal joined #salt
15:08 __gotcha_ joined #salt
15:08 SEJeff_work scalability-junk, Thats not old fashioned. I use 0 cloud stuff for the same reason
15:09 SEJeff_work but when you go really big, the cloud crud is often not at a good price point for performance
15:09 SEJeff_work compared to bare metal
15:09 zooz joined #salt
15:10 Hal11 joined #salt
15:11 Gifflen Openstack actually has a project for provisioning baremetal servers on the way
15:11 StDiluted depends how much you pay for power space and cooling
15:11 Gifflen strangely enough its called Ironic
15:11 Gifflen http://docs.openstack.org/developer/ironic/dev/architecture.html
15:12 aranhoide joined #salt
15:13 maspwr joined #salt
15:18 whiskybar joined #salt
15:19 scalability-junk SEJeff_work: true
15:20 scalability-junk SEJeff_work: yeah compared to hetzner.de or even more premium bare metal hosters they are a lot better in price/performance ratio
15:22 dzen SEJeff_work: Can I use saltutil.* into a state ?
15:23 SEJeff_work dzen, It is a module, no reason you can't
15:23 SEJeff_work {{ salt['saltutil.reload_pillar']() }}
15:23 SEJeff_work for instance
15:23 dzen yup
15:24 dzen or restarting the minion to make it reloads its own configuration ?
15:26 mikedawson_ joined #salt
15:26 dzen I would like to reconfigure a minion, so as changing it's id & fqdn; and regenerate its own key
15:31 chrisgilmerproj joined #salt
15:36 whiskybar joined #salt
15:36 aranhoide joined #salt
15:37 chubrub joined #salt
15:38 chubrub is there a possibility to use file.present only if command returns true or false?
15:39 kenbolton joined #salt
15:39 jschadlick joined #salt
15:52 iMil actually my previous question can be shortened to: how to refresh a minion's config file while executing a state
15:54 EugeneKay You can restart the salt-minion service, but you won't get the return back from it
15:56 chubrub maybe I'll try to ask another way, i'd like to create/copy a file only if command executed on minion returns false|true - is it possible?
15:56 krak3n` joined #salt
15:56 EugeneKay I have a clone-prep script that I run on a vanilla clone to prep it for usage. https://gist.github.com/EugeneKay/5885291
15:56 EugeneKay Works in conjunction with VMware's clone feature, which edits the hostname.
16:00 jpadilla joined #salt
16:02 mgw joined #salt
16:06 avienu joined #salt
16:06 avienu Good morning, all.
16:07 jbunting joined #salt
16:10 Jahkeup_ joined #salt
16:10 akonradi left #salt
16:10 iMil EugeneKay: I tried it, doesn't work within a state :\
16:11 iMil the minion is actually restarted but I guess the running process has its own context
16:11 EugeneKay ?
16:13 rap424 joined #salt
16:14 maspwr joined #salt
16:21 maspwr joined #salt
16:21 pentabular joined #salt
16:23 pentabular left #salt
16:25 samsalt joined #salt
16:26 KyleG joined #salt
16:29 diegows joined #salt
16:29 scalability-junk anyone knows any great documentation on multitier setups?
16:29 scalability-junk service discovery and so on?
16:29 dzen scalability-junk: you mean, with salt-syndic ?
16:30 scalability-junk mhh haven't looked at syncid
16:31 scalability-junk *syndic
16:32 jeffasinger joined #salt
16:33 scalability-junk dzen: nope more in the one project with database, webtier etc. sort of sense
16:33 scalability-junk but syndic seems cool
16:37 devinus joined #salt
16:41 jY anyone know if there is anything remotely like puppet-dashboard for salt?
16:41 CaptTofu joined #salt
16:41 jslatts joined #salt
16:41 CaptTofu greetings
16:41 StDiluted there is salt-ui
16:41 probably1ine jY: there's salt-dashboard?
16:41 CaptTofu is there an example somewhere on how to ensure a soft link exists?
16:41 probably1ine salt-ui, that's it
16:41 StDiluted it's not very developed
16:41 StDiluted I think that it will be a focus of the salt sprint this month
16:42 StDiluted CaptTofu: file.symlink
16:42 jY thanks
16:42 racooper I'd vote for some focus on the iptables state module :)
16:43 emilisto I'm having some trouble using match.grain
16:43 StDiluted racooper: I think that the work on that is in progress, but why don't you participate in the sprint?
16:43 emilisto sudo salt-call grains.items |grep -A 1 os:
16:43 emilisto gives os: ubuntu
16:43 racooper I don't know python :(  planning to take a class this fall though
16:44 emilisto sudo salt-call match.grain 'os:Ubuntu' gives local: False
16:44 emilisto and I can't get it to match whatever I try, might be noteworthy that I'm doing file_client: local, if that matters
16:44 isomorphic joined #salt
16:45 kaptk2 joined #salt
16:45 CaptTofu have any of you ever had luck using regex in jinja templates?
16:46 scalability-junk is there anything like the puppetforge repository for salt states?
16:46 scalability-junk and perhaps an example state integrating external state files would be awesome. anyone?
16:47 SEJeff_work scalability-junk, Take a look at saltstarters.org. Not quite puppetforge, but it has a lot of stufrf
16:48 racooper there's also https://github.com/saltstack/salt-states which has some good examples
16:48 scalability-junk thanks
16:49 rroa_ joined #salt
16:52 koolhead17 joined #salt
16:52 koolhead17 joined #salt
16:54 whit joined #salt
16:56 StDiluted CaptTofu: afaik, regex doesn't exist in jinja
16:59 JasonSwindle joined #salt
17:00 scalability-junk seems like a lot of salts have to be written for projects I wanna use :D
17:01 scalability-junk but it seems like it's almost encouraged to create your own instead of reusing :D
17:01 CaptTofu scalability-junk: the community is working on standardising
17:01 StDiluted Is anyone using environments? Do I need a top.sls in each environment?
17:01 CaptTofu there is a hack-a-thon in Seattle in August
17:02 StDiluted there is a salt sprint July 27 also
17:02 CaptTofu StDiluted: yes, we do at HPCS
17:02 CaptTofu you don't need a top.sls in each env
17:03 StDiluted where do I put the top.sls then?
17:03 CaptTofu you use your top.sls to list where each env is
17:03 CaptTofu base directory
17:04 StDiluted I thought the environments were listed in files_root and pillar_root
17:04 scalability-junk CaptTofu: ok but any approach to go with now? without standards?
17:04 CaptTofu for either state or pillar
17:04 StDiluted base directory differs based on environment
17:05 jbunting joined #salt
17:06 StDiluted scalability-junk: reuse or write your own
17:06 StDiluted whatever you find easiest?
17:06 rikurr joined #salt
17:06 scalability-junk ok so best approach would be to try finding states in saltstarters and reuse and perhaps later help contribute to a saltstack-stats/ namespace repo later on
17:06 rikurr Ah so there are people using salt.. I was wondering why the last commit to github was 2 years ago?
17:06 jbunting left #salt
17:07 scalability-junk mhh no nginx state :(
17:08 LyndsySimon_ joined #salt
17:08 StDiluted there are plenty of nginx states
17:08 xinkeT joined #salt
17:08 StDiluted search github
17:09 StDiluted rikurr: what are you talking about, there was a release last week
17:09 StDiluted rikurr: I think you are looking in the wrong github
17:10 kho joined #salt
17:10 faulkner joined #salt
17:10 UForgotten joined #salt
17:10 balltongu joined #salt
17:10 FreeSpencer joined #salt
17:10 Artanicus joined #salt
17:10 kallek joined #salt
17:10 ahammond joined #salt
17:10 Tekni joined #salt
17:10 pnl joined #salt
17:10 madduck joined #salt
17:10 pjs joined #salt
17:10 akio joined #salt
17:10 flurick joined #salt
17:10 tethra joined #salt
17:10 Gareth joined #salt
17:10 jafo joined #salt
17:10 majoh joined #salt
17:10 kula joined #salt
17:10 Kyle joined #salt
17:10 Guest76948 joined #salt
17:10 crashmag joined #salt
17:10 EntropyWorks joined #salt
17:10 jlaffaye joined #salt
17:10 rikurr StDiluted: ah sorry, the page that introduced me to salt was point to a a very obscure github repo. found the saltstack one, thanks.
17:10 Valdo joined #salt
17:10 puppet joined #salt
17:10 rikurr s/point/pointing
17:10 StDiluted rikurr: lol, cool
17:10 StDiluted I was gonna say
17:10 elements joined #salt
17:11 jbunting1 joined #salt
17:11 clone1018 whiteinge: are you part of salt?
17:12 jacksontj joined #salt
17:13 scalability-junk StDiluted: your definition of plenty is great ;)
17:13 ioni joined #salt
17:13 dthom91 joined #salt
17:14 StDiluted scalability-junk: https://github.com/esacteksab/salt-states/tree/master/nginx
17:14 chubrub joined #salt
17:15 scalability-junk StDiluted: yeah but that's like basic basic basic :D
17:15 StDiluted scalability-junk: http://intothesaltmine.org/blog/html/2013/04/19/configuration_management_with_salt_stack_part_2.html?highlight=nginx
17:15 * scalability-junk will probably default to write it for now.
17:15 whit left #salt
17:16 rikurr Ok so salt is not exactly the component I was looking for but I like it regardless. Going to bookmark it and read up more on it.
17:16 devinus joined #salt
17:17 StDiluted rikurr: what are you looking for?
17:18 koolhead17 left #salt
17:18 rikurr StDiluted: a 0MQ based HA messaging/RPC system
17:18 StDiluted ah. I know someone was writing some stuff to use salt's bus to pass messages
17:19 rikurr I'll give salt a spin when I have the chance, it looks awesome :)
17:20 KyleG1 joined #salt
17:21 kenbolton joined #salt
17:23 stephen__ joined #salt
17:24 StDiluted_ joined #salt
17:25 diegows joined #salt
17:26 kstaken_ joined #salt
17:27 chrism_ joined #salt
17:27 jhujhiti_ joined #salt
17:27 probablyfine joined #salt
17:28 chadhs joined #salt
17:28 mollerst1and joined #salt
17:28 _diecast_ joined #salt
17:28 herlo_ joined #salt
17:28 tamentis_ joined #salt
17:28 insatsu joined #salt
17:28 pkruithof joined #salt
17:29 Khollowa_ joined #salt
17:29 TheSojourner joined #salt
17:29 TheSojourner joined #salt
17:29 chadhs will this work in a state file is the roles grain is a list?
17:29 chadhs {% if 'webserver' in grains['roles'] %}
17:30 whiteinge clone1018: yes, i work for saltstack
17:31 clone1018 ah neat
17:31 whiteinge got the pathing issue worked out this morning. i'm starting on cutting the salt-api release now...
17:31 MKFG joined #salt
17:32 basepi_ joined #salt
17:32 jrgifford_ joined #salt
17:36 Ryan_Lane joined #salt
17:36 kevino_ joined #salt
17:36 maspwr joined #salt
17:38 mitrick2 joined #salt
17:39 keith4 joined #salt
17:41 dthom91 joined #salt
17:41 kuffs_ joined #salt
17:42 kuffs_ I'm trying to track down a minion authentication issue in production
17:42 kuffs_ anyone got a master serving more than 300 minions?
17:42 * scalability-junk can't get the xml feed url for intothesaltmine.com ...
17:43 druonysus joined #salt
17:43 druonysus joined #salt
17:46 druonysus joined #salt
17:47 jdenning joined #salt
17:48 jacksontj kuffs: yea, i do ~7K
17:48 jacksontj whats up
17:48 kuffs I'm running a 0.11.1 build with the keepalive fixes backported
17:48 kuffs and I've got some minions that will come online, auto-accept a key
17:48 SEJeff_work Why not try forward revving?
17:48 SEJeff_work Thats insanely old
17:48 SEJeff_work in salt speak :)
17:48 kuffs and then immediately insist that they are unauthorized
17:49 jacksontj oh yea.. i had some major issues before 0.13
17:49 efixit joined #salt
17:49 kuffs SEJeff_work: I'm trying to avoid having to QA my SLS again
17:49 SEJeff_work jenkins + virtualmachines ftw! I should do a writeup at some point on that
17:49 jacksontj is the minion saying its unauthorized or is the master?
17:49 kuffs the minion
17:50 kuffs I found a few listed bugs, but no revs are associated with the tickets
17:50 jacksontj is it complaining about minion_master.pub? or is it getting the response from the master saying it was unauthorized
17:50 jacksontj the first happens if you redo the master cert
17:50 kuffs [ERROR ] Failed to authenticate with the master, verify this minion's public key has been accepted on the salt master
17:50 jacksontj or connect to a new master
17:50 kuffs I can get the minion to respond if I restart the master
17:51 jacksontj do you have a bunch of defunct processes on the master?
17:51 jacksontj ps aux | grep defunct
17:51 kuffs checkign now
17:51 jacksontj and hows the CPU looking on the master (close to toppig out?)
17:52 kuffs no defunct processes whatsoever. load avg is basically zero across the board
17:52 jacksontj cpu utilization %age is low too
17:52 jacksontj ?
17:52 kuffs busiest thread is about an hour and a half
17:53 kuffs most are zero, couple outliers at 20m
17:53 jacksontj i meant how much % cpu is idle? (from top or something)
17:53 kuffs 99% idle
17:53 jacksontj ok
17:54 jacksontj what version of zeromq and pyzmq are you running?
17:54 jacksontj (at this point i believe its a zmq problem ;) )
17:54 kuffs zmq is 3 something, lemme figure out specifics
17:54 jacksontj i had issues on 0.10 with key auth but it had to do with some config option that no longer exists… let me find it
17:54 kenbolton joined #salt
17:55 kuffs pyzmq is 2.2.0.1
17:55 kuffs hunting for zmq version now
17:56 kuffs zmq is 3.2.2
17:56 kuffs SEJeff_work: I acknowledge that's the best way. But that's still a lot of overhead. And I know there are tons of SLS-breaking changes between then and now.
17:57 pkruithof joined #salt
17:57 jacksontj bouncing the minion doesnt change anything right? (i wouldn't expect it to)
17:57 kuffs it does not
17:57 kuffs bouncing the master resolves the issue right away
17:58 jacksontj yea, so the master is (for some reason) rejecting keys that you have already accepted
17:58 kuffs I thought that this might be related https://github.com/saltstack/salt/issues/2978
17:58 jacksontj i know there was a bug a while ago with that due to too many auth requests
17:58 kuffs or maybe this https://github.com/saltstack/salt/issues/5768
17:59 jacksontj yea, second one sounds like it
18:00 kuffs I don't have a stack trace though
18:00 kuffs I apologize that I don't have a malfunctioning minion in front of me
18:00 jacksontj no worries ;)
18:00 jacksontj well, so the explanation of #2 sounds like it lines up
18:00 jacksontj we have some concurrency prolem in key auth on the master
18:01 LyndsySimon joined #salt
18:02 kuffs I found a few other bugs that might have been it, but they appear to be pre keepalive fixes
18:02 kuffs and I have the keepalive patches
18:02 kuffs https://github.com/saltstack/salt/issues/2987 https://github.com/saltstack/salt/issues/3128
18:03 kuffs (by 'pre keepalive packages' I mean that the issues were reported before the keepalive fix was released)
18:03 medros joined #salt
18:04 jacksontj yea, i seem to remember this issue
18:04 jacksontj brb
18:08 jacksontj joined #salt
18:08 kuffs I would be less apprehensive about upgrading if the legacy documentation hadn't been pulled
18:08 kuffs I'm absolutely furious about that
18:09 jpadilla joined #salt
18:10 SEJeff_work kuffs, Why don't you open a bug to have it re-added?
18:10 SEJeff_work Seems reasonable enough. whiteinge ^^
18:10 kuffs that's a good idea, thank you
18:10 cron0 joined #salt
18:10 sciyoshi joined #salt
18:12 jacksontj kuffs: the other option is to update the master to 0.12 and leave the minions-- i believe that was fixed in 0.12 right?
18:12 jacksontj and thats only 1 rev aprt
18:12 jacksontj *apart
18:12 SEJeff_work kuffs, Additionally, just pull the git tag you're using into a branch
18:12 SEJeff_work kuffs, cd into the doc/ directory and type make html
18:13 SEJeff_work you'll need to have sphinx and sphinx-build installed. Then you'll get a directory full of browseable rendered html. It isn't that hard
18:13 efixit joined #salt
18:13 SEJeff_work If you absolutely refuse to upgrade, it is easy enough to generate the docs yourself that way
18:13 kuffs jacksontj: I tried to review the changes from 0.11.1 to 0.12.1 and couldn't find anything that seemed really remarkable in the master code.
18:14 jacksontj hmm maybe it was 0.13 it was fixed in..
18:14 jacksontj i jumped from 0.10 to 0.13
18:14 kuffs the keepalive code was the most significant
18:14 StDiluted In a directory structure with multiple file_roots separating environments, where does my top.sls go? Does each environment need one?
18:14 jacksontj somwhere in there it was fixed ;)
18:14 kuffs word
18:14 druonysus joined #salt
18:14 SEJeff_work kuffs, Honestly that "bug" and the various incantations of it were fixed over about 4 releases
18:14 SEJeff_work most of them were after 0.11
18:14 kuffs SEJeff_work: of course, but the legacy documentation used to be stashed on readthedocs
18:14 SEJeff_work kuffs, Right, so file a bug. but it isn't hard to generate was my point
18:15 SEJeff_work kuffs, I don't think we want people using 0.11 in production. It has tons of known issues :)
18:15 jacksontj from my experience i dont remember seeing it after i went to 0.13 but there was some config option that i had to turn on but i can't find it… still looking
18:15 kuffs jacksontj: thanks a bunch
18:17 StDiluted no one knows on that one?
18:17 StDiluted the documentation on environments is extremely sparse
18:18 * whiteinge catches up on the backlog
18:18 SEJeff_work StDiluted, It goes above all of the subdirectories for the sub environments, or you can specify the path to the top file in the master config
18:18 whiteinge it's definitely reasonable to have the older copies of docs online
18:18 StDiluted so if I have /srv/salt/common/states and /srv/salt/development/states as file_roots
18:19 StDiluted I just need one top.sls in /srv/salt?
18:19 SEJeff_work StDiluted, /srv/salt/top.sls
18:19 StDiluted ok
18:19 SEJeff_work kuffs, what whiteinge said^
18:20 kuffs SEJeff_work, whiteinge: here you go dudes https://github.com/saltstack/salt/issues/6185
18:20 efixit joined #salt
18:20 capricorn_one joined #salt
18:21 samsalt joined #salt
18:21 druonysus joined #salt
18:21 druonysus joined #salt
18:21 whiteinge the RTD salt docs is still there and they're not going away. we just need to keep on top of adding new releases to the build...
18:22 billputer joined #salt
18:22 billputer left #salt
18:24 druonysuse joined #salt
18:24 druonysuse joined #salt
18:24 hazzadous joined #salt
18:25 LGSilva joined #salt
18:25 LGSilva joined #salt
18:26 LGSilva hello guys. on a file state is possible to run multiple functions like append and comment in the same block?
18:28 pkruithof joined #salt
18:29 LGSilva I just answered my own question: it's not possible ->  Too many functions declared in state "file" in sls
18:29 jeddi joined #salt
18:30 druonysuse joined #salt
18:30 druonysuse joined #salt
18:35 oliv_mc joined #salt
18:35 jbunting joined #salt
18:35 chadhs im looking for some quick help on how to target grains roles with jinja.  im getting an error when trying to do something like this: {% if 'webserver' in grains['roles'] %}
18:36 LGSilva is grains['roles'] just one string?
18:37 LGSilva if not then I guess you need to add the .items() at the end
18:37 LGSilva {% if 'webserver' in grains['roles'].items() %}
18:37 LGSilva but I might be wrong
18:38 StDiluted makes sense, I believe his roles grain is an array
18:38 chadhs ah ill try that
18:38 StDiluted or a list rather
18:38 chadhs yes it is an array/list
18:39 kenbolton joined #salt
18:41 andrew_seattle joined #salt
18:42 chadhs LGSilva, StDiluted, on the minion in the grains file it looks like this
18:42 chadhs roles: webserver,pkgmirror,mysql
18:42 chadhs fyi
18:42 StDiluted hm, that is a single role, I am betting. you might need to split it
18:43 kenbolton joined #salt
18:44 StDiluted that's a guess
18:45 oz_akan_ joined #salt
18:46 aat joined #salt
18:51 StDiluted chadhs: if you do salt '*' grains.get roles
18:51 StDiluted do you get yaml back with the roles separated?
18:52 qba73 joined #salt
18:54 aranhoide joined #salt
18:56 bostonian joined #salt
18:57 bostonian I can call top.sls properly with `salt '*' state.highstate`. But if I just want to run a certain state file (such as /srv/salt/deploy/init.sls) what should I run?
18:57 StDiluted SEjeff_work, I tried putting the top file there and now I am getting the no top file error
18:58 StDiluted bostonian, salt '*' state.sls deploy
18:58 druonysuse joined #salt
18:58 bostonian StDiluted: ah ha! great, thanks :)
19:02 kcb joined #salt
19:05 whiteinge i triggered doc builds for a bunch of old versions just now
19:05 whiteinge kuffs, SEJeff_work: ^^
19:05 SEJeff_work whiteinge, docs.saltstack or rtfd?
19:05 whiteinge rtfd
19:06 SEJeff_work awesome
19:06 SEJeff_work thanks
19:06 whiteinge the in-house docs aren't (currently) set up for mulitiple versions. we'll probably just rely on RTD for that for the time being
19:06 SEJeff_work whiteinge, Can you go back to 0.11 for kuffs?
19:06 whiteinge sure
19:06 SEJeff_work I really prefer the in-house ones. Much prettier stylesheets
19:08 kenbolton joined #salt
19:11 kuffs whiteinge, SEJeff_work: thanks guys :)
19:12 cwright I have a question about the file_roots limitation that "The subdirectories in the multiple file roots cannot match".
19:12 cwright If I have two file_roots, /srv/files/base and /srv/files/env0 and inside of each there is common/etc/ directory
19:13 cwright so even though the file_roots are listed in order, this could cause a problem?
19:13 chadhs StDiluted, this is what i get FreeBSD-02:
19:13 chadhs webserver,pkgmirror,mysql
19:14 dthom91 joined #salt
19:15 scalability-junk am I right to assume that the startup state is only run once?
19:16 SpX joined #salt
19:19 SpX joined #salt
19:22 blee_ joined #salt
19:23 auser joined #salt
19:23 auser hey all
19:25 zooz joined #salt
19:26 baniir joined #salt
19:29 jbunting1 joined #salt
19:37 bostonian Is there any way to copy files that *aren't* sourced from salt:// from the master to minions? (e.g., a folder like /var/www?)
19:37 bostonian Could I use a symlink?
19:39 SEJeff_work bostonian, Did you try file://? I think it will work but would need to test or read the code to verify
19:39 Newt[cz] joined #salt
19:40 saurabhs joined #salt
19:40 bostonian SEJeff_work: good idea, I'll try it now
19:41 jschadlick joined #salt
19:43 herlo joined #salt
19:43 stevedb joined #salt
19:43 chadhs StDiluted & LGSilvia, here is what happens when I try to target the roles i've defined in grains
19:43 chadhs https://gist.github.com/chadhs/1e728774cce1ad6c0616
19:44 jacksontj joined #salt
19:46 dthom91 joined #salt
19:49 giantlock joined #salt
19:50 bhosmer joined #salt
19:53 bostonian SEJeff_work: hmm, file:// didn't work for me. I tried to run this from the console: salt '*' cp.get_dir file://var/www/
19:54 SEJeff_work bostonian, file an issue. I see no reason it shouldn't
19:54 bostonian SEJeff_work: okie dokie, will do
19:54 swa-home joined #salt
19:57 jacksontj joined #salt
19:57 shane joined #salt
20:00 shane question: can templating be used in the Windows software repository .sls files or is there a better way to doing something like "{% if grains['cpuarch'] == 'AMD64' %}" ?
20:01 anteaya joined #salt
20:03 aranhoide joined #salt
20:04 kuffs shane: do your targeting in top.sls and use inheritance to do branching?
20:05 chadhs anyone have any thoughts on my approach to targeting roles?  a bit stuck atm: https://gist.github.com/chadhs/1e728774cce1ad6c0616
20:06 jacksontj joined #salt
20:07 aleszoulek joined #salt
20:09 david_a joined #salt
20:10 efixit joined #salt
20:12 shane kuffs: thanks for the point (reading the docs now)
20:12 shane just to clarify a bit.  I'm looking at the winrepo stuff, and am hoping to define x64 & x86 versions of installers and target on cpuarch
20:13 kuffs chadhs: jinja isn't a full python interpreter. SO that list membership test doesn't work. Also the star wildcard is meaningless in this context
20:14 chadhs kuffs, any tips on an approach to target the way i was attempting to?
20:14 kuffs use top.sls?
20:14 chadhs kuffs, essentially im trying to say:  all boxes get this config unless you are a webserver
20:14 kuffs or you can say
20:14 kuffs yeah, just do your targeting in top.sls
20:15 kuffs and create a config-webserver.sls for your webservers?
20:15 kuffs that extends config.sls
20:15 chadhs kuffs, when i do that it complains that i have that config defined in two places
20:15 kuffs what does your top.sls look like?
20:16 jschadlick joined #salt
20:17 dthom91 joined #salt
20:17 chadhs kuffs, this is it now http://snipurl.com/27gfkow
20:18 chadhs but if under '*' i tell the pkg.conf file to be pushed out
20:18 chadhs and then also do that under webservers
20:18 chadhs it yells that ive defined it twice.  so ive been trying to find a way to say
20:18 chadhs here is the base build all you boxes out there
20:19 chadhs oh you're a webserver are you??  then this is your pkg repo and you get this config
20:19 scalability-junk is there a way to upgrade all packages with salt? sort of doing apt-get update && apt-get upgrade with salt?
20:19 Jahkeup_ joined #salt
20:19 scalability-junk or shouldn't one do that anyway?
20:20 racooper http://docs.saltstack.com/ref/modules/all/salt.modules.apt.html
20:21 scalability-junk thanks
20:24 whit joined #salt
20:27 chadhs here's the crux of my issue: http://snipurl.com/27gfn71
20:27 chadhs kuffs ^ "Data failed to compile"
20:27 chadhs essentially how do you have a go to default managed file and give out something different to some machines
20:30 masm joined #salt
20:31 jpadilla joined #salt
20:32 kuffs chadhs: are you including and extending core.configs in roles.webserver.configs?
20:33 kuffs or just defining it in two places?
20:34 chadhs defining in two places kuffs but i think i have it
20:35 chadhs https://groups.google.com/forum/#!topic/salt-users/MM0yQ7CuzBE
20:35 kuffs you need to use include
20:35 chadhs using the name of the file is bunk if you use it more than once
20:35 kuffs http://salt.readthedocs.org/en/v0.11.1/topics/tutorials/states_pt3.html#extend-declaration
20:35 kuffs well, not exactly
20:35 chadhs better to give it a label and then define - name: /path/to/file
20:35 kuffs that's usually a good way to go as convention
20:36 kuffs and it enables you to use extend syntax
20:36 devinus joined #salt
20:36 kuffs but you should really use include and extend to do what you want
20:36 kuffs it will make maintaining your baseline and deviations much simpler
20:36 SEJeff_work Please don't link to ancient docs. They might have changed a ton since then :D
20:36 kuffs http://salt.readthedocs.org/en/latest/topics/tutorials/states_pt3.html#extend-declaration
20:36 kuffs apologies, didn't realize I was on the 11.1 stuff still
20:37 SEJeff_work kuffs, No worries. Thanks for being helpful!
20:37 kermit joined #salt
20:37 KyleG joined #salt
20:41 scalability-junk damn using salt seems to need a lot of effort...
20:41 chadhs thnx kuffs, i need to read and wrap my head around this i guess
20:42 linjan_ joined #salt
20:42 kuffs it's just like you would use puppet to inherit from a generic class
20:47 chadhs kuffs, changing the labels and using name worked but then it just replaces the config and then again rofl
20:47 chadhs because both '*' and the webserver role match hahaha!
20:47 chadhs so yes i will have to look into what you posted =)
20:47 chadhs but im getting closer
20:47 kuffs using desciptive ids also makes your sls self-documenting
20:48 chadhs totally
20:49 dthom91 joined #salt
20:50 diegows joined #salt
20:51 chadhs kuffs so in essence i can achieve "override" via extend:?
20:52 TheRealBill so ... trying to use client_acl. Emphasis on trying.
20:53 kuffs chadhs: yes
20:53 TheRealBill I've added the stanza to allow my user in the mast config. restarted (several times), but still get the 'Failed to authenticate, is this user permitted to execute commands?'
20:53 TheRealBill all on 0.16.0 btw, freshly installed today
20:53 druonysus joined #salt
20:53 TheRealBill any ideas come to mind?
20:55 whit joined #salt
20:55 nrub joined #salt
20:58 nrub_ joined #salt
21:04 logix812 joined #salt
21:04 racooper would there be any reason to not store state configs in an SVN repo?
21:05 TheRealBill salt can't autoamtically pull state configs from subversion, but it can git. so if you wanted to not have to do the pulls/syncs yourself that'd be one reason
21:06 TheRealBill but in general I can't recommend not storing your state files in _some_ VCS
21:07 racooper already have svn server set up and tptb would like to have everything in once place.  I don't mind doing a checkout before running state but wanted to make sure having .svn directories in the state tree wouldn't break something.
21:08 TheRealBill Well I'd avoid having them in module directories, can't say if other dirs might have an issue or not. But I do see sync_modules push as a .??? file as a module.
21:09 racooper would it be the same for _states ?
21:09 TheRealBill not sure, haven't tried that. I'd expect states to not do that, but I've not tried it.
21:10 racooper hrm. well, I'll test it then :) I could always do an export instead of a checkout I suppose.
21:12 TheRealBill or just write a short shell script to checkout thend do something like  'find -name .svn -delete' in the states directory, making it a one-command deal
21:13 TheRealBill ok, so it appears salt can't figure out your username if your  node is set up to use ldap for users.
21:15 m_george left #salt
21:17 isomorphic joined #salt
21:18 thingles joined #salt
21:33 clone1018 Please let that salt-api release go out today whiteinge :P
21:39 qba73 joined #salt
21:44 druonysuse joined #salt
21:44 druonysuse joined #salt
21:44 kermit joined #salt
21:44 bhosmer joined #salt
21:46 spicyWith joined #salt
21:52 spicyWith joined #salt
21:52 mgw Is there a way to negate a target expression?
21:53 rsimpkin1 Is there a way for salt to tell me what modules it has available on a given minion?
21:56 cedwards rsimpkin1: try sys.list_modules
21:59 jbub joined #salt
22:00 vmdsch joined #salt
22:05 pkruithof joined #salt
22:13 TheRealBill woot, just submitted my first pull request. :D
22:13 JasonSwindle joined #salt
22:14 TheRealBill basepi: have a pull request in to fix 6188.
22:14 basepi TheRealBill: nice!
22:15 basepi We love new contributors!  =)
22:16 TheRealBill basepi: I'm sure there will be many more coming. ;) I'm building out redis, redis-sentinel, and twemproxy (nutcracker) modules/states.
22:16 basepi Nice!
22:17 SEJeff_work TheRealBill, Are you going to make your states public on github? If so, please send a pull request adding your states to the community.rst doc page (it is in the source) and submit it to saltstarters.org please. It uses oauth with github to select the repos
22:19 TheRealBill I probably will, yeah. I'm trying to make them generic enough. They do a lot more than simply setting up a redis instance.
22:19 druonysuse joined #salt
22:19 druonysuse joined #salt
22:19 TheRealBill Might even be an example of how to set up something particulalry complex and dynamic. once I get it all figured out anyway. ;)
22:21 TheRealBill I'm setting up multiple redis instances, creatign init scripts, and loading each instance's config into pillar, and set up nutcracker clusters using peer and pillar data.
22:22 mikedawson joined #salt
22:24 kermit joined #salt
22:26 rap424 joined #salt
22:28 andrew_seattle joined #salt
22:38 Brainspa1kle joined #salt
22:46 twinshadow joined #salt
22:46 Corey joined #salt
22:46 stevedb joined #salt
22:46 jhauser joined #salt
22:46 cwright_ joined #salt
22:46 kermit joined #salt
22:46 mikedawson joined #salt
22:46 druonysuse joined #salt
22:46 vmdsch joined #salt
22:46 jbub joined #salt
22:46 whit joined #salt
22:46 dthom91 joined #salt
22:46 KyleG joined #salt
22:46 devinus joined #salt
22:46 jschadlick joined #salt
22:46 efixit joined #salt
22:46 saurabhs joined #salt
22:46 Newt[cz] joined #salt
22:46 auser joined #salt
22:46 kcb joined #salt
22:46 jeddi joined #salt
22:46 samsalt joined #salt
22:47 capricorn_one joined #salt
22:47 sciyoshi joined #salt
22:47 maspwr joined #salt
22:47 jrgifford_ joined #salt
22:47 MK_FG joined #salt
22:47 insatsu joined #salt
22:47 tamentis_ joined #salt
22:47 mollerst1and joined #salt
22:47 probablyfine joined #salt
22:47 jhujhiti joined #salt
22:47 kstaken joined #salt
22:47 StDiluted joined #salt
22:47 stephen__ joined #salt
22:47 ioni joined #salt
22:47 elements joined #salt
22:47 puppet joined #salt
22:47 Valdo joined #salt
22:47 xinkeT joined #salt
22:47 rroa_ joined #salt
22:47 CaptTofu joined #salt
22:47 Hal11 joined #salt
22:47 jalbretsen joined #salt
22:47 premera joined #salt
22:47 rbstewart joined #salt
22:47 cwarner joined #salt
22:47 N-Mi joined #salt
22:47 z3uS joined #salt
22:47 felixhummel joined #salt
22:47 ede joined #salt
22:47 joonas joined #salt
22:47 novel joined #salt
22:47 keekz joined #salt
22:47 scotticus joined #salt
22:47 gmoro_ joined #salt
22:47 cjh_ joined #salt
22:47 jodell joined #salt
22:47 opapo joined #salt
22:47 eculver joined #salt
22:47 TheRealBill joined #salt
22:47 seb` joined #salt
22:47 cloq joined #salt
22:47 jeffrubic joined #salt
22:47 s0undt3ch joined #salt
22:47 davromaniak joined #salt
22:47 clone1018 joined #salt
22:47 APLU joined #salt
22:47 alekibango joined #salt
22:47 LordOfLA joined #salt
22:47 TOoSmOotH joined #salt
22:47 durnik joined #salt
22:47 darrend joined #salt
22:47 djn joined #salt
22:47 terminalmage joined #salt
22:47 kchr joined #salt
22:47 axisys joined #salt
22:47 carmony joined #salt
22:47 kiorky joined #salt
22:47 svx joined #salt
22:47 txmoose joined #salt
22:47 lahwran joined #salt
22:47 Nitron joined #salt
22:47 kamal_ joined #salt
22:47 jpcw joined #salt
22:47 Politoed joined #salt
22:47 Koma joined #salt
22:47 pt|Zool joined #salt
22:47 yota joined #salt
22:47 fxdgear joined #salt
22:47 monokrome joined #salt
22:47 Ixan joined #salt
22:47 KFDM joined #salt
22:47 dthorman joined #salt
22:47 djinni` joined #salt
22:47 zloidemon joined #salt
22:47 joehh joined #salt
22:47 neilf joined #salt
22:47 ClausA joined #salt
22:47 fxhp joined #salt
22:47 dcolish joined #salt
22:47 iMil joined #salt
22:47 sashka_u1 joined #salt
22:47 martineg_ joined #salt
22:47 Odd_Bloke joined #salt
22:47 emilisto joined #salt
22:47 tempspace joined #salt
22:47 marcinkuzminski joined #salt
22:47 mephx joined #salt
22:47 setient joined #salt
22:47 jesusaurus joined #salt
22:47 jefferai joined #salt
22:47 EWDurbin joined #salt
22:47 njoyce joined #salt
22:47 Viaken_ joined #salt
22:47 mzito____ joined #salt
22:47 bejer joined #salt
22:47 drogoh joined #salt
22:47 ksalman_ joined #salt
22:47 goodwill joined #salt
22:47 gadams joined #salt
22:47 beardo__ joined #salt
22:47 chutzpah joined #salt
22:47 jgelens joined #salt
22:47 viq joined #salt
22:47 carxwol joined #salt
22:47 evax joined #salt
22:47 link0_ joined #salt
22:47 syngin joined #salt
22:47 Nazca joined #salt
22:47 talso joined #salt
22:47 Avatar[01] joined #salt
22:47 octarine joined #salt
22:47 tseNkiN joined #salt
22:47 EugeneKay joined #salt
22:47 lyddonb joined #salt
22:47 mirko joined #salt
22:47 rnts joined #salt
22:47 d10n joined #salt
22:47 __number5__ joined #salt
22:47 Psi-Jack joined #salt
22:47 akshayms joined #salt
22:47 coolj joined #salt
22:47 MTecknology joined #salt
22:47 kvbik joined #salt
22:47 t0rrant_ joined #salt
22:47 cluther joined #salt
22:47 a1j joined #salt
22:47 Heartsbane joined #salt
22:47 Micromus_ joined #salt
22:47 spoktor joined #salt
22:47 lex__ joined #salt
22:47 JordanRinke joined #salt
22:47 joshe joined #salt
22:47 mnemonikk joined #salt
22:47 pcarrier joined #salt
22:47 Guest45590 joined #salt
22:47 zz_farra joined #salt
22:47 twiedenbein joined #salt
22:47 nliadm joined #salt
22:47 soukihei joined #salt
22:47 g3cko joined #salt
22:47 s4muel_ joined #salt
22:47 fivethre1o joined #salt
22:47 jpaetzel joined #salt
22:47 godog joined #salt
22:47 rsimpkin1 joined #salt
22:47 karlp joined #salt
22:47 dhgbrg joined #salt
22:47 Jarus joined #salt
22:47 codysoyland joined #salt
22:47 eskp joined #salt
22:47 rcassidy joined #salt
22:47 benturner joined #salt
22:47 lynxman joined #salt
22:47 dh joined #salt
22:47 rhand joined #salt
22:47 seubert joined #salt
22:47 mackstic1 joined #salt
22:47 eightyeight joined #salt
22:47 ckrough joined #salt
22:47 blast_hardcheese joined #salt
22:47 robawt joined #salt
22:47 Daviey joined #salt
22:47 spacedentist joined #salt
22:47 cedwards joined #salt
22:47 dzen joined #salt
22:47 dave_den joined #salt
22:47 craig_ joined #salt
22:47 antsygee1 joined #salt
22:47 bdf joined #salt
22:47 cce joined #salt
22:47 brutasse joined #salt
22:47 minaguib_ joined #salt
22:47 melinath joined #salt
22:47 indymike joined #salt
22:47 whiteinge joined #salt
22:47 bruce-on1 joined #salt
22:47 bawnzai joined #salt
22:47 yumike joined #salt
22:47 SEJeff_work joined #salt
22:47 utahcon joined #salt
22:47 heckman joined #salt
22:47 nkuttler joined #salt
22:47 akoumjian joined #salt
22:47 xt joined #salt
22:47 cyp joined #salt
22:47 valberg joined #salt
22:47 insatsu_ joined #salt
22:47 andyshin` joined #salt
22:47 a7p joined #salt
22:47 scalability-junk joined #salt
22:47 StDiluted are you still there, chadhs?
22:47 auser hey StDiluted
22:47 nage joined #salt
22:47 yml joined #salt
22:47 retr0h joined #salt
22:47 pmcg joined #salt
22:48 isomorphic joined #salt
22:48 StDiluted how goes, auser
22:48 crazysim joined #salt
22:48 scalability-junk Alright I'm really diving through the docs, but does salt really not rerun commands?
22:48 yidhra_ joined #salt
22:48 scalability-junk it seems for me that for example adding a user it just runs the command on every salt run or am I mistaken?
22:49 benkay joined #salt
22:49 StDiluted it's for maintaining a state
22:50 StDiluted so it checks to make sure it's still in that state each run
22:50 benkay how do I go about instructing salt to create a database? i'm looking at the mysql module, and want to call db_create from my mysql-server/init.sls file
22:50 mfournier joined #salt
22:50 scalability-junk ok so before another user add comman is run it does a user "get" command to determine state or is the state saved within salt?
22:50 benkay are my paradigms broken?
22:51 StDiluted scalability-junk: it checks to see if the user is present and doesn't add it again if it is
22:52 scalability-junk StDiluted: but the check is not done within each module or?
22:53 StDiluted what do you mean?
22:53 scalability-junk the check if a user exists is it handled in the module itself?
22:54 StDiluted it's handled when the user.present: is called
22:54 djn joined #salt
22:54 scalability-junk ahh now I think I get it
22:54 StDiluted so if you have foo:  user.present:
22:54 StDiluted it checks if there is a user 'foo'
22:54 StDiluted and if there eis it returns True
22:55 StDiluted and if not, it creates it
22:55 StDiluted (that's a simplified depiction, I think but accurate)
22:55 scalability-junk but for example with git.config_set it would always set the config or run the config setting cmd?
22:55 scalability-junk StDiluted: ok
22:55 StDiluted you can set an 'unless'
22:56 StDiluted so if there's something you want to stop from happening, you can define a check
22:56 StDiluted for instance
22:56 StDiluted I want to make sure that a .deb is not installed more than once
22:57 StDiluted I'm using cmd.run: - name: dpkg -i package.deb
22:57 StDiluted but I have an unless: dpkg -s package
22:57 StDiluted so it runs the check first, and then if it returns true, it doesn't reinstall
22:58 scalability-junk ok so I would use something like unless: git config user.name 'test'
22:59 scalability-junk seems like using modules can complicate usage a bit
22:59 scalability-junk I would use something like git: config_set: - name '' - value ''
22:59 scalability-junk unless: git: config_get: - name '' - value ' should be working...
22:59 scalability-junk alright
23:00 scalability-junk so much to work on and so less time :(
23:00 auser Ah it's good StDiluted (sorry, finishing lunch)
23:01 oz_akan_ joined #salt
23:01 scalability-junk thanks StDiluted I will try around with unless, but it still seems to be running a lot of asking for state questions ;)
23:03 EntropyWorks what is the difference between using  - context:  instead of - defaults: for use a file.managed state?
23:03 tomeff joined #salt
23:04 StDiluted scalability-junk: salt is really designed around he idea of maintaining a state of configuration on a server, and so you have to allow for that in design. Everything you do, you have to check to see if it's been done already, and if things are in the state you want, so you can know if you need to take action. I think it's a necessary evil.
23:05 scalability-junk yeah probably I'll probably use salt instead of puppet, even without many premade states ;)
23:07 kenbolton joined #salt
23:08 tpe11etier joined #salt
23:10 benkay i'm struggling with how to instruct salt to create a mysql database. can someone help with a pointer or two?
23:11 benkay unsurprisingly, staging: mysql_database.present in my mysql-server/init.sls file did nothing
23:12 StDiluted that should do it
23:12 StDiluted though I haven't tried that yet
23:12 StDiluted do you have the MySQLdb python module installed and a mysql config in your minion config?
23:13 benkay I do have the mysql config in my minion config
23:13 druonysuse joined #salt
23:13 druonysuse joined #salt
23:14 benkay but DERP mysqldb python module
23:14 rsimpkin1 When I apply this state file, the salt-minion hangs and never returns. Am I doing something stupid here? http://dpaste.com/1306516/
23:14 auser benkay: did you do it with log_level debug?
23:16 benkay auser: nope.
23:16 auser run it with that and see where it hangs
23:17 benkay did you mean that message for rsimpkin1? my salt runs aren't hanging...
23:19 aranhoide joined #salt
23:21 rsimpkin1 Well, I did run it with debug. All the steps are completing just fine. It hangs here: [INFO    ] Returning information for job: 20130716172023660109
23:21 rsimpkin1 But it never returns.
23:21 spicyWith joined #salt
23:21 rsimpkin1 Everything else works just fine. It is only with dovecot I'm having this problem.
23:21 rsimpkin1 I'm guessing dovecot must not be daemonizing correctly or something like that?
23:25 AlcariTh1Mad joined #salt
23:29 dthom91 joined #salt
23:30 kchr hey everyone... the following state file gives me a YAML parsing error. can anyone tell me why? http://pastebin.com/F8eq0gYk
23:30 kenbolton joined #salt
23:30 kchr error pasted in the bin as well as the state file... thanks for any help
23:31 bhosmer joined #salt
23:36 benkay how do I specify a particular version of a python package to install through states/pip?
23:36 benkay I have distribute 0.6.24 installed and need distribute 0.6.49
23:37 tpe11etier joined #salt
23:39 benkay states.pip, how ams specify package version?
23:39 nkuttler benkay: have you tried pkgname==version?
23:41 aat joined #salt
23:41 benkay that seems to work at the top level, but i'm struggling to get it to work when used in a 'require'
23:41 jbunting joined #salt
23:41 nkuttler oh, didn't even know you can require pip stuff
23:41 nkuttler fwiw, i use virtualenv.manage and feed it a requirements file
23:42 benkay that sounds less derpy than what i'm doing
23:42 benkay thanks, nkuttler!
23:42 * benkay cries
23:42 nkuttler yeah, didn't even know there was a pip module...
23:42 nkuttler :)
23:43 benkay all i want is to get salt talking to mysql...
23:43 benkay ah well. eventually i'll never have to do this again.
23:43 andrew joined #salt
23:43 benkay because automation :)
23:43 nkuttler yeah, that's one of the perks :)
23:44 terminalmage joined #salt
23:44 tuxtoti joined #salt
23:52 diegows joined #salt
23:57 djn joined #salt
23:57 scalability-junk nkuttler: hehe funny I think it's the third time I see you in oss channels I'm watching, contributing or else
23:58 scalability-junk nkuttler: cool virtualenv.manage -> diving into code
23:59 dthom91 joined #salt

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