per-jt most recent fact scan gathering

* Remove system tracking piggybacked most-recent-fact-gathering
* Add explicit per-jobtemplate configurable fact gathering
* Continue to support system tracking
* Fixed a bug where we weren't ack()ing system tracking rabbit msgs
This commit is contained in:
Chris Meyers
2017-04-28 10:25:44 -04:00
parent 4795fd28bf
commit 6dec9d1014
6 changed files with 24 additions and 17 deletions

View File

@@ -111,7 +111,7 @@ class FactBrokerWorker(ConsumerMixin):
analytics_logger.info('Received message with fact data', extra=dict(
module_name=module_name, facts_data=facts))
ret = fact_obj
else:
if job.gather_facts is True:
host_obj.update_ansible_facts(module=module_name, facts=facts, timestamp=self.timestamp)
message.ack()