| { |
| "_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/debian-cd/current/amd64/iso-cd/debian-9.6.0-amd64-netinst.iso", |
| "iso_checksum": "fcd77acbd46f33e0a266faf284acc1179ab0a3719e4b8abebac555307aa978aa242d7052c8d41e1a5fc6d1b30bc6ca6d62269e71526b71c9d5199b13339f0e25", |
| "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" |
| } |
| ] |
| } |