Merge pull request 'feat: add enc_role_path fact' (#50) from neoloc/enc_role_path into develop
Reviewed-on: unkinben/puppet-prod#50
This commit is contained in:
commit
ffdac8a7d9
14
hiera.yaml
14
hiera.yaml
@ -5,10 +5,14 @@ defaults:
|
||||
data_hash: "yaml_data"
|
||||
hierarchy:
|
||||
- name: Node-specific data
|
||||
path: "nodes/%{trusted.certname}.yaml"
|
||||
- name: "Per-OS & Release Specific Data"
|
||||
path: "os/%{facts.os.name}/%{facts.os.name}%{facts.os.release.major}.yaml"
|
||||
- name: "Per-OS Specific Data"
|
||||
path: "os/%{facts.os.name}/all_releases.yaml"
|
||||
paths:
|
||||
- "nodes/%{trusted.certname}.yaml"
|
||||
- name: Role-specific data
|
||||
paths:
|
||||
- "%{facts.enc_role_path}.yaml"
|
||||
- name: "OS Related"
|
||||
paths:
|
||||
- "os/%{facts.os.name}/%{facts.os.name}%{facts.os.release.major}.yaml"
|
||||
- "os/%{facts.os.name}/all_releases.yaml"
|
||||
- name: Common data shared across nodes
|
||||
path: "common.yaml"
|
||||
|
||||
@ -1 +1,2 @@
|
||||
enc_role=<%= @enc_role[0] %>
|
||||
enc_role_path=<%= @enc_role[0].gsub('::', '/') %>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user