sed -i -e ‘s@^ONBOOT=”no@ONBOOT=”yes@’ /etc/sysconfig/network-scripts/ifcfg-eth0
yum update
export EDITOR=vi
yum install rsync openssh-clients man git curl wget ftp sudo time cronie which vim
wget http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm rpm –import http://apt.sw.be/RPM-GPG-KEY.dag.txt yum –enablerepo rpmforge install dkms yum groupinstall “Development Tools” yum install kernel-devel wget http://download.virtualbox.org/virtualbox/4.2.6/VBoxGuestAdditions_4.2.6.iso mount -o loop -t -t iso9660 VBoxGuestAdditions_4.2.6.iso iso ./iso/VBoxLinuxAdditions.run
yum erase wireless-tools gtk2 libX11 hicolor-icon-theme avahi freetype bitstream-vera-fonts
groupadd development useradd -G development vagrant
passwd vagrant
echo ‘export PATH=$PATH:/usr/sbin:/sbin’ >> ~vagrant/.bashrc
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm sed -i ‘s/enabled=0/enabled=1/’ /etc/yum.repos.d/remi.repo
yum update
sudo rpm -Uvh http://rbel.frameos.org/rbel6
sudo yum install ruby rubygems ruby-devel ruby-ri ruby-rdoc ruby-shadow gcc gcc-c++ automake autoconf make curl dmidecode
#wget -O- –no-check-certificate https://opscode.com/chef/install.sh | bash wget https://opscode-omnitruck-release.s3.amazonaws.com/el/6/x86_64/chef-10.18.0-1.el6.x86_64.rpm rpm -i chef*.rpm mkdir /etc/chef cd /etc/chef knife configure client cd root.knife/ ssh-keygen -t rsa -C “vagrant”
log_level :info log_location STDOUT chef_server_url ‘https://api.opscode.com/organizations/parade’ validation_key “/etc/chef/parade-validator.pem” validation_client_name ‘parade-validator’
gem install ohai
#add /etc/chef/parade-validator.pem #add /etc/chef/vagrant.pem chef-client
mkdir .ssh chmod 755 .ssh curl http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub > .ssh/authorized_keys chmod 644 .ssh/authorized_keys
sudo yum clean headers packages dbcache expire-cache
#shut down vm