tripleo-common/roles/tripleo-hieradata/tasks/hieradata_vars.yaml
James Slagle c94ee2bbfe Add template mode to tripleo-hieradata
Add a new tasks file (hieradata_vars.yaml) to the tripleo-hieradata role
that will create the hieradata files from jinja2 templates that are
included with the role.

The templates will be rendered based off of the values of
host_vars/group_vars/inventory_vars and variable files read out of Heat.

This functionality is a start to migrating the Hiera generation out of
Heat into pure Ansible.

Change-Id: I9ccccbfee44fc7c1375dec7357ccad6cba909c16
2019-06-24 18:04:26 -04:00

6 lines
206 B
YAML

- name: Render hieradata from template
template:
src: templates/{{ item }}.j2
dest: "{{ dest_path | default('/etc/puppet/hieradata/' ~ item ~ '.json') }}"
loop: "{{ hieradata_templates_list }}"