Permalink
Browse files

nginx default sites disabled | fixes #2

  • Loading branch information...
1 parent e98578a commit 9e1d479385eb891f3ab9a0549b104f328ca9ae7f @maukoquiroga maukoquiroga committed Oct 5, 2012
Showing with 13 additions and 6 deletions.
  1. +2 −1 .gitignore
  2. +0 −1 .vagrant
  3. +11 −0 site-cookbooks/chef-rails/recipes/default.rb
  4. +0 −4 site-cookbooks/nginx/recipes/default.rb
View
@@ -5,4 +5,5 @@
/nodes/*.rb
/roles/*.json
/roles/*.rb
-/tmp/*
+/tmp/*
+/.vagrant
View
@@ -1 +0,0 @@
-{"active":{"default":"a9e81bf4-2d63-4e5b-81f3-85ab7502746b"}}
@@ -2,6 +2,17 @@
package pkg
end
+bash "remove default nginx sites" do
+ code %{
+ sudo rm -f /etc/nginx/sites-available/default
+ sudo rm -f /etc/nginx/sites-enabled/default
+ }
+end
+
bash "install or update bundle" do
code "sudo gem install bundle --no-ri --no-rdoc"
end
+
+bash "change owner and group of chef-solo tmp files" do
+ code "sudo chown -R #{node[:authorization][:sudo][:users].first}:#{node[:authorization][:sudo][:groups].first} /tmp/chef-solo"
+end
@@ -65,10 +65,6 @@
# mode "0644"
# end
-file "#{node[:nginx][:dir]}/sites-available/default" do
- action :delete
-end
-
directory node[:nginx][:proxy_cache_dir] do
owner node[:nginx][:user]
group node[:nginx][:user]

0 comments on commit 9e1d479

Please sign in to comment.