|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +Veewee::Definition.declare({ |
| 19 | + :cpu_count => '1', |
| 20 | + :memory_size=> '256', |
| 21 | + :disk_size => '2048', :disk_format => 'VMDK', :hostiocache => 'off', |
| 22 | + :os_type_id => 'Debian', |
| 23 | + :iso_file => "debian-wheezy-DI-b4-i386-netinst.iso", |
| 24 | + :iso_src => "http://cdimage.debian.org/cdimage/wheezy_di_beta4/i386/iso-cd/debian-wheezy-DI-b4-i386-netinst.iso", |
| 25 | + :iso_md5 => "34d0ae973715c7a31646281c70839809", |
| 26 | + :iso_download_timeout => "1000", |
| 27 | + :boot_wait => "10", :boot_cmd_sequence => [ |
| 28 | + '<Esc>', |
| 29 | + 'install ', |
| 30 | + 'preseed/url=http://%IP%:%PORT%/preseed.cfg ', |
| 31 | + 'debian-installer=en_US ', |
| 32 | + 'auto ', |
| 33 | + 'locale=en_US ', |
| 34 | + 'kbd-chooser/method=us ', |
| 35 | + 'netcfg/get_hostname=systemvm ', |
| 36 | + 'netcfg/get_domain=apache.org ', |
| 37 | + 'fb=false ', |
| 38 | + 'debconf/frontend=noninteractive ', |
| 39 | + 'console-setup/ask_detect=false ', |
| 40 | + 'console-keymaps-at/keymap=us ', |
| 41 | + '<Enter>' |
| 42 | + ], |
| 43 | + :kickstart_port => "7122", |
| 44 | + :kickstart_timeout => "10000", |
| 45 | + :kickstart_file => "preseed.cfg", |
| 46 | + :ssh_login_timeout => "10000", |
| 47 | + :ssh_user => "root", |
| 48 | + :ssh_password => "password", |
| 49 | + :ssh_key => "", |
| 50 | + :ssh_host_port => "7222", |
| 51 | + :ssh_guest_port => "22", |
| 52 | + :sudo_cmd => "echo '%p'|sudo -S sh '%f'", |
| 53 | + :shutdown_cmd => "halt -p", |
| 54 | + :postinstall_files => [ |
| 55 | + "base.sh", |
| 56 | + "cleanup.sh", |
| 57 | + "zerodisk.sh" |
| 58 | + ], |
| 59 | + :postinstall_timeout => "10000" |
| 60 | +}) |
0 commit comments