Permalink
Browse files

add install scripts

  • Loading branch information...
1 parent b190352 commit 160bb4f5938195695bbd39d5e4a4ef52cf2dbc82 Hoang Xuan Phu committed Jul 16, 2012
Showing with 42 additions and 0 deletions.
  1. +18 −0 centos5-install.sh
  2. +16 −0 centos6-install.sh
  3. +8 −0 ubuntu-install.sh
View
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+rubygems_version=1.8.10
+
+# Install Ruby
+yum install -y wget
+wget -O /etc/yum.repos.d/aegisco.repo http://rpm.aegisco.com/aegisco/el5/aegisco.repo
+rpm -Uvh http://rbel.frameos.org/rbel5
+yum install -y ruby ruby-devel ruby-ri ruby-rdoc ruby-shadow gcc gcc-c++ automake autoconf make curl dmidecode
+
+# Install RubyGems from Source
+curl -O http://production.cf.rubygems.org/rubygems/rubygems-$rubygems_version.tgz
+tar zxf rubygems-$rubygems_version.tgz
+cd rubygems-$rubygems_version
+sudo ruby setup.rb --no-format-executable
+
+# Install Chef Gem
+gem install chef --no-ri --no-rdoc
View
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+rubygems_version=1.8.10
+
+# Install Ruby
+rpm -Uvh http://rbel.frameos.org/rbel6
+yum install -y ruby ruby-devel ruby-ri ruby-rdoc ruby-shadow gcc gcc-c++ automake autoconf make curl dmidecode
+
+# Install RubyGems from Source
+curl -O http://production.cf.rubygems.org/rubygems/rubygems-$rubygems_version.tgz
+tar zxf rubygems-$rubygems_version.tgz
+cd rubygems-$rubygems_version
+sudo ruby setup.rb --no-format-executable
+
+# Install Chef Gem
+gem install chef --no-ri --no-rdoc
View
@@ -0,0 +1,8 @@
+#!/bin/bash
+echo "deb http://apt.opscode.com/ `lsb_release -cs`-0.10 main" > /etc/apt/sources.list.d/opscode.list
+mkdir -p /etc/apt/trusted.gpg.d
+gpg --keyserver keys.gnupg.net --recv-keys 83EF826A
+gpg --export packages@opscode.com > /etc/apt/trusted.gpg.d/opscode-keyring.gpg
+apt-get update
+apt-get install opscode-keyring
+echo "chef chef/chef_server_url string none" | debconf-set-selections && apt-get install chef -y

0 comments on commit 160bb4f

Please sign in to comment.