Sha256: 5f75c5574f02d6f0c82de5ed8b6674e4976591bac615101723198a0da6243bfc

Contents?: true

Size: 1.62 KB

Versions: 6

Compression:

Stored size: 1.62 KB

Contents

require 'net/http'

template_uri   = 'http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-install-amd64-minimal.txt'
template_build = Net::HTTP.get_response(URI.parse(template_uri)).body
template_build = /^(([^#].*)\/(.*))/.match(template_build)

Veewee::Definition.declare({
  :cpu_count   => 2,
  :memory_size => '1024',
  :disk_size   => '20280',
  :disk_format => 'VDI',
  :hostiocache => 'off',
  :os_type_id  => 'Gentoo_64',
  :iso_file    => template_build[3],
  :iso_src     => "http://distfiles.gentoo.org/releases/amd64/autobuilds/#{template_build[1]}",
  :iso_download_timeout => 1000,
  :boot_wait => "10",
  :boot_cmd_sequence => [
    '<Wait>' * 2,
    'gentoo-nofb<Enter>',
    '<Wait>' * 30,
    '<Enter>',
    '<Wait>' * 20,
    'passwd<Enter><Wait><Wait>',
    'vagrant<Enter><Wait>',
    'vagrant<Enter><Wait>',
    '/etc/init.d/sshd start<Enter>'
  ],
  :kickstart_port    => '7122',
  :kickstart_timeout => 10000,
  :kickstart_file    => '',
  :ssh_login_timeout => '10000',
  :ssh_user          => 'root',
  :ssh_password      => 'vagrant',
  :ssh_key           => '',
  :ssh_host_port     => '7222',
  :ssh_guest_port    => '22',
  :sudo_cmd          => "cat '%f'|su -",
  :shutdown_cmd      => 'shutdown -hP now',
  :postinstall_files => [
    'settings.sh',
    'base.sh',
    'kernel.sh',
    'usb.sh',
    'git.sh',
    'subversion.sh',
    'virtualbox.sh',
    'vagrant.sh',
    'ruby.sh',
    'add_chef.sh',
    'add_puppet.sh',
    'add_vim.sh',
    'cron.sh',
    'syslog.sh',
    'nfs.sh',
    'grub.sh',
    'wipe_sources.sh',
    'cleanup.sh',
    'zerodisk.sh',
    'reboot.sh'
  ],
  :postinstall_timeout => 10000
})

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
veewee-0.4.3 templates/gentoo-latest-amd64/definition.rb
veewee-0.4.2 templates/gentoo-latest-amd64/definition.rb
veewee-0.4.1 templates/gentoo-latest-amd64/definition.rb
veewee-0.4.0 templates/gentoo-latest-amd64/definition.rb
veewee-0.3.12 templates/gentoo-latest-amd64/definition.rb
veewee-0.3.11 templates/gentoo-latest-amd64/definition.rb