tripleo-common/roles/tripleo-hieradata
James Slagle a3dc7aa00c Restore AllNodesExtraMapData
Commit a7661065743086961b8ef93056b810e7d2a49eda removed the
all-nodes-config.j2.yaml Heat template. This template had the support
for specifying hieradata to merge into the all_nodes hieradata via the
AllNodesExtraMapData.

This commit restores the merge logic so that the merged hieradata from
the parameter value and the calculated hieradata is rendered in
all_nodes.json.

Change-Id: I890bbef764b6bae7cb71cfedaff2ce17829737fb
Depends-On: Ib3838d404b45ae6684ef7e0aa211cb8015271866
2019-08-06 05:52:51 +00:00
..
defaults Add vip_data template to tripleo-hieradata 2019-06-26 14:48:54 -04:00
tasks Make a more ansible-ish test on hieradata_files list content 2019-07-16 07:12:20 +02:00
templates Restore AllNodesExtraMapData 2019-08-06 05:52:51 +00:00
README.md tripleo-hieradata: add hieradata_files param 2019-06-20 20:16:35 +00:00
test-playbook.yaml Add template mode to tripleo-hieradata 2019-06-24 18:04:26 -04:00

tripleo-hieradata

An Ansible role to hieradata files.

Role variables

Required:

  • hieradata_template -- path to template of hieradata content
  • hieradata_variable_start_string -- string marking the beginning of a template print statement.
  • hieradata_variable_end_string -- string marking the end of a template print statement.
  • hieradata_per_host -- whether or not we configure hieradata per host.
  • hieradata_files -- List of hieradata files (Order matters for Hierarchy).

Test playbook

Assuming you have tripleo-inventory.yml generated, you can run the test playbook like:

ANSIBLE_ROLES_PATH=tripleo-common/roles \
ANSIBLE_HOST_KEY_CHECKING=False \
ansible-playbook \
    -i tripleo-inventory.yml \
    tripleo-common/roles/tripleo-hieradata/test-playbook.yml

License

Free software: Apache License (2.0)

Author Information

OpenStack TripleO team