Skip to content

Instantly share code, notes, and snippets.

@bemanuel
Created June 10, 2020 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bemanuel/efb60dce3d0c3662f4417bb942c1833a to your computer and use it in GitHub Desktop.
Save bemanuel/efb60dce3d0c3662f4417bb942c1833a to your computer and use it in GitHub Desktop.
{
"variables": {
"proxmox_api": "",
"usr": "",
"pwd": "",
"node": "",
"iso_file":"cephfs:iso/ubuntu-20.04-live-server-amd64.iso",
"iso_storage_pool":"ci",
"iso_checksum_type":"sha256",
"iso_checksum":"112f1838b17be4f7e73ab15b3204e382daf315136ec0c7b2b84e5f2a8a272532",
"pool":""
},
"builders": [
{
"type":"proxmox",
"proxmox_url": "{{ user `proxmox_api` }}",
"insecure_skip_tls_verify": true,
"node": "{{ user `node` }}",
"disks": [
{
"type": "scsi",
"disk_size": "10G",
"storage_pool": "disk00",
"storage_pool_type": "directory",
"format": "raw"
}
],
"iso_file":"cephfs:iso/ubuntu-20.04-live-server-amd64.iso",
"iso_storage_pool":"ci",
"iso_checksum":"112f1838b17be4f7e73ab15b3204e382daf315136ec0c7b2b84e5f2a8a272532",
"network_adapters": [
{
"model": "virtio",
"bridge": "vmbr0"
}
],
"pool": "{{ user `pool` }}",
"onboot": true,
"scsi_controller": "virtio-scsi-single",
"ssh_username": "root",
"ssh_timeout": "15m",
"ssh_password": "packer",
"template_name": "grunner",
"unmount_iso": true,
"username": "{{user `usr`}}",
"password": "{{user `pwd`}}"
}
],
"provisioners": [
{
"type": "shell",
"script": "glabinst.sh"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment