Skip to content

Instantly share code, notes, and snippets.

@Tombar
Created June 22, 2015 15:43
Show Gist options
  • Save Tombar/48fc25a27cf920f3f18b to your computer and use it in GitHub Desktop.
Save Tombar/48fc25a27cf920f3f18b to your computer and use it in GitHub Desktop.
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-7.6.0-amd64-netinst.iso",
:iso_src => "http://mirror.i3d.net/pub/debian-cd/7.6.0/amd64/iso-cd/debian-7.6.0-amd64-netinst.iso",
:iso_md5 => "8a3c2ad7fd7a9c4c7e9bcb5cae38c135",
: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=localhost ',
'netcfg/get_domain=vagrantup.com ',
'fb=false ',
'debconf/frontend=noninteractive ',
'console-setup/ask_detect=false ',
'console-keymaps-at/keymap=us ',
'keyboard-configuration/xkb-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 bash '%f'",
:shutdown_cmd => "halt -p",
:postinstall_files => [
"base.sh",
"vagrant.sh",
"virtualbox.sh",
#"vmfusion.sh",
"ruby.sh",
"puppet.sh",
"cleanup.sh",
"batanga.sh",
"zerodisk.sh"
],
:postinstall_timeout => "10000"
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment