Add extraconfig/role_extraconfig template to hieradata
Change-Id: I8f173d125e7407a80c9ddb89e5272fe2a829b1cb
This commit is contained in:
parent
e3fca9e164
commit
9a25d23d09
@ -42,7 +42,8 @@
|
||||
# other_hierafile:
|
||||
# foo: bar3
|
||||
- name: Copy hieradata files for all hosts
|
||||
when: not hieradata_per_host|bool
|
||||
when: hieradata_template != "" and not hieradata_per_host|bool
|
||||
ignore_errors: yes
|
||||
include: all_hosts.yaml
|
||||
vars:
|
||||
hieradata_content: "{{ lookup('file', hieradata_template ~ '.rendered') | from_yaml }}"
|
||||
@ -65,7 +66,8 @@
|
||||
# other_hierafile:
|
||||
# foo: bar
|
||||
- name: Copy hieradata files per host
|
||||
when: hieradata_per_host|bool
|
||||
when: hieradata_template != "" and hieradata_per_host|bool
|
||||
ignore_errors: yes
|
||||
include: per_host.yaml host={{ inventory_hostname }} data={{ hieradata_content[inventory_hostname] }}
|
||||
vars:
|
||||
hieradata_content: "{{ lookup('file', hieradata_template ~ '.rendered') | from_yaml }}"
|
||||
|
1
roles/tripleo-hieradata/templates/extraconfig.j2
Normal file
1
roles/tripleo-hieradata/templates/extraconfig.j2
Normal file
@ -0,0 +1 @@
|
||||
{{ extraconfig | to_nice_json }}
|
1
roles/tripleo-hieradata/templates/role_extraconfig.j2
Normal file
1
roles/tripleo-hieradata/templates/role_extraconfig.j2
Normal file
@ -0,0 +1 @@
|
||||
{{ role_extraconfig | to_nice_json }}
|
Loading…
Reference in New Issue
Block a user