feat: add enc_role_path fact
This commit is contained in:
parent
11508f2538
commit
f73c16bca2
14
hiera.yaml
14
hiera.yaml
@ -5,10 +5,14 @@ defaults:
|
|||||||
data_hash: "yaml_data"
|
data_hash: "yaml_data"
|
||||||
hierarchy:
|
hierarchy:
|
||||||
- name: Node-specific data
|
- name: Node-specific data
|
||||||
path: "nodes/%{trusted.certname}.yaml"
|
paths:
|
||||||
- name: "Per-OS & Release Specific Data"
|
- "nodes/%{trusted.certname}.yaml"
|
||||||
path: "os/%{facts.os.name}/%{facts.os.name}%{facts.os.release.major}.yaml"
|
- name: Role-specific data
|
||||||
- name: "Per-OS Specific Data"
|
paths:
|
||||||
path: "os/%{facts.os.name}/all_releases.yaml"
|
- "%{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
|
- name: Common data shared across nodes
|
||||||
path: "common.yaml"
|
path: "common.yaml"
|
||||||
|
|||||||
@ -1 +1,2 @@
|
|||||||
enc_role=<%= @enc_role[0] %>
|
enc_role=<%= @enc_role[0] %>
|
||||||
|
enc_role_path=<%= @enc_role[0].gsub('::', '/') %>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user