3961e3b32b
The new heat 'hiera' hook is incompatible with the old tripleo-puppet-elements hiera element. The two formats should not coexist as they will overwrite each others config files (last hook to run would win). To make the end user experience nice we add an explicit check here. Note: this would require us to clean out old apply-config data from a prior run during an upgrade to make sure the check doesn't mistakenly prevent a new deployment from failing. Change-Id: I326a2816b6c47b2ba00c33a42ce6e452c5a74dce |
||
---|---|---|
.. | ||
install.d | ||
README.rst | ||
element-deps |
README.rst
A hook which helps write hiera files to disk and creates the hiera.yaml to order them. This is typically used alongside of the puppet hook to generate Hiera in a more composable manner.
Example:
- ComputeConfig:
type: OS::Heat::StructuredConfig properties: group: hiera config: hierarchy: - compute datafiles: compute: debug: true db_connection: foo:/bar # customized hiera goes here...
This would write out:
- An /etc/hiera.yaml config file with compute in the hierarchy.
- An /etc/puppet/hieradata/compute.json file loaded with the custom hiera data.