Adding initial credential and invsrc for Tower

* New credential type for Tower
* Inventory source definitions and migrations for Tower
* Initial Tower inventory source script
This commit is contained in:
Matthew Jones
2017-10-25 16:19:39 -04:00
parent 70919638ba
commit 6c597ad165
8 changed files with 160 additions and 7 deletions

View File

@@ -873,6 +873,7 @@ class InventorySourceOptions(BaseModel):
('cloudforms', _('Red Hat CloudForms')),
('openstack', _('OpenStack')),
('ovirt4', _('oVirt4')),
('tower', _('Ansible Tower')),
('custom', _('Custom Script')),
]
@@ -1126,6 +1127,11 @@ class InventorySourceOptions(BaseModel):
"""No region supprt"""
return [('all', 'All')]
@classmethod
def get_tower_region_choices(self):
"""No region supprt"""
return [('all', 'All')]
def clean_credential(self):
if not self.source:
return None