[chef] Re: Re: Re: Re: Omnibus Chef Server using nginx, postgres and rabbitmq community cookbooks


Chronological Thread 
  • From: Jordi Llonch < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Omnibus Chef Server using nginx, postgres and rabbitmq community cookbooks
  • Date: Wed, 19 Jun 2013 11:49:55 +1000

Thanks Noah.

I had this running for nginx, but before going with postgres and rabbitmq i wanted to know other people point of view.

chefserver2nginx.rb
------
directory "/etc/chef-server" do
  owner "root"
  group "root"
  mode "0755"
end

%w(/var/www /var/www/cache-tmp /var/www/cache).each do |dir|
  directory dir do
    owner "www-data"
  end
end

%w(/etc/nginx /etc/nginx/sites-enabled /etc/nginx/sites-available /etc/nginx/conf.d).each do |dir|
  directory dir do
    owner "root"
    group "root"
    mode "0755"
  end
end

template "/etc/nginx/conf.d/chef.conf" do
  source "chef.nginx.conf.erb"
end

template "/etc/nginx/sites-available/chef" do
  source "chef.nginx.site.erb"
end


link "/etc/nginx/sites-enabled/chef" do
  to "/etc/nginx/sites-available/chef"
end

# going to disable chef's omnibus nginx
template "/etc/chef-server/chef-server.rb" do
  owner "root"
  group "root"
  mode "0600"
end

execute "chef-server-ctl reconfigure"

include_recipe "nginx"




2013/6/19 Noah Kantrowitz < " target="_blank"> >

On Jun 18, 2013, at 5:26 PM, Jordi Llonch wrote:

> Thanks for your reply Noah,
>
> What I plan on doing is to use the same nginx,postgres&rabbitmq for chef-server and the other services running in the node and using only one instance of each.

While it is hypothetically possible to make chef-server not use its internal components, to call it "unsupported" is a vast understatement. You would probably be better off just not using the chef-server packages and installing erchef+bookshelf yourself. They are pretty "normal" Erlang/rebar apps so if you are familiar with that stack it shouldn't too too hard. Again, super unexplored territory though.

--Noah





Archive powered by MHonArc 2.6.16.

§