cloud-foundation-fabric/examples/cloud-operations/packer-image-builder/packer
Julio Castillo 8df9ef9035 New folder structure 2022-01-11 11:53:19 +01:00
..
README.md New folder structure 2022-01-11 11:53:19 +01:00
build.pkr.hcl New folder structure 2022-01-11 11:53:19 +01:00
build.pkrvars.tpl New folder structure 2022-01-11 11:53:19 +01:00
install_httpd.sh New folder structure 2022-01-11 11:53:19 +01:00
variables.pkr.hcl New folder structure 2022-01-11 11:53:19 +01:00

README.md

Packer example

The following Packer example builds Compute Engine image based on Centos 8 Linux. The image is provisioned with a sample shell scripts to update OS packages and install HTTP server.

The example uses following GCP features:

Variables

name description type required default
builder_sa Image builder's service account email. string
compute_sa Temporary's VM service account email. string
compute_subnetwork Name of a VPC subnetwork for temporary VM instance. string
compute_zone Compute Engine zone to run temporary VM instance. string
project_id Project id that references existing GCP project. string
use_iap Indicates to use IAP tunnel for communication with temporary VM instance. bool true