Skip to content

Instantly share code, notes, and snippets.

@kral2

kral2/custom-image.json

Last active Jul 24, 2019
Embed
What would you like to do?
sample Packer file with variable file for oracle-oci builder
{
"variables": {
"tenancy_ocid": "null",
"compartment_ocid": "null",
"user_ocid": "null",
"fingerprint": "null",
"key_file": "null",
"region": "null",
"base_image_ocid": "null",
"image_name": "null",
"availability_domain": "null",
"shape": "null",
"ssh_username": "null",
"subnet_ocid": "null"
},
"builders": [
{
"user_ocid":"{{user `user_ocid`}}",
"tenancy_ocid": "{{user `tenancy_ocid`}}",
"fingerprint":"{{user `fingerprint`}}",
"key_file":"{{user `key_file`}}",
"availability_domain": "{{user `availability_domain`}}",
"region": "{{user `region`}}",
"base_image_ocid": "{{user `base_image_ocid`}}",
"compartment_ocid": "{{user `compartment_ocid`}}",
"image_name": "{{user `image_name`}}",
"shape": "{{user `shape`}}",
"ssh_username": "{{user `ssh_username`}}",
"subnet_ocid": "{{user `subnet_ocid`}}",
"type": "oracle-oci"
}
],
"provisioners": [
{
"type": "shell",
"scripts": [
"./install-bind.sh"
]
}
]
}
{
"tenancy_ocid": ""
"compartment_ocid": ""
"user_ocid": "",
"fingerprint": "",
"key_file": "",
"region": "",
"base_image_ocid": "",
"image_name": "",
"availability_domain": "",
"shape": "",
"ssh_username": "",
"subnet_ocid": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment