veewee 0.5.0.alpha1 → 0.5.0.alpha2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile +1 -1
- data/lib/veewee/provider/core/helper/iso.rb +9 -5
- data/lib/veewee/version.rb +1 -1
- data/templates/{CentOS-5.10-i386-netboot → CentOS-5.10}/base.sh +0 -0
- data/templates/CentOS-5.10/centos_32_dvd.yml +5 -0
- data/templates/CentOS-5.10/centos_32_net.yml +5 -0
- data/templates/CentOS-5.10/centos_64_dvd.yml +5 -0
- data/templates/CentOS-5.10/centos_64_net.yml +5 -0
- data/templates/{CentOS-5.10-i386-netboot → CentOS-5.10}/chef.sh +0 -0
- data/templates/{CentOS-5.10-i386-netboot → CentOS-5.10}/cleanup.sh +0 -0
- data/templates/CentOS-5.10/definition.rb +5 -0
- data/templates/CentOS-5.10/definition.yml +35 -0
- data/templates/{CentOS-5.10-x86_64-netboot → CentOS-5.10}/ks.cfg +6 -0
- data/templates/{CentOS-5.10-i386-netboot → CentOS-5.10}/puppet.sh +0 -0
- data/templates/{CentOS-5.10-i386-netboot → CentOS-5.10}/ruby.sh +0 -0
- data/templates/{CentOS-5.10-i386-netboot → CentOS-5.10}/vagrant.sh +0 -0
- data/templates/{CentOS-5.10-i386-netboot → CentOS-5.10}/virtualbox.sh +0 -0
- data/templates/{CentOS-5.10-i386-netboot → CentOS-5.10}/zerodisk.sh +0 -0
- data/templates/Debian-5.0.10-amd64-netboot/base.sh +1 -1
- data/templates/Debian-5.0.10-amd64-netboot/vagrant.sh +1 -1
- data/templates/Debian-5.0.10-i386-netboot/base.sh +1 -1
- data/templates/Debian-5.0.10-i386-netboot/vagrant.sh +1 -1
- data/templates/Debian-5.0.8-amd64-netboot/base.sh +1 -1
- data/templates/Debian-5.0.8-amd64-netboot/vagrant.sh +1 -1
- data/templates/Debian-5.0.8-i386-netboot/base.sh +1 -1
- data/templates/Debian-5.0.8-i386-netboot/vagrant.sh +1 -1
- data/templates/Debian-6.0.6-amd64-netboot/base.sh +1 -1
- data/templates/Debian-7.0-amd64-netboot/base.sh +1 -1
- data/templates/Debian-7.0-i386-netboot/base.sh +1 -1
- data/templates/Debian-7.1.0-amd64-netboot/base.sh +1 -1
- data/templates/Debian-7.1.0-i386-netboot/base.sh +1 -1
- data/templates/Debian-7.2.0-amd64-netboot/base.sh +1 -1
- data/templates/Debian-7.2.0-i386-netboot/base.sh +1 -1
- data/templates/Debian-7.3.0-amd64-netboot/base.sh +1 -1
- data/templates/Debian-7.3.0-i386-netboot/base.sh +1 -1
- data/templates/Debian-7.4.0-amd64-netboot/base.sh +1 -1
- data/templates/Debian-7.4.0-i386-netboot/base.sh +1 -1
- data/templates/Debian-7.5.0-amd64-netboot/base.sh +1 -1
- data/templates/Debian-7.5.0-i386-netboot/base.sh +1 -1
- data/templates/Debian-7.6.0-amd64-netboot/base.sh +1 -1
- data/templates/Debian-7.6.0-i386-netboot/base.sh +1 -1
- data/templates/Debian-7.7.0-amd64-netboot/base.sh +25 -0
- data/templates/Debian-7.7.0-amd64-netboot/chef.sh +49 -0
- data/templates/Debian-7.7.0-amd64-netboot/cleanup.sh +18 -0
- data/templates/Debian-7.7.0-amd64-netboot/definition.rb +52 -0
- data/templates/Debian-7.7.0-amd64-netboot/preseed.cfg +313 -0
- data/templates/Debian-7.7.0-amd64-netboot/puppet.sh +7 -0
- data/templates/Debian-7.7.0-amd64-netboot/ruby.sh +10 -0
- data/templates/Debian-7.7.0-amd64-netboot/vagrant.sh +21 -0
- data/templates/Debian-7.7.0-amd64-netboot/virtualbox.sh +37 -0
- data/templates/Debian-7.7.0-amd64-netboot/vmfusion.sh +7 -0
- data/templates/{CentOS-5.10-i386 → Debian-7.7.0-amd64-netboot}/zerodisk.sh +0 -1
- data/templates/kali-1.0.9a-amd64/base.sh +1 -1
- data/templates/ubuntu-12.04.2-server-amd64/base.sh +1 -1
- data/templates/ubuntu-12.04.3-server-amd64-parallels/base.sh +1 -1
- data/templates/ubuntu-12.04.3-server-amd64/base.sh +1 -1
- data/test/build_realtest.rb +3 -3
- data/test/definitions/erb_definition/autorun0.erb +8 -0
- data/test/definitions/erb_definition/definition.rb +24 -0
- data/test/veewee/provider/core/helper/web_test.rb +30 -0
- metadata +31 -42
- data/templates/CentOS-5.10-i386-netboot/definition.rb +0 -42
- data/templates/CentOS-5.10-i386-netboot/ks.cfg +0 -27
- data/templates/CentOS-5.10-i386/base.sh +0 -8
- data/templates/CentOS-5.10-i386/chef.sh +0 -3
- data/templates/CentOS-5.10-i386/cleanup.sh +0 -11
- data/templates/CentOS-5.10-i386/definition.rb +0 -42
- data/templates/CentOS-5.10-i386/ks.cfg +0 -27
- data/templates/CentOS-5.10-i386/puppet.sh +0 -17
- data/templates/CentOS-5.10-i386/ruby.sh +0 -41
- data/templates/CentOS-5.10-i386/vagrant.sh +0 -9
- data/templates/CentOS-5.10-i386/virtualbox.sh +0 -9
- data/templates/CentOS-5.10-x86_64-netboot/base.sh +0 -8
- data/templates/CentOS-5.10-x86_64-netboot/chef.sh +0 -3
- data/templates/CentOS-5.10-x86_64-netboot/cleanup.sh +0 -11
- data/templates/CentOS-5.10-x86_64-netboot/definition.rb +0 -42
- data/templates/CentOS-5.10-x86_64-netboot/puppet.sh +0 -17
- data/templates/CentOS-5.10-x86_64-netboot/ruby.sh +0 -41
- data/templates/CentOS-5.10-x86_64-netboot/vagrant.sh +0 -9
- data/templates/CentOS-5.10-x86_64-netboot/virtualbox.sh +0 -9
- data/templates/CentOS-5.10-x86_64-netboot/zerodisk.sh +0 -4
- data/templates/CentOS-5.10-x86_64/base.sh +0 -8
- data/templates/CentOS-5.10-x86_64/chef.sh +0 -3
- data/templates/CentOS-5.10-x86_64/cleanup.sh +0 -11
- data/templates/CentOS-5.10-x86_64/definition.rb +0 -42
- data/templates/CentOS-5.10-x86_64/ks.cfg +0 -27
- data/templates/CentOS-5.10-x86_64/puppet.sh +0 -17
- data/templates/CentOS-5.10-x86_64/ruby.sh +0 -41
- data/templates/CentOS-5.10-x86_64/vagrant.sh +0 -9
- data/templates/CentOS-5.10-x86_64/virtualbox.sh +0 -9
- data/templates/CentOS-5.10-x86_64/zerodisk.sh +0 -4
@@ -0,0 +1,18 @@
|
|
1
|
+
# Clean up
|
2
|
+
apt-get -y remove linux-headers-$(uname -r) build-essential
|
3
|
+
apt-get -y autoremove
|
4
|
+
apt-get -y clean
|
5
|
+
|
6
|
+
# Removing leftover leases and persistent rules
|
7
|
+
echo "cleaning up dhcp leases"
|
8
|
+
rm /var/lib/dhcp/*
|
9
|
+
|
10
|
+
# Make sure Udev doesn't block our network
|
11
|
+
echo "cleaning up udev rules"
|
12
|
+
rm /etc/udev/rules.d/70-persistent-net.rules
|
13
|
+
mkdir /etc/udev/rules.d/70-persistent-net.rules
|
14
|
+
rm -rf /dev/.udev/
|
15
|
+
rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
16
|
+
|
17
|
+
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
18
|
+
echo "pre-up sleep 2" >> /etc/network/interfaces
|
@@ -0,0 +1,52 @@
|
|
1
|
+
#Thanks to Fletcher Nichol - https://github.com/fnichol
|
2
|
+
|
3
|
+
Veewee::Definition.declare({
|
4
|
+
:cpu_count => '1',
|
5
|
+
:memory_size=> '256',
|
6
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
|
7
|
+
:os_type_id => 'Debian_64',
|
8
|
+
:iso_file => "debian-7.7.0-amd64-netinst.iso",
|
9
|
+
:iso_src => "http://cdimage.debian.org/debian-cd/7.7.0/amd64/iso-cd/debian-7.7.0-amd64-netinst.iso",
|
10
|
+
:iso_md5 => "0b31bccccb048d20b551f70830bb7ad0",
|
11
|
+
:iso_download_timeout => "1000",
|
12
|
+
:boot_wait => "10", :boot_cmd_sequence => [
|
13
|
+
'<Esc>',
|
14
|
+
'install ',
|
15
|
+
'preseed/url=http://%IP%:%PORT%/preseed.cfg ',
|
16
|
+
'debian-installer=en_US ',
|
17
|
+
'auto ',
|
18
|
+
'locale=en_US ',
|
19
|
+
'kbd-chooser/method=us ',
|
20
|
+
'netcfg/get_hostname=%NAME% ',
|
21
|
+
'netcfg/get_domain=vagrantup.com ',
|
22
|
+
'fb=false ',
|
23
|
+
'debconf/frontend=noninteractive ',
|
24
|
+
'console-setup/ask_detect=false ',
|
25
|
+
'console-keymaps-at/keymap=us ',
|
26
|
+
'keyboard-configuration/xkb-keymap=us ',
|
27
|
+
'<Enter>'
|
28
|
+
],
|
29
|
+
:kickstart_port => "7122",
|
30
|
+
:kickstart_timeout => "300",
|
31
|
+
:kickstart_file => "preseed.cfg",
|
32
|
+
:ssh_login_timeout => "10000",
|
33
|
+
:ssh_user => "vagrant",
|
34
|
+
:ssh_password => "vagrant",
|
35
|
+
:ssh_key => "",
|
36
|
+
:ssh_host_port => "7222",
|
37
|
+
:ssh_guest_port => "22",
|
38
|
+
:sudo_cmd => "echo '%p'|sudo -S bash '%f'",
|
39
|
+
:shutdown_cmd => "halt -p",
|
40
|
+
:postinstall_files => [
|
41
|
+
"base.sh",
|
42
|
+
"vagrant.sh",
|
43
|
+
"virtualbox.sh",
|
44
|
+
#"vmfusion.sh",
|
45
|
+
"ruby.sh",
|
46
|
+
"puppet.sh",
|
47
|
+
"chef.sh",
|
48
|
+
"cleanup.sh",
|
49
|
+
"zerodisk.sh"
|
50
|
+
],
|
51
|
+
:postinstall_timeout => "10000"
|
52
|
+
})
|
@@ -0,0 +1,313 @@
|
|
1
|
+
#### Contents of the preconfiguration file (for wheezy)
|
2
|
+
### Localization
|
3
|
+
# Locale sets language and country.
|
4
|
+
d-i debian-installer/locale string en_US.UTF-8
|
5
|
+
|
6
|
+
# Keyboard selection.
|
7
|
+
#d-i keymap select us
|
8
|
+
d-i keyboard-configuration/xkb-keymap select us
|
9
|
+
|
10
|
+
### Network configuration
|
11
|
+
# netcfg will choose an interface that has link if possible. This makes it
|
12
|
+
# skip displaying a list if there is more than one interface.
|
13
|
+
d-i netcfg/choose_interface select auto
|
14
|
+
|
15
|
+
# To pick a particular interface instead:
|
16
|
+
#d-i netcfg/choose_interface select eth1
|
17
|
+
|
18
|
+
# If you have a slow dhcp server and the installer times out waiting for
|
19
|
+
# it, this might be useful.
|
20
|
+
#d-i netcfg/dhcp_timeout string 60
|
21
|
+
|
22
|
+
# If you prefer to configure the network manually, uncomment this line and
|
23
|
+
# the static network configuration below.
|
24
|
+
#d-i netcfg/disable_dhcp boolean true
|
25
|
+
|
26
|
+
# If you want the preconfiguration file to work on systems both with and
|
27
|
+
# without a dhcp server, uncomment these lines and the static network
|
28
|
+
# configuration below.
|
29
|
+
#d-i netcfg/dhcp_failed note
|
30
|
+
#d-i netcfg/dhcp_options select Configure network manually
|
31
|
+
|
32
|
+
# Static network configuration.
|
33
|
+
#d-i netcfg/get_nameservers string 192.168.1.1
|
34
|
+
#d-i netcfg/get_ipaddress string 192.168.1.42
|
35
|
+
#d-i netcfg/get_netmask string 255.255.255.0
|
36
|
+
#d-i netcfg/get_gateway string 192.168.1.1
|
37
|
+
#d-i netcfg/confirm_static boolean true
|
38
|
+
|
39
|
+
# Any hostname and domain names assigned from dhcp take precedence over
|
40
|
+
# values set here. However, setting the values still prevents the questions
|
41
|
+
# from being shown, even if values come from dhcp.
|
42
|
+
#d-i netcfg/get_hostname string vagrant
|
43
|
+
d-i netcfg/get_domain string vagrantup.com
|
44
|
+
|
45
|
+
# Disable that annoying WEP key dialog.
|
46
|
+
d-i netcfg/wireless_wep string
|
47
|
+
# The wacky dhcp hostname that some ISPs use as a password of sorts.
|
48
|
+
#d-i netcfg/dhcp_hostname string radish
|
49
|
+
|
50
|
+
# If non-free firmware is needed for the network or other hardware, you can
|
51
|
+
# configure the installer to always try to load it, without prompting. Or
|
52
|
+
# change to false to disable asking.
|
53
|
+
#d-i hw-detect/load_firmware boolean true
|
54
|
+
|
55
|
+
### Network console
|
56
|
+
# Use the following settings if you wish to make use of the network-console
|
57
|
+
# component for remote installation over SSH. This only makes sense if you
|
58
|
+
# intend to perform the remainder of the installation manually.
|
59
|
+
#d-i anna/choose_modules string network-console
|
60
|
+
#d-i network-console/password password r00tme
|
61
|
+
#d-i network-console/password-again password r00tme
|
62
|
+
|
63
|
+
### Mirror settings
|
64
|
+
# If you select ftp, the mirror/country string does not need to be set.
|
65
|
+
#d-i mirror/protocol string ftp
|
66
|
+
d-i mirror/country string manual
|
67
|
+
d-i mirror/http/hostname string http.debian.net
|
68
|
+
d-i mirror/http/directory string /debian
|
69
|
+
d-i mirror/http/proxy string
|
70
|
+
|
71
|
+
# Suite to install.
|
72
|
+
#d-i mirror/suite string testing
|
73
|
+
# Suite to use for loading installer components (optional).
|
74
|
+
#d-i mirror/udeb/suite string testing
|
75
|
+
|
76
|
+
### Clock and time zone setup
|
77
|
+
# Controls whether or not the hardware clock is set to UTC.
|
78
|
+
d-i clock-setup/utc boolean true
|
79
|
+
|
80
|
+
# You may set this to any valid setting for $TZ; see the contents of
|
81
|
+
# /usr/share/zoneinfo/ for valid values.
|
82
|
+
d-i time/zone string UTC
|
83
|
+
|
84
|
+
# Controls whether to use NTP to set the clock during the install
|
85
|
+
d-i clock-setup/ntp boolean true
|
86
|
+
# NTP server to use. The default is almost always fine here.
|
87
|
+
#d-i clock-setup/ntp-server string ntp.example.com
|
88
|
+
|
89
|
+
### Partitioning
|
90
|
+
# If the system has free space you can choose to only partition that space.
|
91
|
+
#d-i partman-auto/init_automatically_partition select biggest_free
|
92
|
+
|
93
|
+
# Alternatively, you can specify a disk to partition. The device name must
|
94
|
+
# be given in traditional non-devfs format.
|
95
|
+
# Note: A disk must be specified, unless the system has only one disk.
|
96
|
+
# For example, to use the first SCSI/SATA hard disk:
|
97
|
+
#d-i partman-auto/disk string /dev/sda
|
98
|
+
# In addition, you'll need to specify the method to use.
|
99
|
+
# The presently available methods are: "regular", "lvm" and "crypto"
|
100
|
+
d-i partman-auto/method string lvm
|
101
|
+
|
102
|
+
# If one of the disks that are going to be automatically partitioned
|
103
|
+
# contains an old LVM configuration, the user will normally receive a
|
104
|
+
# warning. This can be preseeded away...
|
105
|
+
d-i partman-lvm/device_remove_lvm boolean true
|
106
|
+
# The same applies to pre-existing software RAID array:
|
107
|
+
d-i partman-md/device_remove_md boolean true
|
108
|
+
|
109
|
+
# And the same goes for the confirmation to write the lvm partitions.
|
110
|
+
d-i partman-lvm/confirm boolean true
|
111
|
+
d-i partman-lvm/confirm_nooverwrite boolean true
|
112
|
+
|
113
|
+
|
114
|
+
d-i partman/choose_partition select finish
|
115
|
+
d-i partman-auto-lvm/guided_size string max
|
116
|
+
|
117
|
+
# You can choose one of the three predefined partitioning recipes:
|
118
|
+
# - atomic: all files in one partition
|
119
|
+
# - home: separate /home partition
|
120
|
+
# - multi: separate /home, /usr, /var, and /tmp partitions
|
121
|
+
d-i partman-auto/choose_recipe select atomic
|
122
|
+
d-i partman/default_filesystem string ext3
|
123
|
+
|
124
|
+
# Or provide a recipe of your own...
|
125
|
+
# The recipe format is documented in the file devel/partman-auto-recipe.txt.
|
126
|
+
# If you have a way to get a recipe file into the d-i environment, you can
|
127
|
+
# just point at it.
|
128
|
+
#d-i partman-auto/expert_recipe_file string /hd-media/recipe
|
129
|
+
|
130
|
+
# If not, you can put an entire recipe into the preconfiguration file in one
|
131
|
+
# (logical) line. This example creates a small /boot partition, suitable
|
132
|
+
# swap, and uses the rest of the space for the root partition:
|
133
|
+
#d-i partman-auto/expert_recipe string \
|
134
|
+
# boot-root :: \
|
135
|
+
# 40 50 100 ext3 \
|
136
|
+
# $primary{ } $bootable{ } \
|
137
|
+
# method{ format } format{ } \
|
138
|
+
# use_filesystem{ } filesystem{ ext3 } \
|
139
|
+
# mountpoint{ /boot } \
|
140
|
+
# . \
|
141
|
+
# 500 10000 1000000000 ext3 \
|
142
|
+
# method{ format } format{ } \
|
143
|
+
# use_filesystem{ } filesystem{ ext3 } \
|
144
|
+
# mountpoint{ / } \
|
145
|
+
# . \
|
146
|
+
# 64 512 300% linux-swap \
|
147
|
+
# method{ swap } format{ } \
|
148
|
+
# .
|
149
|
+
|
150
|
+
#The preseed line that "selects finish" needs to be in a certain order in your preseed, the example-preseed does not follow this.
|
151
|
+
#http://ubuntuforums.org/archive/index.php/t-1504045.html
|
152
|
+
|
153
|
+
# This makes partman automatically partition without confirmation, provided
|
154
|
+
# that you told it what to do using one of the methods above.
|
155
|
+
d-i partman/confirm_write_new_label boolean true
|
156
|
+
d-i partman/confirm boolean true
|
157
|
+
d-i partman/confirm_nooverwrite boolean true
|
158
|
+
|
159
|
+
|
160
|
+
### Base system installation
|
161
|
+
# Select the initramfs generator used to generate the initrd for 2.6 kernels.
|
162
|
+
#d-i base-installer/kernel/linux/initramfs-generators string yaird
|
163
|
+
|
164
|
+
# The kernel image (meta) package to be installed; "none" can be used if no
|
165
|
+
# kernel is to be installed.
|
166
|
+
#d-i base-installer/kernel/image string linux-image-2.6-486
|
167
|
+
|
168
|
+
### Account setup
|
169
|
+
# Skip creation of a root account (normal user account will be able to
|
170
|
+
# use sudo).
|
171
|
+
d-i passwd/root-login boolean false
|
172
|
+
# Alternatively, to skip creation of a normal user account.
|
173
|
+
#d-i passwd/make-user boolean false
|
174
|
+
|
175
|
+
# Root password, either in clear text
|
176
|
+
d-i passwd/root-password password vagrant
|
177
|
+
d-i passwd/root-password-again password vagrant
|
178
|
+
# or encrypted using an MD5 hash.
|
179
|
+
#d-i passwd/root-password-crypted password [MD5 hash]
|
180
|
+
|
181
|
+
# To create a normal user account.
|
182
|
+
d-i passwd/user-fullname string Vagrant User
|
183
|
+
d-i passwd/username string vagrant
|
184
|
+
# Normal user's password, either in clear text
|
185
|
+
d-i passwd/user-password password vagrant
|
186
|
+
d-i passwd/user-password-again password vagrant
|
187
|
+
# or encrypted using an MD5 hash.
|
188
|
+
#d-i passwd/user-password-crypted password [MD5 hash]
|
189
|
+
# Create the first user with the specified UID instead of the default.
|
190
|
+
#d-i passwd/user-uid string 1010
|
191
|
+
d-i user-setup/encrypt-home boolean false
|
192
|
+
d-i user-setup/allow-password-weak boolean true
|
193
|
+
|
194
|
+
# The user account will be added to some standard initial groups. To
|
195
|
+
# override that, use this.
|
196
|
+
d-i passwd/user-default-groups string audio cdrom video admin
|
197
|
+
|
198
|
+
### Apt setup
|
199
|
+
# You can choose to install non-free and contrib software.
|
200
|
+
#d-i apt-setup/non-free boolean true
|
201
|
+
#d-i apt-setup/contrib boolean true
|
202
|
+
# Uncomment this if you don't want to use a network mirror.
|
203
|
+
#d-i apt-setup/use_mirror boolean false
|
204
|
+
# Select which update services to use; define the mirrors to be used.
|
205
|
+
# Values shown below are the normal defaults.
|
206
|
+
#d-i apt-setup/services-select multiselect security, volatile
|
207
|
+
#d-i apt-setup/security_host string security.debian.org
|
208
|
+
#d-i apt-setup/volatile_host string volatile.debian.org
|
209
|
+
|
210
|
+
|
211
|
+
# By default the installer requires that repositories be authenticated
|
212
|
+
# using a known gpg key. This setting can be used to disable that
|
213
|
+
# authentication. Warning: Insecure, not recommended.
|
214
|
+
#d-i debian-installer/allow_unauthenticated string true
|
215
|
+
|
216
|
+
### Package selection
|
217
|
+
tasksel tasksel/first multiselect standard
|
218
|
+
# If the desktop task is selected, install the kde and xfce desktops
|
219
|
+
# instead of the default gnome desktop.
|
220
|
+
#tasksel tasksel/desktop multiselect kde, xfce
|
221
|
+
|
222
|
+
# Individual additional packages to install
|
223
|
+
d-i pkgsel/include string openssh-server ntp acpid sudo bzip2 rsync
|
224
|
+
|
225
|
+
# Whether to upgrade packages after debootstrap.
|
226
|
+
# Allowed values: none, safe-upgrade, full-upgrade
|
227
|
+
d-i pkgsel/upgrade select none
|
228
|
+
|
229
|
+
# Some versions of the installer can report back on what software you have
|
230
|
+
# installed, and what software you use. The default is not to report back,
|
231
|
+
# but sending reports helps the project determine what software is most
|
232
|
+
# popular and include it on CDs.
|
233
|
+
popularity-contest popularity-contest/participate boolean false
|
234
|
+
|
235
|
+
### Boot loader installation
|
236
|
+
# Grub is the default boot loader (for x86). If you want lilo installed
|
237
|
+
# instead, uncomment this:
|
238
|
+
#d-i grub-installer/skip boolean true
|
239
|
+
# To also skip installing lilo, and install no bootloader, uncomment this
|
240
|
+
# too:
|
241
|
+
#d-i lilo-installer/skip boolean true
|
242
|
+
|
243
|
+
# This is fairly safe to set, it makes grub install automatically to the MBR
|
244
|
+
# if no other operating system is detected on the machine.
|
245
|
+
d-i grub-installer/only_debian boolean true
|
246
|
+
|
247
|
+
# This one makes grub-installer install to the MBR if it also finds some other
|
248
|
+
# OS, which is less safe as it might not be able to boot that other OS.
|
249
|
+
d-i grub-installer/with_other_os boolean true
|
250
|
+
|
251
|
+
# Alternatively, if you want to install to a location other than the mbr,
|
252
|
+
# uncomment and edit these lines:
|
253
|
+
#d-i grub-installer/only_debian boolean false
|
254
|
+
#d-i grub-installer/with_other_os boolean false
|
255
|
+
#d-i grub-installer/bootdev string (hd0,0)
|
256
|
+
# To install grub to multiple disks:
|
257
|
+
#d-i grub-installer/bootdev string (hd0,0) (hd1,0) (hd2,0)
|
258
|
+
|
259
|
+
# Optional password for grub, either in clear text
|
260
|
+
#d-i grub-installer/password password r00tme
|
261
|
+
#d-i grub-installer/password-again password r00tme
|
262
|
+
# or encrypted using an MD5 hash, see grub-md5-crypt(8).
|
263
|
+
#d-i grub-installer/password-crypted password [MD5 hash]
|
264
|
+
|
265
|
+
### Finishing up the installation
|
266
|
+
# During installations from serial console, the regular virtual consoles
|
267
|
+
# (VT1-VT6) are normally disabled in /etc/inittab. Uncomment the next
|
268
|
+
# line to prevent this.
|
269
|
+
#d-i finish-install/keep-consoles boolean true
|
270
|
+
|
271
|
+
# Avoid that last message about the install being complete.
|
272
|
+
d-i finish-install/reboot_in_progress note
|
273
|
+
|
274
|
+
# This will prevent the installer from ejecting the CD during the reboot,
|
275
|
+
# which is useful in some situations.
|
276
|
+
#d-i cdrom-detect/eject boolean false
|
277
|
+
|
278
|
+
# This is how to make the installer shutdown when finished, but not
|
279
|
+
# reboot into the installed system.
|
280
|
+
#d-i debian-installer/exit/halt boolean true
|
281
|
+
# This will power off the machine instead of just halting it.
|
282
|
+
#d-i debian-installer/exit/poweroff boolean true
|
283
|
+
|
284
|
+
### Preseeding other packages
|
285
|
+
# Depending on what software you choose to install, or if things go wrong
|
286
|
+
# during the installation process, it's possible that other questions may
|
287
|
+
# be asked. You can preseed those too, of course. To get a list of every
|
288
|
+
# possible question that could be asked during an install, do an
|
289
|
+
# installation, and then run these commands:
|
290
|
+
# debconf-get-selections --installer > file
|
291
|
+
# debconf-get-selections >> file
|
292
|
+
|
293
|
+
|
294
|
+
#### Advanced options
|
295
|
+
### Running custom commands during the installation
|
296
|
+
# d-i preseeding is inherently not secure. Nothing in the installer checks
|
297
|
+
# for attempts at buffer overflows or other exploits of the values of a
|
298
|
+
# preconfiguration file like this one. Only use preconfiguration files from
|
299
|
+
# trusted locations! To drive that home, and because it's generally useful,
|
300
|
+
# here's a way to run any shell command you'd like inside the installer,
|
301
|
+
# automatically.
|
302
|
+
|
303
|
+
# This first command is run as early as possible, just after
|
304
|
+
# preseeding is read.
|
305
|
+
# Prevent packaged version of VirtualBox Guest Additions being installed:
|
306
|
+
d-i preseed/early_command string sed -i \
|
307
|
+
'/in-target/idiscover(){/sbin/discover|grep -v VirtualBox;}' \
|
308
|
+
/usr/lib/pre-pkgsel.d/20install-hwpackages
|
309
|
+
|
310
|
+
# This command is run just before the install finishes, but when there is
|
311
|
+
# still a usable /target directory. You can chroot to /target and use it
|
312
|
+
# directly, or use the apt-install and in-target commands to easily install
|
313
|
+
# packages and run commands in the target system.
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Install Ruby from packages
|
2
|
+
apt-get -y install ruby ruby-dev libopenssl-ruby1.8 irb ri rdoc
|
3
|
+
|
4
|
+
# Install Rubygems from source
|
5
|
+
rg_ver=1.8.22
|
6
|
+
curl -o /tmp/rubygems-${rg_ver}.zip \
|
7
|
+
"http://production.cf.rubygems.org/rubygems/rubygems-${rg_ver}.zip"
|
8
|
+
(cd /tmp && unzip rubygems-${rg_ver}.zip && \
|
9
|
+
cd rubygems-${rg_ver} && ruby setup.rb --no-format-executable)
|
10
|
+
rm -rf /tmp/rubygems-${rg_ver} /tmp/rubygems-${rg_ver}.zip
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Set up Vagrant.
|
2
|
+
|
3
|
+
date > /etc/vagrant_box_build_time
|
4
|
+
|
5
|
+
# Create the user vagrant with password vagrant
|
6
|
+
useradd -G sudo -p $(perl -e'print crypt("vagrant", "vagrant")') -m -s /bin/bash -N vagrant
|
7
|
+
|
8
|
+
# Install vagrant keys
|
9
|
+
mkdir -pm 700 /home/vagrant/.ssh
|
10
|
+
curl -Lo /home/vagrant/.ssh/authorized_keys \
|
11
|
+
'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub'
|
12
|
+
chmod 0600 /home/vagrant/.ssh/authorized_keys
|
13
|
+
chown -R vagrant:vagrant /home/vagrant/.ssh
|
14
|
+
|
15
|
+
# Customize the message of the day
|
16
|
+
echo 'Welcome to your Vagrant-built virtual machine.' > /var/run/motd
|
17
|
+
|
18
|
+
# Install NFS client
|
19
|
+
apt-get -y install nfs-common
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,37 @@
|
|
1
|
+
if test -f .vbox_version ; then
|
2
|
+
# The netboot installs the VirtualBox support (old) so we have to remove it
|
3
|
+
if test -f /etc/init.d/virtualbox-ose-guest-utils ; then
|
4
|
+
/etc/init.d/virtualbox-ose-guest-utils stop
|
5
|
+
fi
|
6
|
+
|
7
|
+
rmmod vboxguest
|
8
|
+
aptitude -y purge virtualbox-ose-guest-x11 virtualbox-ose-guest-dkms virtualbox-ose-guest-utils
|
9
|
+
|
10
|
+
# Install dkms for dynamic compiles
|
11
|
+
|
12
|
+
apt-get install -y dkms
|
13
|
+
|
14
|
+
# If libdbus is not installed, virtualbox will not autostart
|
15
|
+
apt-get -y install --no-install-recommends libdbus-1-3
|
16
|
+
|
17
|
+
# Install the VirtualBox guest additions
|
18
|
+
VBOX_VERSION=$(cat .vbox_version)
|
19
|
+
VBOX_ISO=VBoxGuestAdditions_$VBOX_VERSION.iso
|
20
|
+
mount -o loop $VBOX_ISO /mnt
|
21
|
+
yes|sh /mnt/VBoxLinuxAdditions.run
|
22
|
+
umount /mnt
|
23
|
+
|
24
|
+
# Start the newly build driver
|
25
|
+
/etc/init.d/vboxadd start
|
26
|
+
|
27
|
+
# Make a temporary mount point
|
28
|
+
mkdir /tmp/veewee-validation
|
29
|
+
|
30
|
+
# Test mount the veewee-validation
|
31
|
+
mount -t vboxsf veewee-validation /tmp/veewee-validation
|
32
|
+
|
33
|
+
rm $VBOX_ISO
|
34
|
+
|
35
|
+
# Symlink vbox guest additions. Fix for https://github.com/mitchellh/vagrant/issues/3341
|
36
|
+
ln -s /opt/VBoxGuestAdditions-$VBOX_VERSION/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions
|
37
|
+
fi
|