Last active
July 24, 2019 00:10
-
-
Save kral2/7c3151d9d82f0481dc6ad444cf453595 to your computer and use it in GitHub Desktop.
sample Packer file with variable file for oracle-oci builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
] | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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