#chef

hippiehacker are the conference sessions online? 01:11
atomic-penguin hippiehacker, http://youtube.com/user/opscode 01:31
hoover_damm, did you pull request your nginx work for the community version? 01:31
makerbrkr is there a roku channel for that? 01:33
atomic-penguin makerbrkr, for the chefconf or youtube? 01:36
neither, really 01:36
but there is one for justin.tv/twitch.tv, which is awesome 01:36
makerbrkr either/or 01:37
hrm, I think the roku has twitch 01:38
kvanderw how do I pass the --node-name into the hostname and /etc/hosts file of the newly created VM ?? 01:56
atomic-penguin makerbrkr, it does, as I was saying. Which is awesome 01:59
makerbrkr atomic-penguine, where do i find it on twitch? 02:08
hoover_damm atomic-penguin, no 02:23
atomic-penguin, I did not ask if my client wanted that, so I didn't. 02:23
in this case, I just wrapped some basic passenger wrapping around the nginx cookbook 02:24
it's nothing significent 02:24
just compiles with passenger, and drops the right passenger_root and passenger_ruby vars in 02:24
you do the rest with nginx_site :) 02:24
which is sadly why I did that. Passenger cookbook was what they used, and when I took em to unicorn *cough* it got messy 02:25
so had to refactor the passenger into the nginx cookbook and then just drop everything in their application cookbook 02:25
that way my clients employee's can follow in the same pattern / style 02:26
zodiak hey guys/gals, I seem to be having a problem running a 'bundle install' as a command from a Chef script. even though I specify user and cwd, it never seems to work "quite right" 02:29
anyone got any example chef recipes where they do a bundle install ? 02:29
hoover_damm zodiak, something wrong with the opscode application cookbook? 02:31
https://github.com/opscode-cookbooks/application/blob/master/recipes/rails.rb#L168-L181 02:31
zodiak I couldn't find a bundler recipe in there.. let me go check 02:31
hoover_damm that link there has the highlighted portions 02:31
zodiak spiffy .. ta 02:32
hoover_damm If your new to chef it may be better to start with the opscode cookbooks then trying to write everything on your own 02:32
zodiak well, I got most of the ones from opscode working jst peachy.. but now I am trying to deploy our code on top of the new vm 02:32
that's where I am tripping up 02:32
hoover_damm there's quite a bit to it, and they've put a lot of thought into the cookbooks and documented them which does help :) 02:32
zodiak thanks for the pointers :) 02:32
hoover_damm hrm 02:32
then bundler key set? 02:33
zodiak should be.. I have rvm installed and told it to install bundler. vagrant is also in the mix, I am sure that's not helping matters ;) 02:33
hoover_damm Vagrant not working as root by default seems to complicate the whole process 02:34
immensely 02:34
vluther i'm trying to install a package by using the remi repository, when i specify options "--enablerepo=remi" it's telling me no such version found.. yet when i do yum -y --enablerepo=remi install php-fpm it works.. any ideas? 02:34
zodiak let me tinker and I will scream if I have any probs. thanks for the pointer/info 02:34
yeah.. it sure does :D 02:34
hah 02:34
hoover_damm I know i'll get the ticket of write a ci system in lxc :) gosh that'll be a peach 02:35
zodiak lxc is nice ~IF~ everyone uses the same hardware 02:35
but when you have people in your dev team that use fedora, ubuntu, osx and winblowz.. well ;P 02:35
different folks, different strokes though 02:36
atomic-penguin makerbrkr, I just meant there is a channel for justin/twitch on roku. The chefconf stuff is on youtube.com/user/opscode. Unfortunately there is no roku youtube channel. 03:06
kvanderw trying to set node[:name] as the hostname - while I can do it in the attributes/default.rb file - I must be able to manage many nodes dynamically, the attributes location feels all wrong - any clues ? 05:18
BryanWB_ ohai chefs! 08:03
zebers I'm writing a LWRP that uses a template in a provider, am I able to pass variables into through the resource and have them be managed by the LWRP (not by the service calling the LWRP) ugh I hope that makes sense ~.~ 09:24
ashb zebers: it doesn't quite. can you give an example of how you want to use it? 10:25
zebers ashb, actually I already figured it out :) 10:25
ashb coo 10:26
ll 10:26
kvanderw I have a knife command: knife xenserver vm create --vm-template Deb6-64 --vm-name test31 --vm-memory 512 --vm-cpus 2 --node-name test31 -s http://chef.domain.com:4000 --vm-networks "Pool-wide network associated with eth0" -r hostname. 12:48
How do I pass a value (like hostname, IP address) in this command? 12:48
I need Per Node attribute values. 12:48
BryanWB_ kvanderw: i haven't used knife xenserver, but iirc there might be a '-a' option for specifying attributes 12:54
kvanderw BryanWB_: checking... 12:56
BryanWB_: nope - says invalid option: -a 12:58
ashb there was a ticket for 0.10.10 about passing node attributes to bootstrap 12:58
kvanderw BryanWB_: there is a -E (--environment) switch, but I can't find details on how to format an attribute assignment using the -E 12:58
ashb: I am using 0.10.10. Does that hurt me or help me? 12:59
BryanWB_ kvanderw: that is only for setting the chef_environment, won't affect the attributes 12:59
ashb maybe I got the version wrong 12:59
http://tickets.opscode.com/browse/KNIFE_RACKSPACE-30 and http://tickets.opscode.com/browse/KNIFE_EC2-58 13:00
kvanderw: you might need a similar patch for knife xenserver 13:01
but i'm just guessing here 13:03
kvanderw ashb: reading - trying to understand it enough to apply similar 13:10
BryanWB_: that was the way I was reading the docs - was hoping I was missing something :( 13:11
BryanWB_: so, is there a way to define a list of attributes on a per node basis? I am trying to build a series of Drupal nodes, each holding 50 drupal site. Each site needs a seperate IP. So, over time, as a node expands to the 50, I need to be able to update the node details to include the new folder info, apache config details, IP address, etc. 13:14
I'm sure there is a way to do this, but after a dozen tutorials and 10 days of reading, I'm haveing trouble groking this part of the framework. 13:14
BryanWB_ kvanderw: i have no experience w/ knife-xenserver, there is a way to do it w/ knife bootstrap iirc 13:17
kvanderw: have u sent a mail to the ml? that is usually pretty responsive 13:17
more so than irc 13:17
kvanderw BryanWB_: I have not - what is the address for the ml? 13:18
BryanWB_ kvanderw: http://lists.opscode.com/sympa/lists/opensource , i have always found it to be quite responsive 13:18
kvanderw BryanWB_: thanks 13:19
BryanWB_ kvanderw: u may want to wait a bit for mattray to show up later today, he is very knowledgeable about those kinds of plugins 13:28
hcastro anyone using the minitest handler cookbook and notice issues because the stdlib minitest is being used instead of minitest gem? 14:42
BryanWB_ hcastro: hmm, i haven't, but i use my fork of it 14:43
hcastro: hello! btw ;) 14:43
hcastro BryanWB_: good morning (possibly, not sure what timezone you're in) 14:44
BryanWB_ https://github.com/bryanwb/minitest-handler-cookbook, it's late afternoon ;) 14:44
hcastro BryanWB_: what ruby version are you running chef with? 14:46
BryanWB_ 1.8.7 14:46
hcastro: u? 14:46
hcastro ah, i think my issues are related to 1.9.2 14:47
BryanWB_ hcastro: the stdlib minitest behaves differently than the gem?? 14:50
hcastro there appears to be at least one inconsistency -- working to reproduce it right now 14:51
lowg Hi 14:55
Anyone got experience of installing crystal reports runtime using chef? I need an estimation of what sort of timeout to set 14:58
(I assume 'feels like forever' is not a valid value) 14:58
hoover_damm lowg, timeout forever is the only answer when you don't know what the average time is for your reports to run 17:26
lowg, oh wait I read that wrong as running reports vs installation... 17:27
lowg, yeah likely forever is the wrong behavior. Can you time how long it takes to install and then take the longest, add 25% and then average them? 17:27
lowg hoover_damn, thanks. It's not interacting correctly; I'm getting timeout exceptions on it and then end up with a number of setup.exe processes running 18:41
hoover_damm lowg, ahh. I'd suggest mailing the mailing list to see if anyone has tried to automate crystal reports 18:42
bawt, lists? 18:42
bawt lists is http://lists.opscode.com 18:42
hoover_damm tiz a holiday in the US, not sure how much attention you'll get in irc 18:43
lowg ok, thanks 18:48
kisoku where can I get my hands on the chef-server omnibus installers 19:51
ellisera hey guys, I'm having problems with a recipe, I need to not reference a non-existent data bag for a standalone environment but allow for referencing for our other environments and an ' if node.chef_environment != "standalone" ' wrap around the recipe doesn't seem to work (sorry if it's a stupid question, but I'm new to both chef and ruby) 20:23
john1400_ I am trying to do my first chef server install on ubuntu 10.04, but when I run "chef-server > knife configure -i", I get an error: "/usr/lib/ruby/1.8/mixlib/config.rb:37:in `read': Permission denied - /etc/chef/server.rb (Errno::EACCES) 20:47
from /usr/lib/ruby/1.8/mixlib/config.rb:37:in `from_file'" -- any ideas on what I am doing wrong? 20:47
brofus Hi. How can I add a recipe to the run_list that is part of a role with shef? I'm doin the defacto.. shef -z, recipe, include_recipe "myrecipe" but I get name error when it is shown in the runlist when shef starts 21:13
qurve Hello all. What is the general practice for splitting the installation of a package (eg, nginx) from the configuration of the package (my custom configs) in cookbooks? 21:14
I'm using the standard nginx cookbook, but now I need to drop my custom nginx configs in for the various sites that will run in nginx, and I'm not sure if I need a separate cookbook, or if I should just add it to the nginx/recipe/default? 21:14
Apologize if this is very obvious, haven't worked with chef before today. 21:15
hoover_damm qurve, by default with the nginx recipe you only apply nginx::source and you drop in nginx.conf and then you use nginx_site to enable your sites 21:22
qurve, so there should very little need to customize the nginx cookbook itself 21:22
qurve Well, my use case is that for each webserver I have, it hosts about 5 sites (the network that makes up the organization) 21:22
Right now I have 5 separate nginx configs with server{} blocks 21:23
blog.foo, forum.foo, www.foo, etc. 21:23
hoover_damm yep that's fine 21:23
qurve I'm unsure of where I put the configurations for those. 21:23
hoover_damm create a cookbook called application 21:23
nginx_site 'forum.foo' do 21:23
qurve OK, that's what I figured 21:23
So I really need to create an 'app' cookbook that is repsonsible for doing all non-infrastructure tasks 21:23
I assume that's also where I would pull down the codebases onto the node? 21:24
hoover_damm it's where you store it 21:24
in this case assume Chef is your framework to help you decide the pattern you want to take 21:24
qurve Yeah, I'm just starting out today, so some of it I'm not sure what the 'right' way is yet. 21:25
I would imagine that I do not want to modify third-party cookbooks if at all possible. 21:25
hoover_damm Personally, I actually have an application cookbook and a recipe called 'webstack' that has all my webstack stuff in it 21:25
grabs all the ssl certs, sets up htpasswd if needed, includes the nginx/or apache cookbook if needed, then enables passenger or unicorn 21:26
then does nginx_site 'mainsite.foo.com' do action :enable end 21:26
qurve Neat. 21:26
hoover_damm then start nginx at the end, and yeah 21:26
:) 21:26
done 21:26
it's a big of unicorn/passenger right now in my cookbook myself 21:26
and everything is stored in attributes just because I'm used to that... 21:27
qurve Yeah I do all my company's stuff in rails with nginx/unicorn 21:27
But I'm moving my non-profit organization's infrastructure to AWS and I've decided that's a good a time as any to learn Chef 21:27
That infrastructure is all php sites (WordPress, vBulletin, custom stuff, etc.) 21:27
hoover_damm it is 21:27
Chef 21:27
qurve So goal 1 is nginx+php-fpm running each of the sites. 21:27
Thank you for your help hoover, I think this has given me enough clue to move forward. 21:31
I'll start by just creating an application cookbook where I do all my custom stuff. 21:31
Is it appropriate for a cookbook to be responsible for cloning a git repo to retrieve a codebase? 21:32
I assume so. 21:32
qurve hoover_damm: Are you still here by chance? 21:50
qurve Hrm, I keep getting this sporadically on an ubuntu 12.04 LTS VM: /usr/lib/ruby/gems/1.8/gems/ohai-0.6.12/lib/ohai/mixin/command.rb:273: [BUG] Segmentation fault 22:08
Usually if I run it a few times it works fine. 22:09
qurve Strangely chef-client works every third time. 22:33
Ramblurr what's the best way to run a bash command store the contents of the output in an attribute? 23:12
i tried using ruby to get the data i need in a ruby_block, but when i set the attribute in the block it doesnt seem to stick 23:12
like this https://pastee.org/8phtb 23:12
mhalligan I'm trying to figure out the best way to sync up my instance list from my cloud provider (rackspace) with my node / client list. I was thinking that on my monitoring services I would have them read the output of `knfie rackspace server list` into ohai attributes 23:36
an 23:36
any suggestions? Does that seem reasonable or is there a more standard way of doing t his? 23:36
patcon jtimberman: hey, just came across this and wondering if it was on your radar or you'd interacted with the maintainers: https://github.com/gecos-team/cookbook-desktop 23:37
seemed like there might be overlap with your awesome mac_os_x cookbook 23:38
[Neurotic] hey guys - looking for a good chef book. Any recommendations? 23:52
cwj [Neurotic]: not aware of one that's available now, although i think ORA has a book slated to be published in the next year or so 23:54
silk ramblurr, try node.set[:blah] 23:55
cwj this is the only chef book i have seen, but it is not really for new chef users: http://shop.oreilly.com/product/0636920020042.do 23:55
ah heres the preorder page http://www.amazon.com/Chef-Definitive-Guide-Stephen-Nelson-Smith/dp/1449327443 23:56
[Neurotic] yeah, i saw that 23:56
ah nice, I'll wishlist it 23:56
we're doing the usual 'puppet or chef' thing :) it's been interesting 23:57
so just looking at learning resources 23:58
qurve Just got a blank machine turned into a web server pulling code from github and running properly. This is so cool. 23:58
I've been doing similar stuff with custom-written scripts for a year or two, but chef is much nicer :) 23:59
Ramblurr silk: that works outside the block, but not inside :( 23:59