veewee 0.3.0.beta1 → 0.3.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -7
- data/Rakefile +29 -10
- data/bin/veewee +5 -0
- data/doc/vagrant.md +2 -2
- data/lib/veewee/command/fusion.rb +1 -0
- data/lib/veewee/command/kvm.rb +1 -0
- data/lib/veewee/command/parallels.rb +1 -0
- data/lib/veewee/command/vagrant/validate.rb +5 -3
- data/lib/veewee/command/vbox.rb +1 -0
- data/lib/veewee/config/ostypes.yml +36 -2
- data/lib/veewee/definition.rb +2 -2
- data/lib/veewee/environment.rb +3 -1
- data/lib/veewee/provider/core/box.rb +2 -0
- data/lib/veewee/provider/core/box/build.rb +2 -2
- data/lib/veewee/provider/core/box/scp.rb +1 -1
- data/lib/veewee/provider/core/box/validate_tags.rb +58 -0
- data/lib/veewee/provider/core/provider.rb +5 -0
- data/lib/veewee/provider/kvm/box/create.rb +2 -2
- data/lib/veewee/provider/kvm/box/helper/console_type.rb +3 -3
- data/lib/veewee/provider/kvm/box/helper/ip.rb +2 -2
- data/lib/veewee/provider/kvm/box/helper/status.rb +2 -2
- data/lib/veewee/provider/kvm/box/validate_kvm.rb +1 -33
- data/lib/veewee/provider/kvm/provider.rb +1 -1
- data/lib/veewee/provider/parallels/box/validate_parallels.rb +1 -35
- data/lib/veewee/provider/virtualbox/box/helper/create.rb +3 -3
- data/lib/veewee/provider/virtualbox/box/validate_vagrant.rb +2 -42
- data/lib/veewee/provider/vmfusion/box/helper/buildinfo.rb +7 -3
- data/lib/veewee/provider/vmfusion/box/template.rb +9 -0
- data/lib/veewee/provider/vmfusion/box/template.vmx.erb +1 -1
- data/lib/veewee/provider/vmfusion/box/validate_vmfusion.rb +1 -35
- data/lib/veewee/provider/vmfusion/provider.rb +14 -10
- data/lib/veewee/version.rb +1 -1
- data/templates/CentOS-6.0-i386-netboot/base.sh +14 -0
- data/templates/CentOS-6.0-i386-netboot/chef.sh +3 -0
- data/templates/CentOS-6.0-i386-netboot/cleanup.sh +5 -0
- data/templates/CentOS-6.0-i386-netboot/definition.rb +33 -9
- data/templates/CentOS-6.0-i386-netboot/ks.cfg +19 -30
- data/templates/CentOS-6.0-i386-netboot/puppet.sh +12 -0
- data/templates/CentOS-6.0-i386-netboot/ruby.sh +3 -0
- data/templates/CentOS-6.0-i386-netboot/vagrant.sh +18 -0
- data/templates/CentOS-6.0-i386-netboot/virtualbox.sh +8 -0
- data/templates/CentOS-6.0-i386-netboot/zerodisk.sh +3 -0
- data/templates/CentOS-6.0-i386/base.sh +22 -0
- data/templates/CentOS-6.0-i386/chef.sh +3 -0
- data/templates/CentOS-6.0-i386/cleanup.sh +5 -0
- data/templates/CentOS-6.0-i386/definition.rb +33 -12
- data/templates/CentOS-6.0-i386/ks.cfg +12 -18
- data/templates/CentOS-6.0-i386/puppet.sh +12 -0
- data/templates/CentOS-6.0-i386/ruby.sh +3 -0
- data/templates/CentOS-6.0-i386/vagrant.sh +18 -0
- data/templates/CentOS-6.0-i386/virtualbox.sh +8 -0
- data/templates/CentOS-6.0-i386/zerodisk.sh +3 -0
- data/templates/CentOS-6.0-x86_64-minimal/base.sh +22 -0
- data/templates/CentOS-6.0-x86_64-minimal/chef.sh +3 -0
- data/templates/CentOS-6.0-x86_64-minimal/cleanup.sh +5 -0
- data/templates/CentOS-6.0-x86_64-minimal/definition.rb +33 -10
- data/templates/CentOS-6.0-x86_64-minimal/ks.cfg +11 -7
- data/templates/CentOS-6.0-x86_64-minimal/puppet.sh +12 -0
- data/templates/CentOS-6.0-x86_64-minimal/ruby.sh +3 -0
- data/templates/CentOS-6.0-x86_64-minimal/vagrant.sh +18 -0
- data/templates/CentOS-6.0-x86_64-minimal/virtualbox.sh +8 -0
- data/templates/CentOS-6.0-x86_64-minimal/zerodisk.sh +3 -0
- data/templates/CentOS-6.0-x86_64-netboot/base.sh +14 -0
- data/templates/CentOS-6.0-x86_64-netboot/chef.sh +3 -0
- data/templates/CentOS-6.0-x86_64-netboot/cleanup.sh +5 -0
- data/templates/CentOS-6.0-x86_64-netboot/definition.rb +32 -8
- data/templates/CentOS-6.0-x86_64-netboot/ks.cfg +18 -30
- data/templates/CentOS-6.0-x86_64-netboot/puppet.sh +12 -0
- data/templates/CentOS-6.0-x86_64-netboot/ruby.sh +3 -0
- data/templates/CentOS-6.0-x86_64-netboot/vagrant.sh +18 -0
- data/templates/CentOS-6.0-x86_64-netboot/virtualbox.sh +8 -0
- data/templates/CentOS-6.0-x86_64-netboot/zerodisk.sh +3 -0
- data/templates/CentOS-6.0-x86_64/base.sh +10 -0
- data/templates/CentOS-6.0-x86_64/chef.sh +1 -0
- data/templates/CentOS-6.0-x86_64/cleanup.sh +1 -0
- data/templates/CentOS-6.0-x86_64/definition.rb +16 -7
- data/templates/CentOS-6.0-x86_64/ks.cfg +12 -18
- data/templates/CentOS-6.0-x86_64/puppet.sh +1 -0
- data/templates/CentOS-6.0-x86_64/ruby.sh +2 -1
- data/templates/CentOS-6.0-x86_64/vagrant.sh +13 -4
- data/templates/CentOS-6.0-x86_64/virtualbox.sh +4 -4
- data/templates/CentOS-6.0-x86_64/zerodisk.sh +3 -0
- data/templates/CentOS-6.1-x86_64-minimal/base.sh +10 -1
- data/templates/CentOS-6.1-x86_64-minimal/chef.sh +1 -0
- data/templates/CentOS-6.1-x86_64-minimal/cleanup.sh +1 -0
- data/templates/CentOS-6.1-x86_64-minimal/definition.rb +3 -2
- data/templates/CentOS-6.1-x86_64-minimal/ks.cfg +13 -18
- data/templates/CentOS-6.1-x86_64-minimal/puppet.sh +1 -0
- data/templates/CentOS-6.1-x86_64-minimal/ruby.sh +2 -1
- data/templates/CentOS-6.1-x86_64-minimal/vagrant.sh +6 -4
- data/templates/CentOS-6.1-x86_64-minimal/virtualbox.sh +2 -2
- data/templates/CentOS-6.1-x86_64-minimal/zerodisk.sh +3 -0
- data/templates/CentOS-6.1-x86_64-netboot/base.sh +2 -1
- data/templates/CentOS-6.1-x86_64-netboot/chef.sh +1 -0
- data/templates/CentOS-6.1-x86_64-netboot/cleanup.sh +1 -0
- data/templates/CentOS-6.1-x86_64-netboot/definition.rb +7 -6
- data/templates/CentOS-6.1-x86_64-netboot/ks.cfg +13 -17
- data/templates/CentOS-6.1-x86_64-netboot/puppet.sh +1 -0
- data/templates/CentOS-6.1-x86_64-netboot/ruby.sh +2 -1
- data/templates/CentOS-6.1-x86_64-netboot/vagrant.sh +6 -4
- data/templates/CentOS-6.1-x86_64-netboot/virtualbox.sh +3 -3
- data/templates/CentOS-6.1-x86_64-netboot/zerodisk.sh +3 -0
- data/templates/CentOS-6.2-i386-minimal/base.sh +8 -0
- data/templates/CentOS-6.2-i386-minimal/definition.rb +3 -2
- data/templates/CentOS-6.2-i386-minimal/ks.cfg +4 -1
- data/templates/CentOS-6.2-i386-minimal/vagrant.sh +5 -4
- data/templates/CentOS-6.2-i386-minimal/zerodisk.sh +3 -0
- data/templates/CentOS-6.2-x86_64-minimal/base.sh +8 -0
- data/templates/CentOS-6.2-x86_64-minimal/definition.rb +3 -2
- data/templates/CentOS-6.2-x86_64-minimal/ks.cfg +4 -1
- data/templates/CentOS-6.2-x86_64-minimal/vagrant.sh +5 -4
- data/templates/CentOS-6.2-x86_64-minimal/zerodisk.sh +3 -0
- data/templates/CentOS-6.2-x86_64-netboot/base.sh +2 -1
- data/templates/CentOS-6.2-x86_64-netboot/chef.sh +1 -0
- data/templates/CentOS-6.2-x86_64-netboot/cleanup.sh +1 -0
- data/templates/CentOS-6.2-x86_64-netboot/definition.rb +7 -6
- data/templates/CentOS-6.2-x86_64-netboot/ks.cfg +13 -17
- data/templates/CentOS-6.2-x86_64-netboot/puppet.sh +1 -0
- data/templates/CentOS-6.2-x86_64-netboot/ruby.sh +2 -1
- data/templates/CentOS-6.2-x86_64-netboot/vagrant.sh +6 -4
- data/templates/CentOS-6.2-x86_64-netboot/virtualbox.sh +3 -3
- data/templates/CentOS-6.2-x86_64-netboot/zerodisk.sh +3 -0
- data/templates/CentOS-6.3-i386-minimal/definition.rb +2 -1
- data/templates/CentOS-6.3-i386-minimal/vagrant.sh +5 -4
- data/templates/CentOS-6.3-i386-minimal/zerodisk.sh +3 -0
- data/templates/CentOS-6.3-x86_64-minimal/definition.rb +2 -1
- data/templates/CentOS-6.3-x86_64-minimal/vagrant.sh +5 -4
- data/templates/CentOS-6.3-x86_64-minimal/zerodisk.sh +3 -0
- data/templates/Debian-5.0.10-amd64-netboot/base.sh +9 -0
- data/templates/Debian-5.0.10-amd64-netboot/chef.sh +2 -0
- data/templates/Debian-5.0.10-amd64-netboot/cleanup.sh +10 -0
- data/templates/Debian-5.0.10-amd64-netboot/definition.rb +39 -0
- data/templates/Debian-5.0.10-amd64-netboot/postinstall.sh +60 -0
- data/templates/Debian-5.0.10-amd64-netboot/preseed.cfg +312 -0
- data/templates/Debian-5.0.10-amd64-netboot/puppet.sh +2 -0
- data/templates/Debian-5.0.10-amd64-netboot/ruby.sh +11 -0
- data/templates/Debian-5.0.10-amd64-netboot/vagrant.sh +14 -0
- data/templates/Debian-5.0.10-amd64-netboot/virtualbox.sh +15 -0
- data/templates/Debian-5.0.10-i386-netboot/base.sh +9 -0
- data/templates/Debian-5.0.10-i386-netboot/chef.sh +2 -0
- data/templates/Debian-5.0.10-i386-netboot/cleanup.sh +10 -0
- data/templates/Debian-5.0.10-i386-netboot/definition.rb +39 -0
- data/templates/Debian-5.0.10-i386-netboot/postinstall.sh +60 -0
- data/templates/Debian-5.0.10-i386-netboot/preseed.cfg +312 -0
- data/templates/Debian-5.0.10-i386-netboot/puppet.sh +2 -0
- data/templates/Debian-5.0.10-i386-netboot/ruby.sh +11 -0
- data/templates/Debian-5.0.10-i386-netboot/vagrant.sh +14 -0
- data/templates/Debian-5.0.10-i386-netboot/virtualbox.sh +15 -0
- data/templates/Debian-5.0.8-amd64-netboot/preseed.cfg +2 -2
- data/templates/Debian-5.0.8-i386-netboot/preseed.cfg +2 -2
- data/templates/Debian-6.0.4-amd64-netboot/definition.rb +1 -1
- data/templates/Debian-6.0.4-amd64-netboot/vagrant.sh +5 -1
- data/templates/Debian-6.0.4-i386-netboot/definition.rb +1 -1
- data/templates/Debian-6.0.4-i386-netboot/vagrant.sh +5 -1
- data/templates/Debian-6.0.5-amd64-netboot/vagrant.sh +5 -1
- data/templates/Debian-6.0.5-i386-netboot/vagrant.sh +5 -1
- data/templates/SLES-11-SP1-DVD-i586-GM/postinstall.sh +3 -0
- data/templates/SLES-11-SP1-DVD-x86_64-GM/postinstall.sh +3 -0
- data/templates/gentoo-latest-i386-experimental/definition.rb +20 -4
- data/templates/gentoo-latest-x86_64-experimental/definition.rb +23 -12
- data/templates/scientificlinux-6.1-i386-netboot/definition.rb +1 -2
- data/templates/scientificlinux-6.3-i386-netboot/base.sh +1 -0
- data/templates/scientificlinux-6.3-i386-netboot/chef.sh +1 -0
- data/templates/scientificlinux-6.3-i386-netboot/cleanup.sh +4 -0
- data/templates/scientificlinux-6.3-i386-netboot/definition.rb +37 -0
- data/templates/scientificlinux-6.3-i386-netboot/ks.cfg +53 -0
- data/templates/{CentOS-6.0-i386-netboot → scientificlinux-6.3-i386-netboot}/postinstall.sh +2 -2
- data/templates/scientificlinux-6.3-i386-netboot/puppet.sh +1 -0
- data/templates/scientificlinux-6.3-i386-netboot/ruby.sh +1 -0
- data/templates/scientificlinux-6.3-i386-netboot/vagrant.sh +8 -0
- data/templates/scientificlinux-6.3-i386-netboot/virtualbox.sh +8 -0
- data/templates/scientificlinux-6.3-x86_64-netboot/base.sh +1 -0
- data/templates/scientificlinux-6.3-x86_64-netboot/chef.sh +1 -0
- data/templates/scientificlinux-6.3-x86_64-netboot/cleanup.sh +4 -0
- data/templates/scientificlinux-6.3-x86_64-netboot/definition.rb +37 -0
- data/templates/scientificlinux-6.3-x86_64-netboot/ks.cfg +53 -0
- data/templates/{CentOS-6.0-x86_64-netboot → scientificlinux-6.3-x86_64-netboot}/postinstall.sh +2 -2
- data/templates/scientificlinux-6.3-x86_64-netboot/puppet.sh +1 -0
- data/templates/scientificlinux-6.3-x86_64-netboot/ruby.sh +1 -0
- data/templates/scientificlinux-6.3-x86_64-netboot/rvm-ruby.sh +9 -0
- data/templates/scientificlinux-6.3-x86_64-netboot/vagrant.sh +8 -0
- data/templates/scientificlinux-6.3-x86_64-netboot/virtualbox.sh +8 -0
- data/templates/ubuntu-10.04.3-server-i386/postinstall.sh +5 -5
- data/templates/{ubuntu-12.04-server-amd64-packages → ubuntu-12.04.1-server-amd64-packages}/definition.rb +3 -3
- data/templates/{ubuntu-12.04-server-amd64-packages → ubuntu-12.04.1-server-amd64-packages}/postinstall.sh +0 -0
- data/templates/{ubuntu-12.04-server-amd64-packages → ubuntu-12.04.1-server-amd64-packages}/preseed.cfg +0 -0
- data/templates/{ubuntu-12.04-server-amd64 → ubuntu-12.04.1-server-amd64}/definition.rb +3 -3
- data/templates/{ubuntu-12.04-server-amd64 → ubuntu-12.04.1-server-amd64}/postinstall.sh +0 -0
- data/templates/{ubuntu-12.04-server-amd64 → ubuntu-12.04.1-server-amd64}/preseed.cfg +0 -0
- data/templates/{ubuntu-12.04-server-i386-packages → ubuntu-12.04.1-server-i386-packages}/definition.rb +3 -3
- data/templates/{ubuntu-12.04-server-i386-packages → ubuntu-12.04.1-server-i386-packages}/postinstall.sh +0 -0
- data/templates/{ubuntu-12.04-server-i386-packages → ubuntu-12.04.1-server-i386-packages}/preseed.cfg +0 -0
- data/templates/{ubuntu-12.04-server-i386 → ubuntu-12.04.1-server-i386}/definition.rb +3 -3
- data/templates/{ubuntu-12.04-server-i386 → ubuntu-12.04.1-server-i386}/postinstall.sh +0 -0
- data/templates/{ubuntu-12.04-server-i386 → ubuntu-12.04.1-server-i386}/preseed.cfg +0 -0
- data/templates/{windows-8-preview-dev-amd64 → windows-8-preview-amd64}/Autounattend.xml +0 -0
- data/templates/{windows-8-preview-dev-amd64 → windows-8-preview-amd64}/README.md +0 -0
- data/templates/{windows-8-preview-dev-amd64 → windows-8-preview-amd64}/cygwin-setup.exe +0 -0
- data/templates/{windows-8-preview-dev-amd64 → windows-8-preview-amd64}/definition.rb +3 -3
- data/templates/{windows-8-preview-dev-amd64 → windows-8-preview-amd64}/install-cygwin-sshd.bat +0 -0
- data/templates/{windows-8-preview-dev-amd64 → windows-8-preview-amd64}/install-winrm.bat +0 -0
- data/templates/{windows-8-preview-dev-amd64 → windows-8-preview-amd64}/oracle-cert.cer +0 -0
- data/templates/{windows-8-preview-dev-amd64 → windows-8-preview-amd64}/postinstall.sh +0 -0
- data/templates/{windows-8-preview-dev-amd64 → windows-8-preview-amd64}/winrm.rb +0 -0
- data/validation/veewee.feature +6 -6
- metadata +306 -157
- data/templates/CentOS-6.0-i386/postinstall.sh +0 -48
- data/templates/CentOS-6.0-x86_64-minimal/postinstall.sh +0 -58
- data/templates/CentOS-6.0-x86_64/postinstall.sh +0 -48
- data/templates/CentOS-6.1-x86_64-netboot/postinstall.sh +0 -48
- data/templates/CentOS-6.2-x86_64-netboot/postinstall.sh +0 -48
@@ -10,4 +10,5 @@ enabled=1
|
|
10
10
|
gpgcheck=0
|
11
11
|
EOM
|
12
12
|
|
13
|
-
yum -y install gcc make gcc-c++ kernel-devel-`uname -r` zlib-devel openssl-devel readline-devel sqlite-devel perl
|
13
|
+
yum -y install gcc make gcc-c++ kernel-devel-`uname -r` zlib-devel openssl-devel readline-devel sqlite-devel perl wget
|
14
|
+
|
@@ -1,18 +1,18 @@
|
|
1
|
-
Veewee::
|
1
|
+
Veewee::Session.declare({
|
2
2
|
:cpu_count => '1',
|
3
3
|
:memory_size=> '480',
|
4
4
|
:disk_size => '10140',
|
5
5
|
:disk_format => 'VDI',
|
6
6
|
:hostiocache => 'off',
|
7
|
-
:ioapic => 'on',
|
8
|
-
:pae => 'on',
|
9
7
|
:os_type_id => 'RedHat_64',
|
10
8
|
:iso_file => "CentOS-6.1-x86_64-netinstall.iso",
|
11
9
|
:iso_src => "http://vault.centos.org/6.1/isos/x86_64/CentOS-6.1-x86_64-netinstall.iso",
|
12
|
-
:iso_md5 => "
|
10
|
+
:iso_md5 => "b0366858089526fb025f0da4abf6d732",
|
13
11
|
:iso_download_timeout => 1000,
|
14
12
|
:boot_wait => "15",
|
15
|
-
:boot_cmd_sequence => [
|
13
|
+
:boot_cmd_sequence => [
|
14
|
+
'<Tab> text ks=http://%IP%:%PORT%/ks.cfg<Enter>'
|
15
|
+
],
|
16
16
|
:kickstart_port => "7122",
|
17
17
|
:kickstart_timeout => 10000,
|
18
18
|
:kickstart_file => "ks.cfg",
|
@@ -33,7 +33,8 @@ Veewee::Definition.declare({
|
|
33
33
|
"virtualbox.sh",
|
34
34
|
#"kvm.sh",
|
35
35
|
#"vmfusion.sh",
|
36
|
-
"cleanup.sh"
|
36
|
+
"cleanup.sh",
|
37
|
+
"zerodisk.sh"
|
37
38
|
],
|
38
39
|
:postinstall_timeout => 10000
|
39
40
|
})
|
@@ -1,13 +1,13 @@
|
|
1
1
|
install
|
2
|
-
url --url=http://
|
2
|
+
url --url=http://vault.centos.org/6.1/os/x86_64/
|
3
3
|
lang en_US.UTF-8
|
4
4
|
keyboard us
|
5
|
-
network --bootproto
|
5
|
+
network --bootproto=dhcp
|
6
6
|
rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/
|
7
|
-
firewall --enabled --
|
8
|
-
authconfig --enableshadow --
|
7
|
+
firewall --enabled --service=ssh
|
8
|
+
authconfig --enableshadow --passalgo=sha512
|
9
9
|
selinux --disabled
|
10
|
-
timezone
|
10
|
+
timezone UTC
|
11
11
|
bootloader --location=mbr
|
12
12
|
|
13
13
|
text
|
@@ -17,30 +17,26 @@ zerombr
|
|
17
17
|
clearpart --all --initlabel
|
18
18
|
autopart
|
19
19
|
|
20
|
-
auth
|
20
|
+
auth --useshadow --enablemd5
|
21
21
|
firstboot --disabled
|
22
22
|
reboot
|
23
23
|
|
24
|
-
%packages
|
25
|
-
@
|
26
|
-
kernel-devel
|
27
|
-
gcc
|
28
|
-
gcc-c++
|
24
|
+
%packages --ignoremissing
|
25
|
+
@core
|
29
26
|
bzip2
|
30
|
-
|
31
|
-
|
32
|
-
openssl-devel
|
33
|
-
readline-devel
|
34
|
-
sqlite-devel
|
35
|
-
|
27
|
+
kernel-devel
|
28
|
+
kernel-headers
|
36
29
|
-ipw2100-firmware
|
37
30
|
-ipw2200-firmware
|
38
31
|
-ivtv-firmware
|
32
|
+
%end
|
39
33
|
|
40
34
|
%post
|
35
|
+
/usr/bin/yum -y install sudo
|
41
36
|
/usr/sbin/groupadd veewee
|
42
37
|
/usr/sbin/useradd veewee -g veewee -G wheel
|
43
38
|
echo "veewee"|passwd --stdin veewee
|
44
39
|
echo "veewee ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/veewee
|
45
40
|
chmod 0440 /etc/sudoers.d/veewee
|
41
|
+
%end
|
46
42
|
|
@@ -9,8 +9,10 @@ echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
|
|
9
9
|
chmod 0440 /etc/sudoers.d/vagrant
|
10
10
|
|
11
11
|
# Installing vagrant keys
|
12
|
-
mkdir -
|
13
|
-
|
14
|
-
|
15
|
-
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
|
12
|
+
mkdir -pm 700 /home/vagrant/.ssh
|
13
|
+
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
|
14
|
+
chmod 0600 /home/vagrant/.ssh/authorized_keys
|
16
15
|
chown -R vagrant /home/vagrant/.ssh
|
16
|
+
|
17
|
+
# Customize the message of the day
|
18
|
+
echo 'Welcome to your Vagrant-built virtual machine.' > /etc/motd
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# Installing the virtualbox guest additions
|
2
2
|
VBOX_VERSION=$(cat /home/veewee/.vbox_version)
|
3
3
|
cd /tmp
|
4
|
-
|
5
|
-
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
4
|
+
mount -o loop /home/veewee/VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
6
5
|
sh /mnt/VBoxLinuxAdditions.run
|
7
6
|
umount /mnt
|
8
|
-
rm VBoxGuestAdditions_
|
7
|
+
rm -rf /home/veewee/VBoxGuestAdditions_*.iso
|
8
|
+
|
@@ -10,5 +10,13 @@ enabled=1
|
|
10
10
|
gpgcheck=0
|
11
11
|
EOM
|
12
12
|
|
13
|
+
cat > /etc/yum.repos.d/centos-vault.repo << EOM
|
14
|
+
[vault]
|
15
|
+
name=vault
|
16
|
+
baseurl=http://vault.centos.org/6.2/os/\$basearch
|
17
|
+
enabled=1
|
18
|
+
gpgcheck=0
|
19
|
+
EOM
|
20
|
+
|
13
21
|
yum -y install gcc make gcc-c++ kernel-devel-`uname -r` zlib-devel openssl-devel readline-devel sqlite-devel perl wget
|
14
22
|
|
@@ -6,7 +6,7 @@ Veewee::Session.declare({
|
|
6
6
|
:hostiocache => 'off',
|
7
7
|
:os_type_id => 'RedHat_64',
|
8
8
|
:iso_file => "CentOS-6.2-i386-minimal.iso",
|
9
|
-
:iso_src => "http://
|
9
|
+
:iso_src => "http://vault.centos.org/6.2/isos/i386/CentOS-6.2-i386-minimal.iso",
|
10
10
|
:iso_md5 => "cc4fbd16bd305f5bf6731b4b10f8fd18",
|
11
11
|
:iso_download_timeout => 1000,
|
12
12
|
:boot_wait => "10",
|
@@ -33,7 +33,8 @@ Veewee::Session.declare({
|
|
33
33
|
"virtualbox.sh",
|
34
34
|
#"kvm.sh",
|
35
35
|
#"vmfusion.sh",
|
36
|
-
"cleanup.sh"
|
36
|
+
"cleanup.sh",
|
37
|
+
"zerodisk.sh"
|
37
38
|
],
|
38
39
|
:postinstall_timeout => 10000
|
39
40
|
})
|
@@ -24,10 +24,12 @@ reboot
|
|
24
24
|
%packages --ignoremissing
|
25
25
|
@core
|
26
26
|
bzip2
|
27
|
-
|
27
|
+
kernel-devel
|
28
|
+
kernel-headers
|
28
29
|
-ipw2100-firmware
|
29
30
|
-ipw2200-firmware
|
30
31
|
-ivtv-firmware
|
32
|
+
%end
|
31
33
|
|
32
34
|
%post
|
33
35
|
/usr/bin/yum -y install sudo
|
@@ -36,4 +38,5 @@ bzip2
|
|
36
38
|
echo "veewee"|passwd --stdin veewee
|
37
39
|
echo "veewee ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/veewee
|
38
40
|
chmod 0440 /etc/sudoers.d/veewee
|
41
|
+
%end
|
39
42
|
|
@@ -9,9 +9,10 @@ echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
|
|
9
9
|
chmod 0440 /etc/sudoers.d/vagrant
|
10
10
|
|
11
11
|
# Installing vagrant keys
|
12
|
-
mkdir -
|
13
|
-
|
14
|
-
|
15
|
-
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
|
12
|
+
mkdir -pm 700 /home/vagrant/.ssh
|
13
|
+
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
|
14
|
+
chmod 0600 /home/vagrant/.ssh/authorized_keys
|
16
15
|
chown -R vagrant /home/vagrant/.ssh
|
17
16
|
|
17
|
+
# Customize the message of the day
|
18
|
+
echo 'Welcome to your Vagrant-built virtual machine.' > /etc/motd
|
@@ -10,5 +10,13 @@ enabled=1
|
|
10
10
|
gpgcheck=0
|
11
11
|
EOM
|
12
12
|
|
13
|
+
cat > /etc/yum.repos.d/centos-vault.repo << EOM
|
14
|
+
[vault]
|
15
|
+
name=vault
|
16
|
+
baseurl=http://vault.centos.org/6.2/os/\$basearch
|
17
|
+
enabled=1
|
18
|
+
gpgcheck=0
|
19
|
+
EOM
|
20
|
+
|
13
21
|
yum -y install gcc make gcc-c++ kernel-devel-`uname -r` zlib-devel openssl-devel readline-devel sqlite-devel perl wget
|
14
22
|
|
@@ -6,7 +6,7 @@ Veewee::Session.declare({
|
|
6
6
|
:hostiocache => 'off',
|
7
7
|
:os_type_id => 'RedHat_64',
|
8
8
|
:iso_file => "CentOS-6.2-x86_64-minimal.iso",
|
9
|
-
:iso_src => "http://centos.
|
9
|
+
:iso_src => "http://vault.centos.org/6.2/isos/x86_64/CentOS-6.2-x86_64-minimal.iso",
|
10
10
|
:iso_md5 => "20dac370a6e08ded2701e4104855bc6e",
|
11
11
|
:iso_download_timeout => 1000,
|
12
12
|
:boot_wait => "10",
|
@@ -33,7 +33,8 @@ Veewee::Session.declare({
|
|
33
33
|
"virtualbox.sh",
|
34
34
|
#"kvm.sh",
|
35
35
|
#"vmfusion.sh",
|
36
|
-
"cleanup.sh"
|
36
|
+
"cleanup.sh",
|
37
|
+
"zerodisk.sh"
|
37
38
|
],
|
38
39
|
:postinstall_timeout => 10000
|
39
40
|
})
|
@@ -24,10 +24,12 @@ reboot
|
|
24
24
|
%packages --ignoremissing
|
25
25
|
@core
|
26
26
|
bzip2
|
27
|
-
|
27
|
+
kernel-devel
|
28
|
+
kernel-headers
|
28
29
|
-ipw2100-firmware
|
29
30
|
-ipw2200-firmware
|
30
31
|
-ivtv-firmware
|
32
|
+
%end
|
31
33
|
|
32
34
|
%post
|
33
35
|
/usr/bin/yum -y install sudo
|
@@ -36,4 +38,5 @@ bzip2
|
|
36
38
|
echo "veewee"|passwd --stdin veewee
|
37
39
|
echo "veewee ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/veewee
|
38
40
|
chmod 0440 /etc/sudoers.d/veewee
|
41
|
+
%end
|
39
42
|
|
@@ -9,9 +9,10 @@ echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
|
|
9
9
|
chmod 0440 /etc/sudoers.d/vagrant
|
10
10
|
|
11
11
|
# Installing vagrant keys
|
12
|
-
mkdir -
|
13
|
-
|
14
|
-
|
15
|
-
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
|
12
|
+
mkdir -pm 700 /home/vagrant/.ssh
|
13
|
+
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
|
14
|
+
chmod 0600 /home/vagrant/.ssh/authorized_keys
|
16
15
|
chown -R vagrant /home/vagrant/.ssh
|
17
16
|
|
17
|
+
# Customize the message of the day
|
18
|
+
echo 'Welcome to your Vagrant-built virtual machine.' > /etc/motd
|
@@ -10,4 +10,5 @@ enabled=1
|
|
10
10
|
gpgcheck=0
|
11
11
|
EOM
|
12
12
|
|
13
|
-
yum -y install gcc make gcc-c++ kernel-devel-`uname -r` zlib-devel openssl-devel readline-devel sqlite-devel perl
|
13
|
+
yum -y install gcc make gcc-c++ kernel-devel-`uname -r` zlib-devel openssl-devel readline-devel sqlite-devel perl wget
|
14
|
+
|
@@ -1,18 +1,18 @@
|
|
1
|
-
Veewee::
|
1
|
+
Veewee::Session.declare({
|
2
2
|
:cpu_count => '1',
|
3
3
|
:memory_size=> '480',
|
4
4
|
:disk_size => '10140',
|
5
5
|
:disk_format => 'VDI',
|
6
6
|
:hostiocache => 'off',
|
7
|
-
:ioapic => 'on',
|
8
|
-
:pae => 'on',
|
9
7
|
:os_type_id => 'RedHat_64',
|
10
8
|
:iso_file => "CentOS-6.2-x86_64-netinstall.iso",
|
11
|
-
:iso_src => "http://
|
9
|
+
:iso_src => "http://vault.centos.org/6.2/isos/x86_64/CentOS-6.2-x86_64-netinstall.iso",
|
12
10
|
:iso_md5 => "7e7f4161a5c8c49032655e5f4ecd1f07",
|
13
11
|
:iso_download_timeout => 1000,
|
14
12
|
:boot_wait => "15",
|
15
|
-
:boot_cmd_sequence => [
|
13
|
+
:boot_cmd_sequence => [
|
14
|
+
'<Tab> text ks=http://%IP%:%PORT%/ks.cfg<Enter>'
|
15
|
+
],
|
16
16
|
:kickstart_port => "7122",
|
17
17
|
:kickstart_timeout => 10000,
|
18
18
|
:kickstart_file => "ks.cfg",
|
@@ -33,7 +33,8 @@ Veewee::Definition.declare({
|
|
33
33
|
"virtualbox.sh",
|
34
34
|
#"kvm.sh",
|
35
35
|
#"vmfusion.sh",
|
36
|
-
"cleanup.sh"
|
36
|
+
"cleanup.sh",
|
37
|
+
"zerodisk.sh"
|
37
38
|
],
|
38
39
|
:postinstall_timeout => 10000
|
39
40
|
})
|
@@ -1,13 +1,13 @@
|
|
1
1
|
install
|
2
|
-
url --url=http://
|
2
|
+
url --url=http://vault.centos.org/6.2/os/x86_64/
|
3
3
|
lang en_US.UTF-8
|
4
4
|
keyboard us
|
5
|
-
network --bootproto
|
5
|
+
network --bootproto=dhcp
|
6
6
|
rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/
|
7
|
-
firewall --enabled --
|
8
|
-
authconfig --enableshadow --
|
7
|
+
firewall --enabled --service=ssh
|
8
|
+
authconfig --enableshadow --passalgo=sha512
|
9
9
|
selinux --disabled
|
10
|
-
timezone
|
10
|
+
timezone UTC
|
11
11
|
bootloader --location=mbr
|
12
12
|
|
13
13
|
text
|
@@ -17,30 +17,26 @@ zerombr
|
|
17
17
|
clearpart --all --initlabel
|
18
18
|
autopart
|
19
19
|
|
20
|
-
auth
|
20
|
+
auth --useshadow --enablemd5
|
21
21
|
firstboot --disabled
|
22
22
|
reboot
|
23
23
|
|
24
|
-
%packages
|
25
|
-
@
|
26
|
-
kernel-devel
|
27
|
-
gcc
|
28
|
-
gcc-c++
|
24
|
+
%packages --ignoremissing
|
25
|
+
@core
|
29
26
|
bzip2
|
30
|
-
|
31
|
-
|
32
|
-
openssl-devel
|
33
|
-
readline-devel
|
34
|
-
sqlite-devel
|
35
|
-
|
27
|
+
kernel-devel
|
28
|
+
kernel-headers
|
36
29
|
-ipw2100-firmware
|
37
30
|
-ipw2200-firmware
|
38
31
|
-ivtv-firmware
|
32
|
+
%end
|
39
33
|
|
40
34
|
%post
|
35
|
+
/usr/bin/yum -y install sudo
|
41
36
|
/usr/sbin/groupadd veewee
|
42
37
|
/usr/sbin/useradd veewee -g veewee -G wheel
|
43
38
|
echo "veewee"|passwd --stdin veewee
|
44
39
|
echo "veewee ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/veewee
|
45
40
|
chmod 0440 /etc/sudoers.d/veewee
|
41
|
+
%end
|
46
42
|
|
@@ -9,8 +9,10 @@ echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
|
|
9
9
|
chmod 0440 /etc/sudoers.d/vagrant
|
10
10
|
|
11
11
|
# Installing vagrant keys
|
12
|
-
mkdir -
|
13
|
-
|
14
|
-
|
15
|
-
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
|
12
|
+
mkdir -pm 700 /home/vagrant/.ssh
|
13
|
+
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
|
14
|
+
chmod 0600 /home/vagrant/.ssh/authorized_keys
|
16
15
|
chown -R vagrant /home/vagrant/.ssh
|
16
|
+
|
17
|
+
# Customize the message of the day
|
18
|
+
echo 'Welcome to your Vagrant-built virtual machine.' > /etc/motd
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# Installing the virtualbox guest additions
|
2
2
|
VBOX_VERSION=$(cat /home/veewee/.vbox_version)
|
3
3
|
cd /tmp
|
4
|
-
|
5
|
-
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
4
|
+
mount -o loop /home/veewee/VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
6
5
|
sh /mnt/VBoxLinuxAdditions.run
|
7
6
|
umount /mnt
|
8
|
-
rm VBoxGuestAdditions_
|
7
|
+
rm -rf /home/veewee/VBoxGuestAdditions_*.iso
|
8
|
+
|