Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-07-12

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

All times shown according to UTC.

Time Nick Message
00:00 auser why is everyone so happy in here
00:00 UtahDave :)
00:01 auser heh
00:01 jacksontj joined #salt
00:03 UtahDave auser: did you make it out to that devops meetup last night in SF?
00:04 auser no! I missed it :/
00:04 auser was it awesome?
00:06 UtahDave Yeah, he said it was great.  Something like 200 people were there.
00:08 auser damn! That's so unfortunate
00:08 auser I didn't know about it and anyway, I couldn't attend
00:08 auser that's super rad
00:08 auser I want to know what the biggest questions are
00:08 auser oh and who is *he*
00:12 auser UtahDave:
00:13 UtahDave :)  Oh, sorry.
00:13 UtahDave Tom
00:13 UtahDave Tom flew down to speak at the meetup.   I didn't realize I had left his name out.  :)
00:15 auser ah
00:15 auser totally rad
00:15 auser I wish I would have known...
00:15 auser bummer
00:16 UtahDave dang. I need to start advertising these things
00:16 auser yeah
00:16 auser I would have loved to go
00:16 UtahDave Well, time to head out to Utah Python meeting.
00:17 auser okay
00:17 auser enjoy
00:17 auser can I ask a quick favor?
00:17 auser mind asking people what they want more tutorials on?
00:17 UtahDave as far as salt?
00:17 auser yep
00:18 auser I will be writing a separate of environments
00:18 auser on*
00:18 auser regardless, it'd be great to fill more of the backlog of articles
00:18 jY anyone see any issues with salt-minions not returning a command but they fork out and just stay running
00:19 UtahDave cool man
00:20 KyleG UtahDave: Do you know if any of the guys from Hulu idle/hang out in this IRC chan?
00:20 UtahDave jY: what version of salt?
00:20 UtahDave KyleG: I don't, actually.  Want me to get some contact info for you?
00:20 jY 0.15.3
00:20 jaequery joined #salt
00:21 KyleG UtahDave: Nah, I just emailed them, was just wondering because IRC is faster :P No big deal
00:21 UtahDave jY: I'm not sure. I haven't heard of that happening. Can you test on 0.16.0?
00:21 jY UtahDave: sure
00:26 Jahkeup__ joined #salt
00:34 dahunter3 joined #salt
00:39 napperjabber joined #salt
00:46 Tim__ joined #salt
00:46 jschadlick left #salt
00:49 mgw joined #salt
00:53 Gwayne joined #salt
01:01 Newt[cz] joined #salt
01:06 teskew1 joined #salt
01:07 kleinishere joined #salt
01:26 jaequery joined #salt
01:31 liuyq joined #salt
01:36 bluemoon joined #salt
01:44 liuyq joined #salt
01:45 liuyq joined #salt
01:45 napperjabber joined #salt
01:59 Jahkeup_ joined #salt
02:07 jimallman joined #salt
02:08 benkay joined #salt
02:10 jeffrubic joined #salt
02:12 benkay how would I go about referencing nested data in a pillar from a template?
02:13 benkay er, let me pastie really quickly...
02:13 nrub joined #salt
02:14 jetblack joined #salt
02:17 benkay here we go: http://paste.lisp.org/display/138018
02:18 benkay i am trying to iterate over an array of sites
02:19 benkay the error I receive is 'str object' has no attribute 'server_name'
02:42 jbunting joined #salt
02:42 jacksontj since you aren't doing an iteritems on the "for" loop then you are actually looping over the keys in the dict
02:43 jacksontj benkay: ^
02:43 jacksontj you want something like for site, site_dict in pillar['nginx']['vhosts'].iteritems()
02:43 jacksontj or you want to use the variable "vhost" as the key in the larger pillar object
02:46 racooper joined #salt
02:52 * LarsN_ is registered as a virtual participant  of the Great Salt Sprint
02:53 jbunting1 joined #salt
02:56 carmony joined #salt
02:57 jaequery joined #salt
03:01 whit joined #salt
03:03 jalbretsen joined #salt
03:05 TOoSmOotH joined #salt
03:05 TOoSmOotH evening
03:05 TOoSmOotH Does salt have something like facter in puppet?
03:06 mgw TOoSmOotH: facter is local 'facts', right?
03:06 mgw if so, Salt has 'grains'
03:06 TOoSmOotH yea like info about the host
03:06 TOoSmOotH ahh ok
03:06 TOoSmOotH I have not used salt before so I am looking into it
03:07 TOoSmOotH I assume you can create custom "grains" as well?
03:07 syngin yep
03:07 TOoSmOotH cool
03:07 syngin each minion can have a grins.conf which is KVP-based gear.
03:07 syngin grains.conf even
03:09 syngin mgw: a salt grain can be a list too, right?
03:09 syngin like roles:\n\t- one\n\t- two...
03:09 mgw syngin: yes
03:09 syngin i really should try that...
03:09 syngin thanks
03:10 mgw You can define custom grains in /etc/salt/minion
03:10 mgw Or you can push them using the grains.setval cmd
03:10 mgw And, of course, there are the 'core' grains
03:11 mgw You can also write grains modules to discover grains minion side
03:11 syngin so, if I use the salt command to set grains, the grains will be saved in grains.conf?
03:11 TOoSmOotH yea in puppet we use mostly the built in facts
03:11 TOoSmOotH but we do have some custom facts as well
03:11 syngin at the moment I send my grains up as managed files.
03:11 mgw syngin, yes, they'll be saved
03:11 syngin dang.
03:11 syngin is there a state module for grain control?
03:12 mgw checking
03:12 syngin yep
03:12 syngin damn.
03:12 syngin i feel so foolish
03:12 mgw syngin: http://docs.saltstack.com/ref/states/all/salt.states.grains.html
03:13 syngin i think the doco for state levels is too light - i can't figure that stuff out yet.
03:13 syngin maybe i need more devops exposure.
03:14 mgw There needs to be a "Getting Started with Salt" book.
03:14 mgw It's a really big project.
03:14 syngin time to move my grain data out of file.managed...
03:14 syngin It's huge.
03:14 syngin And so cool.
03:14 syngin The architecture is what got me.
03:14 syngin Love ZMQ.
03:15 mgw Yeah, it's pretty awesome
03:25 cnelsonsic joined #salt
03:28 Ryan_Lane joined #salt
03:34 jdenning joined #salt
03:40 cnelsonsic joined #salt
03:50 cnelsonsic joined #salt
04:03 cnelsonsic joined #salt
04:19 __number5__ any one has a AWS S3 policy templates/states I can borrow/steal? ;)
04:35 druonysus joined #salt
04:35 druonysus joined #salt
04:42 kolaman joined #salt
04:55 linjan_ joined #salt
05:00 oz_akan_ joined #salt
05:04 kstaken joined #salt
05:14 ollins joined #salt
05:21 kolaman joined #salt
05:24 jalbretsen joined #salt
05:27 abele joined #salt
05:29 agend joined #salt
05:34 abele joined #salt
05:35 abele joined #salt
05:35 abele joined #salt
05:38 pentabular1 joined #salt
05:41 Furao joined #salt
05:51 middleman_ joined #salt
05:54 knightsamar joined #salt
05:54 Furao is there a way to make a state a execute at the ends of the highstate execution?
05:57 Furao I'm sure I heard UtahDave talk about this
05:59 az87c joined #salt
05:59 az87c_ joined #salt
06:03 cybermiron joined #salt
06:04 Furao oh my, I didn't catch up with most of new features of the past year
06:08 Furao http://docs.saltstack.com/ref/states/ordering.html#the-order-option
06:08 Furao yay
06:29 Jahkeup_ joined #salt
06:31 carlos joined #salt
06:46 Newt[cz] joined #salt
06:50 TOoSmOotH joined #salt
06:56 jY on ubuntu 10.04 servers running 0.16.0 I'm getting forks for minion each minute which is my highstate runtime for the minions
06:56 jY http://pastebin.com/RTDNVqWt
07:00 joehh joined #salt
07:06 Furao 0.16 subprocess are broken on lucid
07:06 Furao I ends with a lot of apt-get zombie process
07:06 Furao I gave up and upgraded to 0.15.3
07:10 druonysus joined #salt
07:10 druonysus joined #salt
07:16 scott_w joined #salt
07:21 bluemoon joined #salt
07:27 kstaken joined #salt
07:32 bluemoon joined #salt
07:33 balboah joined #salt
07:36 kallek joined #salt
07:38 Kamal joined #salt
07:38 opapo joined #salt
07:38 clone1018 joined #salt
07:38 fxdgear_ joined #salt
07:40 tamentis joined #salt
07:40 rizumu joined #salt
07:40 jeblair joined #salt
07:42 kolaman joined #salt
07:42 MK_FG joined #salt
07:43 zloidemon joined #salt
07:43 djinni` joined #salt
07:43 joonas joined #salt
07:43 yota joined #salt
07:45 bluemoon joined #salt
07:45 jhauser joined #salt
07:45 isomorphic joined #salt
07:46 qba73 joined #salt
07:47 kstaken joined #salt
07:56 unicoletti_ joined #salt
07:59 kadel joined #salt
08:01 kolaman joined #salt
08:07 felixhummel joined #salt
08:18 flurick Furao: is that only lucid or other versions to?
08:33 bemehow joined #salt
08:44 echos joined #salt
08:44 faulkner joined #salt
08:45 basepi joined #salt
08:45 steveoliver joined #salt
08:46 monokrome joined #salt
08:46 Xeago_ joined #salt
08:50 KFDM joined #salt
09:03 zooz joined #salt
09:24 Furao flurick: worst on lucid
09:24 flurick ah
09:30 Jahkeup_ joined #salt
09:36 bluemoon joined #salt
09:39 gmoro_ hi all, is salt stable enough to a production system? I did not find any info on the site regarding stability and how much work I should expect over each module
09:40 Eugene I run it in production. Works great.
09:40 tonthon gmoro_: I use salt in production since salt 0.8 and it works fine
09:41 gmoro_ good :)
09:41 giantlock joined #salt
09:41 gmoro_ I'm trying to assess the usability of salt, but kind of worried because is a High Availability cluster
09:41 gmoro_ we use currently puppet
09:42 gmoro_ but puppet is not so flexible and make some parts of the code to be quite hard to maintain
09:42 gmoro_ Eugene, tonthon thanks for the info
09:53 emilisto_ what's the easiest way to access Pillar data in rendered temlates?
09:53 emilisto_ rendered files that is
09:54 emilisto thinking of making a macro so I can do {% pillar('some-key') %}, but this should've been solved already I assume?
09:54 jaequery joined #salt
09:56 Eugene I pass the data needed by the jinja template via defaults/context in the statefile
09:56 Eugene Using jinja logic on the pillar['key'] as needed
09:58 emilisto hmm, thing is I have ~20 variables I want to pass, and it seems tedious to pass them all along, and then specify them in the template, but maybe it's good to be explicit
09:58 emilisto https://github.com/uggedal/states/blob/master/nginx/nginx.conf.jinja
09:58 Eugene You can do tricks with for loops
09:58 emilisto I can't seem to do that, using pillar.get() in a file
09:59 emilisto okay, I can do a for loop withhin the context-argument?
09:59 Eugene Sure.
10:00 emilisto thanks, I'll try that
10:02 jrgifford joined #salt
10:11 Xeago_ joined #salt
10:12 Furao_ joined #salt
10:12 nrub_ joined #salt
10:13 lemao joined #salt
10:19 djinni` joined #salt
10:22 efixit joined #salt
10:25 erasmas joined #salt
10:25 david_a joined #salt
10:25 tonthon Hi, I'm encountering some problems with reactor sls files
10:26 tonthon I use : - tgt: "{{ data['id'] }}"
10:26 tonthon and I get an error : 'dict object' has no attribute 'id'
10:26 tonthon as you can see I'm not accessing an attribute but a key
10:41 zooz hey people
10:41 zooz how can I see which minions are not responding?
10:42 timl0101 joined #salt
10:42 zooz I cannot recall the command
10:42 Furao zooz: test.ping
10:42 zooz there is another way
10:42 zooz with salt util or something
10:43 zooz it actually shows minions which are dead
10:50 tonthon zooz: http://docs.saltstack.com/ref/runners/all/salt.runners.manage.html#salt.runners.manage.up
10:50 tonthon maybe this one ?
10:50 MrTango joined #salt
10:52 zooz hm does not look like
10:52 zooz is it possible to call that via salt command line/
10:52 zooz ?
10:52 tonthon salt-run manage.down
10:53 tonthon salt-run manage.up
10:53 zooz here we go
10:53 zooz that's the one
10:54 zooz thanks a lot
10:54 tonthon you're welcome
10:55 zooz do any of you run salt and puppet together?
10:57 zooz more specifically I am interested if there is a way to do node selection based on puppet facter facts
10:58 zooz had a look at the grains code, it seems to be fairly easy to write a support for puppet facter facts
10:59 jerkbot1 joined #salt
11:17 jslatts joined #salt
11:22 goughy joined #salt
11:23 jbunting joined #salt
11:25 jslatts joined #salt
11:31 Jahkeup_ joined #salt
11:37 Xeago_ joined #salt
11:39 Jahkeup_ joined #salt
11:39 bemehow joined #salt
11:49 napperjabber joined #salt
11:57 blee joined #salt
11:59 Xeago_ joined #salt
12:00 toastedpenguin joined #salt
12:18 teskew1 joined #salt
12:20 emocakes joined #salt
12:21 bemehow_ joined #salt
12:22 az87c joined #salt
12:29 SpX joined #salt
12:34 Kholloway joined #salt
12:42 napperjabber joined #salt
12:49 bemehow joined #salt
12:49 [diecast] joined #salt
12:51 diegows_ joined #salt
12:57 juicer2 joined #salt
12:59 efixit joined #salt
13:04 blee joined #salt
13:08 oz_akan_ joined #salt
13:08 Gifflen joined #salt
13:09 dteselkin joined #salt
13:13 tonthon Is there a way to require a whole sls files' states ?
13:14 oz_akan_ joined #salt
13:15 timoguin_work joined #salt
13:15 tonthon maybe through the top file ?
13:17 dteselkin Hi all.
13:17 dteselkin What result salt-agent returns if the node restarts during command execution? Will it return the result before or after restart?
13:18 timl0101 joined #salt
13:21 efixit joined #salt
13:25 napperjabber joined #salt
13:27 jslatts joined #salt
13:29 Xeago_ joined #salt
13:29 Jahkeup_ joined #salt
13:30 racooper joined #salt
13:31 emilisto akoumjian: I'm trying to use salt.pillar in salty-vagrant, but it has absolutely zero effect, is it deprecated or something?
13:32 emilisto https://gist.github.com/emilisto/ff68f5d19e69200216cb
13:35 unicoletti_ joined #salt
13:37 cron0 joined #salt
13:40 Jahkeup__ joined #salt
13:40 santagada_ joined #salt
13:40 fmedery joined #salt
13:44 bastion2202 joined #salt
13:45 brianhicks joined #salt
13:52 bfrog joined #salt
13:52 bfrog hi, so in my release process I need to stop a service, do a bunch of work, then start it again
13:52 bfrog is there some common method for doing that
13:52 bfrog a chain of watches?
13:57 unicoletti bfrog: http://salt.readthedocs.org/en/latest/topics/releases/0.16.0.html#prereq-the-new-requisite
13:58 aberant joined #salt
13:58 anteaya joined #salt
13:58 teskew joined #salt
14:01 linjan__ joined #salt
14:04 Gifflen Question. If I wanted to install all ssh-keys in a directory without hardcoding each specific one into my salt config does anyone have an Idea on how to do it?
14:05 Gifflen I was looking at using a for look but couldn't find a way of iterating across files
14:13 Koma joined #salt
14:15 m_george|away joined #salt
14:15 bfrog unicoletti: honestly, the requires/watches are giving me nightmares, makes me want to just throw my hands in the air and use a shell script since I know the order of things
14:16 unicoletti then just user the order directive and give a first and last
14:16 unicoletti but I strongly recommend against and just go with require/watches
14:17 rbstewart joined #salt
14:17 bfrog unicoletti: I've been doing that for the last week
14:17 bfrog everytime I think I'm done, some other little thing comes up, usually due to a missing require/watch
14:18 unicoletti which? going with require or using order?
14:18 bfrog which just agitates me
14:18 jbunting joined #salt
14:18 unicoletti ah, require
14:19 bfrog might have to just put salt aside for awhile honestly, have real development work to do
14:19 bfrog anyways, thanks for the suggestion of prereq
14:19 bfrog left #salt
14:24 pentabular joined #salt
14:24 erasmas joined #salt
14:26 timl0101 joined #salt
14:28 koolhead17 joined #salt
14:30 anteaya joined #salt
14:31 zooz joined #salt
14:39 dzen can I write pillar in python ?
14:40 dzen #!py
14:40 dzen seems :)
14:44 Newt[cz] joined #salt
14:44 jalbretsen joined #salt
14:44 cnelsonsic joined #salt
14:45 stard0g101 joined #salt
14:46 kho joined #salt
14:49 napperjabber joined #salt
14:51 tonthon for command line I write custom modules, for states, custom states, but for reactor callbacks, how can I write custom code ?
14:51 dzen what is reactor callbacks ?
14:56 akoumjian emilisto: Looks to me like you've got a typo. Your hash is ending with )} and it should be })
14:56 koolhead17 joined #salt
14:56 koolhead17 joined #salt
14:57 aat joined #salt
14:58 StDiluted joined #salt
14:58 akoumjian emilisto: Keep in mind that the pillar data used in your vagrantfile is only executed during the automated highstate command. The salt.pillar is a good option to experiment with, but I would eventually put everything in a real pillar_root, and share that folder with the vm at /srv/pillar/
14:59 [diecast] joined #salt
14:59 [diecast] joined #salt
15:00 Newt[cz] joined #salt
15:02 krissaxton joined #salt
15:02 jslatts joined #salt
15:03 blee_ joined #salt
15:03 bostonian joined #salt
15:04 bostonian Is there any salt state that copies an entire directory from the salt master to the minions? (I know I can do it with `salt '*' cp.get_dir`, but I'm trying to do it in a state file)
15:05 [diecast] file.recurse? with source://
15:05 [diecast] source: salt://dir - i meant
15:07 bostonian [diecast]: ah ha! that's how to do it. thanks
15:07 [diecast] np
15:12 unicoletti left #salt
15:15 necronian_ joined #salt
15:17 krissaxton left #salt
15:18 p3rror joined #salt
15:19 jaequery joined #salt
15:20 kleinishere joined #salt
15:22 spudbook joined #salt
15:22 raydeo joined #salt
15:24 jkleckner joined #salt
15:24 Jahkeup_ joined #salt
15:25 oldhack joined #salt
15:27 pentabular joined #salt
15:27 conan_the_destro joined #salt
15:29 stard0g101 left #salt
15:30 jschadlick joined #salt
15:37 jeddi joined #salt
15:38 fxhp http://russell.ballestrini.net/configuration-management-vs-remote-execution/
15:38 KennethWilke joined #salt
15:39 ruimarinho joined #salt
15:40 aberant joined #salt
15:42 SirScott left #salt
15:43 dahunter3 joined #salt
15:47 timoguin_work joined #salt
15:51 StDiluted morning all
15:52 andrew joined #salt
15:53 nrub joined #salt
15:55 anteaya joined #salt
15:58 Jahkeup_ joined #salt
16:00 lorimar joined #salt
16:01 jeddi2 joined #salt
16:01 lorimar hi all. i'm pretty new to salt. I've got a couple salt-minions up and running. Now, I'm trying to have a managed conf file where 2x lines of the conf file get automatically adjusted to include the FQDN of the salt-minion that they are going to. Think I Must be doing something wrong though.
16:03 lorimar here is the relevant section of both my sls file and the conf file itself: http://pastebin.com/rBvx97eq
16:03 dzen IOError: [Errno 13] Permission denied: '/srv/salt/debian/'
16:03 dzen :(
16:03 fxhp lorimar: jinja template + grains['fqdn']
16:03 dzen the verbose mode said "file not found"
16:03 fxhp dzen: permissions?
16:03 dzen yup
16:04 fxhp dzen: you running salt as root?
16:04 dzen nope
16:04 lorimar fxhp: i'm confused. isn't that what I'm doing?
16:04 fxhp dzen: then the user needs to have access to that dir
16:04 dzen yup, I know that, just the verbose text if not exactly what's appened
16:05 dzen Comment:   Source file salt://debian/debian not found
16:05 fxhp lorimar: are you getting an error?
16:06 lorimar fxhp: no. I get: File /etc/defaults/slapd is in the correct state
16:06 fxhp lorimar: and is it?
16:06 lorimar but on the salt client, I don't have an /etc/defaults/slapd file at all
16:07 dzen fxhp: just a question. How can I make salt use a rest API to know what to configure ? using pillars ?
16:07 lorimar fxhp: nevermind. had a typo. was supposed to be /etc/default/slapd not /etc/defaults/slapd
16:07 lorimar entirely my own stupidity
16:07 fxhp dzen: not sure what you mean, pillar allows you to describe your infra data
16:08 jacksontj joined #salt
16:08 fxhp dzen: and serve proper data only to proper guests, which could be used to parameterize salt formulas
16:08 UtahDave joined #salt
16:08 dzen mh okay
16:08 fxhp right
16:09 fxhp I was going to ask you to 'ls /etc/defaults/slapd'
16:09 dzen so, the "role" of a minion is being defined in a database
16:09 dzen how can salt can query it ?
16:09 dzen (maybe it's more simple)
16:09 jacksontj_ joined #salt
16:09 fxhp dzen: neat so you have a few options, I have not tried them but you can create an external pillar
16:09 fxhp dzen: to fetch data from a DB
16:10 dzen yup, http://docs.saltstack.com/topics/development/external_pillars.html
16:10 fxhp dzen: at some point I want to write an external pillar for DNS
16:11 napperjabber joined #salt
16:11 dzen can you explain why ?
16:11 fxhp dzen: no reason to reinvent the wheel, just want the data in pillar so I can use it
16:11 fxhp :
16:11 dzen I think I understaind
16:12 teskew joined #salt
16:12 Nic joined #salt
16:13 dthorman joined #salt
16:17 oz_akan_ joined #salt
16:23 jaequery joined #salt
16:26 KyleG joined #salt
16:27 StDiluted dzen: what's your environment?
16:27 mikedawson joined #salt
16:27 dzen StDiluted: you mean, which Os ?
16:28 StDiluted no, are you running locally, or cloud based, etc
16:28 Nic left #salt
16:28 dzen the provisionning of the configuration requires some informations from a database
16:28 dzen it' not cloud based
16:29 dzen first problem: how to fetch external informations. the "protocol" is not defined for the moment
16:29 UtahDave dzen: you'll want to use an external pillar
16:29 StDiluted what I did for role definition
16:30 StDiluted was to write a grain
16:30 StDiluted but that means each minion has to have access to the data source
16:30 dzen UtahDave: yup, as fxhp said
16:30 StDiluted since the grain runs on the minion
16:30 dzen StDiluted: I don't want that :)
16:30 StDiluted understood
16:30 dzen UtahDave: is there some external pillar exemple ?
16:31 UtahDave http://docs.saltstack.com/topics/development/external_pillars.html
16:31 UtahDave dzen: that's a great doc on writing your own.
16:31 UtahDave Also, I'd look at the existing pillars.  It's actually pretty simple to do.
16:31 dzen I read it
16:33 mgw joined #salt
16:35 fxhp dzen: which DB do you use?
16:35 dzen fxhp: it was for the example, I won't let salt use a direct connection to a database
16:36 fxhp I see
16:37 fxhp dzen: Then maybe run a run a job that transforms the existing database data into YAML
16:37 fxhp and place it into pillar directory
16:37 dzen this is a quick hack
16:37 fxhp %s/run a run a/run a/g
16:41 LyndsySimon joined #salt
16:42 chuffpdx joined #salt
16:42 ek6 joined #salt
16:42 Jahkeup__ joined #salt
16:44 TheSojourner joined #salt
16:44 TheSojourner joined #salt
16:45 kstaken joined #salt
16:49 robins joined #salt
16:51 KFDM joined #salt
16:51 mollerstrand joined #salt
16:51 quantumsummers|c joined #salt
16:51 quantumsummers|c joined #salt
16:54 Laptech joined #salt
16:55 Laptech Hi
16:55 juicer2 joined #salt
16:56 sw_ joined #salt
16:56 Ixan joined #salt
16:56 Laptech I would like to know how I can use information got from a minion to set parameter to another minion
16:57 Laptech Reading the doc let me guess that I should use overstate
16:57 goughy joined #salt
16:57 Laptech but I can't figure out how to reference a data got from one environment to another
16:57 monokrome joined #salt
16:58 up_the_irons joined #salt
16:58 morganfainberg joined #salt
16:58 [vaelen] joined #salt
16:58 erasmas joined #salt
16:58 echos joined #salt
16:58 UtahDave Laptech: for getting the info from a minion immediately you can use the peer interface (publish.publish)   If it can be a little stale, you can try the Salt Mine
16:59 Gifflen_ joined #salt
17:00 druonysus joined #salt
17:00 druonysus joined #salt
17:01 basepi_ joined #salt
17:02 steveoliver_ joined #salt
17:02 fxdgear_ joined #salt
17:02 juicer21 joined #salt
17:03 steveoliver_ left #salt
17:03 dahunter3_ joined #salt
17:03 Laptech Thanks UtahDave, I have a look at salt mine
17:04 jetblack_ joined #salt
17:04 bluemoon joined #salt
17:05 Laptech So the overstate allows only to orchestrate but not to exchange data from minions. Is that correct ?
17:05 yota joined #salt
17:05 [diecast] joined #salt
17:05 td_ joined #salt
17:06 td_ Hi. How do I make a highstate "dry run" ?
17:06 pentabular td_ add test=True
17:07 oz_akan_ joined #salt
17:08 td_ salt my.host state.highstate test=True
17:08 fxhp wearing my getsalted shirt today
17:08 td_ pentabular: thanks
17:09 isomorphic joined #salt
17:10 UtahDave fxhp: woot!
17:10 * fxhp nods
17:10 UtahDave morning, pentabular!
17:10 logix812 joined #salt
17:12 pentabular :)
17:12 jdenning joined #salt
17:19 jacksontj joined #salt
17:21 Laptech left #salt
17:23 Newt[cz] joined #salt
17:26 bluemoon joined #salt
17:27 aat joined #salt
17:33 andrew left #salt
17:33 andrew joined #salt
17:35 bostonian joined #salt
17:36 Newt[cz]1 joined #salt
17:36 bostonian For some reason, the 'unless' condition (`test -d /var/www/wordpress`) on my cmd salt state isn't working... code: http://pastebin.com/VZLuU4KN
17:36 bostonian I'm trying to write a cmd to download & unzip wordpress as long as it doesn't already exist
17:38 nrub joined #salt
17:43 jslatts joined #salt
17:50 jeddi joined #salt
17:51 aberant joined #salt
17:55 jesusaurus question: is there a way to tell salt to just compile state data for a list of hosts? maybe some hack using renderers and returners to display what a state would look like after jinja processing?
17:56 jesusaurus but without actually running the state on the minion
17:58 jeddi joined #salt
17:58 Ryan_Lane joined #salt
18:00 racooper state.highstate test=True ?
18:00 brianhicks joined #salt
18:01 jesusaurus that will give the state data, but i want to see what the actual output of the jinja compilation is
18:01 dthom91 joined #salt
18:01 cedwards jesusaurus: state.lowstate ?
18:03 jesusaurus again, that will show the state data, but not the intermediary step of what jinja is producing. I just want to run jinja on a state file and see what the output file is
18:04 pt|Zool joined #salt
18:05 pt|Zool re
18:08 UForgotten joined #salt
18:14 bluemoon joined #salt
18:15 m_george left #salt
18:15 kermit joined #salt
18:16 Xeago joined #salt
18:16 ipmb joined #salt
18:38 pentabular joined #salt
18:40 hebz0rl joined #salt
18:42 bemehow joined #salt
18:46 Politoed joined #salt
18:47 krissaxton joined #salt
18:54 Koma joined #salt
18:55 jslatts joined #salt
18:57 m_george joined #salt
18:58 ydavid joined #salt
19:05 mikedawson joined #salt
19:13 UtahDave jesusaurus: salt '<minion>' state.show_sls
19:23 * blee_ stifles giggle, jesusaurus.... hehehehe
19:23 axisys joined #salt
19:23 dzen pillars are minion side or master side ?
19:24 dzen I mean, executed
19:26 UtahDave dzen: pillars are always executed master side
19:27 dthom91 joined #salt
19:28 mikedawson_ joined #salt
19:28 KennethWilke joined #salt
19:28 dzen <3
19:29 dzen thx UtahDave :)
19:29 tpe11etier joined #salt
19:29 UtahDave you're welcome!
19:29 LyndsySimon joined #salt
19:32 dzen because of some holidays, I can't be at logilabs in paris :(
19:35 auser joined #salt
19:35 auser hey all
19:37 UtahDave dzen: Nooooooo!  That's too bad.  That would have been cool to have you there.
19:37 UtahDave hey, auser!
19:37 auser UtahDave! holla
19:38 auser so any good report from last night?
19:38 UtahDave it went awesome!
19:40 crazysim joined #salt
19:44 Politoed joined #salt
19:48 auser nice!
19:53 mikedawson joined #salt
19:54 Artanicus joined #salt
19:56 Artanicus Hey! Trying to search the documentation on the proper usage of salt:// (or more like, where can I use it to pull files and where not) but that seems to be a completely unusable search term. Any ideas what keyword I should be looking for or pointers to the correct doc?
19:57 akoumjian Artanicus: file server or file_roots
20:01 jbunting joined #salt
20:01 linjan__ joined #salt
20:02 Artanicus akoumjian, thanks, seems very much related indeed. Unfortunately I seem to be finding only docs on configuring the file_roots, nothing on pulling stuff from them. My basic issue is that I'm just getting a no such file issue when using such a pull, my guess of course being that it's just not a valid for use as a state.git.identity target
20:03 akoumjian Artanicus: What are you writing? A formula, a module, a runner?
20:03 admineric joined #salt
20:03 Artanicus akoumjian, not sure on the
20:03 akoumjian Artanicus: Where are you trying to pull a file in? In your sls files?
20:03 Artanicus "proper terminology" .. but a setup file for a new minion
20:04 Artanicus sls yes
20:04 akoumjian Artanicus: You should be able to use a salt:// path in the git.latest identify option. If you are not able, please open an issue on github
20:04 Artanicus worked fine before for configs and whatnot, was hoping I could use the identity key straight from there without storing it on the minion host
20:05 Artanicus ok, I'll doublecheck I'm not being stupid and open an issue.. thanks! :-)
20:06 akoumjian Artanicus: Actually, now that I think about it there may be reasons you cannot use a key in the salt file server. In the worse case, you need to place that key on the minion and then specify its path from there
20:06 kaptk2 joined #salt
20:06 marcinkuzminski joined #salt
20:07 Artanicus well, that works too. Just means I'm leaving a deployment key behind, or using some kludge to insert it for every update and remove after it
20:07 dthom91 joined #salt
20:12 juanlittledevil joined #salt
20:13 jschadlick joined #salt
20:13 isomorphic joined #salt
20:18 jesusaurus UtahDave: awesome, thats what I was looking for. Is there a way to tell it to also generate and display the files included in the state?
20:18 UtahDave jesusaurus: does state.show_sls not show you?  Let me look at the docs real quick
20:19 UtahDave state.template, maybe?
20:19 rap424 joined #salt
20:20 jslatts joined #salt
20:21 jesusaurus state.template seems to want a path relative to the minion
20:21 UtahDave ah, true.
20:22 mikedawson_ joined #salt
20:22 StDiluted UtahDave, for environments, would I need a separate copy of each state in each environment?
20:22 jesusaurus state.show_sls gives the yaml of the post-processed sls file, but if it also processes the associated file resources with a salt:// source, then it doesnt display them
20:23 jesusaurus all I really want is a: salt \* jinja.compile
20:23 UtahDave jesusaurus: OK, I was just informed that there's an issue open for that.  issue #623
20:23 * jesusaurus looks at how hard it would be to make a render module
20:23 jesusaurus maybe something to work on on the 27th ;)
20:23 jesusaurus ooh, an old issue, definitely something I can throw time at on the 27th
20:24 UtahDave jesusaurus: that would be AWESOME!
20:25 * jesusaurus likes the idea of: salt * render.jinja [state | topfile]
20:27 UtahDave ooh, yeah, that sounds great.
20:32 rfgarcia joined #salt
20:32 blee_ hey guys, in jinja, when im in a for loop, how exactly do you access the key? how can I access the key?
20:32 blee_ what a poorly crafted sentence :-x
20:34 jesusaurus what does your data structure look like?
20:34 jesusaurus i tend to use: for k, v in data.items()
20:35 jacksontj joined #salt
20:39 blee_ items()? man i tend to find the jinja2 documentation rather lacking
20:39 UtahDave blee_: you're using python inside the jinja, so you can use all your python idioms like .items() on a list, etc
20:40 jonconley joined #salt
20:42 jpcw joined #salt
20:43 blee_ UtahDave, okay that makes sense, danke
20:43 blee_ jesusaurus, thanks
20:46 Eugene Is there any more info on the Salt Sprint 2 event beyond what's listed on Eventbrite?
20:46 jschadlick joined #salt
20:47 UtahDave There's a little bit here: http://sprint.saltstack.com/
20:47 UtahDave Eugene: Is there something else you'd like to know?
20:47 Eugene Just curious on what I can do to slow things down. :-p
20:48 UtahDave :) lol, why's that?
20:50 devinus joined #salt
20:51 Eugene Relative newcomer to the Salt universe; not sure where/what I can work on productively
20:52 Eugene I'm working on publishing the state/pillar trees we use on our company infrastructure, but I don't know how useful that is to $PUBLIC.
20:52 UtahDave Eugene: Actually, those types of examples are very very useful.
20:53 UtahDave We always need documentation improvements.
20:53 UtahDave Are there any modules that you use that coud use some attention?
20:54 Eugene None that I've really noticed
20:54 Eugene I'm pretty sure that I'm using a classic antipattern of reimplementing stuff(in particular, the network handling stuff) because of how I like to have config files laid out
20:55 UtahDave :) he he.
20:55 Eugene I believe in documenting config files meticulously, with a header on everything.
20:55 UtahDave Eugene: which sprint location will you be attending at?
20:56 SEJeff_work Eugene, thats not an antipattern. There is nothing wrong with doing that
20:56 Eugene Probably SF, but I might make it LA
20:56 KyleG <- Co-sponsoring the LA meetup w/ Hulu. COME! :D
20:56 Eugene I'm working in Irvine the 22nd-26th, and then Fremont 29th-2nd
20:56 SEJeff_work KyleG, Are you a hulu peep?
20:56 * cedwards is tempted to attend, although he's not sure how much help he'll be
20:56 KyleG SEJeff_work: Nah, Wiredrive peep. :P
20:57 Eugene I lean towards SF because I have a friend in town I can get wasted with over the weekend.
20:57 SEJeff_work KyleG, Are any Hulu peeps here?
20:57 KyleG We were going to host it, didn't know about Hulu, they announced their location a day before we did, so we combined them and are letting them be the location
20:57 KyleG SEJeff_work: Not that me or UtahDave are aware of, I have some email contacts I was given but that's about it
20:58 UtahDave cedwards: I'm expecting you there!!
20:58 SEJeff_work KyleG, Gotcha. I just got a friend hired on that team @ hulu by reaching out to the devs who contribute to salt
20:58 UtahDave cedwards: no excuses!!
20:58 UtahDave :)
20:58 Eugene I note that states.network only speaks RedHat. One of the goals I have for my networking implementation is making it work on Debian.
20:58 SEJeff_work Eugene, yes please
20:58 UtahDave Eugene: that would be awesome
20:59 KyleG Nice! I wonder what it's like to work for Hulu, I hear from some friends who know people who work there that it's pretty awesome
20:59 cedwards UtahDave: 27th right? I realize I have my kids that day :(
21:01 UtahDave cedwards: well, it will be going from 10am to 6pm, so if you can make it for an hour or two, that would be awesome.
21:02 cedwards UtahDave: I should have looked at my calendar before I mentioned it. The kids are over from 10-6
21:02 ioni joined #salt
21:03 Zeno1337 joined #salt
21:05 UtahDave ok, fine, cedwards, you can come the day before on Friday and spend the day with us.
21:06 rap424 joined #salt
21:06 cedwards it has been a while since i've been up there
21:07 UtahDave yes, it has! Seriously, come down for the day.
21:09 Jahkeup_ joined #salt
21:10 StDiluted UtahDave, do you need further locations to have sprint meet ups?
21:11 druonysus joined #salt
21:11 druonysus joined #salt
21:11 UtahDave We'd love to have a location wherever we can get a group of devs together. I think we'd be open to a couple more.  Where are you located?
21:11 StDiluted Albuquerque
21:12 StDiluted don't know how many other people other than the people in my office we could get to come but...
21:13 UtahDave cool, I was in albuquerque last year a couple times.
21:14 StDiluted right on
21:18 UtahDave StDiluted: well, it's going to be pretty cool
21:18 StDiluted Well, I did ask my office manager and she said we could host it at our office
21:19 UtahDave If you want to have a sprint and have people from your company come, that would be awesome.
21:19 UtahDave You might be surprised who might want to show up!
21:21 StDiluted so how do we get that together, is there anything we need to do to make it official?
21:23 elfar left #salt
21:23 StDiluted Also, UtahDave, did you see my earlier question regarding environments? Do I need to duplicate all my states in each environment tree if I want different versions of software. etc?
21:23 UtahDave Sure, can you pm me your email?
21:25 crazysim joined #salt
21:28 napperjabber joined #salt
21:33 z3uS joined #salt
21:38 pentabular1 joined #salt
21:45 pentabular joined #salt
21:45 pentabular2 joined #salt
21:45 backjlack joined #salt
21:47 Newt[cz] joined #salt
21:47 druonysus joined #salt
21:53 zooz joined #salt
21:55 jacksontj joined #salt
21:57 atweiden UtahDave: how do i obtain salt consulting services?
21:59 m_george|away joined #salt
21:59 UtahDave atweiden: There's info here: http://saltstack.com/contact  for our sales team. But if you want to email me directly I can get you to the right person
21:59 krissaxton joined #salt
22:00 Kamal joined #salt
22:01 juanlittledevil question for you guys. file.directory should recurse permissions if the -recurse option is set to user and group correct?
22:02 jeffrubic left #salt
22:03 juanlittledevil nevermind. found a workaround.
22:04 kermit joined #salt
22:05 StDiluted UtahDave, I got the go ahead from my office manager. Should I contact Rhett?
22:05 rcg_re joined #salt
22:07 rcg_re joined #salt
22:07 UtahDave StDiluted: Yeah, that would be great!   I just walked over and mentioned to him that you might be contacting him.
22:08 UtahDave juanlittledevil: ok
22:08 StDiluted cool
22:11 rcg_re (salt-call 0.16.0-855-ge0397e4) I'm getting a "install() got an unexpected keyword argument '__env__'" when trying to create a virtualenv and install from a requirements file - it seems states/virtualenv.py:145 is setting _env_ and modules/pip.py:88 doesn't accept it
22:12 rcg_re am I doing something wrong, or is this a bug?
22:13 KyleG Northman..? You live in texas man.
22:14 Northman Part of a conversation in another room
22:14 KyleG lol word
22:14 bluemoon joined #salt
22:14 UtahDave rcg_re: There's been a lot of changes to the virtualenv stuff the last few days.  Any way you can test against the latest in develop?
22:15 rcg_re UtahDave: yup, this was on develop, actually
22:15 rcg_re git repo with the latest HEAD also shows the same situation
22:16 UtahDave rcg_re: OK, could you open a bug on that?  I know several people, including s0undt3ch, were working on that module/state
22:16 rcg_re ah, cool
22:16 rcg_re will do
22:18 Xeago joined #salt
22:22 StDiluted Can anyone assist me with some questions on environments? Anyone using them at all?
22:24 oz_akan__ joined #salt
22:28 oz_akan_ joined #salt
22:31 oz_akan__ joined #salt
22:41 _ilbot joined #salt
22:41 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/
22:58 UtahDave StDiluted: what questions do you have/
22:58 UtahDave ?
22:59 StDiluted If I want to use different software versions in different environments, do I need to duplicate all my states in each env?
22:59 StDiluted I'm having trouble understanding how to best use them
23:00 oz_akan_ joined #salt
23:02 FreeSpencer joined #salt
23:03 UtahDave StDiluted: No, you can just specify the differences
23:04 UtahDave so when you specify the file_roots for each environment, you can have the default be the last in the list
23:04 StDiluted hm, ok
23:05 LyndsySimon joined #salt
23:05 UtahDave then a minion that matches the "dev" environment will look in the first file_roots in the list and if that file doesn't exist it will then go down the list until it finds one in the default file_roots
23:07 StDiluted hm, ok. I'm not sure I understand exactly how that would work. The docu is pretty sparse in that department, so I'm just trying to figure out how it works
23:07 isomorphic joined #salt
23:07 StDiluted but I have to split, it's 5PM here
23:08 UtahDave ok, talk to you on Monday, StDiluted
23:08 StDiluted ok, tty then
23:11 jonconley joined #salt
23:27 Jahkeup_ joined #salt
23:29 juanlittledevil left #salt
23:29 raydeo joined #salt
23:34 gordonm left #salt
23:37 mdrnstm joined #salt
23:37 jonconley left #salt
23:41 napperjabber joined #salt
23:41 lemao joined #salt
23:49 FreeSpencer joined #salt
23:50 Nitron joined #salt
23:52 Xeago joined #salt
23:54 jbunting joined #salt
23:57 jschadlick left #salt
23:57 spudbook joined #salt
23:59 dthom91 joined #salt

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