Work on 2014-07-04
Tags: openstack
Investigating how to build authentic testing hosts that look and act just like Nodepool does.
When Nodepool is updating base images, it copies all files found at
openstack-infra/config/modules/openstack_project/files/nodepool/scripts
to /opt/nodepool-scripts
.
Each base image type, defined in Nodepool’s YAML configuration file, includes a setup attribute that matches one of the scripts. The matching script is executed in an environment that includes any NODEPOOL_ variables present in the Nodepol daemon’s environment. From all that I’ve seen, this typically only includes NODEPOOL_SSH_KEY. (See jenkins_dev.pp)
So to build replica nodes for personal use, I should just need to copy the scripts to /opt/nodepool-scripts and execute the right one in my packer provisioning configuration.