Skip to content
Browse files

Add tweaks for Amazon's Linux Distro, which is basically a rebranded …

…CentOS
  • Loading branch information...
1 parent 5f89472 commit 5f08635b03a0dff01da6514fcc28e329560fb845 @adrianpike adrianpike committed Oct 12, 2011
Showing with 4 additions and 3 deletions.
  1. +1 −0 README.md
  2. +1 −1 attributes/default.rb
  3. +1 −1 metadata.rb
  4. +1 −1 providers/ruby.rb
View
1 README.md
@@ -20,6 +20,7 @@ the recipes and LWRPs run on these platforms without error:
* mac_os_x (10.6/10.7)
* suse (openSUSE, SLES)
* centos
+* amazon (2011.09)
* redhat
* fedora
View
2 attributes/default.rb
@@ -66,7 +66,7 @@
default['rvm']['user_install_rubies'] = "true"
case platform
-when "redhat","centos","fedora"
+when "redhat","centos","fedora", "amazon"
node.set['rvm']['install_pkgs'] = %w{sed grep tar gzip bzip2 bash curl git}
default['rvm']['user_home_root'] = '/home'
when "debian","ubuntu","suse"
View
2 metadata.rb
@@ -13,7 +13,7 @@
recipe "rvm::vagrant", "An optional recipe to help if running in a Vagrant virtual machine"
recipe "rvm::gem_package", "An experimental recipe that patches the gem_package resource"
-%w{ debian ubuntu suse centos redhat fedora mac_os_x }.each do |os|
+%w{ debian ubuntu suse centos amazon redhat fedora mac_os_x }.each do |os|
supports os
end
View
2 providers/ruby.rb
@@ -134,7 +134,7 @@ def install_ruby_dependencies(rubie)
pkgs += %w{ readline readline-devel openssl-devel }
end
pkgs += %w{ git subversion autoconf } if rubie =~ /^ruby-head$/
- when "centos","redhat","fedora"
+ when "centos","redhat","fedora","amazon"
pkgs = %w{ gcc-c++ patch readline readline-devel zlib zlib-devel
libyaml-devel libffi-devel openssl-devel }
pkgs += %w{ git subversion autoconf } if rubie =~ /^ruby-head$/

0 comments on commit 5f08635

Please sign in to comment.
Something went wrong with that request. Please try again.