Allow overiding the remote hieradata link dest

In order to support the layouts being different on the management server
and the remote nodes, we need to also be able to override the location
of the link that gets made. Add a variable that defaults to the old
value.

Change-Id: I7434c1b1a9d79f04b3e872e750057d69490e80e0
This commit is contained in:
Monty Taylor 2018-08-17 13:43:46 -05:00
parent 0a3c32b5ac
commit 7fc585e1ab
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
2 changed files with 2 additions and 1 deletions

View File

@ -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'

View File

@ -79,7 +79,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