cloud-foundation-fabric/cloud-operations/packer-image-builder/packer
Mikołaj Stefaniak b481d9baff
Packer example changelog (#316)
* Updated top-level README and CHANGELOG to reflect packer-builder example

* Added packer related files to gitignore
2021-10-04 17:35:31 +02:00
..
README.md Introduced packer image builder example (#313) 2021-10-04 17:10:19 +02:00
build.pkr.hcl Introduced packer image builder example (#313) 2021-10-04 17:10:19 +02:00
build.pkrvars.tpl Introduced packer image builder example (#313) 2021-10-04 17:10:19 +02:00
install_httpd.sh Introduced packer image builder example (#313) 2021-10-04 17:10:19 +02:00
variables.pkr.hcl Introduced packer image builder example (#313) 2021-10-04 17:10:19 +02: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