mirror of https://github.com/apache/cloudstack.git
83 lines
2.5 KiB
JSON
83 lines
2.5 KiB
JSON
{
|
|
"_license": "Apache License 2.0",
|
|
"description": "CloudStack SystemVM template",
|
|
"provisioners": [
|
|
{
|
|
"type": "shell",
|
|
"execute_command": "echo 'cloud'|sudo -S bash '{{.Path}}'",
|
|
"scripts": [
|
|
"scripts/apt_upgrade.sh",
|
|
"scripts/configure_grub.sh",
|
|
"scripts/configure_locale.sh",
|
|
"scripts/configure_networking.sh",
|
|
"scripts/configure_acpid.sh",
|
|
"scripts/install_systemvm_packages.sh",
|
|
"scripts/configure_conntrack.sh",
|
|
"../cloud_scripts_shar_archive.sh",
|
|
"scripts/configure_systemvm_services.sh",
|
|
"scripts/authorized_keys.sh",
|
|
"scripts/configure_persistent_config.sh",
|
|
"scripts/configure_login.sh",
|
|
"scripts/cleanup.sh",
|
|
"scripts/finalize.sh"
|
|
]
|
|
}
|
|
],
|
|
"builders": [
|
|
{
|
|
"type": "qemu",
|
|
"accelerator": "kvm",
|
|
"headless": true,
|
|
"qemuargs": [
|
|
[ "-m", "512M" ],
|
|
[ "-smp", "cpus=1,maxcpus=1,cores=1" ]
|
|
],
|
|
"disk_size": 2000,
|
|
"format": "qcow2",
|
|
|
|
"disk_interface": "virtio",
|
|
"net_device": "virtio-net",
|
|
|
|
"iso_url": "https://cdimage.debian.org/cdimage/archive/9.9.0/amd64/iso-cd/debian-9.9.0-amd64-netinst.iso",
|
|
"iso_checksum": "42d9818abc4a08681dc0638f07e7aeb35d0c44646ab1e5b05a31a71d76c99da52b6192db9a3e852171ac78c2ba6b110b337c0b562c7be3d32e86a105023a6a0c",
|
|
"iso_checksum_type": "sha512",
|
|
|
|
"vm_name": "systemvmtemplate",
|
|
"output_directory": "../dist",
|
|
|
|
"http_directory": "http",
|
|
"http_port_min": 10082,
|
|
"http_port_max": 10089,
|
|
|
|
"ssh_host_port_min": 2222,
|
|
"ssh_host_port_max": 2229,
|
|
|
|
"ssh_username": "cloud",
|
|
"ssh_password": "cloud",
|
|
"ssh_port": 22,
|
|
"ssh_wait_timeout": "30m",
|
|
|
|
"boot_wait": "10s",
|
|
"boot_command": [
|
|
"<esc><wait>",
|
|
"install <wait>",
|
|
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>",
|
|
" debian-installer=en_US <wait>",
|
|
" auto <wait>",
|
|
" locale=en_US <wait>",
|
|
" kbd-chooser/method=us <wait>",
|
|
" netcfg/get_hostname=systemvm <wait>",
|
|
" netcfg/get_domain=apache.org <wait>",
|
|
" fb=false <wait>",
|
|
" debconf/frontend=noninteractive <wait>",
|
|
" console-setup/ask_detect=false <wait>",
|
|
" console-keymaps-at/keymap=us <wait>",
|
|
" keyboard-configuration/xkb-keymap=us <wait>",
|
|
"<enter><wait>"
|
|
],
|
|
|
|
"shutdown_command": "sudo halt -p"
|
|
}
|
|
]
|
|
}
|