Allow explicit override for mgmt_hieradata

ansible-role-puppet attempts to infer where it should copy hieradata
from based on puppet3 or puppet4. However, for hosts that are not
running puppet themselves this isn't going to work very well. Allow a
user to set mgmt_hieradata explicity.

Change-Id: Ie533da9af71ab84ce6e95dc63ceb8426740f53a3
This commit is contained in:
Monty Taylor 2018-08-03 12:30:06 -05:00
parent 24eb60b34d
commit af6869b0a7
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@
- name: Set management server hieradata var
set_fact:
mgmt_hieradata: "{{ '/etc/puppet/hieradata/' + puppet_environment if mgmt_puppet_version == '3' else '/etc/puppetlabs/code/environments/' + puppet_environment + '/hieradata' }}"
when: mgmt_hieradata is not defined
delegate_to: localhost
- name: Set hieradata var