This repository has been archived by the owner on Apr 27, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed nginx cookbook along with CentOS update
- Loading branch information
Showing
13 changed files
with
35 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
name "base" | ||
run_list %w( | ||
recipe[base] | ||
recipe[yum::yum] | ||
recipe[build-essential] | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
site-cookbooks/site-nginx/recipes/default.rb → site-cookbooks/nginx/recipes/default.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Dir.glob("#{File.dirname(__FILE__)}/*.rb") do |file| | ||
next if file =~ /default\.rb$/ | ||
file_name = file.scan(/([^\/]+)\.rb$/)[0].first | ||
include_recipe "site-nginx::#{file_name}" | ||
include_recipe "nginx::#{file_name}" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
include_recipe "yum" | ||
|
||
yum_key "nginx" do | ||
url 'http://nginx.org/keys/nginx_signing.key' | ||
action :add | ||
end | ||
|
||
yum_repository "nginx" do | ||
repo_name "nginx" | ||
url "http://nginx.org/packages/centos/#{node['platform_version'].to_i}/$basearch/" | ||
end | ||
|
||
package "nginx" do | ||
action :install | ||
end | ||
|
||
template "/etc/nginx/conf.d/#{node.app.name}.conf" do | ||
action :create | ||
source "#{node.app.name}.conf.erb" | ||
mode "0644" | ||
notifies :reload, "service[nginx]" | ||
end | ||
|
||
service "nginx" do | ||
action [:enable, :start] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.