tripleo-heat-templates/common/hiera-steps-tasks.yaml
Alex Schultz 4407c54f6b Add ansible hieradata file
Wire up ansible_managed hieradata and provide a default file.

Depends-On: https://review.opendev.org/#/c/722519/
Change-Id: If3226be3ac6b2596a13985fe226f23afc3458907
2020-04-24 19:02:06 +00:00

30 lines
668 B
YAML

- name: Hiera config
include_role:
name: tripleo_hieradata
- name: Hiera symlink
file:
src: /etc/puppet/hiera.yaml
dest: /etc/hiera.yaml
state: link
force: true
- name: Hieradata from vars
include_role:
name: tripleo_hieradata
tasks_from: hieradata_vars.yaml
vars:
hieradata_templates_list:
- bootstrap_node
- all_nodes
- vip_data
- net_ip_map
- cloud_domain
- fqdn
- service_names
- service_configs
- extraconfig
- role_extraconfig
- name: Ensure ansible_managed hieradata file exists
include_role:
name: tripleo_hieradata
tasks_from: ansible_hieradata.yml