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

@@ -48,10 +48,21 @@ class Migration(migrations.Migration):
name='ansible_facts',
field=awx.main.fields.JSONBField(default={}, help_text='Arbitrary JSON structure of most recent ansible_facts, per-host.', blank=True),
),
migrations.AddField(
model_name='job',
name='gather_facts',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='jobtemplate',
name='gather_facts',
field=models.BooleanField(default=False),
),
migrations.RunSQL([("CREATE INDEX host_ansible_facts_default_gin ON %s USING gin"
"(ansible_facts jsonb_path_ops);", [AsIs(Host._meta.db_table)])],
[('DROP INDEX host_ansible_facts_default_gin;', None)]),
# SCM file-based inventories
migrations.AddField(
model_name='inventorysource',