Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-11-24

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

All times shown according to UTC.

Time Nick Message
00:03 MohShami forrest: sorry had to leave for a bit, as far as I know FreeBSD doesn't have a package for zmq 3 python binding, how can I install that from python?
00:04 forrest MohShami, I don't know, I don't use freebsd at all, that's why I was hoping cedwards was around. He's the resident 'freebsd guy'
00:04 littleidea joined #salt
00:04 MohShami I see
00:04 MohShami well, with perl we could install packages with CPAN, is there something similar in python?
00:05 forrest Python has pip, and pypi, but pypi only has 2.19 for pyzmq https://pypi.python.org/pypi/pyzmq/2.1.9
00:06 forrest MohShami, I'd say make a post here: https://groups.google.com/forum/#!forum/salt-users
00:06 forrest see if anyone else has encountered that issue, since it's not technically a Salt issue, but a problem with what's available with zeromq for freebsd, maybe someone has a workaround :\
00:06 MohShami trying to install the zmq binding using pip, if that doesn't work, I'll post there
00:07 MohShami thanks a million mate :)
00:07 forrest sounds good
00:07 forrest Yea np, wish I could help you out more
00:07 MohShami forrest: http://www.pastebin.ca/2478572
00:08 forrest zeromq 4??
00:08 forrest I have no idea if that will work, lol
00:08 MohShami you've done more than enough, I'll check if this one works :)
00:08 MohShami thanks again
00:08 forrest ok, let me know if it does so I can put in a request to get the docs modified
00:10 bemehow joined #salt
00:12 jslatts joined #salt
00:14 oz_akan_ joined #salt
00:23 linuxnewbie joined #salt
00:23 linuxnewbie joined #salt
00:24 linuxnewbie left #salt
00:28 cedwards evenin'
00:28 forrest hey cedwards
00:28 cedwards catching up on the backlog..
00:28 forrest cool
00:29 EugeneKay joined #salt
00:29 cedwards I would be interested to know if installing using pip works
00:30 forrest he's trying that now, looks like when he did so it bumped zmq to 4
00:30 cedwards there is a discussion on the freebsd-ports mailing list about promoting zmq-devel to zmq stable.
00:30 forrest http://www.pastebin.ca/2478572
00:30 forrest what's with that though?
00:30 forrest ZMQ 4 is devel for freebsd?
00:31 forrest yet there is no zmq 3?
00:31 forrest seems odd to me
00:31 cedwards my ports tree shows zmq-devel is 3.2.4
00:32 forrest weird, maybe that had to do with the bindings...
00:34 littleidea joined #salt
00:34 cedwards just updated my ports tree to be sure. 2.2.0 is the stable port and 3.2.4 is the -devel port.
00:35 forrest ahh ok
00:35 audreyr joined #salt
00:35 cedwards 4.x would have to be installed via pip is my guess
00:36 Sheco joined #salt
00:41 EugeneKay joined #salt
00:51 littleidea joined #salt
00:53 elsmorian joined #salt
00:56 DredTiger joined #salt
01:00 cachedout joined #salt
01:05 littleidea joined #salt
01:05 aarontc joined #salt
01:14 oz_akan_ joined #salt
01:32 lineman60 joined #salt
01:34 MohShami_ joined #salt
01:39 mgw joined #salt
01:42 xmltok joined #salt
01:49 littleidea joined #salt
01:49 Ryan_Lane joined #salt
01:54 elsmorian joined #salt
02:01 oz_akan_ joined #salt
02:08 JulianGindi joined #salt
02:11 Linz joined #salt
02:18 rojem joined #salt
02:24 elsmorian joined #salt
02:25 Furao joined #salt
02:26 fxhp joined #salt
02:29 capricorn_1 joined #salt
02:30 NotreDev joined #salt
02:32 codepython777 joined #salt
02:32 codepython777 anyone here?
02:33 mgw joined #salt
02:34 forrest what's up
02:42 bemehow joined #salt
02:44 codepython777 hi forrest
02:44 forrest hey
02:44 Bram joined #salt
02:44 codepython777 I'm watching this: http://www.youtube.com/watch?v=q-6v275Kno4 - is there a better video i cud see for an intro?
02:44 forrest In what sense?
02:44 codepython777 os config management
02:44 forrest I guess I mean in what sense is that video not meeting your needs?
02:44 codepython777 is it up 2 date?
02:45 forrest some of that will be relevant
02:45 forrest but it's pretty old
02:45 forrest let me see if I can find one
02:45 forrest This one is pretty good: http://www.youtube.com/watch?v=yphLKSjnSU8
02:45 forrest still a bit out of date, but the general information is accurate.
02:46 forrest If you have specific questions I can try to answer them.
02:46 codepython777 Can I do this using salt. I want to define versions of machines - say 1.0 -> 2.0 -> 3.0 and so on, where 1.0 has different version of packages compared to 2.0 and 3.0 and so on. Is there a way to move from 1.0 -> 2.0 -> 3.0 -> 2.0 -> 1.0 using salt?
02:47 forrest in regards to packages?
02:47 codepython777 yes
02:48 codepython777 say my webserver has python 2.7 in 1.0, but python 3.3 in 2.0 and python 3.4 in 3.0.
02:48 forrest when you say '2.0' do you mean another server? Or the same server?
02:48 codepython777 same server
02:48 forrest and as far as I am aware, Salt doesn't support Python3 yet.l
02:49 Ryan_Lane joined #salt
02:49 codepython777 That was an example for my server. Say I have a machine config called DBStore - I want to define machine versions based on package versions inside it.
02:50 forrest so you want to match what to install on the server based on the data of an already installed package?
02:50 codepython777 I want to move the server states- where state = versions of packages installed on the OS
02:51 codepython777 So if I have a server X - I want to be able to define versions of the server. Version 1.0 = package 1 version 1.0,  package 2 version 3.x etc. Then for Version 2.0 of my server , I have different package versions etc
02:51 codepython777 And i want to be able to move between versions fast.
02:53 forrest So the pkg state: http://docs.saltstack.com/ref/states/all/salt.states.pkg.html provides the option for versioning, In your case you could create a state like pkg_version_one.sls and pkg_version_two.sls, and specify the versions in there. Then simply apply that state to the server in question. I haven't tried to do that to downgrade a server however, so I don't know how it would handle removing the package and the deps.
02:54 forrest does that answer your question or am I missing something?
02:54 codepython777 I think so
02:55 codepython777 I'm curious how it downgrades without killing the machine at times. For instance if the nginx.conf is for higher version -> to lower version - that will be chaos
02:55 forrest well, an nginx.conf is a bit different than a package
02:56 forrest an nginx.conf would simply be a file.managed: http://docs.saltstack.com/ref/states/all/salt.states.file.html
02:56 codepython777 forrest: My definitiong of package = apt-get install package
02:56 forrest yes that is my definition as well
02:58 codepython777 forrest: can i use salt to create a debian box automatically with certain packages already installed / configured?
02:59 forrest You would need to provide some sort of 'base' server for salt, where you have the salt minion service installed, and then you configure the minion configuration file to point to your master, then accept the keys on the master. From there you can run the configuration.
03:00 codepython777 k
03:00 forrest You could use salt-ssh if you just had a 'base' server to avoid configuring the minion, but it's slower, and has some limitations.
03:01 forrest I'm going to go grab some dinner codepython777, did you have any other questions before I go?
03:02 codepython777 nope, thanks a lot for the help.
03:02 forrest yea np, your best bet really is to just set up a server and play with Salt, it's really easy to get going with.
03:02 codepython777 cool
03:06 pass_by_value joined #salt
03:11 thelorax123 joined #salt
03:13 oz_akan_ joined #salt
03:19 xl1 joined #salt
03:22 smccarthy joined #salt
03:25 elsmorian joined #salt
03:28 baniir joined #salt
03:30 pdayton joined #salt
03:30 noob2 joined #salt
03:31 noob2 hey guys can i get the salt state file to install multiple python pip packages?
03:32 baniir is a command like "iptables --table nat -A POSTROUTING -o eth0 -j MASQUERADE" accomplishable with salt's iptables state
03:35 baniir noob2: http://docs.saltstack.com/ref/states/all/salt.states.pip.html. i think including "- requirements: /path/to/reqs.txt" will
03:35 noob2 hmm ok
03:38 Bram joined #salt
03:40 wilywonka joined #salt
03:44 thelorax123 joined #salt
03:53 junedm joined #salt
03:54 pass_by_value joined #salt
03:55 pdayton joined #salt
03:56 junedm1 joined #salt
03:59 NotreDev joined #salt
03:59 vanderjr joined #salt
04:09 vanderjr I was wundering if any one else was having an issue like this on centOS. Every time I try to start a minion I get " AttributeError: 'pwd.struct_passwd' object has no attribute 'gid' " and a stack trace.
04:12 cachedout joined #salt
04:13 oz_akan_ joined #salt
04:14 cachedout joined #salt
04:14 ckao joined #salt
04:14 pipps joined #salt
04:14 NV vanderjr: yeah, edit the file in question it's crapping out on, replace gid with pw_gid
04:15 NV its fixed in git apparently already
04:15 NV but isn't in 0.17.2
04:30 elsmorian joined #salt
04:32 vanderjr worked thank you
04:35 vanderjr left #salt
04:37 Bram joined #salt
04:46 Rager is there a single command that can be run to apply all the salt states in my top file?
04:46 Rager I'm having a tough time finding this in the dox
04:47 xl1 left #salt
04:51 jimallman joined #salt
04:59 NotreDev joined #salt
05:02 oz_akan_ joined #salt
05:07 JulianGindi joined #salt
05:11 junedm1 left #salt
05:16 forrest Rager, yea state.highstate
05:16 forrest that basically just reads the top file and does what's in there.
05:17 Linz joined #salt
05:18 natewalck joined #salt
05:30 Rager ah, thanks
05:31 elsmorian joined #salt
05:40 cachedout joined #salt
05:43 forrest np[
05:44 malinoff joined #salt
05:47 audreyr joined #salt
05:50 sgviking joined #salt
05:51 NotreDev joined #salt
05:55 pipps joined #salt
05:57 Rager I'm trying to use the "Compound Matcher" syntax to match grains in the top file, but they're not matching anything
05:58 Rager the command "salt -G 'role:rails-server' test.ping" works, but the command "salt 'G@role:rails-server' test.ping" does not
05:58 Rager (I'm testing the patterns on cli"
06:00 malinoff Rager, salt -G 'role:rails-server' test.ping
06:00 Rager I know that one works fine, but you can't use -G in top.sls
06:00 malinoff Rager, salt uses glob matcher by default
06:00 Rager the command "salt -G 'role:rails-server' test.ping" works, but the command "salt 'G@role:rails-server' test.ping" does not
06:00 malinoff 'G@role:rails-server':
06:00 anuvrat joined #salt
06:00 malinoff - match: compound
06:00 Rager ahh
06:00 malinoff - state
06:01 malinoff Rager, http://docs.saltstack.com/ref/states/top.html#other-ways-of-targeting-minions
06:01 Rager drat
06:01 Rager missed the part where you have to set the matching type
06:01 Rager thanks, malinoff
06:01 malinoff lol
06:01 malinoff Np :)
06:02 Rager taking this company from the dark ages of configuring servers one by one by hand
06:02 Rager :D
06:02 malinoff Rager, just like me
06:03 Rager I guess everyone else is already on puppet/chef
06:03 malinoff But I use salt for 5 months already
06:03 oz_akan_ joined #salt
06:03 Rager new projects get to use the new shiny toys
06:07 littleidea joined #salt
06:18 wramthun joined #salt
06:31 littleidea joined #salt
06:32 elsmorian joined #salt
06:36 junedm joined #salt
06:41 junedm joined #salt
06:41 junedm left #salt
07:03 oz_akan_ joined #salt
07:04 rmt joined #salt
07:04 xl1 joined #salt
07:33 elsmorian joined #salt
07:42 junedm1 joined #salt
07:43 lemao joined #salt
07:47 junedm joined #salt
07:53 MohShami joined #salt
07:53 MohShami Forrest: hey mate, just checked, salt doesn't work with ZMQ 4
07:54 MohShami found a way to get zmq 3 and pyzmq to use that version, thanks again for your help :)
08:04 oz_akan_ joined #salt
08:06 abner_ joined #salt
08:08 littleidea joined #salt
08:09 xl1 left #salt
08:13 redondos joined #salt
08:13 junedm1 joined #salt
08:18 junedm joined #salt
08:19 junedm left #salt
08:22 wramthun joined #salt
08:24 redondos joined #salt
08:34 elsmorian joined #salt
08:55 mnemonikk joined #salt
09:07 oz_akan_ joined #salt
09:10 matanya joined #salt
09:34 elsmorian joined #salt
09:44 lemao joined #salt
09:49 Ryan_Lane joined #salt
10:01 ajw0100 joined #salt
10:08 oz_akan_ joined #salt
10:10 bemehow joined #salt
10:15 ajw0100 joined #salt
10:23 abner_ joined #salt
10:24 ajw0100 joined #salt
10:25 linjan joined #salt
10:30 ajw0100 joined #salt
10:35 elsmorian joined #salt
10:38 bemehow joined #salt
10:40 bemehow_ joined #salt
10:52 ajw0100 joined #salt
11:13 anuvrat joined #salt
11:41 diegows joined #salt
11:43 bemehow joined #salt
11:44 lemao joined #salt
11:46 MidGe joined #salt
12:02 abner__ joined #salt
12:06 Sheco joined #salt
12:09 oz_akan_ joined #salt
12:12 elfixit joined #salt
12:15 jeddi joined #salt
12:25 scristian joined #salt
12:36 elsmorian joined #salt
12:48 dranger joined #salt
12:54 mapu joined #salt
12:59 dranger_ joined #salt
13:00 ahale joined #salt
13:09 lemao joined #salt
13:10 oz_akan_ joined #salt
13:35 elfixit joined #salt
13:37 elsmorian joined #salt
13:58 spielberg joined #salt
13:59 sroegner_ joined #salt
14:01 spielberg The json outputter doesn't put commas between results returned from different minions.  This makes it invalid when piping to something that consumes json.
14:01 spielberg salt '*' network.interfaces --out=json | python -c 'import sys; import json; print repr(json.load(sys.stdin))'
14:01 spielberg that fails ^
14:01 spielberg is this a bug?
14:04 _ikke_ No, it's an unexpected lack of a feature ;-)
14:06 spielberg ahh.. apparently you need --static
14:06 spielberg https://github.com/TheRealBill/salt/commit/5cc8142d2a98fcd4467b648e31c1af89a6eef391
14:07 _ikke_ ok
14:10 littleidea joined #salt
14:21 Furao joined #salt
14:29 wilywonka joined #salt
14:32 cachedout joined #salt
14:38 elsmorian joined #salt
14:45 anuvrat joined #salt
15:07 noob21 joined #salt
15:09 techdragon joined #salt
15:11 oz_akan_ joined #salt
15:14 berto- joined #salt
15:15 jslatts joined #salt
15:24 jsm joined #salt
15:38 elsmorian joined #salt
15:39 baniir joined #salt
15:55 jimallman joined #salt
16:01 smccarthy joined #salt
16:01 wilywonka joined #salt
16:07 cnelsonsic joined #salt
16:11 lineman60 joined #salt
16:12 oz_akan_ joined #salt
16:14 junedm1 joined #salt
16:15 whyzgeek joined #salt
16:17 Jahkeup left #salt
16:17 Furao joined #salt
16:19 audreyr joined #salt
16:19 junedm joined #salt
16:22 junedm left #salt
16:25 littleidea joined #salt
16:28 Jahkeup joined #salt
16:30 techdragon joined #salt
16:34 redondos joined #salt
16:34 redondos joined #salt
16:34 tdillio joined #salt
16:34 redondos joined #salt
16:35 Nazca__ joined #salt
16:37 pipps joined #salt
16:39 elsmorian joined #salt
16:52 redondos joined #salt
16:54 gldnspud joined #salt
17:02 StDiluted joined #salt
17:04 redondos joined #salt
17:04 ajw0100 joined #salt
17:05 pdayton joined #salt
17:08 pipps_ joined #salt
17:10 pipps__ joined #salt
17:12 jkleckner joined #salt
17:12 pipps___ joined #salt
17:13 oz_akan_ joined #salt
17:20 Linz joined #salt
17:23 pipps_ joined #salt
17:24 pipps__ joined #salt
17:40 elsmorian joined #salt
17:42 matanya joined #salt
17:47 esogas_ joined #salt
17:47 matanya joined #salt
17:52 littleidea joined #salt
17:54 redondos joined #salt
17:56 markm joined #salt
17:56 baniir joined #salt
17:57 markm_ joined #salt
18:07 matanya joined #salt
18:08 abner__ joined #salt
18:13 oz_akan_ joined #salt
18:15 smccarthy joined #salt
18:16 redondos joined #salt
18:16 smccarthy2 joined #salt
18:20 redondos joined #salt
18:20 redondos joined #salt
18:21 mgw joined #salt
18:25 jjasinski_ joined #salt
18:25 pipps_ joined #salt
18:29 matanya_ joined #salt
18:32 jjasinski_ HI all, I'm using salt 0.17 on both client and server. My top.sls looks like http://hastebin.com/suhuqipiva.django where the - common line calls a state to install apt requirements such as python-virtualenv and python-pip.  Then - site actually makes use of those requirements, by creating a virtualenv.  However, when I run the state.highstate, I get CommandNotFoundError exceptions for pip and virtualenv.
18:33 jjasinski_ My thought was salt 0.17 now maintains order, so it executes the states as they are specified.
18:33 jjasinski_ However, it seems like the sates in 'site' are being called before the 'common' states finish
18:34 jjasinski_ Does the implicit ordering not apply to the top.sls file?
18:35 jjasinski_ Or am I somehow misunderstanding how the new implicit ordering works ?
18:37 jjasinski_ To clarify, by implicit ordering, I'm referring to the new "State Auto Order" feature, to be precise.
18:40 elsmorian joined #salt
18:43 kamal_ What would be the best way to spin up a vm using salt-cloud while having a firewall set up on the master? Basically, I'm trying to figure out if there's some way to add the new VM's IP address to the master's firewall
18:51 Katafalkas joined #salt
18:52 thelorax123 joined #salt
18:54 redondos joined #salt
19:02 cedwards joined #salt
19:04 ajw0100 joined #salt
19:08 Katafalkas joined #salt
19:11 jjasinski_ can I use the following to require my packages?  Or does pkg: require an apt package name?
19:11 jjasinski_ - require:
19:11 jjasinski_ - pkg: common.requirements.packages
19:14 oz_akan_ joined #salt
19:17 jimallman joined #salt
19:25 viq jjasinski_: no, it requires a state name, it will actually not work with just package names
19:25 Ixan joined #salt
19:25 Ixan_ joined #salt
19:27 cachedout joined #salt
19:27 Ixan_ left #salt
19:37 pipps_ joined #salt
19:42 elfixit joined #salt
19:44 fragamus joined #salt
19:46 pdayton joined #salt
19:56 bemehow joined #salt
19:57 MTecknology jjasinski_: If you have pillar data, you could easily template it, but that looks like it's stuff you want right in the state
19:59 Bram__ joined #salt
20:00 pdayton joined #salt
20:05 mgw joined #salt
20:05 dvogt joined #salt
20:13 MTecknology I'm nowhere near intimate enough with my salt server at home. I don't directly manage any servers, but I don't have enough neat things I want to do. :(
20:15 oz_akan_ joined #salt
20:15 jcockhren MTecknology: you can can VPSs cheap these days
20:15 jcockhren MTecknology: https://www.digitalocean.com/pricing
20:15 redondos joined #salt
20:16 jcockhren Make many many VPSs
20:17 pdayton joined #salt
20:18 MTecknology jcockhren: I'm using DO for my one public server. I have 5 servers at home that are 100% managed by salt. If I ssh in to the actual server, it's to use its functions such as restoring something from my backup server.
20:18 jcockhren word
20:19 jcockhren I'm waiting for salt-cloud to be fully merged. then everything will be slick for us
20:19 MTecknology I just ran out of creativity. I have a server for software development and debian packaging, virtual host, backup server, my salt master, that's it
20:19 MTecknology what else do I want? :(
20:19 jcockhren log management
20:19 jcockhren ;)
20:20 jcockhren fluent+elasticsearch+kibana3
20:20 jcockhren doooo it
20:20 bemehow joined #salt
20:20 MTecknology oooh! yes...
20:20 MTecknology but why not just use rsyslog?
20:21 jcockhren fluent and logstash can use syslog as sources
20:21 jcockhren elasticsearch makes your logs searchable
20:21 MTecknology oh..
20:21 jcockhren kibana3 allows elasticsearch based custom dashboards
20:22 jcockhren http://demo.kibana.org
20:22 MTecknology deploying 100% of that with salt sounds neat
20:22 jcockhren play with it
20:22 jcockhren so far, I have salt using the syslog returner and having it appear in kibana
20:22 MTecknology how well does it scale? Say.... 1,000 log entries per second?
20:23 MTecknology ON the logging server at work we have at least that much coming in
20:25 jcockhren elasticsearch can scale
20:25 kamal_ hmm
20:26 kamal_ how would I go about having multiple iptables.append decs? I doubted that this would work (and it didn't): https://p.kk7.me/wuluxiboxa.yml
20:26 jcockhren most use cases use elasticsearch 'clusters'
20:27 MTecknology McAfee has a rather neat (insane) tool for logs. Once set up, you can have it do alerting based on out of norm stuff. Like... Gynecologist looks up a male record, not normal. Looks up multiple male records, much more not normal. Uploads a record to a server, not normal. You put a weight on each event and when the total weight is too high, an alert happens.
20:30 jcockhren hmm
20:38 MTecknology jcockhren: so... logging server! What else?
20:39 jcockhren continuing integration
20:39 jcockhren continuous*
20:39 jcockhren there's jenkins, but I use gitlab-ci
20:40 jcockhren ldap server
20:40 jcockhren but b/c auth
20:40 jcockhren ;)
20:42 MTecknology jenkins means java.. screw that
20:42 jcockhren haha
20:43 MTecknology I don't really want ldap... After dealing with it enough at work, screw that.
20:43 jcockhren haha
20:43 abner__ joined #salt
20:45 MTecknology holy shit... For a minute I thought I'd just accidentally deleted my computer
20:46 jcockhren your entire computer? playing with 'rm -rf /" eh?
20:46 bemehow joined #salt
20:48 MTecknology jcockhren: playing with rm -rf /opt/chroot/wheezy and forgot to unmount /opt/chroot/wheezy/dev and /opt/chroot/wheezy/proc first
20:52 Linz joined #salt
20:53 mgw joined #salt
21:06 isomorphic joined #salt
21:09 Katafalkas joined #salt
21:11 Linz joined #salt
21:14 thelorax123 joined #salt
21:16 oz_akan_ joined #salt
21:19 kompot joined #salt
21:25 thelorax123 joined #salt
21:42 pipps_ joined #salt
21:46 Linz_ joined #salt
21:51 jslusher joined #salt
21:56 mgw joined #salt
22:08 Katafalkas joined #salt
22:17 oz_akan_ joined #salt
22:22 elements joined #salt
22:24 cewood joined #salt
22:24 cewood joined #salt
22:28 mafrosis joined #salt
22:55 noob21 left #salt
22:55 ajw0100 joined #salt
22:56 matanya joined #salt
22:59 bemehow joined #salt
23:00 xmltok joined #salt
23:12 pipps_ joined #salt
23:16 fivethre1o joined #salt
23:17 oz_akan_ joined #salt
23:27 Damoun joined #salt
23:28 fragamus joined #salt
23:30 pipps__ joined #salt
23:34 mgw joined #salt
23:39 bemehow joined #salt
23:46 audreyr joined #salt

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