Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[COOK-801] - add amazon linux

  • Loading branch information...
commit a7b0f312803eb0b13ebbfe7e5eee46a6b1cd0725 1 parent 2394e39
@jtimberman authored
View
3  README.md
@@ -47,7 +47,7 @@ This cookbook is used to configure a system to be a Chef Server. It has a few re
REQUIREMENTS
============
-Chef 0.10.0 or later is required. For earlier versions of Chef, see the `chef` cookbook, version 0.99.0.
+Chef ~> 0.10.0, 10.0 is required.
Platform
--------
@@ -102,6 +102,7 @@ The following attributes are chosen based on the platform and set accordingly. S
* redhat
* centos
* fedora
+* amazon
* openbsd
* freebsd
* mac\_os\_x
View
4 attributes/default.rb
@@ -17,14 +17,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-case platform
+case node["platform"]
when "arch"
default["chef_server"]["init_style"] = "arch"
default["chef_server"]["path"] = "/var/lib/chef"
default["chef_server"]["run_path"] = "/var/run/chef"
default["chef_server"]["cache_path"] = "/var/cache/chef"
default["chef_server"]["backup_path"] = "/var/lib/chef/backup"
-when "debian","ubuntu","redhat","centos","fedora"
+when "debian","ubuntu","redhat","centos","fedora","amazon"
default["chef_server"]["init_style"] = "init"
default["chef_server"]["path"] = "/var/lib/chef"
default["chef_server"]["run_path"] = "/var/run/chef"
View
2  metadata.rb
@@ -9,7 +9,7 @@
recipe "chef-server::apache-proxy", "Configures Apache2 proxy for API and WebUI"
recipe "chef-server::nginx-proxy", "Configures NGINX proxy for API and WebUI"
-%w{ ubuntu debian redhat centos fedora freebsd openbsd }.each do |os|
+%w{ ubuntu debian redhat centos fedora amazon freebsd openbsd }.each do |os|
supports os
end
View
2  recipes/rabbitmq.rb
@@ -44,7 +44,7 @@ def debian_before_squeeze?
end
service "rabbitmq-server" do
- if platform?("centos","redhat","fedora")
+ if platform?("centos","redhat","fedora","amazon")
start_command "/sbin/service rabbitmq-server start &> /dev/null"
stop_command "/sbin/service rabbitmq-server stop &> /dev/null"
end
View
6 recipes/rubygems-install.rb
@@ -57,7 +57,7 @@
include_recipe "chef-server::rabbitmq"
include_recipe "gecode"
-when "centos","redhat","fedora"
+when "centos","redhat","fedora","amazon"
include_recipe "couchdb"
include_recipe "java"
@@ -188,12 +188,12 @@
dist_dir = value_for_platform(
["ubuntu", "debian"] => { "default" => "debian" },
- ["redhat", "centos", "fedora"] => { "default" => "redhat"}
+ ["redhat", "centos", "fedora", "amazon"] => { "default" => "redhat"}
)
conf_dir = value_for_platform(
["ubuntu", "debian"] => { "default" => "default" },
- ["redhat", "centos", "fedora"] => { "default" => "sysconfig"}
+ ["redhat", "centos", "fedora", "amazon"] => { "default" => "sysconfig"}
)
chef_version = node['chef_packages']['chef']['version']
Please sign in to comment.
Something went wrong with that request. Please try again.