Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

V03 templ cent os 6.0 x86 64 #220

Merged
merged 2 commits into from

2 participants

@arioch

Split postinstall for centos-6.0-x86_64 for veewee03

@jedi4ever jedi4ever merged commit 4b8f9f2 into jedi4ever:veewee03
@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 Feb 6, 2012
  1. @arioch

    increase readability

    arioch authored
  2. @arioch
This page is out of date. Refresh to see the latest.
View
12 templates/CentOS-6.0-x86_64/base.sh
@@ -0,0 +1,12 @@
+# 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
+
View
2  templates/CentOS-6.0-x86_64/chef.sh
@@ -0,0 +1,2 @@
+# Install Chef
+gem install --no-ri --no-rdoc chef
View
4 templates/CentOS-6.0-x86_64/cleanup.sh
@@ -0,0 +1,4 @@
+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
30 templates/CentOS-6.0-x86_64/definition.rb
@@ -1,17 +1,31 @@
Veewee::Definition.declare({
- :cpu_count => '1', :memory_size=> '384',
- :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
+ :cpu_count => '1',
+ :memory_size=> '384',
+ :disk_size => '10140',
+ :disk_format => 'VDI',
+ :hostiocache => 'off',
:os_type_id => 'RedHat_64',
- :iso_file => "CentOS-6.0-x86_64-bin-DVD1.iso", :iso_src => "http://be.mirror.eurid.eu/centos/6.0/isos/x86_64/CentOS-6.0-x86_64-bin-DVD1.iso", :iso_md5 => "7c148e0a1b330186adef66ee3e2d433d", :iso_download_timeout => 1000,
+ :iso_file => "CentOS-6.0-x86_64-bin-DVD1.iso",
+ :iso_src => "http://be.mirror.eurid.eu/centos/6.0/isos/x86_64/CentOS-6.0-x86_64-bin-DVD1.iso",
+ :iso_md5 => "7c148e0a1b330186adef66ee3e2d433d",
+ :iso_download_timeout => 1000,
:iso_download_instructions => "We can not download the ISO , you need to download it yourself and put it in the iso directory\n"+
"- URL: http://isoredirect.centos.org/centos/6/isos/x86_64/ ",
- :boot_wait => "10", :boot_cmd_sequence => [
+ :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 => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
- :ssh_host_port => "7222", :ssh_guest_port => "22",
+ :kickstart_port => "7122",
+ :kickstart_timeout => 10000,
+ :kickstart_file => "ks.cfg",
+ :ssh_login_timeout => "10000",
+ :ssh_user => "vagrant",
+ :ssh_password => "vagrant",
+ :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 => [ "postinstall.sh"], :postinstall_timeout => 10000
+ :postinstall_files => [ "postinstall.sh"],
+ :postinstall_timeout => 10000
})
View
11 templates/CentOS-6.0-x86_64/puppet.sh
@@ -0,0 +1,11 @@
+# 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
2  templates/CentOS-6.0-x86_64/ruby.sh
@@ -0,0 +1,2 @@
+# Install Ruby
+yum -y install ruby-devel rubygems
View
9 templates/CentOS-6.0-x86_64/vagrant.sh
@@ -0,0 +1,9 @@
+# Vagrant specific
+date > /etc/vagrant_box_build_time
+
+# Installing vagrant keys
+mkdir /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.0-x86_64/virtualbox.sh
@@ -0,0 +1,8 @@
+# Installing the virtualbox guest additions
+VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
+cd /tmp
+wget 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
Something went wrong with that request. Please try again.