blob: 9af97a308457764851f5fc96632101637d732854 [file] [log] [blame]
{
"variables": {
"user": "root",
"password": "r00tme",
"disk_size": "2500M",
"images_cache": "{{ env `PACKER_IMAGES_CACHE` }}",
"image_base_url": "{{ env `IMAGE_BASE_URL` }}",
"image_md5_url": "{{ env `IMAGE_MD5_URL` }}",
"vm_name": "{{ env `VM_NAME` }}"
},
"provisioners": [
{
"type": "shell",
"inline": ["mkdir -p /usr/share/trymos/"]
},
{
"type": "file",
"source": "../../de/heat-templates/scripts/instance_boot.sh",
"destination": "/usr/share/trymos/functions"
},
{
"type": "file",
"source": "./certs",
"destination": "/srv/"
},
{
"type": "file",
"source": "./release-openstack-k8s",
"destination": "/srv/"
},
{
"type": "file",
"source": "files/srv/",
"destination": "/srv"
},
{
"type": "file",
"source": "files/usr/share",
"destination": "/usr"
},
{
"type": "file",
"source": "files/etc/",
"destination": "/etc"
}
],
"builders": [
{
"type": "qemu",
"qemuargs": [
[
"-m",
"8096M"
],
[
"-smp",
"4"
],
[
"-cdrom",
"config-drive/cloudata.iso"
],
["-device", "virtio-net,netdev=user.0"],
["-object","rng-random,id=objrng0,filename=/dev/urandom"],
["-device", "virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.0,addr=0x10" ]
],
"vm_name": "{{user `vm_name`}}",
"output_directory": "images",
"disk_compression": true,
"disk_size": "{{ user `disk_size`}}",
"format": "qcow2",
"iso_url": "{{ user `image_base_url`}}",
"iso_checksum": "file:{{ user `image_md5_url`}}",
"iso_target_path": "{{ user `images_cache`}}",
"disk_image": true,
"accelerator": "kvm",
"headless": true,
"ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}",
"ssh_host_port_min": 7000,
"ssh_host_port_max": 7050,
"vnc_port_max": "5956",
"vnc_port_min": "5956",
"shutdown_command": "shutdown -P now",
"boot_wait": "10s",
"ssh_wait_timeout": "360s"
}
]
}