blob: 3c2ee67397a141a40004c1124014dc6fda4745eb [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` }}",
"binary_base_url": "{{ env `BINARY_BASE_URL` }}"
},
"provisioners": [
{
"type": "shell",
"environment_vars": [
"BINARY_BASE_URL={{user `binary_base_url`}}"
],
"scripts": [
"scripts/binary.sh"
]
},
{
"type": "file",
"source": "./certs",
"destination": "/srv/"
},
{
"type": "file",
"source": "./release-openstack-k8s",
"destination": "/srv/"
},
{
"type": "file",
"source": "files/usr/share",
"destination": "/usr"
},
{
"type": "file",
"source": "../../de/heat-templates/scripts/instance_boot.sh",
"destination": "/usr/share/trymos/functions"
},
{
"type": "file",
"source": "files/etc/",
"destination": "/etc"
},
{
"type": "file",
"source": "./release-openstack-k8s/trymos/files/environment/common",
"destination": "/usr/share/trymos/environment/common"
}
],
"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": "passwd -d root; rm -rf /etc/sudoers.d/90-cloud-init-users; /sbin/shutdown -P now",
"boot_wait": "10s",
"ssh_wait_timeout": "360s"
}
]
}