-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13303 from AlanCoding/smart_inventory_v2
[constructed-inventory] Constructed inventory as alternative to smart inventory
- Loading branch information
Showing
8 changed files
with
159 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# Generated by Django 3.2.16 on 2022-12-07 14:20 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('main', '0174_ensure_org_ee_admin_roles'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='inventory', | ||
name='source_inventories', | ||
field=models.ManyToManyField( | ||
blank=True, | ||
help_text='Only valid for constructed inventories, this links to the inventories that will be used.', | ||
related_name='destination_inventories', | ||
to='main.Inventory', | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name='inventory', | ||
name='kind', | ||
field=models.CharField( | ||
blank=True, | ||
choices=[ | ||
('', 'Hosts have a direct link to this inventory.'), | ||
('smart', 'Hosts for inventory generated using the host_filter property.'), | ||
('constructed', 'Parse list of source inventories with the constructed inventory plugin.'), | ||
], | ||
default='', | ||
help_text='Kind of inventory being represented.', | ||
max_length=32, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name='inventorysource', | ||
name='source', | ||
field=models.CharField( | ||
choices=[ | ||
('file', 'File, Directory or Script'), | ||
('constructed', 'Template additional groups and hostvars at runtime'), | ||
('scm', 'Sourced from a Project'), | ||
('ec2', 'Amazon EC2'), | ||
('gce', 'Google Compute Engine'), | ||
('azure_rm', 'Microsoft Azure Resource Manager'), | ||
('vmware', 'VMware vCenter'), | ||
('satellite6', 'Red Hat Satellite 6'), | ||
('openstack', 'OpenStack'), | ||
('rhv', 'Red Hat Virtualization'), | ||
('controller', 'Red Hat Ansible Automation Platform'), | ||
('insights', 'Red Hat Insights'), | ||
], | ||
default=None, | ||
max_length=32, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name='inventoryupdate', | ||
name='source', | ||
field=models.CharField( | ||
choices=[ | ||
('file', 'File, Directory or Script'), | ||
('constructed', 'Template additional groups and hostvars at runtime'), | ||
('scm', 'Sourced from a Project'), | ||
('ec2', 'Amazon EC2'), | ||
('gce', 'Google Compute Engine'), | ||
('azure_rm', 'Microsoft Azure Resource Manager'), | ||
('vmware', 'VMware vCenter'), | ||
('satellite6', 'Red Hat Satellite 6'), | ||
('openstack', 'OpenStack'), | ||
('rhv', 'Red Hat Virtualization'), | ||
('controller', 'Red Hat Ansible Automation Platform'), | ||
('insights', 'Red Hat Insights'), | ||
], | ||
default=None, | ||
max_length=32, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters