more redhat work

This commit is contained in:
John Bintz 2012-07-09 16:50:04 -04:00
parent 5a3cd42244
commit 0ac18b0e94
2 changed files with 14 additions and 13 deletions

View File

@ -5,6 +5,7 @@ Capistrano::Configuration.instance.load do
set(:user) { 'vagrant' } set(:user) { 'vagrant' }
set(:password) { 'vagrant' } set(:password) { 'vagrant' }
set(:use_sudo) { true }
task :ensure_puppet do task :ensure_puppet do
require 'socket' require 'socket'

View File

@ -1,5 +1,8 @@
#!/bin/bash #!/bin/bash
YAML_VERSION=0.1.4
RUBY_VERSION=1.9.3-p194
pwd=$PWD pwd=$PWD
base_dir=<%= base_dir %> base_dir=<%= base_dir %>
@ -10,26 +13,23 @@ if [ ! -f ${base_dir}/ruby-base/bin/ruby ]; then
opt_dir=${base_dir}/tmp/ruby-opt opt_dir=${base_dir}/tmp/ruby-opt
rm -Rf yaml-0.1.4* rm -Rf yaml-$YAML_VERSION*
curl -O http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz curl http://pyyaml.org/download/libyaml/yaml-$YAML_VERSION.tar.gz > yaml.tar.gz
tar zxvf yaml-0.1.4.tar.gz tar zxvf c$yaml.tar.gz
mv yaml-0.1.4 yaml-0.1.4-base mv yaml-$YAML_VERSION yaml-$YAML_VERSION-base
cd yaml-0.1.4-base cd yaml-$YAML_VERSION-base
./configure --prefix=${opt_dir} ./configure --prefix=${opt_dir}
make make
make install make install
cd .. cd ..
RUBY=ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.9.3-p194.tar.bz2 rm -Rf ruby-$RUBY_VERSION
RUBY_FILENAME=${RUBY##*/} curl ftp://ftp.ruby-lang.org/pub/ruby/ruby-$RUBY_VERSION.tar.bz2 > ruby.tar.bz2
RUBY_VERSION=${RUBY_FILENAME%%.tar.bz2} tar jxvf ruby.tar.bz2
curl $RUBY > $RUBY_FILENAME mv ruby-$RUBY_VERSION ruby-base
rm -Rf $RUBY_VERSION
tar jxvf $RUBY_FILENAME
mv $RUBY_VERSION "$RUBY_VERSION-base"
cd "$RUBY_VERSION-base" cd ruby-base
./configure --prefix=${base_dir}/ruby-base --with-opt-dir=${opt_dir} --disable-pthread --disable-install-doc ./configure --prefix=${base_dir}/ruby-base --with-opt-dir=${opt_dir} --disable-pthread --disable-install-doc
make make