veewee 0.3.0.alpha9 → 0.3.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/doc/definition.md +8 -1
- data/lib/fission/config.rb +52 -5
- data/lib/fission.rb +3 -5
- data/lib/veewee/cli.rb +1 -1
- data/lib/veewee/command/base.rb +1 -1
- data/lib/veewee/command/{vmfusion.rb → fusion.rb} +1 -1
- data/lib/veewee/command/group_base.rb +2 -1
- data/lib/veewee/command/kvm.rb +1 -0
- data/lib/veewee/command/{virtualbox.rb → vbox.rb} +1 -1
- data/lib/veewee/command.rb +2 -2
- data/lib/veewee/definitions.rb +29 -10
- data/lib/veewee/environment.rb +8 -0
- data/lib/veewee/provider/core/box/exec.rb +1 -1
- data/lib/veewee/provider/core/box/floppy.rb +2 -2
- data/lib/veewee/provider/core/helper/iso.rb +1 -1
- data/lib/veewee/provider/core/helper/web.rb +9 -4
- data/lib/veewee/provider/kvm/box/create.rb +1 -0
- data/lib/veewee/provider/vmfusion/box/create.rb +1 -1
- data/lib/veewee/provider/vmfusion/box/destroy.rb +1 -1
- data/lib/veewee/provider/vmfusion/box/export_ova.rb +1 -1
- data/lib/veewee/provider/vmfusion/box/helper/buildinfo.rb +16 -8
- data/lib/veewee/provider/vmfusion/box/helper/ip.rb +48 -3
- data/lib/veewee/provider/vmfusion/box/helper/vnc.rb +2 -2
- data/lib/veewee/provider/vmfusion/box.rb +3 -11
- data/lib/veewee/provider/vmfusion/provider.rb +15 -2
- data/lib/veewee/templates.rb +1 -2
- data/lib/veewee/version.rb +1 -1
- data/templates/CentOS-6.2-i386-minimal/base.sh +14 -0
- data/templates/CentOS-6.2-i386-minimal/chef.sh +3 -0
- data/templates/CentOS-6.2-i386-minimal/cleanup.sh +5 -0
- data/templates/CentOS-6.2-i386-minimal/definition.rb +39 -0
- data/templates/CentOS-6.2-i386-minimal/ks.cfg +39 -0
- data/templates/CentOS-6.2-i386-minimal/puppet.sh +12 -0
- data/templates/CentOS-6.2-i386-minimal/ruby.sh +3 -0
- data/templates/CentOS-6.2-i386-minimal/vagrant.sh +17 -0
- data/templates/CentOS-6.2-i386-minimal/virtualbox.sh +8 -0
- data/templates/CentOS-6.3-i386-minimal/base.sh +14 -0
- data/templates/CentOS-6.3-i386-minimal/chef.sh +3 -0
- data/templates/CentOS-6.3-i386-minimal/cleanup.sh +5 -0
- data/templates/CentOS-6.3-i386-minimal/definition.rb +39 -0
- data/templates/CentOS-6.3-i386-minimal/ks.cfg +42 -0
- data/templates/CentOS-6.3-i386-minimal/puppet.sh +12 -0
- data/templates/CentOS-6.3-i386-minimal/ruby.sh +3 -0
- data/templates/CentOS-6.3-i386-minimal/vagrant.sh +17 -0
- data/templates/CentOS-6.3-i386-minimal/virtualbox.sh +8 -0
- data/templates/CentOS-6.3-x86_64-minimal/base.sh +14 -0
- data/templates/CentOS-6.3-x86_64-minimal/chef.sh +3 -0
- data/templates/CentOS-6.3-x86_64-minimal/cleanup.sh +5 -0
- data/templates/CentOS-6.3-x86_64-minimal/definition.rb +39 -0
- data/templates/CentOS-6.3-x86_64-minimal/ks.cfg +42 -0
- data/templates/CentOS-6.3-x86_64-minimal/puppet.sh +12 -0
- data/templates/CentOS-6.3-x86_64-minimal/ruby.sh +3 -0
- data/templates/CentOS-6.3-x86_64-minimal/vagrant.sh +17 -0
- data/templates/CentOS-6.3-x86_64-minimal/virtualbox.sh +8 -0
- data/templates/Debian-6.0.3-amd64-netboot/base.sh +14 -0
- data/templates/Debian-6.0.3-i386-netboot/base.sh +14 -0
- data/templates/Debian-6.0.4-amd64-netboot/base.sh +14 -0
- data/templates/Debian-6.0.4-i386-netboot/base.sh +14 -0
- data/templates/Debian-6.0.5-amd64-netboot/base.sh +27 -0
- data/templates/Debian-6.0.5-amd64-netboot/chef.sh +2 -0
- data/templates/Debian-6.0.5-amd64-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/Debian-6.0.5-amd64-netboot/cleanup.sh +17 -0
- data/templates/Debian-6.0.5-amd64-netboot/definition.rb +49 -0
- data/templates/Debian-6.0.5-amd64-netboot/preseed.cfg +315 -0
- data/templates/Debian-6.0.5-amd64-netboot/puppet.sh +2 -0
- data/templates/Debian-6.0.5-amd64-netboot/ruby.sh +10 -0
- data/templates/Debian-6.0.5-amd64-netboot/vagrant.sh +21 -0
- data/templates/Debian-6.0.5-amd64-netboot/virtualbox.sh +13 -0
- data/templates/Debian-6.0.5-amd64-netboot/zerodisk.sh +3 -0
- data/templates/Debian-6.0.5-i386-netboot/base.sh +27 -0
- data/templates/Debian-6.0.5-i386-netboot/chef.sh +2 -0
- data/templates/Debian-6.0.5-i386-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/Debian-6.0.5-i386-netboot/cleanup.sh +17 -0
- data/templates/Debian-6.0.5-i386-netboot/definition.rb +51 -0
- data/templates/Debian-6.0.5-i386-netboot/preseed.cfg +315 -0
- data/templates/Debian-6.0.5-i386-netboot/puppet.sh +2 -0
- data/templates/Debian-6.0.5-i386-netboot/ruby.sh +10 -0
- data/templates/Debian-6.0.5-i386-netboot/vagrant.sh +21 -0
- data/templates/Debian-6.0.5-i386-netboot/virtualbox.sh +13 -0
- data/templates/Debian-6.0.5-i386-netboot/zerodisk.sh +3 -0
- data/templates/Fedora-16-x86_64-netboot/definition.rb +29 -0
- data/templates/Fedora-16-x86_64-netboot/ks.cfg +70 -0
- data/templates/Fedora-16-x86_64-netboot/postinstall.sh +26 -0
- data/templates/Fedora-17-i386/definition.rb +17 -0
- data/templates/Fedora-17-i386/ks.cfg +72 -0
- data/templates/Fedora-17-i386/postinstall.sh +35 -0
- data/templates/Fedora-17-x86_64/definition.rb +17 -0
- data/templates/Fedora-17-x86_64/ks.cfg +72 -0
- data/templates/Fedora-17-x86_64/postinstall.sh +35 -0
- data/templates/gentoo-latest-x86_64-experimental/definition.rb +1 -1
- data/templates/scientificlinux-6.2-i386-netboot/base.sh +1 -0
- data/templates/scientificlinux-6.2-i386-netboot/chef.sh +1 -0
- data/templates/scientificlinux-6.2-i386-netboot/cleanup.sh +4 -0
- data/templates/scientificlinux-6.2-i386-netboot/definition.rb +36 -0
- data/templates/scientificlinux-6.2-i386-netboot/ks.cfg +53 -0
- data/templates/scientificlinux-6.2-i386-netboot/postinstall.sh +30 -0
- data/templates/scientificlinux-6.2-i386-netboot/puppet.sh +1 -0
- data/templates/scientificlinux-6.2-i386-netboot/vagrant.sh +8 -0
- data/templates/scientificlinux-6.2-i386-netboot/virtualbox.sh +8 -0
- data/templates/scientificlinux-6.2-x86_64-netboot/base.sh +1 -0
- data/templates/scientificlinux-6.2-x86_64-netboot/chef.sh +1 -0
- data/templates/scientificlinux-6.2-x86_64-netboot/cleanup.sh +4 -0
- data/templates/scientificlinux-6.2-x86_64-netboot/definition.rb +36 -0
- data/templates/scientificlinux-6.2-x86_64-netboot/ks.cfg +53 -0
- data/templates/scientificlinux-6.2-x86_64-netboot/postinstall.sh +30 -0
- data/templates/scientificlinux-6.2-x86_64-netboot/puppet.sh +1 -0
- data/templates/scientificlinux-6.2-x86_64-netboot/vagrant.sh +8 -0
- data/templates/scientificlinux-6.2-x86_64-netboot/virtualbox.sh +8 -0
- data/templates/ubuntu-10.04.4-server-amd64/postinstall.sh +9 -0
- data/templates/ubuntu-12.04-server-amd64/definition.rb +1 -3
- data/templates/ubuntu-12.04-server-amd64-packages/definition.rb +1 -3
- data/templates/ubuntu-12.04-server-i386/definition.rb +1 -3
- data/templates/ubuntu-12.04-server-i386-packages/definition.rb +35 -0
- data/templates/ubuntu-12.04-server-i386-packages/postinstall.sh +72 -0
- data/templates/ubuntu-12.04-server-i386-packages/preseed.cfg +87 -0
- data/templates/windows-7-enterprise-amd64/Autounattend.xml +8 -8
- data/validation/features/steps/veewee_steps.rb +1 -1
- data/veewee.gemspec +5 -3
- metadata +104 -37
- data/lib/fission/cli.rb +0 -76
- data/lib/fission/command/clone.rb +0 -68
- data/lib/fission/command/delete.rb +0 -71
- data/lib/fission/command/snapshot_create.rb +0 -52
- data/lib/fission/command/snapshot_list.rb +0 -45
- data/lib/fission/command/snapshot_revert.rb +0 -54
- data/lib/fission/command/start.rb +0 -69
- data/lib/fission/command/status.rb +0 -31
- data/lib/fission/command/stop.rb +0 -49
- data/lib/fission/command/suspend.rb +0 -67
- data/lib/fission/command.rb +0 -15
- data/lib/fission/core_ext/class.rb +0 -5
- data/lib/fission/core_ext/file.rb +0 -7
- data/lib/fission/core_ext/object.rb +0 -112
- data/lib/fission/error.rb +0 -9
- data/lib/fission/fusion.rb +0 -17
- data/lib/fission/leasesfile.rb +0 -74
- data/lib/fission/metadata.rb +0 -39
- data/lib/fission/response.rb +0 -16
- data/lib/fission/ui.rb +0 -22
- data/lib/fission/version.rb +0 -3
- data/lib/fission/vm.rb +0 -365
- data/templates/openbsd50_i386/.definition.rb.swp +0 -0
@@ -0,0 +1,315 @@
|
|
1
|
+
#### Contents of the preconfiguration file (for squeeze)
|
2
|
+
### Localization
|
3
|
+
# Locale sets language and country.
|
4
|
+
d-i debian-installer/locale string en_US
|
5
|
+
|
6
|
+
# Keyboard selection.
|
7
|
+
#d-i console-tools/archs select at
|
8
|
+
d-i console-keymaps-at/keymap select us
|
9
|
+
# Example for a different keyboard architecture
|
10
|
+
#d-i console-keymaps-usb/keymap select mac-usb-us
|
11
|
+
|
12
|
+
### Network configuration
|
13
|
+
# netcfg will choose an interface that has link if possible. This makes it
|
14
|
+
# skip displaying a list if there is more than one interface.
|
15
|
+
d-i netcfg/choose_interface select auto
|
16
|
+
|
17
|
+
# To pick a particular interface instead:
|
18
|
+
#d-i netcfg/choose_interface select eth1
|
19
|
+
|
20
|
+
# If you have a slow dhcp server and the installer times out waiting for
|
21
|
+
# it, this might be useful.
|
22
|
+
#d-i netcfg/dhcp_timeout string 60
|
23
|
+
|
24
|
+
# If you prefer to configure the network manually, uncomment this line and
|
25
|
+
# the static network configuration below.
|
26
|
+
#d-i netcfg/disable_dhcp boolean true
|
27
|
+
|
28
|
+
# If you want the preconfiguration file to work on systems both with and
|
29
|
+
# without a dhcp server, uncomment these lines and the static network
|
30
|
+
# configuration below.
|
31
|
+
#d-i netcfg/dhcp_failed note
|
32
|
+
#d-i netcfg/dhcp_options select Configure network manually
|
33
|
+
|
34
|
+
# Static network configuration.
|
35
|
+
#d-i netcfg/get_nameservers string 192.168.1.1
|
36
|
+
#d-i netcfg/get_ipaddress string 192.168.1.42
|
37
|
+
#d-i netcfg/get_netmask string 255.255.255.0
|
38
|
+
#d-i netcfg/get_gateway string 192.168.1.1
|
39
|
+
#d-i netcfg/confirm_static boolean true
|
40
|
+
|
41
|
+
# Any hostname and domain names assigned from dhcp take precedence over
|
42
|
+
# values set here. However, setting the values still prevents the questions
|
43
|
+
# from being shown, even if values come from dhcp.
|
44
|
+
#d-i netcfg/get_hostname string vagrant
|
45
|
+
d-i netcfg/get_domain string vagrantup.com
|
46
|
+
|
47
|
+
# Disable that annoying WEP key dialog.
|
48
|
+
d-i netcfg/wireless_wep string
|
49
|
+
# The wacky dhcp hostname that some ISPs use as a password of sorts.
|
50
|
+
#d-i netcfg/dhcp_hostname string radish
|
51
|
+
|
52
|
+
# If non-free firmware is needed for the network or other hardware, you can
|
53
|
+
# configure the installer to always try to load it, without prompting. Or
|
54
|
+
# change to false to disable asking.
|
55
|
+
#d-i hw-detect/load_firmware boolean true
|
56
|
+
|
57
|
+
### Network console
|
58
|
+
# Use the following settings if you wish to make use of the network-console
|
59
|
+
# component for remote installation over SSH. This only makes sense if you
|
60
|
+
# intend to perform the remainder of the installation manually.
|
61
|
+
#d-i anna/choose_modules string network-console
|
62
|
+
#d-i network-console/password password r00tme
|
63
|
+
#d-i network-console/password-again password r00tme
|
64
|
+
|
65
|
+
### Mirror settings
|
66
|
+
# If you select ftp, the mirror/country string does not need to be set.
|
67
|
+
#d-i mirror/protocol string ftp
|
68
|
+
d-i mirror/country string manual
|
69
|
+
d-i mirror/http/hostname string http.us.debian.org
|
70
|
+
d-i mirror/http/directory string /debian
|
71
|
+
d-i mirror/http/proxy string
|
72
|
+
|
73
|
+
# Suite to install.
|
74
|
+
#d-i mirror/suite string testing
|
75
|
+
# Suite to use for loading installer components (optional).
|
76
|
+
#d-i mirror/udeb/suite string testing
|
77
|
+
|
78
|
+
### Clock and time zone setup
|
79
|
+
# Controls whether or not the hardware clock is set to UTC.
|
80
|
+
d-i clock-setup/utc boolean true
|
81
|
+
|
82
|
+
# You may set this to any valid setting for $TZ; see the contents of
|
83
|
+
# /usr/share/zoneinfo/ for valid values.
|
84
|
+
d-i time/zone string UTC
|
85
|
+
|
86
|
+
# Controls whether to use NTP to set the clock during the install
|
87
|
+
d-i clock-setup/ntp boolean true
|
88
|
+
# NTP server to use. The default is almost always fine here.
|
89
|
+
#d-i clock-setup/ntp-server string ntp.example.com
|
90
|
+
|
91
|
+
### Partitioning
|
92
|
+
# If the system has free space you can choose to only partition that space.
|
93
|
+
#d-i partman-auto/init_automatically_partition select biggest_free
|
94
|
+
|
95
|
+
# Alternatively, you can specify a disk to partition. The device name must
|
96
|
+
# be given in traditional non-devfs format.
|
97
|
+
# Note: A disk must be specified, unless the system has only one disk.
|
98
|
+
# For example, to use the first SCSI/SATA hard disk:
|
99
|
+
d-i partman-auto/disk string /dev/sda
|
100
|
+
# In addition, you'll need to specify the method to use.
|
101
|
+
# The presently available methods are: "regular", "lvm" and "crypto"
|
102
|
+
d-i partman-auto/method string lvm
|
103
|
+
|
104
|
+
# If one of the disks that are going to be automatically partitioned
|
105
|
+
# contains an old LVM configuration, the user will normally receive a
|
106
|
+
# warning. This can be preseeded away...
|
107
|
+
d-i partman-lvm/device_remove_lvm boolean true
|
108
|
+
# The same applies to pre-existing software RAID array:
|
109
|
+
d-i partman-md/device_remove_md boolean true
|
110
|
+
|
111
|
+
# And the same goes for the confirmation to write the lvm partitions.
|
112
|
+
d-i partman-lvm/confirm boolean true
|
113
|
+
d-i partman-lvm/confirm_nooverwrite boolean true
|
114
|
+
|
115
|
+
|
116
|
+
d-i partman/choose_partition select finish
|
117
|
+
d-i partman-auto-lvm/guided_size string max
|
118
|
+
|
119
|
+
# You can choose one of the three predefined partitioning recipes:
|
120
|
+
# - atomic: all files in one partition
|
121
|
+
# - home: separate /home partition
|
122
|
+
# - multi: separate /home, /usr, /var, and /tmp partitions
|
123
|
+
d-i partman-auto/choose_recipe select atomic
|
124
|
+
d-i partman/default_filesystem string ext3
|
125
|
+
|
126
|
+
# Or provide a recipe of your own...
|
127
|
+
# The recipe format is documented in the file devel/partman-auto-recipe.txt.
|
128
|
+
# If you have a way to get a recipe file into the d-i environment, you can
|
129
|
+
# just point at it.
|
130
|
+
#d-i partman-auto/expert_recipe_file string /hd-media/recipe
|
131
|
+
|
132
|
+
# If not, you can put an entire recipe into the preconfiguration file in one
|
133
|
+
# (logical) line. This example creates a small /boot partition, suitable
|
134
|
+
# swap, and uses the rest of the space for the root partition:
|
135
|
+
#d-i partman-auto/expert_recipe string \
|
136
|
+
# boot-root :: \
|
137
|
+
# 40 50 100 ext3 \
|
138
|
+
# $primary{ } $bootable{ } \
|
139
|
+
# method{ format } format{ } \
|
140
|
+
# use_filesystem{ } filesystem{ ext3 } \
|
141
|
+
# mountpoint{ /boot } \
|
142
|
+
# . \
|
143
|
+
# 500 10000 1000000000 ext3 \
|
144
|
+
# method{ format } format{ } \
|
145
|
+
# use_filesystem{ } filesystem{ ext3 } \
|
146
|
+
# mountpoint{ / } \
|
147
|
+
# . \
|
148
|
+
# 64 512 300% linux-swap \
|
149
|
+
# method{ swap } format{ } \
|
150
|
+
# .
|
151
|
+
|
152
|
+
#The preseed line that "selects finish" needs to be in a certain order in your preseed, the example-preseed does not follow this.
|
153
|
+
#http://ubuntuforums.org/archive/index.php/t-1504045.html
|
154
|
+
|
155
|
+
# This makes partman automatically partition without confirmation, provided
|
156
|
+
# that you told it what to do using one of the methods above.
|
157
|
+
d-i partman/confirm_write_new_label boolean true
|
158
|
+
d-i partman/confirm boolean true
|
159
|
+
d-i partman/confirm_nooverwrite boolean true
|
160
|
+
|
161
|
+
|
162
|
+
### Base system installation
|
163
|
+
# Select the initramfs generator used to generate the initrd for 2.6 kernels.
|
164
|
+
#d-i base-installer/kernel/linux/initramfs-generators string yaird
|
165
|
+
|
166
|
+
# The kernel image (meta) package to be installed; "none" can be used if no
|
167
|
+
# kernel is to be installed.
|
168
|
+
#d-i base-installer/kernel/image string linux-image-2.6-486
|
169
|
+
|
170
|
+
### Account setup
|
171
|
+
# Skip creation of a root account (normal user account will be able to
|
172
|
+
# use sudo).
|
173
|
+
d-i passwd/root-login boolean false
|
174
|
+
# Alternatively, to skip creation of a normal user account.
|
175
|
+
#d-i passwd/make-user boolean false
|
176
|
+
|
177
|
+
# Root password, either in clear text
|
178
|
+
d-i passwd/root-password password vagrant
|
179
|
+
d-i passwd/root-password-again password vagrant
|
180
|
+
# or encrypted using an MD5 hash.
|
181
|
+
#d-i passwd/root-password-crypted password [MD5 hash]
|
182
|
+
|
183
|
+
# To create a normal user account.
|
184
|
+
d-i passwd/user-fullname string Vagrant User
|
185
|
+
d-i passwd/username string vagrant
|
186
|
+
# Normal user's password, either in clear text
|
187
|
+
d-i passwd/user-password password vagrant
|
188
|
+
d-i passwd/user-password-again password vagrant
|
189
|
+
# or encrypted using an MD5 hash.
|
190
|
+
#d-i passwd/user-password-crypted password [MD5 hash]
|
191
|
+
# Create the first user with the specified UID instead of the default.
|
192
|
+
#d-i passwd/user-uid string 1010
|
193
|
+
d-i user-setup/encrypt-home boolean false
|
194
|
+
d-i user-setup/allow-password-weak boolean true
|
195
|
+
|
196
|
+
# The user account will be added to some standard initial groups. To
|
197
|
+
# override that, use this.
|
198
|
+
d-i passwd/user-default-groups string audio cdrom video admin
|
199
|
+
|
200
|
+
### Apt setup
|
201
|
+
# You can choose to install non-free and contrib software.
|
202
|
+
#d-i apt-setup/non-free boolean true
|
203
|
+
#d-i apt-setup/contrib boolean true
|
204
|
+
# Uncomment this if you don't want to use a network mirror.
|
205
|
+
#d-i apt-setup/use_mirror boolean false
|
206
|
+
# Select which update services to use; define the mirrors to be used.
|
207
|
+
# Values shown below are the normal defaults.
|
208
|
+
#d-i apt-setup/services-select multiselect security, volatile
|
209
|
+
#d-i apt-setup/security_host string security.debian.org
|
210
|
+
#d-i apt-setup/volatile_host string volatile.debian.org
|
211
|
+
|
212
|
+
|
213
|
+
# By default the installer requires that repositories be authenticated
|
214
|
+
# using a known gpg key. This setting can be used to disable that
|
215
|
+
# authentication. Warning: Insecure, not recommended.
|
216
|
+
#d-i debian-installer/allow_unauthenticated string true
|
217
|
+
|
218
|
+
### Package selection
|
219
|
+
tasksel tasksel/first multiselect standard
|
220
|
+
# If the desktop task is selected, install the kde and xfce desktops
|
221
|
+
# instead of the default gnome desktop.
|
222
|
+
#tasksel tasksel/desktop multiselect kde, xfce
|
223
|
+
|
224
|
+
# Individual additional packages to install
|
225
|
+
d-i pkgsel/include string openssh-server ntp acpid sudo bzip2
|
226
|
+
|
227
|
+
# Whether to upgrade packages after debootstrap.
|
228
|
+
# Allowed values: none, safe-upgrade, full-upgrade
|
229
|
+
d-i pkgsel/upgrade select none
|
230
|
+
|
231
|
+
# Some versions of the installer can report back on what software you have
|
232
|
+
# installed, and what software you use. The default is not to report back,
|
233
|
+
# but sending reports helps the project determine what software is most
|
234
|
+
# popular and include it on CDs.
|
235
|
+
popularity-contest popularity-contest/participate boolean false
|
236
|
+
|
237
|
+
### Boot loader installation
|
238
|
+
# Grub is the default boot loader (for x86). If you want lilo installed
|
239
|
+
# instead, uncomment this:
|
240
|
+
#d-i grub-installer/skip boolean true
|
241
|
+
# To also skip installing lilo, and install no bootloader, uncomment this
|
242
|
+
# too:
|
243
|
+
#d-i lilo-installer/skip boolean true
|
244
|
+
|
245
|
+
# This is fairly safe to set, it makes grub install automatically to the MBR
|
246
|
+
# if no other operating system is detected on the machine.
|
247
|
+
d-i grub-installer/only_debian boolean true
|
248
|
+
|
249
|
+
# This one makes grub-installer install to the MBR if it also finds some other
|
250
|
+
# OS, which is less safe as it might not be able to boot that other OS.
|
251
|
+
d-i grub-installer/with_other_os boolean true
|
252
|
+
|
253
|
+
# Alternatively, if you want to install to a location other than the mbr,
|
254
|
+
# uncomment and edit these lines:
|
255
|
+
#d-i grub-installer/only_debian boolean false
|
256
|
+
#d-i grub-installer/with_other_os boolean false
|
257
|
+
#d-i grub-installer/bootdev string (hd0,0)
|
258
|
+
# To install grub to multiple disks:
|
259
|
+
#d-i grub-installer/bootdev string (hd0,0) (hd1,0) (hd2,0)
|
260
|
+
|
261
|
+
# Optional password for grub, either in clear text
|
262
|
+
#d-i grub-installer/password password r00tme
|
263
|
+
#d-i grub-installer/password-again password r00tme
|
264
|
+
# or encrypted using an MD5 hash, see grub-md5-crypt(8).
|
265
|
+
#d-i grub-installer/password-crypted password [MD5 hash]
|
266
|
+
|
267
|
+
### Finishing up the installation
|
268
|
+
# During installations from serial console, the regular virtual consoles
|
269
|
+
# (VT1-VT6) are normally disabled in /etc/inittab. Uncomment the next
|
270
|
+
# line to prevent this.
|
271
|
+
#d-i finish-install/keep-consoles boolean true
|
272
|
+
|
273
|
+
# Avoid that last message about the install being complete.
|
274
|
+
d-i finish-install/reboot_in_progress note
|
275
|
+
|
276
|
+
# This will prevent the installer from ejecting the CD during the reboot,
|
277
|
+
# which is useful in some situations.
|
278
|
+
#d-i cdrom-detect/eject boolean false
|
279
|
+
|
280
|
+
# This is how to make the installer shutdown when finished, but not
|
281
|
+
# reboot into the installed system.
|
282
|
+
#d-i debian-installer/exit/halt boolean true
|
283
|
+
# This will power off the machine instead of just halting it.
|
284
|
+
#d-i debian-installer/exit/poweroff boolean true
|
285
|
+
|
286
|
+
### Preseeding other packages
|
287
|
+
# Depending on what software you choose to install, or if things go wrong
|
288
|
+
# during the installation process, it's possible that other questions may
|
289
|
+
# be asked. You can preseed those too, of course. To get a list of every
|
290
|
+
# possible question that could be asked during an install, do an
|
291
|
+
# installation, and then run these commands:
|
292
|
+
# debconf-get-selections --installer > file
|
293
|
+
# debconf-get-selections >> file
|
294
|
+
|
295
|
+
|
296
|
+
#### Advanced options
|
297
|
+
### Running custom commands during the installation
|
298
|
+
# d-i preseeding is inherently not secure. Nothing in the installer checks
|
299
|
+
# for attempts at buffer overflows or other exploits of the values of a
|
300
|
+
# preconfiguration file like this one. Only use preconfiguration files from
|
301
|
+
# trusted locations! To drive that home, and because it's generally useful,
|
302
|
+
# here's a way to run any shell command you'd like inside the installer,
|
303
|
+
# automatically.
|
304
|
+
|
305
|
+
# This first command is run as early as possible, just after
|
306
|
+
# preseeding is read.
|
307
|
+
# Prevent packaged version of VirtualBox Guest Additions being installed:
|
308
|
+
d-i preseed/early_command string sed -i \
|
309
|
+
'/in-target/idiscover(){/sbin/discover|grep -v VirtualBox;}' \
|
310
|
+
/usr/lib/pre-pkgsel.d/20install-hwpackages
|
311
|
+
|
312
|
+
# This command is run just before the install finishes, but when there is
|
313
|
+
# still a usable /target directory. You can chroot to /target and use it
|
314
|
+
# directly, or use the apt-install and in-target commands to easily install
|
315
|
+
# 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 admin -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,13 @@
|
|
1
|
+
if test -f .vbox_version ; then
|
2
|
+
# The netboot installs the VirtualBox support (old) so we have to remove it
|
3
|
+
/etc/init.d/virtualbox-ose-guest-utils stop
|
4
|
+
rmmod vboxguest
|
5
|
+
aptitude -y purge virtualbox-ose-guest-x11 virtualbox-ose-guest-dkms virtualbox-ose-guest-utils
|
6
|
+
|
7
|
+
# Install the VirtualBox guest additions
|
8
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
9
|
+
VBOX_ISO=VBoxGuestAdditions_$VBOX_VERSION.iso
|
10
|
+
mount -o loop $VBOX_ISO /mnt
|
11
|
+
yes|sh /mnt/VBoxLinuxAdditions.run
|
12
|
+
umount /mnt
|
13
|
+
fi
|
@@ -0,0 +1,29 @@
|
|
1
|
+
Veewee::Session.declare({
|
2
|
+
# Minimum RAM requirement for installation is 768MB.
|
3
|
+
:cpu_count => '1',
|
4
|
+
:memory_size=> '768',
|
5
|
+
:disk_size => '10140',
|
6
|
+
:disk_format => 'VDI',
|
7
|
+
:hostiocache => 'off',
|
8
|
+
:hwvirtext => 'on',
|
9
|
+
:os_type_id => 'Fedora_64',
|
10
|
+
:iso_file => "Fedora-16-x86_64-netinst.iso",
|
11
|
+
:iso_src => "http://ftp.halifax.rwth-aachen.de/fedora/linux/releases/16/Fedora/x86_64/iso/Fedora-16-x86_64-netinst.iso",
|
12
|
+
:iso_md5 => "388ea488c8521ceec43f3683a6d078d6",
|
13
|
+
:iso_download_timeout => 1000,
|
14
|
+
:boot_wait => "10",
|
15
|
+
:boot_cmd_sequence => [ '<Tab> linux text ks=http://%IP%:%PORT%/ks.cfg<Enter><Enter>' ],
|
16
|
+
:kickstart_port => "7122",
|
17
|
+
:kickstart_timeout => 10000,
|
18
|
+
:kickstart_file => "ks.cfg",
|
19
|
+
:ssh_login_timeout => 10000,
|
20
|
+
:ssh_user => "vagrant",
|
21
|
+
:ssh_password => "vagrant",
|
22
|
+
:ssh_key => "",
|
23
|
+
:ssh_host_port => "7222",
|
24
|
+
:ssh_guest_port => "22",
|
25
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
26
|
+
:shutdown_cmd => "/sbin/halt -h -p",
|
27
|
+
:postinstall_files => [ "postinstall.sh"],
|
28
|
+
:postinstall_timeout => 10000
|
29
|
+
})
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# Kickstart file automatically generated by anaconda.
|
2
|
+
|
3
|
+
install
|
4
|
+
cdrom
|
5
|
+
lang en_US.UTF-8
|
6
|
+
keyboard us
|
7
|
+
network --onboot yes --device p2p1 --bootproto dhcp --noipv6
|
8
|
+
timezone --utc America/Los_Angeles
|
9
|
+
rootpw --iscrypted $6$n/NGsk5H2aiBMXL4$r/oPkJtB5rasvQHPo9AvIJBe6sNVlQbpZxvTRMN7.qZk/Sn9u2qZ0XgNxflUvK20y7OIWdr/vv7MED6gzkBiH0
|
10
|
+
selinux --enforcing
|
11
|
+
authconfig --enableshadow --passalgo=sha512
|
12
|
+
firewall --service=ssh
|
13
|
+
# The following is the partition information you requested
|
14
|
+
# Note that any partitions you deleted are not expressed
|
15
|
+
# here so unless you clear all partitions first, this is
|
16
|
+
# not guaranteed to work
|
17
|
+
clearpart --all --drives=sda --initlabel
|
18
|
+
|
19
|
+
part biosboot --fstype=biosboot --size=1
|
20
|
+
part /boot --fstype=ext4 --size=500
|
21
|
+
part pv.2 --grow --size=500
|
22
|
+
|
23
|
+
volgroup vg_vagrant --pesize=32768 pv.2
|
24
|
+
logvol / --fstype=ext4 --name=lv_root --vgname=vg_vagrant --size=1024 --grow
|
25
|
+
logvol swap --fstype=swap --name=lv_swap --vgname=vg_vagrant --size=528 --grow --maxsize=1056
|
26
|
+
bootloader --location=mbr --driveorder=sda --append="norhgb biosdevname=0"
|
27
|
+
# Disable remote repositories, as this is a non-netinst install.
|
28
|
+
#repo --name="Fedora 16 - x86_64" --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-16&arch=x86_64 --cost=1000
|
29
|
+
#repo --name="Fedora 16 - x86_64 - Updates" --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f16&arch=x86_64 --cost=1000
|
30
|
+
services --enabled network
|
31
|
+
reboot
|
32
|
+
|
33
|
+
%packages --nobase
|
34
|
+
@core
|
35
|
+
|
36
|
+
# So we can scp stuff into the basebox
|
37
|
+
openssh-clients
|
38
|
+
|
39
|
+
# Requirements for vagrant
|
40
|
+
kernel-devel
|
41
|
+
kernel-headers
|
42
|
+
%end
|
43
|
+
|
44
|
+
%post
|
45
|
+
# Make ssh quicker in disconnected situations.
|
46
|
+
echo 'UseDNS no' >> /etc/ssh/sshd_config
|
47
|
+
|
48
|
+
# Disable udev persistent net rules
|
49
|
+
# We do this so that we do not persist rules mapped to virtual machines
|
50
|
+
# instances created from this basebox.
|
51
|
+
ln -s /dev/null /etc/udev/rule.d/70-persistent-net.rules
|
52
|
+
|
53
|
+
# Add Vagrant user and group.
|
54
|
+
/usr/sbin/groupadd vagrant
|
55
|
+
/usr/sbin/useradd vagrant -g vagrant
|
56
|
+
echo "vagrant"|passwd --stdin vagrant
|
57
|
+
|
58
|
+
# Give Vagrant user permission to sudo.
|
59
|
+
echo 'Defaults:vagrant !requiretty' > /etc/sudoers.d/vagrant
|
60
|
+
echo '%vagrant ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers.d/vagrant
|
61
|
+
chmod 440 /etc/sudoers.d/vagrant
|
62
|
+
|
63
|
+
# Install vagrant authorized ssh key.
|
64
|
+
mkdir /home/vagrant/.ssh
|
65
|
+
curl -L 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' > /home/vagrant/.ssh/authorized_keys
|
66
|
+
chown vagrant:vagrant -R /home/vagrant/.ssh
|
67
|
+
chmod 700 /home/vagrant/.ssh
|
68
|
+
chmod 600 /home/vagrant/.ssh/authorized_keys
|
69
|
+
chcon -R unconfined_u:object_r:user_home_t:s0 /home/vagrant/.ssh
|
70
|
+
%end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
date > /etc/vagrant_box_build_time
|
4
|
+
|
5
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
6
|
+
|
7
|
+
yum -y install \
|
8
|
+
dkms \
|
9
|
+
gcc \
|
10
|
+
make \
|
11
|
+
ruby \
|
12
|
+
ruby-devel \
|
13
|
+
rubygems \
|
14
|
+
|
15
|
+
yum clean all
|
16
|
+
|
17
|
+
mount /dev/cdrom1 /mnt
|
18
|
+
sh /mnt/VBoxLinuxAdditions.run
|
19
|
+
umount /mnt
|
20
|
+
restorecon -R /opt/VBoxGuestAdditions-${VBOX_VERSION}
|
21
|
+
|
22
|
+
gem install chef puppet --no-rdoc --no-ri
|
23
|
+
|
24
|
+
exit
|
25
|
+
|
26
|
+
# EOF
|
@@ -0,0 +1,17 @@
|
|
1
|
+
Veewee::Session.declare({
|
2
|
+
# Minimum RAM requirement for installation is 768MB.
|
3
|
+
:cpu_count => '1', :memory_size=> '768',
|
4
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :hwvirtext => 'on',
|
5
|
+
:os_type_id => 'Fedora',
|
6
|
+
:iso_file => "Fedora-17-i386-DVD.iso",
|
7
|
+
:iso_src => "http://download.fedoraproject.org/pub/fedora/linux/releases/17/Fedora/i386/iso/Fedora-17-i386-DVD.iso",
|
8
|
+
:iso_md5 => "d4717e04b596e33898cc34970e79dd3d",
|
9
|
+
:iso_download_timeout => 1000,
|
10
|
+
:boot_wait => "10", :boot_cmd_sequence => [ '<Tab> linux text biosdevname=0 ks=http://%IP%:%PORT%/ks.cfg<Enter><Enter>' ],
|
11
|
+
:kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
|
12
|
+
:ssh_login_timeout => "10000", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
13
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
14
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
15
|
+
:shutdown_cmd => "/sbin/halt -h -p",
|
16
|
+
:postinstall_files => [ "postinstall.sh"], :postinstall_timeout => 10000
|
17
|
+
})
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# Kickstart file automatically generated by anaconda.
|
2
|
+
|
3
|
+
install
|
4
|
+
cdrom
|
5
|
+
lang en_US.UTF-8
|
6
|
+
keyboard us
|
7
|
+
# note we set biosdevname=0 when launching install
|
8
|
+
# this means we will be using standard ethernet devices, e.g. eth[0,1,2] eth
|
9
|
+
network --onboot yes --device eth0 --bootproto dhcp --noipv6
|
10
|
+
timezone --utc America/Los_Angeles
|
11
|
+
rootpw --iscrypted $6$n/NGsk5H2aiBMXL4$r/oPkJtB5rasvQHPo9AvIJBe6sNVlQbpZxvTRMN7.qZk/Sn9u2qZ0XgNxflUvK20y7OIWdr/vv7MED6gzkBiH0
|
12
|
+
selinux --enforcing
|
13
|
+
authconfig --enableshadow --passalgo=sha512
|
14
|
+
firewall --service=ssh
|
15
|
+
# The following is the partition information you requested
|
16
|
+
# Note that any partitions you deleted are not expressed
|
17
|
+
# here so unless you clear all partitions first, this is
|
18
|
+
# not guaranteed to work
|
19
|
+
clearpart --all --drives=sda --initlabel
|
20
|
+
|
21
|
+
part biosboot --fstype=biosboot --size=1
|
22
|
+
part /boot --fstype=ext4 --size=500
|
23
|
+
part pv.2 --grow --size=500
|
24
|
+
|
25
|
+
volgroup vg_vagrant --pesize=32768 pv.2
|
26
|
+
logvol / --fstype=ext4 --name=lv_root --vgname=vg_vagrant --size=1024 --grow
|
27
|
+
logvol swap --fstype=swap --name=lv_swap --vgname=vg_vagrant --size=528 --grow --maxsize=1056
|
28
|
+
bootloader --location=mbr --driveorder=sda --append="norhgb biosdevname=0"
|
29
|
+
# Disable remote repositories, as this is a non-netinst install.
|
30
|
+
#repo --name="Fedora 16 - i386" --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-16&arch=i386 --cost=1000
|
31
|
+
#repo --name="Fedora 16 - i386 - Updates" --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f16&arch=i386 --cost=1000
|
32
|
+
services --enabled network
|
33
|
+
reboot
|
34
|
+
|
35
|
+
%packages
|
36
|
+
@core
|
37
|
+
@online-docs
|
38
|
+
|
39
|
+
# Requirements for vagrant
|
40
|
+
kernel-devel
|
41
|
+
kernel-headers
|
42
|
+
make
|
43
|
+
gcc
|
44
|
+
%end
|
45
|
+
|
46
|
+
%post
|
47
|
+
# Make ssh quicker in disconnected situations.
|
48
|
+
echo 'UseDNS no' >> /etc/ssh/sshd_config
|
49
|
+
|
50
|
+
# Disable udev persistent net rules
|
51
|
+
# We do this so that we do not persist rules mapped to virtual machines
|
52
|
+
# instances created from this basebox.
|
53
|
+
ln -s /dev/null /etc/udev/rule.d/70-persistent-net.rules
|
54
|
+
|
55
|
+
# Add Vagrant user and group.
|
56
|
+
/usr/sbin/groupadd vagrant
|
57
|
+
/usr/sbin/useradd vagrant -g vagrant
|
58
|
+
echo "vagrant"|passwd --stdin vagrant
|
59
|
+
|
60
|
+
# Give Vagrant user permission to sudo.
|
61
|
+
echo 'Defaults:vagrant !requiretty' > /etc/sudoers.d/vagrant
|
62
|
+
echo '%vagrant ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers.d/vagrant
|
63
|
+
chmod 440 /etc/sudoers.d/vagrant
|
64
|
+
|
65
|
+
# Install vagrant authorized ssh key.
|
66
|
+
mkdir /home/vagrant/.ssh
|
67
|
+
curl -L 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' > /home/vagrant/.ssh/authorized_keys
|
68
|
+
chown vagrant:vagrant -R /home/vagrant/.ssh
|
69
|
+
chmod 700 /home/vagrant/.ssh
|
70
|
+
chmod 600 /home/vagrant/.ssh/authorized_keys
|
71
|
+
chcon -R unconfined_u:object_r:user_home_t:s0 /home/vagrant/.ssh
|
72
|
+
%end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
date > /etc/vagrant_box_build_time
|
4
|
+
|
5
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
6
|
+
|
7
|
+
yum -y update
|
8
|
+
|
9
|
+
yum -y install \
|
10
|
+
ruby \
|
11
|
+
ruby-devel \
|
12
|
+
puppet \
|
13
|
+
rubygems \
|
14
|
+
rubygem-erubis \
|
15
|
+
rubygem-highline \
|
16
|
+
rubygem-json \
|
17
|
+
rubygem-mime-types \
|
18
|
+
rubygem-net-ssh \
|
19
|
+
rubygem-polyglot \
|
20
|
+
rubygem-rest-client \
|
21
|
+
rubygem-treetop \
|
22
|
+
rubygem-uuidtools
|
23
|
+
|
24
|
+
cd /tmp
|
25
|
+
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
26
|
+
mount -o loop,ro VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
27
|
+
sh /mnt/VBoxLinuxAdditions.run
|
28
|
+
umount /mnt
|
29
|
+
rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
30
|
+
|
31
|
+
gem install chef --no-rdoc --no-ri
|
32
|
+
|
33
|
+
exit
|
34
|
+
|
35
|
+
# EOF
|
@@ -0,0 +1,17 @@
|
|
1
|
+
Veewee::Session.declare({
|
2
|
+
# Minimum RAM requirement for installation is 768MB.
|
3
|
+
:cpu_count => '1', :memory_size=> '768',
|
4
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :hwvirtext => 'on',
|
5
|
+
:os_type_id => 'Fedora_64',
|
6
|
+
:iso_file => "Fedora-17-x86_64-DVD.iso",
|
7
|
+
:iso_src => "http://download.fedoraproject.org/pub/fedora/linux/releases/17/Fedora/x86_64/iso/Fedora-17-x86_64-DVD.iso",
|
8
|
+
:iso_md5 => "26f3358a5f8973f0956093f28a0106e7",
|
9
|
+
:iso_download_timeout => 1000,
|
10
|
+
:boot_wait => "10", :boot_cmd_sequence => [ '<Tab> linux text biosdevname=0 ks=http://%IP%:%PORT%/ks.cfg<Enter><Enter>' ],
|
11
|
+
:kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
|
12
|
+
:ssh_login_timeout => "10000", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
13
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
14
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
15
|
+
:shutdown_cmd => "/sbin/halt -h -p",
|
16
|
+
:postinstall_files => [ "postinstall.sh"], :postinstall_timeout => 10000
|
17
|
+
})
|