Posts Tagged: hashicorp

Packer HCL Environment Variables

Converting Packer templates from json to HCL for Packer version 1.7.2. The easiest thing to do is try the automated conversion: For environment variables we need to set them with a PKR_VAR prefix e.g. Then that can be defined in the template.pkr.hcl file with: And then used in later sections like this: Then your validation… Read more »

Installing Vault with Zookeeper

Hashicorp Vault supports several backends for secret storage. I was creating a test Vault to play with PKI certificate generation and started with installing Zookeeper After download the Vault binary and extracting it to /usr/local/sbin/vault, I created a config file at /etc/vault/config.hcl vi /etc/vault/config.hcl storage “zookeeper” { address = “127.0.0.1:2181” path = “vault/” }listener “tcp”… Read more »