refactor: move to ruby-script facts
- change enc_role_path fact to be ruby - add enc_role_tier1, enc_role_tier2 and enc_role_tier3 - add new paths to hiera.yaml
This commit is contained in:
+4
-1
@@ -9,7 +9,10 @@ hierarchy:
|
||||
- "nodes/%{trusted.certname}.yaml"
|
||||
- name: Role-specific data
|
||||
paths:
|
||||
- "%{facts.enc_role_path}.yaml"
|
||||
- "roles/%{::enc_role_tier1}.yaml"
|
||||
- "roles/${::enc_role_tier1}/%{::enc_role_tier2}.yaml"
|
||||
- "roles/${::enc_role_tier1}/%{::enc_role_tier2}/%{::enc_role_tier3}.yaml"
|
||||
- "%{::enc_role_path}.yaml"
|
||||
- name: "OS Related"
|
||||
paths:
|
||||
- "os/%{facts.os.name}/%{facts.os.name}%{facts.os.release.major}.yaml"
|
||||
|
||||
Reference in New Issue
Block a user