Sha256: 1b29d0032832657e53e73f9cba60372d197a94a73aee9faaf1ce77a7a8f83adf

Contents?: true

Size: 1.41 KB

Versions: 11

Compression:

Stored size: 1.41 KB

Contents

#http://chrisadams.me.uk/2010/05/10/setting-up-a-centos-base-box-for-development-and-testing-with-vagrant/

date > /etc/vagrant_box_build_time

yum -y install gcc make gcc-c++ ruby kernel-devel-`uname -r` zlib-devel openssl-devel readline-devel sqlite-devel perl

cat > /etc/yum.repos.d/puppetlabs.repo << EOM
[puppetlabs]
name=puppetlabs
baseurl=http://yum.puppetlabs.com/el/6/products/\$basearch
enabled=1
gpgcheck=0
EOM

cat > /etc/yum.repos.d/epel.repo << EOM
[epel]
name=epel
baseurl=http://download.fedoraproject.org/pub/epel/6/\$basearch
enabled=1
gpgcheck=0
EOM

yum -y install puppet facter ruby-devel rubygems
yum -y clean all
rm /etc/yum.repos.d/{puppetlabs,epel}.repo

gem install --no-ri --no-rdoc chef

# Installing vagrant keys
mkdir /home/vagrant/.ssh
chmod 700 /home/vagrant/.ssh
cd /home/vagrant/.ssh
curl -L -o authorized_keys https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub
chown -R vagrant /home/vagrant/.ssh

# Installing the virtualbox guest additions
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
cd /tmp
curl -L -o VBoxGuestAdditions_$VBOX_VERSION.iso http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
sh /mnt/VBoxLinuxAdditions.run
umount /mnt

rm VBoxGuestAdditions_$VBOX_VERSION.iso

sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers

dd if=/dev/zero of=/tmp/clean || rm /tmp/clean

exit

Version data entries

11 entries across 6 versions & 2 rubygems

Version Path
HeSYINUvSBZfxqA-veewee-0.203.3 templates/CentOS-6.2-x86_64-minimal/postinstall.sh
HeSYINUvSBZfxqA-veewee-0.203.3 templates/CentOS-6.1-x86_64-minimal/postinstall.sh
HeSYINUvSBZfxqA-veewee-0.203.2 templates/CentOS-6.1-x86_64-minimal/postinstall.sh
HeSYINUvSBZfxqA-veewee-0.203.2 templates/CentOS-6.2-x86_64-minimal/postinstall.sh
HeSYINUvSBZfxqA-veewee-0.203.1 templates/CentOS-6.1-x86_64-minimal/postinstall.sh
HeSYINUvSBZfxqA-veewee-0.203.1 templates/CentOS-6.2-x86_64-minimal/postinstall.sh
veewee-0.2.3 templates/CentOS-6.2-x86_64-minimal/postinstall.sh
veewee-0.2.3 templates/CentOS-6.1-x86_64-minimal/postinstall.sh
veewee-0.2.2 templates/CentOS-6.0-x86_64-minimal/postinstall.sh
veewee-0.2.2 templates/CentOS-6.1-x86_64-minimal/postinstall.sh
veewee-0.2.1 templates/CentOS-6.0-x86_64-minimal/postinstall.sh