Merge "Fix tripleo_hierdata permissions"

This commit is contained in:
Zuul 2020-07-02 20:27:49 +00:00 committed by Gerrit Code Review
commit 76731f0aec
3 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,6 @@
---
- name: Check for hieradata file
become: true
stat:
path:
src: "{{ hieradata_ansible_file }}"

View File

@ -15,11 +15,13 @@
# under the License.
- name: Copy overcloud.json to all_nodes.json
become: true
copy:
src: "{{ playbook_dir }}/group_vars/overcloud.json"
dest: "{{ dest_path | default('/etc/puppet/hieradata/all_nodes.json') }}"
- name: Render hieradata from template
become: true
template:
src: templates/{{ item }}.j2
dest: "{{ dest_path | default('/etc/puppet/hieradata/' ~ item ~ '.json') }}"

View File

@ -15,12 +15,14 @@
# under the License.
- name: Create /etc/puppet/hieradata
become: true
file:
path: /etc/puppet/hieradata
state: directory
mode: 0700
- name: Write hiera config
become: true
when:
- (hieradata_files | length) > 0
copy: