diff --git a/defaults/main.yml b/defaults/main.yml index 58573eb..70dfb5c 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -18,3 +18,4 @@ puppet_environment: production puppet_timeout: 30m futureparser: False mgmt_manifestpath: '{{ manifest_base }}/{{ puppet_environment }}' +puppet_hieradata_link_dest: '{{ manifest_base }}/hieradata' diff --git a/tasks/main.yaml b/tasks/main.yaml index e93e1ae..b0b81e1 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -82,7 +82,7 @@ - name: ensure hieradata manifest link is present file: src: "{{ '/etc/puppet/hieradata' if puppet_version == '3' else '/etc/puppetlabs/code/environments' }}" - dest: "{{ manifest_base }}/hieradata" + dest: "{{ puppet_hieradata_link_dest }}" state: link when: copy_hieradata