![Martin André](/assets/img/avatar_default.png)
On python <3.4 the separator for json.dump() defaulted to (', ', ': ') which may cause trailing whitespaces in rendered JSON files when used with indent. This change sets the separator to (',', ': ') to prevent trailing whitespaces with older versions of python. See https://docs.python.org/2/library/json.html#basic-usage Change-Id: I81fabd54659bdb28da43fb4900f19dd94a70336c
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.