mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 19:35:02 -02:30
Add support for Azure inventory plugin
This commit is contained in:
@@ -1918,8 +1918,20 @@ class PluginFileInjector(object):
|
|||||||
|
|
||||||
|
|
||||||
class azure_rm(PluginFileInjector):
|
class azure_rm(PluginFileInjector):
|
||||||
|
plugin_name = 'azure_rm'
|
||||||
|
initial_version = '2.7'
|
||||||
ini_env_reference = 'AZURE_INI_PATH'
|
ini_env_reference = 'AZURE_INI_PATH'
|
||||||
|
|
||||||
|
def inventory_as_dict(self, inventory_source):
|
||||||
|
ret = dict(
|
||||||
|
plugin='azure_rm',
|
||||||
|
)
|
||||||
|
# TODO: all regions currently failing due to:
|
||||||
|
# https://github.com/ansible/ansible/pull/48079
|
||||||
|
if inventory_source.source_regions and 'all' not in inventory_source.source_regions:
|
||||||
|
ret['regions'] = inventory_source.source_regions.split(',')
|
||||||
|
return ret
|
||||||
|
|
||||||
def build_script_private_data(self, inventory_update, private_data_dir):
|
def build_script_private_data(self, inventory_update, private_data_dir):
|
||||||
cp = configparser.RawConfigParser()
|
cp = configparser.RawConfigParser()
|
||||||
section = 'azure'
|
section = 'azure'
|
||||||
|
|||||||
Reference in New Issue
Block a user