Report as puppet_report_as instead of fqdn

We want to report as the puppetmaster, not as the host in question.

Change-Id: I0462a898502ad709e046be76c19c9e11f4617335
Depends-On: I290ad569283390bac2a74a9991331c9e86821ab7
This commit is contained in:
Monty Taylor 2016-02-24 11:39:22 -06:00
parent 42c28a7456
commit 0545b55d8d
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@
puppetdb: "{{ puppetdb }}"
hostvars: "{{ hostvars[inventory_hostname] }}"
logfile: "{{ puppet_logfile }}"
whoami: "{{ ansible_fqdn }}"
whoami: "{{ puppet_report_as }}"
delegate_to: localhost
connection: local
when: puppetdb is defined
when: puppetdb is defined and puppet_report_as is defined