HeSYINUvSBZfxqA-veewee 0.2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +15 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +69 -0
- data/HeSYINUvSBZfxqA-veewee.gemspec +33 -0
- data/README.md +198 -0
- data/Rakefile +92 -0
- data/bin/veewee +79 -0
- data/lib/java/README.txt +5 -0
- data/lib/java/dir2floppy.jar +0 -0
- data/lib/java/dir2floppy.java +137 -0
- data/lib/vagrant_init.rb +6 -0
- data/lib/veewee/command.rb +82 -0
- data/lib/veewee/config.rb +5 -0
- data/lib/veewee/export.rb +81 -0
- data/lib/veewee/scancode.rb +151 -0
- data/lib/veewee/session.rb +783 -0
- data/lib/veewee/shell.rb +54 -0
- data/lib/veewee/ssh.rb +193 -0
- data/lib/veewee/transaction.rb +122 -0
- data/lib/veewee/utils.rb +26 -0
- data/lib/veewee/version.rb +3 -0
- data/lib/veewee/web.rb +48 -0
- data/lib/veewee.rb +2 -0
- data/templates/CentOS-4.8-i386/definition.rb +14 -0
- data/templates/CentOS-4.8-i386/ks.cfg +45 -0
- data/templates/CentOS-4.8-i386/postinstall.sh +55 -0
- data/templates/CentOS-5.6-i386/definition.rb +17 -0
- data/templates/CentOS-5.6-i386/ks.cfg +45 -0
- data/templates/CentOS-5.6-i386/postinstall.sh +50 -0
- data/templates/CentOS-5.6-i386-netboot/definition.rb +16 -0
- data/templates/CentOS-5.6-i386-netboot/ks.cfg +45 -0
- data/templates/CentOS-5.6-i386-netboot/postinstall.sh +52 -0
- data/templates/CentOS-5.6-x86_64-netboot/definition.rb +16 -0
- data/templates/CentOS-5.6-x86_64-netboot/ks.cfg +45 -0
- data/templates/CentOS-5.6-x86_64-netboot/postinstall.sh +60 -0
- data/templates/CentOS-6.0-i386/definition.rb +17 -0
- data/templates/CentOS-6.0-i386/ks.cfg +47 -0
- data/templates/CentOS-6.0-i386/postinstall.sh +48 -0
- data/templates/CentOS-6.0-i386-netboot/definition.rb +16 -0
- data/templates/CentOS-6.0-i386-netboot/ks.cfg +52 -0
- data/templates/CentOS-6.0-i386-netboot/postinstall.sh +30 -0
- data/templates/CentOS-6.0-x86_64/definition.rb +17 -0
- data/templates/CentOS-6.0-x86_64/ks.cfg +47 -0
- data/templates/CentOS-6.0-x86_64/postinstall.sh +48 -0
- data/templates/CentOS-6.0-x86_64-netboot/definition.rb +16 -0
- data/templates/CentOS-6.0-x86_64-netboot/ks.cfg +52 -0
- data/templates/CentOS-6.0-x86_64-netboot/postinstall.sh +30 -0
- data/templates/Debian-5.0.8-amd64-netboot/definition.rb +39 -0
- data/templates/Debian-5.0.8-amd64-netboot/postinstall.sh +60 -0
- data/templates/Debian-5.0.8-amd64-netboot/preseed.cfg +312 -0
- data/templates/Debian-5.0.8-i386-netboot/definition.rb +39 -0
- data/templates/Debian-5.0.8-i386-netboot/postinstall.sh +60 -0
- data/templates/Debian-5.0.8-i386-netboot/preseed.cfg +312 -0
- data/templates/Debian-6.0.2-amd64-netboot/definition.rb +39 -0
- data/templates/Debian-6.0.2-amd64-netboot/postinstall.sh +71 -0
- data/templates/Debian-6.0.2-amd64-netboot/preseed.cfg +312 -0
- data/templates/Debian-6.0.2-i386-netboot/definition.rb +41 -0
- data/templates/Debian-6.0.2-i386-netboot/postinstall.sh +83 -0
- data/templates/Debian-6.0.2-i386-netboot/preseed.cfg +312 -0
- data/templates/Fedora-14-amd64/definition.rb +16 -0
- data/templates/Fedora-14-amd64/ks.cfg +41 -0
- data/templates/Fedora-14-amd64/postinstall.sh +54 -0
- data/templates/Fedora-14-amd64-netboot/definition.rb +16 -0
- data/templates/Fedora-14-amd64-netboot/ks.cfg +40 -0
- data/templates/Fedora-14-amd64-netboot/postinstall.sh +54 -0
- data/templates/Fedora-14-i386/definition.rb +16 -0
- data/templates/Fedora-14-i386/ks.cfg +41 -0
- data/templates/Fedora-14-i386/postinstall.sh +54 -0
- data/templates/Fedora-14-i386-netboot/definition.rb +16 -0
- data/templates/Fedora-14-i386-netboot/ks.cfg +40 -0
- data/templates/Fedora-14-i386-netboot/postinstall.sh +54 -0
- data/templates/Fedora-15-i386/definition.rb +17 -0
- data/templates/Fedora-15-i386/ks.cfg +64 -0
- data/templates/Fedora-15-i386/postinstall.sh +33 -0
- data/templates/Fedora-15-i386-netboot/definition.rb +17 -0
- data/templates/Fedora-15-i386-netboot/ks.cfg +82 -0
- data/templates/Fedora-15-i386-netboot/postinstall.sh +18 -0
- data/templates/Sysrescuecd-2.0.0-experimental/autorun0 +3 -0
- data/templates/Sysrescuecd-2.0.0-experimental/definition.rb +20 -0
- data/templates/archlinux-i386/aif.cfg +33 -0
- data/templates/archlinux-i386/definition.rb +29 -0
- data/templates/archlinux-i386/postinstall.sh +95 -0
- data/templates/archlinux-x86_64/aif.cfg +33 -0
- data/templates/archlinux-x86_64/definition.rb +29 -0
- data/templates/archlinux-x86_64/postinstall.sh +95 -0
- data/templates/freebsd-8.2-experimental/definition.rb +19 -0
- data/templates/freebsd-8.2-experimental/postinstall.sh +191 -0
- data/templates/freebsd-8.2-pcbsd-i386/definition.rb +31 -0
- data/templates/freebsd-8.2-pcbsd-i386/pcinstall.fbg.cfg +57 -0
- data/templates/freebsd-8.2-pcbsd-i386/postinstall.sh +93 -0
- data/templates/freebsd-8.2-pcbsd-i386-netboot/definition.rb +34 -0
- data/templates/freebsd-8.2-pcbsd-i386-netboot/pcinstall.fbg.cfg +58 -0
- data/templates/freebsd-8.2-pcbsd-i386-netboot/postinstall.sh +93 -0
- data/templates/gentoo-latest-i386-experimental/definition.rb +29 -0
- data/templates/gentoo-latest-i386-experimental/postinstall.sh +184 -0
- data/templates/openindiana-148-ai-x86/auto_install/ai.dtd +58 -0
- data/templates/openindiana-148-ai-x86/auto_install/ai_manifest.xml +241 -0
- data/templates/openindiana-148-ai-x86/auto_install/configuration.dtd +44 -0
- data/templates/openindiana-148-ai-x86/auto_install/default.xml +121 -0
- data/templates/openindiana-148-ai-x86/auto_install/default.xml.orig +124 -0
- data/templates/openindiana-148-ai-x86/auto_install/sc_profiles/static_network.xml +105 -0
- data/templates/openindiana-148-ai-x86/auto_install/software.dtd +105 -0
- data/templates/openindiana-148-ai-x86/auto_install/target.dtd +196 -0
- data/templates/openindiana-148-ai-x86/default.xml +121 -0
- data/templates/openindiana-148-ai-x86/definition.rb +59 -0
- data/templates/openindiana-148-ai-x86/postinstall.sh +103 -0
- data/templates/opensuse-11.4-i386-experimental/README +11 -0
- data/templates/opensuse-11.4-i386-experimental/autoinst.xml +1269 -0
- data/templates/opensuse-11.4-i386-experimental/autoinst.xml.generated +1269 -0
- data/templates/opensuse-11.4-i386-experimental/autoinst.xml.tweaked +1269 -0
- data/templates/opensuse-11.4-i386-experimental/definition.rb +31 -0
- data/templates/opensuse-11.4-i386-experimental/postinstall.sh +90 -0
- data/templates/solaris-11-express-i386/auto_install/ai.dtd +58 -0
- data/templates/solaris-11-express-i386/auto_install/ai_manifest.xml +241 -0
- data/templates/solaris-11-express-i386/auto_install/configuration.dtd +44 -0
- data/templates/solaris-11-express-i386/auto_install/default.xml +124 -0
- data/templates/solaris-11-express-i386/auto_install/default.xml.orig +124 -0
- data/templates/solaris-11-express-i386/auto_install/sc_profiles/static_network.xml +105 -0
- data/templates/solaris-11-express-i386/auto_install/software.dtd +105 -0
- data/templates/solaris-11-express-i386/auto_install/target.dtd +196 -0
- data/templates/solaris-11-express-i386/default.xml +121 -0
- data/templates/solaris-11-express-i386/definition.rb +65 -0
- data/templates/solaris-11-express-i386/postinstall.sh +98 -0
- data/templates/ubuntu-10.04.2-amd64-netboot/definition.rb +23 -0
- data/templates/ubuntu-10.04.2-amd64-netboot/postinstall.sh +90 -0
- data/templates/ubuntu-10.04.2-amd64-netboot/preseed.cfg +89 -0
- data/templates/ubuntu-10.04.2-server-amd64/definition.rb +57 -0
- data/templates/ubuntu-10.04.2-server-amd64/postinstall.sh +90 -0
- data/templates/ubuntu-10.04.2-server-amd64/preseed.cfg +87 -0
- data/templates/ubuntu-10.04.2-server-amd64-alt/definition.rb +57 -0
- data/templates/ubuntu-10.04.2-server-amd64-alt/postinstall.sh +249 -0
- data/templates/ubuntu-10.04.2-server-amd64-alt/preseed.cfg +124 -0
- data/templates/ubuntu-10.04.2-server-i386/definition.rb +24 -0
- data/templates/ubuntu-10.04.2-server-i386/postinstall.sh +91 -0
- data/templates/ubuntu-10.04.2-server-i386/preseed.cfg +87 -0
- data/templates/ubuntu-10.04.2-server-i386-netboot/definition.rb +23 -0
- data/templates/ubuntu-10.04.2-server-i386-netboot/postinstall.sh +90 -0
- data/templates/ubuntu-10.04.2-server-i386-netboot/preseed.cfg +89 -0
- data/templates/ubuntu-10.10-server-amd64/definition.rb +24 -0
- data/templates/ubuntu-10.10-server-amd64/postinstall.sh +90 -0
- data/templates/ubuntu-10.10-server-amd64/preseed.cfg +87 -0
- data/templates/ubuntu-10.10-server-amd64-netboot/definition.rb +24 -0
- data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +90 -0
- data/templates/ubuntu-10.10-server-amd64-netboot/preseed.cfg +89 -0
- data/templates/ubuntu-10.10-server-i386/definition.rb +24 -0
- data/templates/ubuntu-10.10-server-i386/postinstall.sh +90 -0
- data/templates/ubuntu-10.10-server-i386/preseed.cfg +87 -0
- data/templates/ubuntu-10.10-server-i386-netboot/definition.rb +24 -0
- data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +90 -0
- data/templates/ubuntu-10.10-server-i386-netboot/preseed.cfg +89 -0
- data/templates/ubuntu-11.04-server-amd64/definition.rb +24 -0
- data/templates/ubuntu-11.04-server-amd64/postinstall.sh +90 -0
- data/templates/ubuntu-11.04-server-amd64/preseed.cfg +87 -0
- data/templates/ubuntu-11.04-server-i386/definition.rb +24 -0
- data/templates/ubuntu-11.04-server-i386/postinstall.sh +90 -0
- data/templates/ubuntu-11.04-server-i386/preseed.cfg +87 -0
- data/templates/ubuntu-8.04.4-server-amd64/definition.rb +25 -0
- data/templates/ubuntu-8.04.4-server-amd64/postinstall.sh +68 -0
- data/templates/ubuntu-8.04.4-server-amd64/preseed.cfg +88 -0
- data/templates/ubuntu-8.04.4-server-i386/definition.rb +25 -0
- data/templates/ubuntu-8.04.4-server-i386/postinstall.sh +47 -0
- data/templates/ubuntu-8.04.4-server-i386/preseed.cfg +87 -0
- data/templates/windows-2008R2-amd64/Autounattend.xml +132 -0
- data/templates/windows-2008R2-amd64/README.md +68 -0
- data/templates/windows-2008R2-amd64/cygwin-setup.exe +0 -0
- data/templates/windows-2008R2-amd64/definition.rb +16 -0
- data/templates/windows-2008R2-amd64/install-cygwin-sshd.bat +38 -0
- data/templates/windows-2008R2-amd64/install-winrm.bat +6 -0
- data/templates/windows-2008R2-amd64/oracle-cert.cer +0 -0
- data/templates/windows-2008R2-amd64/postinstall.sh +122 -0
- data/templates/windows-2008R2-amd64/winrm.rb +8 -0
- data/trials/docu-vbox.txt +83 -0
- data/trials/f.rb +29 -0
- data/trials/t.rb +15 -0
- data/validation/features/steps/ssh_steps.rb +170 -0
- data/validation/support/env.rb +1 -0
- data/validation/vagrant-private.key +27 -0
- data/validation/vagrant.feature +52 -0
- data/validation/vagrant.pub +1 -0
- data/veewee.gemspec +33 -0
- data/vendor/cache/Platform-0.4.0.gem +0 -0
- data/vendor/cache/archive-tar-minitar-0.5.2.gem +0 -0
- data/vendor/cache/builder-3.0.0.gem +0 -0
- data/vendor/cache/cucumber-1.0.2.gem +0 -0
- data/vendor/cache/diff-lcs-1.1.2.gem +0 -0
- data/vendor/cache/erubis-2.7.0.gem +0 -0
- data/vendor/cache/ffi-1.0.9.gem +0 -0
- data/vendor/cache/gherkin-2.4.6.gem +0 -0
- data/vendor/cache/highline-1.6.2.gem +0 -0
- data/vendor/cache/i18n-0.5.0.gem +0 -0
- data/vendor/cache/json-1.5.3.gem +0 -0
- data/vendor/cache/net-scp-1.0.4.gem +0 -0
- data/vendor/cache/net-ssh-2.1.4.gem +0 -0
- data/vendor/cache/open4-1.1.0.gem +0 -0
- data/vendor/cache/popen4-0.1.2.gem +0 -0
- data/vendor/cache/progressbar-0.9.1.gem +0 -0
- data/vendor/cache/rspec-2.5.0.gem +0 -0
- data/vendor/cache/rspec-core-2.5.2.gem +0 -0
- data/vendor/cache/rspec-expectations-2.5.0.gem +0 -0
- data/vendor/cache/rspec-mocks-2.5.0.gem +0 -0
- data/vendor/cache/term-ansicolor-1.0.6.gem +0 -0
- data/vendor/cache/thor-0.14.6.gem +0 -0
- data/vendor/cache/vagrant-0.8.2.gem +0 -0
- data/vendor/cache/virtualbox-0.9.1.gem +0 -0
- metadata +417 -0
@@ -0,0 +1,90 @@
|
|
1
|
+
# postinstall.sh created from Mitchell's official lucid32/64 baseboxes
|
2
|
+
|
3
|
+
date > /etc/vagrant_box_build_time
|
4
|
+
|
5
|
+
# Apt-install various things necessary for Ruby, guest additions,
|
6
|
+
# etc., and remove optional things to trim down the machine.
|
7
|
+
apt-get -y update
|
8
|
+
apt-get -y upgrade
|
9
|
+
apt-get -y install linux-headers-$(uname -r) build-essential
|
10
|
+
apt-get -y install zlib1g-dev libssl-dev libreadline5-dev
|
11
|
+
apt-get clean
|
12
|
+
|
13
|
+
# Setup sudo to allow no-password sudo for "admin"
|
14
|
+
cp /etc/sudoers /etc/sudoers.orig
|
15
|
+
sed -i -e '/Defaults\s\+env_reset/a Defaults\texempt_group=admin' /etc/sudoers
|
16
|
+
sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
|
17
|
+
|
18
|
+
# Install NFS client
|
19
|
+
apt-get -y install nfs-common
|
20
|
+
|
21
|
+
# Install Ruby from source in /opt so that users of Vagrant
|
22
|
+
# can install their own Rubies using packages or however.
|
23
|
+
# We must install the 1.8.x series since Puppet doesn't support
|
24
|
+
# Ruby 1.9 yet.
|
25
|
+
wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
|
26
|
+
tar xvzf ruby-1.8.7-p334.tar.gz
|
27
|
+
cd ruby-1.8.7-p334
|
28
|
+
./configure --prefix=/opt/ruby
|
29
|
+
make
|
30
|
+
make install
|
31
|
+
cd ..
|
32
|
+
rm -rf ruby-1.8.7-p334*
|
33
|
+
|
34
|
+
# Install RubyGems 1.7.2
|
35
|
+
wget http://production.cf.rubygems.org/rubygems/rubygems-1.7.2.tgz
|
36
|
+
tar xzf rubygems-1.7.2.tgz
|
37
|
+
cd rubygems-1.7.2
|
38
|
+
/opt/ruby/bin/ruby setup.rb
|
39
|
+
cd ..
|
40
|
+
rm -rf rubygems-1.7.2*
|
41
|
+
|
42
|
+
# Installing chef & Puppet
|
43
|
+
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
|
44
|
+
/opt/ruby/bin/gem install puppet --no-ri --no-rdoc
|
45
|
+
|
46
|
+
# Add /opt/ruby/bin to the global path as the last resort so
|
47
|
+
# Ruby, RubyGems, and Chef/Puppet are visible
|
48
|
+
echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/vagrantruby.sh
|
49
|
+
|
50
|
+
# Installing vagrant keys
|
51
|
+
mkdir /home/vagrant/.ssh
|
52
|
+
chmod 700 /home/vagrant/.ssh
|
53
|
+
cd /home/vagrant/.ssh
|
54
|
+
wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
|
55
|
+
chmod 600 /home/vagrant/.ssh/authorized_keys
|
56
|
+
chown -R vagrant /home/vagrant/.ssh
|
57
|
+
|
58
|
+
# Installing the virtualbox guest additions
|
59
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
60
|
+
cd /tmp
|
61
|
+
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
62
|
+
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
63
|
+
sh /mnt/VBoxLinuxAdditions.run
|
64
|
+
umount /mnt
|
65
|
+
|
66
|
+
rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
67
|
+
|
68
|
+
# Remove items used for building, since they aren't needed anymore
|
69
|
+
apt-get -y remove linux-headers-$(uname -r) build-essential
|
70
|
+
apt-get -y autoremove
|
71
|
+
|
72
|
+
# Zero out the free space to save space in the final image:
|
73
|
+
dd if=/dev/zero of=/EMPTY bs=1M
|
74
|
+
rm -f /EMPTY
|
75
|
+
|
76
|
+
# Removing leftover leases and persistent rules
|
77
|
+
echo "cleaning up dhcp leases"
|
78
|
+
rm /var/lib/dhcp3/*
|
79
|
+
|
80
|
+
# Make sure Udev doesn't block our network
|
81
|
+
# http://6.ptmc.org/?p=164
|
82
|
+
echo "cleaning up udev rules"
|
83
|
+
rm /etc/udev/rules.d/70-persistent-net.rules
|
84
|
+
mkdir /etc/udev/rules.d/70-persistent-net.rules
|
85
|
+
rm -rf /dev/.udev/
|
86
|
+
rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
87
|
+
|
88
|
+
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
89
|
+
echo "pre-up sleep 2" >> /etc/network/interfaces
|
90
|
+
exit
|
@@ -0,0 +1,87 @@
|
|
1
|
+
## Options to set on the command line
|
2
|
+
d-i debian-installer/locale string en_US.utf8
|
3
|
+
d-i console-setup/ask_detect boolean false
|
4
|
+
d-i console-setup/layout string USA
|
5
|
+
|
6
|
+
#d-i netcfg/get_hostname string dummy
|
7
|
+
d-i netcfg/get_hostname string unassigned-hostname
|
8
|
+
d-i netcfg/get_domain string unassigned-domain
|
9
|
+
|
10
|
+
# Continue without a default route
|
11
|
+
# Not working , specify a dummy in the DHCP
|
12
|
+
#d-i netcfg/no_default_route boolean
|
13
|
+
|
14
|
+
d-i time/zone string UTC
|
15
|
+
d-i clock-setup/utc-auto boolean true
|
16
|
+
d-i clock-setup/utc boolean true
|
17
|
+
|
18
|
+
d-i kbd-chooser/method select American English
|
19
|
+
|
20
|
+
d-i netcfg/wireless_wep string
|
21
|
+
|
22
|
+
d-i base-installer/kernel/override-image string linux-server
|
23
|
+
#d-i base-installer/kernel/override-image string linux-image-2.6.32-21-generic
|
24
|
+
|
25
|
+
# Choices: Dialog, Readline, Gnome, Kde, Editor, Noninteractive
|
26
|
+
d-i debconf debconf/frontend select Noninteractive
|
27
|
+
|
28
|
+
d-i pkgsel/install-language-support boolean false
|
29
|
+
tasksel tasksel/first multiselect standard, ubuntu-server
|
30
|
+
|
31
|
+
#d-i partman-auto/method string regular
|
32
|
+
d-i partman-auto/method string lvm
|
33
|
+
#d-i partman-auto/purge_lvm_from_device boolean true
|
34
|
+
|
35
|
+
d-i partman-lvm/confirm boolean true
|
36
|
+
d-i partman-lvm/device_remove_lvm boolean true
|
37
|
+
d-i partman-auto/choose_recipe select atomic
|
38
|
+
|
39
|
+
d-i partman/confirm_write_new_label boolean true
|
40
|
+
d-i partman/confirm_nooverwrite boolean true
|
41
|
+
d-i partman/choose_partition select finish
|
42
|
+
d-i partman/confirm boolean true
|
43
|
+
|
44
|
+
#http://ubuntu-virginia.ubuntuforums.org/showthread.php?p=9626883
|
45
|
+
#Message: "write the changes to disk and configure lvm preseed"
|
46
|
+
#http://serverfault.com/questions/189328/ubuntu-kickstart-installation-using-lvm-waits-for-input
|
47
|
+
#preseed partman-lvm/confirm_nooverwrite boolean true
|
48
|
+
|
49
|
+
# Write the changes to disks and configure LVM?
|
50
|
+
d-i partman-lvm/confirm boolean true
|
51
|
+
d-i partman-lvm/confirm_nooverwrite boolean true
|
52
|
+
d-i partman-auto-lvm/guided_size string max
|
53
|
+
|
54
|
+
## Default user, we can get away with a recipe to change this
|
55
|
+
d-i passwd/user-fullname string vagrant
|
56
|
+
d-i passwd/username string vagrant
|
57
|
+
d-i passwd/user-password password vagrant
|
58
|
+
d-i passwd/user-password-again password vagrant
|
59
|
+
d-i user-setup/encrypt-home boolean false
|
60
|
+
d-i user-setup/allow-password-weak boolean true
|
61
|
+
|
62
|
+
## minimum is puppet and ssh and ntp
|
63
|
+
# Individual additional packages to install
|
64
|
+
d-i pkgsel/include string openssh-server ntp
|
65
|
+
|
66
|
+
# Whether to upgrade packages after debootstrap.
|
67
|
+
# Allowed values: none, safe-upgrade, full-upgrade
|
68
|
+
d-i pkgsel/upgrade select full-upgrade
|
69
|
+
|
70
|
+
d-i grub-installer/only_debian boolean true
|
71
|
+
d-i grub-installer/with_other_os boolean true
|
72
|
+
d-i finish-install/reboot_in_progress note
|
73
|
+
|
74
|
+
#For the update
|
75
|
+
d-i pkgsel/update-policy select none
|
76
|
+
|
77
|
+
# debconf-get-selections --install
|
78
|
+
#Use mirror
|
79
|
+
#d-i apt-setup/use_mirror boolean true
|
80
|
+
#d-i mirror/country string manual
|
81
|
+
#choose-mirror-bin mirror/protocol string http
|
82
|
+
#choose-mirror-bin mirror/http/hostname string 192.168.4.150
|
83
|
+
#choose-mirror-bin mirror/http/directory string /ubuntu
|
84
|
+
#choose-mirror-bin mirror/suite select maverick
|
85
|
+
#d-i debian-installer/allow_unauthenticated string true
|
86
|
+
|
87
|
+
choose-mirror-bin mirror/http/proxy string
|
@@ -0,0 +1,25 @@
|
|
1
|
+
Veewee::Session.declare({
|
2
|
+
:cpu_count => '1', :memory_size=> '384',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
|
4
|
+
:os_type_id => 'Ubuntu_64',
|
5
|
+
:iso_file => "ubuntu-8.04.4-server-amd64.iso",
|
6
|
+
:iso_src => "http://releases.ubuntu.com/8.04.4/ubuntu-8.04.4-server-amd64.iso",
|
7
|
+
:iso_md5 => "89fdc8289630fceb036c9818ac19ca4",
|
8
|
+
:iso_download_timeout => "1000",
|
9
|
+
:boot_wait => "10", :boot_cmd_sequence => [
|
10
|
+
'<Esc><Esc><Enter>',
|
11
|
+
'/install/vmlinuz noapic preseed/url=http://%IP%:%PORT%/preseed.cfg ',
|
12
|
+
'debian-installer=en_US auto locale=en_US kbd-chooser/method=us ',
|
13
|
+
'hostname=%NAME% ',
|
14
|
+
'fb=false debconf/frontend=noninteractive ',
|
15
|
+
'console-setup/ask_detect=false console-setup/modelcode=pc105 console-setup/layoutcode=us ',
|
16
|
+
'initrd=/install/initrd.gz -- <Enter>'
|
17
|
+
],
|
18
|
+
:kickstart_port => "7122", :kickstart_timeout => "10000", :kickstart_file => "preseed.cfg",
|
19
|
+
:ssh_login_timeout => "10000", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
20
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
21
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
22
|
+
:shutdown_cmd => "shutdown -P now",
|
23
|
+
:postinstall_files => [ "postinstall.sh"], :postinstall_timeout => "10000"
|
24
|
+
})
|
25
|
+
|
@@ -0,0 +1,68 @@
|
|
1
|
+
#http://adrianbravo.tumblr.com/post/644860401
|
2
|
+
|
3
|
+
date > /etc/vagrant_box_build_time
|
4
|
+
|
5
|
+
#Updating the box
|
6
|
+
apt-get -y update
|
7
|
+
apt-get -y install linux-headers-$(uname -r) build-essential
|
8
|
+
apt-get -y install zlib1g-dev libssl-dev libreadline5-dev
|
9
|
+
apt-get clean
|
10
|
+
|
11
|
+
#Setting up sudo
|
12
|
+
cp /etc/sudoers /etc/sudoers.orig
|
13
|
+
sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
|
14
|
+
|
15
|
+
#Installing ruby
|
16
|
+
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
|
17
|
+
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
|
18
|
+
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
|
19
|
+
echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
|
20
|
+
rm -rf ./ruby-enterprise-1.8.7-2010.02/
|
21
|
+
rm ruby-enterprise-1.8.7-2010.02.tar.gz
|
22
|
+
|
23
|
+
#Installing chef & Puppet
|
24
|
+
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
|
25
|
+
/opt/ruby/bin/gem install puppet --no-ri --no-rdoc
|
26
|
+
|
27
|
+
#Installing vagrant keys
|
28
|
+
mkdir /home/vagrant/.ssh
|
29
|
+
chmod 700 /home/vagrant/.ssh
|
30
|
+
cd /home/vagrant/.ssh
|
31
|
+
wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
|
32
|
+
chmod 600 /home/vagrant/.ssh/authorized_keys
|
33
|
+
chown -R vagrant /home/vagrant/.ssh
|
34
|
+
|
35
|
+
#Installing the virtualbox guest additions
|
36
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
37
|
+
cd /tmp
|
38
|
+
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
39
|
+
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
40
|
+
sh /mnt/VBoxLinuxAdditions.run
|
41
|
+
umount /mnt
|
42
|
+
|
43
|
+
rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
44
|
+
|
45
|
+
# Remove items used for building, since they aren't needed anymore
|
46
|
+
apt-get -y remove linux-headers-$(uname -r) build-essential
|
47
|
+
apt-get -y autoremove
|
48
|
+
|
49
|
+
# Zero out the free space to save space in the final image:
|
50
|
+
dd if=/dev/zero of=/EMPTY bs=1M
|
51
|
+
rm -f /EMPTY
|
52
|
+
|
53
|
+
exit
|
54
|
+
# Not sure if this is needed for hardy too
|
55
|
+
# Removing leftover leases and persistent rules
|
56
|
+
echo "cleaning up dhcp leases"
|
57
|
+
rm /var/lib/dhcp3/*
|
58
|
+
|
59
|
+
# Make sure Udev doesn't block our network
|
60
|
+
# http://6.ptmc.org/?p=164
|
61
|
+
echo "cleaning up udev rules"
|
62
|
+
rm /etc/udev/rules.d/70-persistent-net.rules
|
63
|
+
mkdir /etc/udev/rules.d/70-persistent-net.rules
|
64
|
+
rm -rf /dev/.udev/
|
65
|
+
rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
66
|
+
|
67
|
+
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
68
|
+
echo "pre-up sleep 2" >> /etc/network/interfaces
|
@@ -0,0 +1,88 @@
|
|
1
|
+
## Options to set on the command line
|
2
|
+
d-i debian-installer/locale string en_US
|
3
|
+
d-i console-setup/ask_detect boolean false
|
4
|
+
d-i console-setup/layout string Belgium
|
5
|
+
|
6
|
+
#d-i netcfg/get_hostname string dummy
|
7
|
+
d-i netcfg/get_hostname string unassigned-hostname
|
8
|
+
d-i netcfg/get_domain string unassigned-domain
|
9
|
+
|
10
|
+
# Continue without a default route
|
11
|
+
# Not working , specify a dummy in the DHCP
|
12
|
+
#d-i netcfg/no_default_route boolean
|
13
|
+
|
14
|
+
d-i time/zone string Europe/Brussels
|
15
|
+
d-i clock-setup/utc-auto boolean true
|
16
|
+
d-i clock-setup/utc boolean true
|
17
|
+
|
18
|
+
d-i kbd-chooser/method select Belgian
|
19
|
+
|
20
|
+
d-i netcfg/wireless_wep string
|
21
|
+
|
22
|
+
d-i base-installer/kernel/override-image string linux-server
|
23
|
+
#d-i base-installer/kernel/override-image string linux-image-2.6.32-21-generic
|
24
|
+
|
25
|
+
# Choices: Dialog, Readline, Gnome, Kde, Editor, Noninteractive
|
26
|
+
d-i debconf debconf/frontend select Noninteractive
|
27
|
+
|
28
|
+
d-i pkgsel/install-language-support boolean false
|
29
|
+
tasksel tasksel/first multiselect standard, ubuntu-server
|
30
|
+
|
31
|
+
#d-i partman-auto/method string regular
|
32
|
+
d-i partman-auto/method string lvm
|
33
|
+
#d-i partman-auto/purge_lvm_from_device boolean true
|
34
|
+
|
35
|
+
d-i partman-lvm/confirm boolean true
|
36
|
+
d-i partman-lvm/device_remove_lvm boolean true
|
37
|
+
d-i partman-auto/choose_recipe select atomic
|
38
|
+
|
39
|
+
d-i partman/confirm_write_new_label boolean true
|
40
|
+
d-i partman/confirm_nooverwrite boolean true
|
41
|
+
d-i partman/choose_partition select finish
|
42
|
+
d-i partman/confirm boolean true
|
43
|
+
|
44
|
+
#http://ubuntu-virginia.ubuntuforums.org/showthread.php?p=9626883
|
45
|
+
#Message: "write the changes to disk and configure lvm preseed"
|
46
|
+
#http://serverfault.com/questions/189328/ubuntu-kickstart-installation-using-lvm-waits-for-input
|
47
|
+
#preseed partman-lvm/confirm_nooverwrite boolean true
|
48
|
+
|
49
|
+
# Write the changes to disks and configure LVM?
|
50
|
+
d-i partman-lvm/confirm boolean true
|
51
|
+
d-i partman-lvm/confirm_nooverwrite boolean true
|
52
|
+
d-i partman-auto-lvm/guided_size string max
|
53
|
+
|
54
|
+
## Default user, we can get away with a recipe to change this
|
55
|
+
d-i passwd/user-fullname string vagrant
|
56
|
+
d-i passwd/username string vagrant
|
57
|
+
d-i passwd/user-password password vagrant
|
58
|
+
d-i passwd/user-password-again password vagrant
|
59
|
+
d-i user-setup/encrypt-home boolean false
|
60
|
+
d-i user-setup/allow-password-weak boolean true
|
61
|
+
|
62
|
+
## minimum is puppet and ssh and ntp
|
63
|
+
# Individual additional packages to install
|
64
|
+
d-i pkgsel/include string openssh-server ntp acpid
|
65
|
+
|
66
|
+
# Whether to upgrade packages after debootstrap.
|
67
|
+
# Allowed values: none, safe-upgrade, full-upgrade
|
68
|
+
d-i pkgsel/upgrade select full-upgrade
|
69
|
+
|
70
|
+
d-i grub-installer/only_debian boolean true
|
71
|
+
d-i grub-installer/with_other_os boolean true
|
72
|
+
d-i finish-install/reboot_in_progress note
|
73
|
+
|
74
|
+
#For the update
|
75
|
+
d-i pkgsel/update-policy select none
|
76
|
+
|
77
|
+
# debconf-get-selections --install
|
78
|
+
#Use mirror
|
79
|
+
#d-i apt-setup/use_mirror boolean true
|
80
|
+
#d-i mirror/country string manual
|
81
|
+
#choose-mirror-bin mirror/protocol string http
|
82
|
+
#choose-mirror-bin mirror/http/hostname string 192.168.4.150
|
83
|
+
#choose-mirror-bin mirror/http/directory string /ubuntu
|
84
|
+
#choose-mirror-bin mirror/suite select maverick
|
85
|
+
#d-i debian-installer/allow_unauthenticated string true
|
86
|
+
|
87
|
+
choose-mirror-bin mirror/http/proxy string
|
88
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
Veewee::Session.declare({
|
2
|
+
:cpu_count => '1', :memory_size=> '384',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
|
4
|
+
:os_type_id => 'Ubuntu',
|
5
|
+
:pae => true, :io_apic_enabled => true,
|
6
|
+
:iso_file => "ubuntu-8.04.4-server-i386.iso",
|
7
|
+
:iso_src => "http://releases.ubuntu.com/8.04.4/ubuntu-8.04.4-server-i386.iso",
|
8
|
+
:iso_md5 => "ef478e539e991dfa09c3b5b7c589aba6",
|
9
|
+
:iso_download_timeout => "1000",
|
10
|
+
:boot_wait => "10", :boot_cmd_sequence => [
|
11
|
+
'<Esc><Esc><Enter>',
|
12
|
+
'/install/vmlinuz noapic preseed/url=http://%IP%:%PORT%/preseed.cfg ',
|
13
|
+
'debian-installer=en_US auto locale=en_US kbd-chooser/method=us ',
|
14
|
+
'hostname=%NAME% ',
|
15
|
+
'fb=false debconf/frontend=noninteractive ',
|
16
|
+
'console-setup/ask_detect=false console-setup/modelcode=pc105 console-setup/layoutcode=us ',
|
17
|
+
'initrd=/install/initrd.gz -- <Enter>'
|
18
|
+
],
|
19
|
+
:kickstart_port => "7122", :kickstart_timeout => "10000", :kickstart_file => "preseed.cfg",
|
20
|
+
:ssh_login_timeout => "10000", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
21
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
22
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
23
|
+
:shutdown_cmd => "shutdown -P now",
|
24
|
+
:postinstall_files => [ "postinstall.sh"], :postinstall_timeout => "10000"
|
25
|
+
})
|
@@ -0,0 +1,47 @@
|
|
1
|
+
p#http://adrianbravo.tumblr.com/post/644860401
|
2
|
+
|
3
|
+
date > /etc/vagrant_box_build_time
|
4
|
+
|
5
|
+
#Updating the box
|
6
|
+
apt-get -y update
|
7
|
+
apt-get -y install linux-headers-$(uname -r) build-essential
|
8
|
+
apt-get -y install zlib1g-dev libssl-dev libreadline5-dev nfs-common
|
9
|
+
apt-get clean
|
10
|
+
|
11
|
+
#Setting up sudo
|
12
|
+
cp /etc/sudoers /etc/sudoers.orig
|
13
|
+
sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
|
14
|
+
|
15
|
+
#Installing ruby
|
16
|
+
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
|
17
|
+
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
|
18
|
+
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
|
19
|
+
echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
|
20
|
+
rm -rf ./ruby-enterprise-1.8.7-2010.02/
|
21
|
+
rm ruby-enterprise-1.8.7-2010.02.tar.gz
|
22
|
+
|
23
|
+
#Installing chef & Puppet
|
24
|
+
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
|
25
|
+
/opt/ruby/bin/gem install puppet --no-ri --no-rdoc
|
26
|
+
|
27
|
+
#Installing vagrant keys
|
28
|
+
mkdir /home/vagrant/.ssh
|
29
|
+
chmod 700 /home/vagrant/.ssh
|
30
|
+
cd /home/vagrant/.ssh
|
31
|
+
wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
|
32
|
+
chmod 600 /home/vagrant/.ssh/authorized_keys
|
33
|
+
chown -R vagrant /home/vagrant/.ssh
|
34
|
+
|
35
|
+
#Installing the virtualbox guest additions
|
36
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
37
|
+
cd /tmp
|
38
|
+
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
39
|
+
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
40
|
+
sh /mnt/VBoxLinuxAdditions.run
|
41
|
+
umount /mnt
|
42
|
+
|
43
|
+
apt-get -y remove linux-headers-$(uname -r) build-essential
|
44
|
+
apt-get -y autoremove
|
45
|
+
|
46
|
+
rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
47
|
+
exit
|
@@ -0,0 +1,87 @@
|
|
1
|
+
## Options to set on the command line
|
2
|
+
d-i debian-installer/locale string en_US
|
3
|
+
d-i console-setup/ask_detect boolean false
|
4
|
+
d-i console-setup/layout string Belgium
|
5
|
+
|
6
|
+
#d-i netcfg/get_hostname string dummy
|
7
|
+
d-i netcfg/get_hostname string unassigned-hostname
|
8
|
+
d-i netcfg/get_domain string unassigned-domain
|
9
|
+
|
10
|
+
# Continue without a default route
|
11
|
+
# Not working , specify a dummy in the DHCP
|
12
|
+
#d-i netcfg/no_default_route boolean
|
13
|
+
|
14
|
+
d-i time/zone string Europe/Brussels
|
15
|
+
d-i clock-setup/utc-auto boolean true
|
16
|
+
d-i clock-setup/utc boolean true
|
17
|
+
|
18
|
+
d-i kbd-chooser/method select Belgian
|
19
|
+
|
20
|
+
d-i netcfg/wireless_wep string
|
21
|
+
|
22
|
+
d-i base-installer/kernel/override-image string linux-server
|
23
|
+
#d-i base-installer/kernel/override-image string linux-image-2.6.32-21-generic
|
24
|
+
|
25
|
+
# Choices: Dialog, Readline, Gnome, Kde, Editor, Noninteractive
|
26
|
+
d-i debconf debconf/frontend select Noninteractive
|
27
|
+
|
28
|
+
d-i pkgsel/install-language-support boolean false
|
29
|
+
tasksel tasksel/first multiselect standard, ubuntu-server
|
30
|
+
|
31
|
+
#d-i partman-auto/method string regular
|
32
|
+
d-i partman-auto/method string lvm
|
33
|
+
#d-i partman-auto/purge_lvm_from_device boolean true
|
34
|
+
|
35
|
+
d-i partman-lvm/confirm boolean true
|
36
|
+
d-i partman-lvm/device_remove_lvm boolean true
|
37
|
+
d-i partman-auto/choose_recipe select atomic
|
38
|
+
|
39
|
+
d-i partman/confirm_write_new_label boolean true
|
40
|
+
d-i partman/confirm_nooverwrite boolean true
|
41
|
+
d-i partman/choose_partition select finish
|
42
|
+
d-i partman/confirm boolean true
|
43
|
+
|
44
|
+
#http://ubuntu-virginia.ubuntuforums.org/showthread.php?p=9626883
|
45
|
+
#Message: "write the changes to disk and configure lvm preseed"
|
46
|
+
#http://serverfault.com/questions/189328/ubuntu-kickstart-installation-using-lvm-waits-for-input
|
47
|
+
#preseed partman-lvm/confirm_nooverwrite boolean true
|
48
|
+
|
49
|
+
# Write the changes to disks and configure LVM?
|
50
|
+
d-i partman-lvm/confirm boolean true
|
51
|
+
d-i partman-lvm/confirm_nooverwrite boolean true
|
52
|
+
d-i partman-auto-lvm/guided_size string max
|
53
|
+
|
54
|
+
## Default user, we can get away with a recipe to change this
|
55
|
+
d-i passwd/user-fullname string vagrant
|
56
|
+
d-i passwd/username string vagrant
|
57
|
+
d-i passwd/user-password password vagrant
|
58
|
+
d-i passwd/user-password-again password vagrant
|
59
|
+
d-i user-setup/encrypt-home boolean false
|
60
|
+
d-i user-setup/allow-password-weak boolean true
|
61
|
+
|
62
|
+
## minimum is puppet and ssh and ntp
|
63
|
+
# Individual additional packages to install
|
64
|
+
d-i pkgsel/include string openssh-server ntp acpid
|
65
|
+
|
66
|
+
# Whether to upgrade packages after debootstrap.
|
67
|
+
# Allowed values: none, safe-upgrade, full-upgrade
|
68
|
+
d-i pkgsel/upgrade select full-upgrade
|
69
|
+
|
70
|
+
d-i grub-installer/only_debian boolean true
|
71
|
+
d-i grub-installer/with_other_os boolean true
|
72
|
+
d-i finish-install/reboot_in_progress note
|
73
|
+
|
74
|
+
#For the update
|
75
|
+
d-i pkgsel/update-policy select none
|
76
|
+
|
77
|
+
# debconf-get-selections --install
|
78
|
+
#Use mirror
|
79
|
+
#d-i apt-setup/use_mirror boolean true
|
80
|
+
#d-i mirror/country string manual
|
81
|
+
#choose-mirror-bin mirror/protocol string http
|
82
|
+
#choose-mirror-bin mirror/http/hostname string 192.168.4.150
|
83
|
+
#choose-mirror-bin mirror/http/directory string /ubuntu
|
84
|
+
#choose-mirror-bin mirror/suite select maverick
|
85
|
+
#d-i debian-installer/allow_unauthenticated string true
|
86
|
+
|
87
|
+
choose-mirror-bin mirror/http/proxy string
|
@@ -0,0 +1,132 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<unattend xmlns="urn:schemas-microsoft-com:unattend">
|
3
|
+
<servicing></servicing>
|
4
|
+
<settings pass="windowsPE">
|
5
|
+
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
6
|
+
<DiskConfiguration>
|
7
|
+
<Disk wcm:action="add">
|
8
|
+
<CreatePartitions>
|
9
|
+
<CreatePartition wcm:action="add">
|
10
|
+
<Order>1</Order>
|
11
|
+
<Type>Primary</Type>
|
12
|
+
<Size>10000</Size>
|
13
|
+
</CreatePartition>
|
14
|
+
</CreatePartitions>
|
15
|
+
<ModifyPartitions>
|
16
|
+
<ModifyPartition wcm:action="add">
|
17
|
+
<Extend>false</Extend>
|
18
|
+
<Format>NTFS</Format>
|
19
|
+
<Letter>C</Letter>
|
20
|
+
<Order>1</Order>
|
21
|
+
<PartitionID>1</PartitionID>
|
22
|
+
<Label>Windows 2008R2</Label>
|
23
|
+
</ModifyPartition>
|
24
|
+
</ModifyPartitions>
|
25
|
+
<DiskID>0</DiskID>
|
26
|
+
<WillWipeDisk>true</WillWipeDisk>
|
27
|
+
</Disk>
|
28
|
+
<WillShowUI>OnError</WillShowUI>
|
29
|
+
</DiskConfiguration>
|
30
|
+
<UserData>
|
31
|
+
<ProductKey>
|
32
|
+
<WillShowUI>Never</WillShowUI>
|
33
|
+
</ProductKey>
|
34
|
+
<AcceptEula>true</AcceptEula>
|
35
|
+
<FullName>Vagrant Fullname</FullName>
|
36
|
+
<Organization>Vagrant Inc</Organization>
|
37
|
+
</UserData>
|
38
|
+
<ImageInstall>
|
39
|
+
<OSImage>
|
40
|
+
<InstallTo>
|
41
|
+
<DiskID>0</DiskID>
|
42
|
+
<PartitionID>1</PartitionID>
|
43
|
+
</InstallTo>
|
44
|
+
<WillShowUI>OnError</WillShowUI>
|
45
|
+
<InstallToAvailablePartition>false</InstallToAvailablePartition>
|
46
|
+
<InstallFrom>
|
47
|
+
<MetaData wcm:action="add">
|
48
|
+
<Key>/IMAGE/NAME</Key>
|
49
|
+
<Value>Windows Server 2008 R2 SERVERSTANDARD</Value>
|
50
|
+
</MetaData>
|
51
|
+
</InstallFrom>
|
52
|
+
</OSImage>
|
53
|
+
</ImageInstall>
|
54
|
+
</component>
|
55
|
+
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
56
|
+
<SetupUILanguage>
|
57
|
+
<UILanguage>en-US</UILanguage>
|
58
|
+
</SetupUILanguage>
|
59
|
+
<InputLocale>en-US</InputLocale>
|
60
|
+
<SystemLocale>en-US</SystemLocale>
|
61
|
+
<UILanguage>en-US</UILanguage>
|
62
|
+
<UILanguageFallback>en-US</UILanguageFallback>
|
63
|
+
<UserLocale>en-US</UserLocale>
|
64
|
+
</component>
|
65
|
+
</settings>
|
66
|
+
<settings pass="oobeSystem">
|
67
|
+
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
68
|
+
<UserAccounts>
|
69
|
+
<AdministratorPassword>
|
70
|
+
<Value>dgBhAGcAcgBhAG4AdABBAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAFAAYQBzAHMAdwBvAHIAZAA=</Value>
|
71
|
+
<PlainText>false</PlainText>
|
72
|
+
</AdministratorPassword>
|
73
|
+
<LocalAccounts>
|
74
|
+
<LocalAccount wcm:action="add">
|
75
|
+
<Password>
|
76
|
+
<Value>dgBhAGcAcgBhAG4AdABQAGEAcwBzAHcAbwByAGQA</Value>
|
77
|
+
<PlainText>false</PlainText>
|
78
|
+
</Password>
|
79
|
+
<Description>Vagrant User</Description>
|
80
|
+
<DisplayName>vagrant</DisplayName>
|
81
|
+
<Group>administrators</Group>
|
82
|
+
<Name>vagrant</Name>
|
83
|
+
</LocalAccount>
|
84
|
+
</LocalAccounts>
|
85
|
+
</UserAccounts>
|
86
|
+
<OOBE>
|
87
|
+
<HideEULAPage>true</HideEULAPage>
|
88
|
+
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
|
89
|
+
<NetworkLocation>Home</NetworkLocation>
|
90
|
+
</OOBE>
|
91
|
+
<AutoLogon>
|
92
|
+
<Password>
|
93
|
+
<Value>dgBhAGcAcgBhAG4AdABQAGEAcwBzAHcAbwByAGQA</Value>
|
94
|
+
<PlainText>false</PlainText>
|
95
|
+
</Password>
|
96
|
+
<Username>administrator</Username>
|
97
|
+
<Enabled>true</Enabled>
|
98
|
+
</AutoLogon>
|
99
|
+
<FirstLogonCommands>
|
100
|
+
<SynchronousCommand wcm:action="add">
|
101
|
+
<CommandLine>cmd.exe /c a:install-cygwin-sshd.bat</CommandLine>
|
102
|
+
<Description>Install Cygwin SSH</Description>
|
103
|
+
<Order>1</Order>
|
104
|
+
<RequiresUserInput>true</RequiresUserInput>
|
105
|
+
</SynchronousCommand>
|
106
|
+
<SynchronousCommand wcm:action="add">
|
107
|
+
<CommandLine>cmd.exe /c a:install-winrm.bat</CommandLine>
|
108
|
+
<Description>Install Win RM</Description>
|
109
|
+
<Order>2</Order>
|
110
|
+
<RequiresUserInput>true</RequiresUserInput>
|
111
|
+
</SynchronousCommand>
|
112
|
+
|
113
|
+
</FirstLogonCommands>
|
114
|
+
<ShowWindowsLive>false</ShowWindowsLive>
|
115
|
+
</component>
|
116
|
+
</settings>
|
117
|
+
<settings pass="specialize">
|
118
|
+
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" >
|
119
|
+
<OEMInformation>
|
120
|
+
<HelpCustomized>false</HelpCustomized>
|
121
|
+
</OEMInformation>
|
122
|
+
<!-- Rename computer here. -->
|
123
|
+
<ComputerName>vagrant-2008R2</ComputerName>
|
124
|
+
<TimeZone>Pacific Standard Time</TimeZone>
|
125
|
+
<RegisteredOwner></RegisteredOwner>
|
126
|
+
</component>
|
127
|
+
<component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
128
|
+
<SkipAutoActivation>true</SkipAutoActivation>
|
129
|
+
</component>
|
130
|
+
</settings>
|
131
|
+
<cpi:offlineImage cpi:source="catalog:d:/sources/install_windows server 2008 r2 serverdatacenter.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
|
132
|
+
</unattend>
|