Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

V03 templ scientificlinux 6.1 #224

Merged
merged 2 commits into from

2 participants

@arioch

Split postinstall for scientific linux 6.1 x86_64
Split postinstall for scientific linux 6.1 i386

@arioch

Support for SL6.1 definitely needs refactoring.
It's installing puppet and facter from both kickstart postinstall section AND the postinstall.sh file.

I'll try to find some time to refacter and send in an additional pull request for this purpose.

@jedi4ever jedi4ever merged commit e7962a3 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. Split postinstall scientificlinux-6.1-x86_64

    Tom De Vylder authored
  2. Split postinstall scientificlinux-6.1-i386

    Tom De Vylder authored
This page is out of date. Refresh to see the latest.
View
1  templates/scientificlinux-6.1-i386-netboot/base.sh
@@ -0,0 +1 @@
+sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
View
1  templates/scientificlinux-6.1-i386-netboot/chef.sh
@@ -0,0 +1 @@
+gem install --no-ri --no-rdoc chef
View
4 templates/scientificlinux-6.1-i386-netboot/cleanup.sh
@@ -0,0 +1,4 @@
+yum -y erase wireless-tools gtk2 libX11 hicolor-icon-theme avahi freetype bitstream-vera-fonts
+yum -y clean all
+
+rm -rf VBoxGuestAdditions_*.iso
View
33 templates/scientificlinux-6.1-i386-netboot/definition.rb
@@ -1,16 +1,35 @@
Veewee::Session.declare({
- :cpu_count => '1', :memory_size=> '512',
- :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :ioapic => 'on', :pae => 'on',
+ :cpu_count => '1',
+ :memory_size=> '512',
+ :disk_size => '10140',
+ :disk_format => 'VDI',
+ :hostiocache => 'off',
+ :ioapic => 'on',
+ :pae => 'on',
:os_type_id => 'RedHat_64',
:iso_file => "SL-61-i386-2011-07-27-boot.iso",
:iso_src => "http://mirrors.200p-sf.sonic.net/scientific/6.1/i386/iso/SL-61-i386-2011-07-27-boot.iso",
:iso_md5 => "d3cd58e67052331c9c3648e3ecd00b13",
:iso_download_timeout => 1000,
- :boot_wait => "15", :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 => "100", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
- :ssh_host_port => "7222", :ssh_guest_port => "22",
+ :boot_wait => "15",
+ :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 => "100",
+ :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 => [
+ "base.sh",
+ "puppet.sh",
+ "chef.sh",
+ "vagrant.sh",
+ "cleanup.sh"
+ ],
+ :postinstall_timeout => 10000
})
View
1  templates/scientificlinux-6.1-i386-netboot/puppet.sh
@@ -0,0 +1 @@
+gem install --no-ri --no-rdoc puppet
View
8 templates/scientificlinux-6.1-i386-netboot/vagrant.sh
@@ -0,0 +1,8 @@
+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 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
+chown -R vagrant /home/vagrant/.ssh
View
8 templates/scientificlinux-6.1-i386-netboot/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 -rf VBoxGuestAdditions_$VBOX_VERSION.iso
View
1  templates/scientificlinux-6.1-x86_64-netboot/base.sh
@@ -0,0 +1 @@
+sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
View
1  templates/scientificlinux-6.1-x86_64-netboot/chef.sh
@@ -0,0 +1 @@
+gem install --no-ri --no-rdoc chef
View
4 templates/scientificlinux-6.1-x86_64-netboot/cleanup.sh
@@ -0,0 +1,4 @@
+yum -y erase wireless-tools gtk2 libX11 hicolor-icon-theme avahi freetype bitstream-vera-fonts
+yum -y clean all
+
+rm -rf VBoxGuestAdditions_*.iso
View
33 templates/scientificlinux-6.1-x86_64-netboot/definition.rb
@@ -1,16 +1,35 @@
Veewee::Session.declare({
- :cpu_count => '1', :memory_size=> '512',
- :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :ioapic => 'on', :pae => 'on',
+ :cpu_count => '1',
+ :memory_size=> '512',
+ :disk_size => '10140',
+ :disk_format => 'VDI',
+ :hostiocache => 'off',
+ :ioapic => 'on',
+ :pae => 'on',
:os_type_id => 'RedHat_64',
:iso_file => "SL-61-x86_64-2011-07-27-boot.iso",
:iso_src => "http://mirrors.200p-sf.sonic.net/scientific/6.1/x86_64/iso/SL-61-x86_64-2011-07-27-boot.iso",
:iso_md5 => "863841b65b5b42f7ad0e735bb9aa669d",
:iso_download_timeout => 1000,
- :boot_wait => "15", :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 => "100", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
- :ssh_host_port => "7222", :ssh_guest_port => "22",
+ :boot_wait => "15",
+ :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 => "100",
+ :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 => [
+ "base.sh",
+ "puppet.sh",
+ "chef.sh",
+ "vagrant.sh",
+ "cleanup.sh"
+ ],
+ :postinstall_timeout => 10000
})
View
1  templates/scientificlinux-6.1-x86_64-netboot/puppet.sh
@@ -0,0 +1 @@
+gem install --no-ri --no-rdoc puppet
View
8 templates/scientificlinux-6.1-x86_64-netboot/vagrant.sh
@@ -0,0 +1,8 @@
+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 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
+chown -R vagrant /home/vagrant/.ssh
View
8 templates/scientificlinux-6.1-x86_64-netboot/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 -rf VBoxGuestAdditions_$VBOX_VERSION.iso
Something went wrong with that request. Please try again.