Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-07-04

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

All times shown according to UTC.

Time Nick Message
00:04 whit joined #salt
00:09 aat joined #salt
00:10 rfgarcia joined #salt
00:10 _rfgarcia joined #salt
00:15 puppet_ joined #salt
00:19 KyleG joined #salt
00:20 KyleG joined #salt
00:31 raghu joined #salt
00:32 efixit joined #salt
00:35 berto- joined #salt
00:39 mgw1 joined #salt
00:39 dthom91 joined #salt
00:40 StDiluted joined #salt
00:47 sciyoshi2 joined #salt
00:53 dthom91 joined #salt
01:14 liuyq joined #salt
01:29 dthom91 joined #salt
01:32 mikedawson joined #salt
01:33 UtahDave joined #salt
01:44 Gwayne joined #salt
01:45 nliadm so, with salt-api
01:46 nliadm how do I check that my auth token is valid?
01:46 nliadm get on /login seems to always return a 401, and it returns the same token that I have set in the cookie
01:48 nliadm when I re-authenticate
01:51 Furao nliadm: you can know the length of the token, just keep the timestamp and renew when it's expired?
01:52 nliadm no, it's not expiring
01:52 Furao https://gist.github.com/bclermont/5012850
01:52 nliadm but should a GET on /login return 200 when I'm authenticated?
01:53 Furao I wrote that a while ago, but I didn't tried it yet on last version of salt-api
01:54 nliadm or do I actually have to pay attention to the expire time >_>
01:55 Furao look like I didn't care about the expiration
01:55 Furao I was sure I did it, maybe it's not in that version
01:55 nliadm yeah
01:56 nliadm I guess I'll try just using the token as long as it's valid
01:56 Furao found it
01:56 Furao I use cookiejar
01:56 Furao and I keep expiration
01:57 Furao if you can wait a few days, this will be an open source library
01:58 nliadm I'm writing a client in go
01:58 nliadm for funsies
01:58 Furao opus ok then :)
01:58 Furao but, my code here keep track of token expiration
01:59 jrb28 joined #salt
01:59 nliadm I just think it shouldn't 401 if you're already logged in
02:00 nliadm but the docs aren't clear on if that's true or if I'm fucking up
02:23 fxhp jensenja: normally you want to have your softwrae precompiled on a build server
02:24 fxhp jalbretsen: woah didn't know I had so much scrollback, please ignore
02:32 StDiluted joined #salt
02:33 rfgarcia joined #salt
02:47 dthom91 joined #salt
02:49 rbstewart joined #salt
02:53 alazylearner joined #salt
03:05 mgw joined #salt
03:07 mchype joined #salt
03:09 bluemoon joined #salt
03:20 jeddi joined #salt
03:22 whit joined #salt
03:26 liuyq joined #salt
03:32 SDr left #salt
03:38 dthom91 joined #salt
03:42 alazylearner joined #salt
03:42 Furao http://ppa.launchpad.net/saltstack/salt/ubuntu/pool/main/s/salt/
03:42 Furao 0.16.0 in ppa
03:44 godog joined #salt
03:44 johntron joined #salt
04:00 raydeo joined #salt
04:10 auser joined #salt
04:17 Furao and already found new 0.16 issue
04:29 alazylearner joined #salt
04:33 savetherbtz joined #salt
04:45 raydeo joined #salt
04:46 jkleckner joined #salt
04:49 jkleckner joined #salt
04:50 kleinishere joined #salt
04:52 jkleckner joined #salt
04:56 savetherbtz1 joined #salt
05:04 jacksontj joined #salt
05:20 alazylearner joined #salt
05:21 chadhs joined #salt
05:24 knightsamar joined #salt
05:31 joonas Corey: fwiw, I forgot the name of your blog and decided to google your name, turns out I got a bit unexpected results..
05:38 idkfa joined #salt
05:39 cxz joined #salt
05:41 kallek joined #salt
05:58 carmony joined #salt
05:58 tamentis joined #salt
05:59 linjan_ joined #salt
06:08 ashkash joined #salt
06:16 Corey joonas: What did you get?
06:16 krissaxton joined #salt
06:16 joonas Corey: pictures of a model
06:16 joonas well, half-naked
06:16 Corey joonas: I've only had the name for a few years, she predates me.
06:17 Corey There's another one who's a social media douchebag in the same city I live in, which covers the trail even better.
06:17 alazylearner joined #salt
06:18 joonas lol
06:19 jefimenko joined #salt
06:20 bluemoon joined #salt
06:46 cxz lol
06:47 cxz i think i walked in on the chat with a weird context
06:47 EugeneKay Context is overrated
06:48 EugeneKay If you'd like some, consider the fact that I own dongs-r.us
06:48 elyast joined #salt
06:51 elyast Hi guys I have a problem with env variables (set in /etc/environment) as they are not passed when running salt-minion as a service (ubuntu)
06:51 elyast I found that this post http://serverfault.com/questions/128605/have-upstart-read-environment-from-etc-environment-for-a-service
06:51 elyast and basically they advice to use exec su -c in upstart scripts
06:53 elyast which pointed me to https://github.com/saltstack/salt/blob/develop/pkg/salt-minion.service
06:54 elyast and I think in this scipt there should be exec su -c salt-minion
06:54 elyast any comments appreciated
06:54 elyast I can make pull request if You think its good idea
07:00 Furao File "/usr/lib/pymodules/python2.6/salt/modules/pip.py", line 574, in list_
07:00 Furao packages[name] = version
07:00 carlos joined #salt
07:00 Furao UnboundLocalError: local variable 'version' referenced before assignment
07:00 Furao damn
07:00 Furao 0.16 pip module is broken
07:03 bluemoon joined #salt
07:07 techdragon joined #salt
07:17 dhgbrg hey guys. i'm setting up my first logstash installation and i'm trying to get some filters to work. is there any convenient way to validate syntax/sematics of input/output/filter configuration?
07:18 dhgbrg uchm, wrong window, sorry, ignore me.
07:18 dhgbrg i am using salt to manage logstash, though :)
07:20 Lucas_- joined #salt
07:24 hazzadous joined #salt
07:24 jefimenko joined #salt
07:29 scott_walton joined #salt
07:29 Furao as 0.16 is broken here is a mirror of 0.15.3 ppa http://saltinwound.org/ubuntu/0.15.3/
07:30 balboah joined #salt
07:36 __gotcha joined #salt
07:44 ProT-0-TypE joined #salt
07:45 bluemoon joined #salt
07:48 azbarcea joined #salt
07:50 hazzadous joined #salt
07:56 joehh Furao: is there an easy fix?
07:56 joehh ie code patch?
08:01 __gotcha joined #salt
08:01 __gotcha joined #salt
08:02 felixhummel joined #salt
08:05 dthom91 joined #salt
08:06 p3rror joined #salt
08:16 oliv_mc joined #salt
08:20 eduardoshanahan_ joined #salt
08:29 Furao joehh: I just created a pull request: https://github.com/saltstack/salt/pull/5938
08:38 kermit joined #salt
08:41 krissaxton joined #salt
08:53 hazzadous joined #salt
09:04 felixhummel_ joined #salt
09:06 Jason-AVST joined #salt
09:22 savetherbtz joined #salt
09:24 rlb` joined #salt
09:25 pmcg_ joined #salt
09:25 Daviey_ joined #salt
09:27 mperry_ joined #salt
09:27 ProT-O-TypE joined #salt
09:27 tamentis_ joined #salt
09:30 gzur_ joined #salt
09:30 crazysim_ joined #salt
09:30 necronia- joined #salt
09:31 njoyce` joined #salt
09:31 joonas_ joined #salt
09:32 defunctzombie_zz joined #salt
09:32 joonas joined #salt
09:39 arthurlutz joined #salt
09:39 scooby2 joined #salt
09:44 krak3n` joined #salt
09:48 krissaxton joined #salt
09:57 lbotti joined #salt
10:06 oliv_mc joined #salt
10:07 nickray joined #salt
10:08 dthom91 joined #salt
10:08 nickray in this .sls file, salt complains "Too many functions declared in state "service" in sls daemons", how am I to require that a service is systemd-enabled? https://gist.github.com/anonymous/9bd7a9080b097467934b
10:13 bhosmer joined #salt
10:14 efixit joined #salt
10:20 Furao nickray: enabled: True
10:21 nickray ah, thanks
10:27 fredvd joined #salt
10:31 mattmb joined #salt
10:32 Furao so much is broken in 0.16 :(
10:32 Furao going back to 0.15.3
10:45 ange hey
10:45 ange Furao: oh ? really ?
10:47 Furao I already open new issues and PR
10:48 Furao but now so many errors in my test suite that I need to revert
10:48 Furao I change all my states and code to always depends on my salt mirror instead
10:52 bluemoon joined #salt
11:03 nickray is there an up to date salt mirror for arch?
11:04 nickray and is there a "what's new" page for salt?
11:05 aleszoulek nickray: http://docs.saltstack.com/topics/releases/index.html Is this working for you as what's new?
11:05 nickray ah yes, nice, thanks!
11:07 Furao nickray: you don't want 0.16
11:08 nickray oops... i'm afraid i just upgraded everything from .15 -- but i'm only just starting out so i hope i won't bump into bugs.
11:09 nickray Furao: is github the place to look for your bug reports?
11:09 aleszoulek Sadly, new 0.X.0 versions are always broken...
11:10 aleszoulek We need far more better tests
11:10 nickray are you a dev ales?
11:10 Furao we need a way to don't be forced to use a new version
11:10 nickray do you suggest waiting for 0.x.1 releases then?
11:10 Furao I'm fixing this right now
11:10 nickray what do you mean by forced Furao?
11:11 Furao nickray: with Ubuntu PPA there is a single version of the packages available
11:12 aleszoulek nickray: Not a dev. Just time-to-time contributor.
11:13 djn joined #salt
11:14 djn hi, is there an option to run scheduled commands at specific times? I would like to have some of the flexibility of cron, but as I see it the scheduling built into salt doesn't permit that yet?
11:15 Furao djn: http://docs.saltstack.com/topics/jobs/schedule.html
11:16 felskrone joined #salt
11:16 felskrone hey
11:17 Xeago joined #salt
11:18 Xeago joined #salt
11:19 felskrone could anyone quickly confirm that two minions with the same public-key can still connect to the saltmaster and successfully execute commands?
11:19 djn Furao: yeah I am aware of that... but thats just "do it every x mins" and not "do it every x mins at fixed times, for example every 5 minutes when $MIN % 5 == 0"
11:20 felskrone this can be done quickly by just deleting two minion-keys on the master, copy minion.pub from minion and a to b and start them both
11:21 djn Furao: the problem is, one is unable to sync to masters... as I would like it: master a does run stuff on 12:00, master b does the same thing at 24:00... with the solution at hand, this would be out of sync when a master reboots
11:23 djn Furao: alternatively, global scheduling would work out to, i.e. the same scheduled things happens once, not once for each master with a synced conf
11:24 diegows joined #salt
11:25 lemao joined #salt
11:26 krissaxton joined #salt
11:30 emocakes joined #salt
11:37 jeffrubi` joined #salt
11:42 p3rror joined #salt
12:04 ruimarinho joined #salt
12:04 mattmb joined #salt
12:05 oliv_mc left #salt
12:07 ruimarinho What's the best way to compose a config file? I'm looking into populating a final jail.local with multiple jail.* source files
12:07 ruimarinho e.g. jail.nginx, jail.postfix, etc
12:07 Nexpro joined #salt
12:08 dthom91 joined #salt
12:08 ruimarinho dynamically calling {% extends %}?
12:09 mschoebel joined #salt
12:33 mikedawson joined #salt
12:34 Furao joined #salt
12:42 ange anyone here using rbenv with salt ?
12:43 oz_akan_ joined #salt
12:50 djn can somebody confirm this bug for me before I report it? when using two salt masters in 0.16, who have each other as minion, one can not execute service.restart salt-master on the other... running it results in a deadlock without (or with huge) timeout
12:54 markm joined #salt
12:55 markm_ joined #salt
13:04 Furao joined #salt
13:07 jeddi ruimarinho: i don't know what this jail is -- does it support conf.d/ structure?
13:08 jeddi ruimarinho: if it doesn't, then piecing it together .. could be challenging.   do the sections for each thing (nginx, postfix, etc) need to be multiline, or just a  line per component?  if a line per component, file.append might work?  (i use that already with multiple lines - usually a few lines of comments followed by the actual conf entry - and it works well).
13:09 jeddi managing it in the future, though, would be messier, and require a bit more sophisticated '# START-nginx-section' / '# END-nginx-section' kind of thing.   guess it depends on long term expectations for the configuration.
13:19 drdran joined #salt
13:21 ruimarinho jeddi: it's multiline and unfortunately, conf.d/ like structure is not supported afaik (fail2ban)
13:22 Furao ruimarinho: file.accumulated
13:23 Furao {% extend %} isn't available https://github.com/saltstack/salt/issues/4357
13:24 ruimarinho Furao, that looks like an interesting alternative. How would I populate the text property?
13:24 Furao check github.com/bclermont/states in diamond state
13:24 mgw joined #salt
13:25 Furao I used it only once, because if I run state.sls it removed everything that wasn't "accumulated"
13:26 ruimarinho https://github.com/bclermont/states/blob/master/states/diamond/ProcessResourcesCollector.jinja2 ?
13:26 Furao yes
13:26 ruimarinho how is accumulator populated?
13:27 Furao check in other states
13:27 Furao it's used in every daemon
13:27 Furao https://github.com/bclermont/states/blob/master/states/memcache/init.sls#L69
13:27 Furao ouch, that's old. my new states are more clean than that
13:27 ruimarinho https://github.com/bclermont/states/blob/master/states/elasticsearch/init.sls
13:28 ruimarinho looking at elasticsearch
13:28 Furao line 96
13:28 ruimarinho interesting
13:28 ruimarinho I like how the dependency is required on this file
13:29 ruimarinho meaning I can do a require_in on my nginx fail2ban config
13:30 Furao AFAIK this is the only public example of file.accumulated
13:30 Furao maybe there is a better way to use it
13:32 mattmb hi all
13:32 mattmb has anyone tried to do something similar to this with external pillars before:
13:32 mattmb ext_pillar:   - cmd_yaml: salt \* test.ping
13:32 ruimarinho Furao, thanks, I'll have a look!
13:35 ruimarinho Furao: actually, I just noticed it might not work, unless file.accumulated supports populating the text property via a jinja template
13:35 Furao text property via jinja template?
13:36 Furao {{ something.text ? }}
13:37 Nazca joined #salt
13:37 Nazca joined #salt
13:38 ruimarinho file.accument "text" property (https://github.com/bclermont/states/blob/master/states/elasticsearch/init.sls#L103)
13:38 ruimarinho I would need this to be populated via source (salt://)
13:38 Furao there is a way to do that
13:39 Furao it requires custom state (like https://github.com/bclermont/states/tree/master/states/_states) that will call file.accumulated
13:40 bhosmer joined #salt
13:42 ruimarinho ahh
13:43 ruimarinho is there any repository of contributed custom states?
13:44 mschoebel Hi! I try to understand how "require" works. Why does this not work? - http://pastebin.com/nYkiFCSz - Thanks.
13:44 Furao mschoebel: go to github.com/bclermont/states for 300 examples of working -require
13:44 teskew joined #salt
13:44 ruimarinho change group.present: foogroup to group: foogroup
13:45 Furao ruimarinho: there is no centralized source for that
13:47 mschoebel I tried that. The error message is the same.
13:49 mattmb @mschoebel try it without test=True
13:51 ruimarinho yes, sometimes it's 100% accurate
13:51 ruimarinho I've had false positives with ssh keys
13:52 ange is there a place describing the options that can be used to set a file permissions in a sls ?
13:52 mschoebel Ok. Thanks.
13:54 ruimarinho ange, file mode?
13:55 ange nevermind found it
13:55 ange http://docs.saltstack.com/ref/states/extend.html
13:55 ange http://docs.saltstack.com/ref/states/all/salt.states.file.html
13:55 ange in fact
13:56 mgw joined #salt
13:58 efixit joined #salt
14:08 techdragon joined #salt
14:15 sciyoshi joined #salt
14:15 chubrub joined #salt
14:17 chubrub I have strange problem, I rebuilded one of my minions from scratch (reinstalled whole system), so old key is still enabled on master and when I make salt-key -y -d minion_name, key still resides in minions:
14:17 chubrub Any idea how to remove old key?
14:18 dzen rm the /etc/salt/minion/pki folder
14:21 ange dzen: !
14:21 chubrub @dzen, you mean removing folder on minion, right?
14:23 ange anyone could tell me what's wrong there : https://gist.github.com/mcansky/42247916fc3c5d2ab747 ?
14:23 ange I'm trying to run a command from a sls, not sure to understand the doc correctly on this
14:25 mgw ange: one second, I'll correct it
14:25 bfrog left #salt
14:25 ajw0100 joined #salt
14:25 ange thought so
14:28 mgw ange: try this — https://gist.github.com/mgwilliams/cc415fee7c2bcf79af91
14:30 ange "Name cmd.run in sls ruby is not a dictionary"
14:31 mgw oh yeah, sorry
14:31 ipmb joined #salt
14:32 dzen chubrub: the pki folder
14:32 chubrub ok, maybe another way, I destroyed one of my minion, an when I make salt-key --list-all I see removed minions in accepted keys (let's say that the minion name is 'web'). Now I'd like to recreate minion with the same name 'web' and of course new key pair will be generated. So, for avoiding conflict I assume that I have to remove previous key with salt-key - d web. But that does not work for me. @dzen, you said I have to remove /etc/sa
14:33 chubrub but on master it contains other minions keys :/
14:33 ange mgw: any idea ?
14:33 mgw ange, i'll brb to fix that
14:33 dzen stop your minion ; remove it's pem folder ; salt-key -d <minion> ; then restart your minion
14:36 Bastion2202 joined #salt
14:36 chubrub didn't wotk, but removing /etc/salt/pki/master/minions/web on master did the job without neccessity to run salt-key -d
14:36 chubrub strange ...
14:37 chubrub @dzen: thx anyway ;]
14:37 dzen chubrub: I do it regulary
14:37 Bastion2202 morning guys, quick question on salt.modules.shadow which option would set the password has expired right away ? I already take care of the authorized_keys
14:39 dthom91 joined #salt
14:39 mgw ange: try it now — https://gist.github.com/mgwilliams/cc415fee7c2bcf79af91
14:43 aat joined #salt
14:43 ruimarin_ joined #salt
14:46 jeddi joined #salt
14:48 dthom91 joined #salt
14:50 UtahDave joined #salt
14:52 diegows joined #salt
14:53 cron0 joined #salt
14:53 kho joined #salt
15:00 ange mgw: ok thanks it works but it doesn't seem to run properly
15:00 arthurlutz left #salt
15:04 ange ok missing pkg
15:08 capricorn_one joined #salt
15:22 mattmb can someone remind me, are states rendered on the master or minions?
15:23 dzen imho on the minion
15:23 mattmb yeah that's what I was thinking
15:27 mgw ange: figured out the pkg you needed? and the requires for the cmd?
15:32 akoumjian Anyone have experience with the rbenv modules?
15:35 ange :)
15:35 ange akoumjian: same topic
15:35 jpadilla joined #salt
15:35 akoumjian ange: Ah, I'll take that as a bad sign. :-)
15:35 akoumjian ange: What's your issue?
15:35 ange mgw: removed the ruby manually I need to find how to get it installed through my ruby sls (using rbenv)
15:36 ange akoumjian: setting up bundler, and getting a ruby installed
15:36 ange apparently I can get one to be installed by using (on the master): salt '*' rbenv.install_ruby ruby-1.9.3-p429
15:37 ange but if I do it through a sls, the build part seems to fail
15:39 ange akoumjian: and you ?
15:39 ange mgw: any idea about that ?
15:39 akoumjian ange: My issue is that I'm not sure how to get rbenv's shims to… exist. I've gotten the state to install my ruby version, but if I want to install anything no idea how to reference rbenv / installed rubies
15:40 ange ok, this is more rbenv related
15:40 akoumjian ange: It's more of a rbenv question, methinks. I was just surprised that installing rbenv doesn't seem to include the shims that the docs reference
15:40 akoumjian ange: yeah
15:41 ange I managed to do that by adding a basic .profile in the user(s) home with the rbenv vars and PATH set
15:41 ange http://blakewilliams.me/blog/4-system-wide-rbenv-install
15:41 ange I have installed rbenv system wide so this helped to get the stuff needed for the .profile
15:42 ange (I am running ubuntu, you might have to use zshrc or bash_profile)
15:42 armonge joined #salt
15:42 ange akoumjian: basicaly you need 3 lines to be added :
15:42 ange export RBENV_ROOT=/usr/local/rbenv
15:42 ange export PATH="/usr/local/rbenv/bin:$PATH"
15:42 ange eval "$(rbenv init -)"
15:43 akoumjian ange: Reading up on that now. Seems like I can add that to an /etc/profile.d/ file
15:43 ange then, the users should pick up the default ruby
15:44 ange (Defined by rbenv)
15:44 ange or the one you specified in the .ruby-version file
15:44 ange akoumjian: how did you get the state to install the ruby ?
15:45 akoumjian ange: On mine the only thing that was missing seemed to be git
15:47 akoumjian ange: Once I had git installed, this worked for me: https://gist.github.com/akoumjian/5928739
15:47 akoumjian Well, at least the part where it installed that version of ruby.
15:48 ange yep that's what I've got too
15:48 ange but the build seems to fail
15:49 capricorn_one joined #salt
15:51 Bastion2202_ joined #salt
15:55 ange my bad, the ruby get installed, the bundle install doesn't seem to be called in the proper order
15:57 krissaxton joined #salt
16:00 redbeard2 joined #salt
16:04 logix812 joined #salt
16:08 krak3n` joined #salt
16:10 __gotcha joined #salt
16:10 __gotcha joined #salt
16:16 mgw ange: do you have the gem install require the pkg?
16:18 dthom91 joined #salt
16:19 rfgarcia joined #salt
16:21 ange mgw: which one ?
16:21 ange mgw: which package ?
16:22 johntron joined #salt
16:23 ange mgw: something like : https://gist.github.com/mcansky/5928928 ?
16:24 ange but then the gem install runs as root without any rbenv ruby loaded
16:24 jedahan joined #salt
16:27 ange I just want to install a proper ruby through rbenv, and bundler on top of it, and then docker
16:29 bhosmer joined #salt
16:31 carmony joined #salt
16:32 ange "Pass in a list or dict of environment variables to be applied to the command upon execution" < a list or dict ?
16:37 lbotti joined #salt
16:38 ange ok, got bundle to install, can't run it, it's not in a shim
16:41 ange ok needed a rehash
16:43 jrb28 joined #salt
16:43 krak3n`_ joined #salt
16:45 f4cl3y joined #salt
16:47 nickray left #salt
16:50 mgw joined #salt
16:50 oz_akan_ joined #salt
16:50 faust joined #salt
16:51 mgw ange: i don't do ruby, so I can't help with ruby specific stuff
16:52 ange ok, no worries, going step by step here
16:53 sciyoshi2 joined #salt
17:11 Psi-Jack Hmmm, I just thought of something. With salt, if a salt state has an rpm package in its files, can salt be used to properly install the package via the use of yum local install (not using rpm, but yum specifically)
17:11 Psi-Jack ?
17:14 bluemoon joined #salt
17:16 cron0 joined #salt
17:20 ange akoumjian: did you solve your problem ?
17:21 akoumjian ange: So, funny story. I _did_ get everything working. It involved adding the rbenv init stuff to a script and running that after installing ruby 1.9.3 and then adding subsequent rehash commands after installing my gems with binaries
17:22 madduck … ruby … *ARGH*
17:22 akoumjian ange: But I really didn't like that solution, so instead I opted for this ppa instead http://docs.brightbox.com/ruby/ubuntu/
17:22 akoumjian madduck: Tell me about it
17:22 madduck i will not.
17:23 akoumjian ange: This is working brilliantly for me https://gist.github.com/akoumjian/5929218
17:23 madduck this is #salt and #salt is thankfully not written in Ruby, so anything to do with Ruby is off-topic here.
17:23 madduck hehe, unless it's about states, of course.
17:24 akoumjian madduck: Unfortunately some good dev tools are written in ruby (ie: compass) that we need in our dev stack
17:24 akoumjian <strike>embrace</strike> tolerate the polyglot
17:27 akoumjian ange: If you don't actually need multiple ruby versions side by side, I highly recommend this method.
17:29 ange madduck: need a hug ?
17:29 ange akoumjian: ok, thanks, reading
17:30 defunctzombie joined #salt
17:30 ange akoumjian: I just managed to get things running too, using vanilla packages from ubuntu, rbenv and yes a bit of rbenv rehash, will publish the repo probably
17:31 ange now looking into docker + base sinatra / rails app
17:31 capricorn_one joined #salt
17:31 madduck ange: nope; I have recently purged all Ruby from my systems. I feel great.
17:32 ange akoumjian: I ran into trouble twice with openssl and zlib, had to remove the rubies manually, re run the states
17:32 ange madduck: must be nice to have such strong urges
17:34 ange madduck: you removed all perl too ?
17:34 ange because franckly it looks so close to ruby ...
17:35 ange akoumjian: related : https://github.com/sstephenson/ruby-build/wiki
17:36 madduck ange: Perl is a text processor that doesn't look very nice, but it at least obeys the principle of least surprise, unlike Ruby which seems to try to do things differently just to do things differently. And Perl is fast. 'nuff said.
17:36 akoumjian ange: That si why I'm preferring the packages instead of building ruby right on the machine. Plus it's a lot faster
17:36 ange madduck: oh yeah 'nuff said.
17:37 ange akoumjian: yep probably
17:37 capricorn_one Psi-Jack: have you tried to use cmd.run 'yum install xxxx'
17:37 Psi-Jack I was hoping for a more native method than cmd.run
17:38 Psi-Jack I know that salt supports the native package system, I just don't know how it works, exactly.
17:41 capricorn_one I'm newbee too. Was able to install mysql etc. using yum on centos.
17:41 fllr_ joined #salt
17:41 fllr_ How do I install virtualenvwrapper using salt?
17:42 fllr_ And how come am I getting this error when trying to install my virtualenv: https://gist.github.com/felipellrocha/5929306
17:44 terminalmage joined #salt
17:44 akoumjian fllr_: the error is because packages listed under a pkgs: directive do not get separately namspaced as states "pkg: foo". So you need to change that to a require pkg: python-pkgs
17:44 Psi-Jack Ahh, I think I found it.
17:45 Psi-Jack http://docs.saltstack.com/ref/modules/all/salt.modules.yumpkg.html#module-salt.modules.yumpkg  -- pkg.installed: sources: [{"blah": "salt://blah.rpm"}]
17:45 Psi-Jack Or, a proper list anyway. :) - blah: salt://blah.rpm
17:46 johntron joined #salt
17:46 Psi-Jack It appears using the pkg module as such for CentOS would properly use yum as expected (and desired, since using rpm isn't tracked by yum)
17:46 fllr_ akoumjian: worked, thanks! :)
17:48 auser joined #salt
17:50 capricorn_one I know that yum works from standalone setup so salt will produce the same results. In my case I'm not trying to put everything under salt yet.
17:54 mikedawson_ joined #salt
18:01 linjan_ joined #salt
18:02 ange is it possible to license a salt states repository under MIT license ?
18:05 koolhead17 joined #salt
18:07 bluemoon joined #salt
18:11 dthom91 joined #salt
18:12 auser joined #salt
18:27 logix812 joined #salt
18:28 chadhs joined #salt
18:32 krissaxton left #salt
18:32 Bastion2202 joined #salt
18:36 oliv_mc joined #salt
18:36 jpcw joined #salt
18:37 jeddi joined #salt
18:39 f4cl3y joined #salt
18:49 nliadm Happy 4th: https://github.com/hdonnay/saltctl
18:50 aboe joined #salt
18:56 xinkeT joined #salt
18:56 nliadm rough but usable
19:00 x_or joined #salt
19:03 enduro joined #salt
19:06 juicer2 joined #salt
19:07 alazylearner joined #salt
19:07 enduro left #salt
19:12 dthom91 joined #salt
19:17 berto- joined #salt
19:28 Shish left #salt
19:32 krissaxton joined #salt
19:34 fivethre1o joined #salt
19:37 Mrono_ joined #salt
19:37 t0rrant joined #salt
19:37 teskew1 joined #salt
19:37 a1j_ joined #salt
19:39 bturner joined #salt
19:40 MTecknol1gy joined #salt
19:40 yml_ joined #salt
19:40 canci joined #salt
19:41 element joined #salt
19:41 akoumjian_ joined #salt
19:41 Brainspa1kle joined #salt
19:44 LordOfLA joined #salt
19:45 jeblair joined #salt
19:45 bejer joined #salt
19:45 joonas_ joined #salt
19:46 joonas joined #salt
19:46 tseNkiN joined #salt
19:47 ioni joined #salt
19:47 jetblack joined #salt
19:48 twinshadow joined #salt
19:48 blast_hardcheese joined #salt
19:49 mgw joined #salt
19:51 kmwhite joined #salt
19:52 armonge joined #salt
19:53 MTecknology joined #salt
19:54 a1j joined #salt
19:56 mperry__ joined #salt
19:57 ahammond_ joined #salt
19:58 schvin joined #salt
20:01 x_or joined #salt
20:03 drdran joined #salt
20:05 jkleckner joined #salt
20:07 x_or joined #salt
20:07 drdran left #salt
20:11 efixit joined #salt
20:12 dthom91 joined #salt
20:19 hotbox joined #salt
20:24 drdran joined #salt
20:41 tmmt joined #salt
20:42 dthom91 joined #salt
20:44 fllr joined #salt
21:00 carlos joined #salt
21:05 krissaxton1 joined #salt
21:06 linjan_ joined #salt
21:13 mgw how would one watch multiple config files and restart the service for some but reload for others?
21:19 armonge joined #salt
21:29 krissaxton1 left #salt
21:35 oz_akan_ joined #salt
21:41 jeddi joined #salt
21:47 drdran left #salt
21:47 jkleckner joined #salt
21:47 drdran joined #salt
21:48 drdran left #salt
21:57 jeddi joined #salt
22:00 Koma joined #salt
22:04 SpX joined #salt
22:05 hazzadous joined #salt
22:10 lbotti joined #salt
22:11 Xeago joined #salt
22:13 copec joined #salt
22:13 copec joined #salt
22:14 copec joined #salt
22:14 copec joined #salt
22:15 copec joined #salt
22:15 copec joined #salt
22:16 copec joined #salt
22:16 copec joined #salt
22:17 lbotti_ joined #salt
22:17 sciyoshi joined #salt
22:21 raydeo joined #salt
22:39 carlos joined #salt
22:45 aat joined #salt
22:47 jkleckner1 joined #salt
22:52 jeddi joined #salt
23:07 zloidemon joined #salt
23:14 jeddi joined #salt
23:16 jkleckner joined #salt
23:22 Nash_ joined #salt
23:24 Xeago_ joined #salt
23:24 bluemoon joined #salt
23:27 Nash_ Hello guys, when I switch dirs with cmd.run using cwd, should rvm kick in since I have it configured in that directory?
23:28 Nash_ *shouldn't
23:28 Nash_ it doesn't seem to load the gemspec.
23:29 Corey The hooks that call rvm are generally specific to a profile, that Salt doesn't load for cmd.run
23:31 timoguin joined #salt
23:34 Nash_ Corey, it seems like http://docs.saltstack.com/ref/modules/all/salt.modules.rvm.html is not supported
23:34 Nash_ I get "State rvm.do found in sls webserver is unavailable"
23:35 Corey Nash_: Is RVM installed on that box? :-)
23:35 cxz joined #salt
23:35 Nash_ yup
23:35 Nash_ System wide
23:36 Corey Nash_: What version of salt are you running?
23:36 Nash_ I can run rvm commands with cmd.run, but it doesn't seem to be reading the dot files to swithc rubys or gemsets
23:36 Chat7318 joined #salt
23:36 Nash_ 0.16.0
23:37 Nash_ I ran the command: "rvm current" to see what it will output, it says: "system"
23:37 Nash_ When I log into the machine and switch into that dir, it show the right stuff: "ruby-2.0.0-p247@mow"
23:38 Nash_ "I ran the command: "rvm current" to see what it will output, it says: "system"" meaning in the sls file using cmd.run.
23:42 fragamus joined #salt
23:42 Nash_ Trying this with cmd.run: name: "rvm use 2.0.0@mow && bundle". It returns stderr: RVM is not a function, selecting rubies with 'rvm use ...' will not work.. Weird wtuff.
23:42 Nash_ reading up more on cmd.run
23:50 jeddi Nash_: if you fully path rvm?
23:50 jeddi oh - scratch that - it is running rvm, just failing to find the rubies.
23:51 jeddi Nash_: if you're going to use cmd.run to try to do this, may as well just push out a shell script that sets up your environment properly and run that.
23:52 Nash_ jeddi: yeah, reading up on that now: http://stackoverflow.com/questions/9336596/rvm-installation-not-working-rvm-is-not-a-function I wonder if there's a way for cmd to simulate a login
23:52 Nash_ It looks like it's using the right ruby, but not the gemset

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