57 lines
2.1 KiB
Ruby

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
Veewee::Session.declare({
:cpu_count => '1',
:memory_size=> '2048',
:disk_size => '20000',
:disk_format => 'VMDK',
:hostiocache => 'off',
:os_type_id => 'Ubuntu',
:iso_file => "ubuntu-12.04.1-server-i386.iso",
:iso_src => "http://releases.ubuntu.com/12.04/ubuntu-12.04.1-server-i386.iso",
:iso_md5 => '32184a83c8b5e6031e1264e5c499bc03',
:iso_download_timeout => "1000",
:boot_wait => "4",
:ioapic => "on",
:nestedpaging => "on",
:hwvirtex => "on",
:boot_cmd_sequence => [
'<Esc><Esc><Enter>',
'/install/vmlinuz noapic preseed/url=http://%IP%:%PORT%/preseed.cfg ',
'debian-installer=en_US auto locale=en_US kbd-chooser/method=us ',
'hostname=%NAME% ',
'fb=false debconf/frontend=noninteractive ',
'keyboard-configuration/layout=USA keyboard-configuration/variant=USA console-setup/ask_detect=false ',
'initrd=/install/initrd.gz -- <Enter>'
],
:kickstart_port => "7122",
:kickstart_timeout => "10000",
:kickstart_file => "preseed.cfg",
:ssh_login_timeout => "10000",
:ssh_user => "devcloud",
:ssh_password => "devcloud",
:ssh_key => "",
:ssh_host_port => "2222",
:ssh_guest_port => "22",
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
:shutdown_cmd => "shutdown -P now",
:postinstall_files => [ "postinstall.sh"],
:postinstall_timeout => "10000"
})