Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

added a template for CentOS 6.2 i386 #324

Merged
merged 1 commit into from

3 participants

@aboehrnsen

Hi!

guess the title says it all :)
Thanks a lot for veewee. It makes building Vagrant boxes so easy. I love it!

Take care
Andreas

@jedi4ever jedi4ever merged commit 716a136 into from
@petecheslock petecheslock referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 22, 2012
  1. @deepflame
This page is out of date. Refresh to see the latest.
View
14 templates/CentOS-6.2-i386-minimal/base.sh
@@ -0,0 +1,14 @@
+# Base install
+
+sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
+
+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 gcc make gcc-c++ kernel-devel-`uname -r` zlib-devel openssl-devel readline-devel sqlite-devel perl wget
+
View
3  templates/CentOS-6.2-i386-minimal/chef.sh
@@ -0,0 +1,3 @@
+# Install Chef
+gem install --no-ri --no-rdoc chef
+
View
5 templates/CentOS-6.2-i386-minimal/cleanup.sh
@@ -0,0 +1,5 @@
+yum -y erase gtk2 libX11 hicolor-icon-theme avahi freetype bitstream-vera-fonts
+yum -y clean all
+rm -rf /etc/yum.repos.d/{puppetlabs,epel}.repo
+rm -rf VBoxGuestAdditions_*.iso
+
View
39 templates/CentOS-6.2-i386-minimal/definition.rb
@@ -0,0 +1,39 @@
+Veewee::Session.declare({
+ :cpu_count => '1',
+ :memory_size=> '480',
+ :disk_size => '10140',
+ :disk_format => 'VDI',
+ :hostiocache => 'off',
+ :os_type_id => 'RedHat_64',
+ :iso_file => "CentOS-6.2-i386-minimal.iso",
+ :iso_src => "http://ftp.yz.yamagata-u.ac.jp/pub/linux/centos/6.2/isos/i386/CentOS-6.2-i386-minimal.iso",
+ :iso_md5 => "cc4fbd16bd305f5bf6731b4b10f8fd18",
+ :iso_download_timeout => 1000,
+ :boot_wait => "10",
+ :boot_cmd_sequence => [
+ '<Tab> text ks=http://%IP%:%PORT%/ks.cfg<Enter>'
+ ],
+ :kickstart_port => "7122",
+ :kickstart_timeout => 10000,
+ :kickstart_file => "ks.cfg",
+ :ssh_login_timeout => "10000",
+ :ssh_user => "veewee",
+ :ssh_password => "veewee",
+ :ssh_key => "",
+ :ssh_host_port => "7222",
+ :ssh_guest_port => "22",
+ :sudo_cmd => "echo '%p'|sudo -S sh '%f'",
+ :shutdown_cmd => "/sbin/halt -h -p",
+ :postinstall_files => [
+ "base.sh",
+ "ruby.sh",
+ "chef.sh",
+ "puppet.sh",
+ "vagrant.sh",
+ "virtualbox.sh",
+ #"kvm.sh",
+ #"vmfusion.sh",
+ "cleanup.sh"
+ ],
+ :postinstall_timeout => 10000
+})
View
39 templates/CentOS-6.2-i386-minimal/ks.cfg
@@ -0,0 +1,39 @@
+install
+cdrom
+lang en_US.UTF-8
+keyboard us
+network --bootproto=dhcp
+rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/
+firewall --enabled --service=ssh
+authconfig --enableshadow --passalgo=sha512
+selinux --disabled
+timezone UTC
+bootloader --location=mbr
+
+text
+skipx
+zerombr
+
+clearpart --all --initlabel
+autopart
+
+auth --useshadow --enablemd5
+firstboot --disabled
+reboot
+
+%packages --ignoremissing
+@core
+bzip2
+
+-ipw2100-firmware
+-ipw2200-firmware
+-ivtv-firmware
+
+%post
+/usr/bin/yum -y install sudo
+/usr/sbin/groupadd veewee
+/usr/sbin/useradd veewee -g veewee -G wheel
+echo "veewee"|passwd --stdin veewee
+echo "veewee ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/veewee
+chmod 0440 /etc/sudoers.d/veewee
+
View
12 templates/CentOS-6.2-i386-minimal/puppet.sh
@@ -0,0 +1,12 @@
+# Install Puppet
+
+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
+
+yum -y install puppet facter
+
View
3  templates/CentOS-6.2-i386-minimal/ruby.sh
@@ -0,0 +1,3 @@
+# Install Ruby
+yum -y install ruby ruby-devel rubygems
+
View
17 templates/CentOS-6.2-i386-minimal/vagrant.sh
@@ -0,0 +1,17 @@
+# Vagrant specific
+date > /etc/vagrant_box_build_time
+
+# Add vagrant user
+/usr/sbin/groupadd vagrant
+/usr/sbin/useradd vagrant -g vagrant -G wheel
+echo "vagrant"|passwd --stdin vagrant
+echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
+chmod 0440 /etc/sudoers.d/vagrant
+
+# Installing vagrant keys
+mkdir -p /home/vagrant/.ssh
+chmod 700 /home/vagrant/.ssh
+cd /home/vagrant/.ssh
+wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
+chown -R vagrant /home/vagrant/.ssh
+
View
8 templates/CentOS-6.2-i386-minimal/virtualbox.sh
@@ -0,0 +1,8 @@
+# Installing the virtualbox guest additions
+VBOX_VERSION=$(cat /home/veewee/.vbox_version)
+cd /tmp
+mount -o loop /home/veewee/VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
+sh /mnt/VBoxLinuxAdditions.run
+umount /mnt
+rm -rf /home/veewee/VBoxGuestAdditions_*.iso
+
Something went wrong with that request. Please try again.