Write data: Set values in common data
Set values in your common data — the level at the bottom of your hierarchy.
This hierarchy level uses the YAML backend for data, which means the data goes into a YAML file. To know where to put that file, combine the following pieces of information:
The current environment’s directory.
The data directory, which is a subdirectory of the environment. By default, it's
<ENVIRONMENT>/data
.The file path specified by the hierarchy level.
In this case, /etc/puppetlabs/code/environments/production/
+ data/
+ common.yaml
.
- Open that YAML file in an editor, and set values for
two of the class’s parameters.
# /etc/puppetlabs/code/environments/production/data/common.yaml --- profile::hiera_test::ssl: false profile::hiera_test::backups_enabled: true
The third parameter,
$site_alias
, has a default value defined in code, so you can omit it from the data.