diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-08-29 21:50:05 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-08-29 22:46:14 +0200 |
commit | 0b62a18bd9fc4ecd614526a9c0e3f1f17e2ce4fe (patch) | |
tree | d47bd23691ddb751534a02d47befbe401ed14382 /environments/production/hiera.yaml | |
parent | 7fed35a408b9ec37454169425823785b5fc8978b (diff) | |
download | Puppet-0b62a18bd9fc4ecd614526a9c0e3f1f17e2ce4fe.tar.gz Puppet-0b62a18bd9fc4ecd614526a9c0e3f1f17e2ce4fe.tar.zst Puppet-0b62a18bd9fc4ecd614526a9c0e3f1f17e2ce4fe.zip |
Move data to hiera
Diffstat (limited to 'environments/production/hiera.yaml')
-rw-r--r-- | environments/production/hiera.yaml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/environments/production/hiera.yaml b/environments/production/hiera.yaml new file mode 100644 index 0000000..095a110 --- /dev/null +++ b/environments/production/hiera.yaml | |||
@@ -0,0 +1,19 @@ | |||
1 | --- | ||
2 | version: 5 | ||
3 | |||
4 | defaults: | ||
5 | datadir: data | ||
6 | data_hash: yaml_data | ||
7 | |||
8 | hierarchy: | ||
9 | - name: "Per-node data" | ||
10 | path: "nodes/%{facts.ec2_metadata.hostname}.yaml" | ||
11 | |||
12 | - name: "Per-role data" | ||
13 | mapped_paths: [roles, role, "roles/%{role}.yaml"] | ||
14 | |||
15 | - name: "Per-type data" | ||
16 | path: "types/%{facts.ec2_metadata.instance-type}.yaml" | ||
17 | |||
18 | - name: "Common data" | ||
19 | path: "common.yaml" | ||