Merge pull request #6144 from wwitzel3/issue-5745

Support dynamic Inventory
This commit is contained in:
Wayne Witzel III
2017-05-02 13:28:48 -04:00
committed by GitHub
9 changed files with 372 additions and 214 deletions

View File

@@ -36,6 +36,16 @@ class Migration(migrations.Migration):
name='inventory',
field=models.ForeignKey(related_name='inventory_sources', default=None, to='main.Inventory', null=True),
),
migrations.AddField(
model_name='inventory',
name='host_filter',
field=awx.main.fields.DynamicFilterField(default=None, help_text='Filter that will be applied to the hosts of this inventory.', null=True, blank=True),
),
migrations.AddField(
model_name='inventory',
name='kind',
field=models.CharField(default=b'standard', help_text='Kind of inventory being represented.', max_length=32, choices=[(b'standard', 'Hosts have a direct link to this inventory.'), (b'dynamic', 'Hosts for inventory generated using the host_filter property.')]),
),
# Facts
migrations.AlterField(