## Description The packer file and corresponding script in this folder are used for building OpenStack images to be used for Cloud Infra jobs on Nordix Jenkins. The packer file is specific to City Cloud Frankfurt region since it contains the Frankfurt region endpoint and UUID of the network created there. For other regions or clouds, a similar file needs to be created. The actual script that is executed by packer on provisioned temporary instances should work on any Ubuntu1804 regardless of cloud and region. ## Steps To Run 1. Source OpenStack RC file `source ` that points to **"cicd"** project in Frankfurt region. This will set up environment variables used by packer e.g. OS_USERNAME, OS_PASSWORD and OS_AUTH_URL. 2. Run `packer build ` This will build `cloud-infra-base-ubuntu1804` private image on the **"cicd"** project in Frankfurt region. ## Note ### Image public key handling A final note is that the file authorized_keys.packer is used for injecting user keys into image during cloud-init phase for ssh access to the slaves for troubleshooting. If you want to have access to the slaves, please add your ssh public key in it.