tripleo-heat-templates/common/hiera-steps-tasks.yaml
Harald Jensås 2445de761e Add OVN chassis macs to hieradata
Add the tempalte in tripleo-ansible to the list of
hieradata_templates in common/hiera-steps-tasks.yaml

Depends-On: https://review.opendev.org/782741
Related-Bug: #1881593
Change-Id: I0a57374c5b58f5953b079b6690ecc77887ec8751
(cherry picked from commit 77e56441f1)
(cherry picked from commit 02e2fbada5)
2021-04-14 09:24:39 +02:00

37 lines
861 B
YAML

- name: Hiera configuration
when: not ansible_check_mode|bool
block:
- name: Hiera config
include_role:
name: tripleo-hieradata
- name: Hiera symlink
become: true
file:
src: /etc/puppet/hiera.yaml
dest: /etc/hiera.yaml
state: link
force: true
- name: Hieradata from vars
when: not ansible_check_mode|bool
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
- ovn_chassis_mac_map
- name: Ensure ansible_managed hieradata file exists
include_role:
name: tripleo-hieradata
tasks_from: ansible_hieradata.yml