forked from jedi4ever/veewee
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request jedi4ever#311 from unn/master
Added debian-6.0.5
- Loading branch information
Showing
22 changed files
with
900 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Update the box | ||
apt-get -y update | ||
apt-get -y install linux-headers-$(uname -r) build-essential | ||
apt-get -y install zlib1g-dev libssl-dev libreadline5-dev | ||
apt-get -y install curl unzip | ||
apt-get clean | ||
|
||
# Set up sudo | ||
cp /etc/sudoers /etc/sudoers.orig | ||
sed -i -e 's/%sudo ALL=(ALL) ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers | ||
|
||
# Tweak sshd to prevent DNS resolution (speed up logins) | ||
echo 'UseDNS no' >> /etc/ssh/sshd_config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Install Chef | ||
gem install chef --no-ri --no-rdoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Cleanup Virtualbox | ||
VBOX_VERSION=$(cat .vbox_version) | ||
VBOX_ISO=VBoxGuestAdditions_$VBOX_VERSION.iso | ||
rm $VBOX_ISO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Clean up | ||
apt-get -y remove linux-headers-$(uname -r) build-essential | ||
apt-get -y autoremove | ||
|
||
# Removing leftover leases and persistent rules | ||
echo "cleaning up dhcp leases" | ||
rm /var/lib/dhcp/* | ||
|
||
# Make sure Udev doesn't block our network | ||
echo "cleaning up udev rules" | ||
rm /etc/udev/rules.d/70-persistent-net.rules | ||
mkdir /etc/udev/rules.d/70-persistent-net.rules | ||
rm -rf /dev/.udev/ | ||
rm /lib/udev/rules.d/75-persistent-net-generator.rules | ||
|
||
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy" | ||
echo "pre-up sleep 2" >> /etc/network/interfaces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
Veewee::Definition.declare({ | ||
:cpu_count => '1', | ||
:memory_size=> '256', | ||
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', | ||
:os_type_id => 'Debian_64', | ||
:iso_file => "debian-6.0.4-amd64-netinst.iso", | ||
:iso_src => "http://cdimage.debian.org/debian-cd/6.0.5/amd64/iso-cd/debian-6.0.5-amd64-netinst.iso", | ||
:iso_md5 => "a213b1d6da1996c677706d843b6ee0f2", | ||
:iso_download_timeout => "1000", | ||
:boot_wait => "10", :boot_cmd_sequence => [ | ||
'<Esc>', | ||
'install ', | ||
'preseed/url=http://%IP%:%PORT%/preseed.cfg ', | ||
'debian-installer=en_US ', | ||
'auto ', | ||
'locale=en_US ', | ||
'kbd-chooser/method=us ', | ||
'netcfg/get_hostname=%NAME% ', | ||
'netcfg/get_domain=vagrantup.com ', | ||
'fb=false ', | ||
'debconf/frontend=noninteractive ', | ||
'console-setup/ask_detect=false ', | ||
'console-keymaps-at/keymap=us ', | ||
'<Enter>' | ||
], | ||
:kickstart_port => "7122", | ||
:kickstart_timeout => "10000", | ||
:kickstart_file => "preseed.cfg", | ||
:ssh_login_timeout => "10000", | ||
:ssh_user => "vagrant", | ||
:ssh_password => "vagrant", | ||
:ssh_key => "", | ||
:ssh_host_port => "7222", | ||
:ssh_guest_port => "22", | ||
:sudo_cmd => "echo '%p'|sudo -S sh '%f'", | ||
:shutdown_cmd => "halt -p", | ||
:postinstall_files => [ | ||
"base.sh", | ||
"vagrant.sh", | ||
"virtualbox.sh", | ||
"ruby.sh", | ||
"puppet.sh", | ||
"chef.sh", | ||
"cleanup-virtualbox.sh", | ||
"cleanup.sh", | ||
"zerodisk.sh" | ||
], | ||
:postinstall_timeout => "10000" | ||
}) |
Oops, something went wrong.