mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Improved RackSpace configuration support (needed by latest version of rackspace API)
This commit is contained in:
parent
de912381ac
commit
7fed89b51d
2 changed files with 11 additions and 5 deletions
|
@ -11,16 +11,20 @@ username =
|
||||||
api_key =
|
api_key =
|
||||||
|
|
||||||
# OpenStack nova auth_url
|
# OpenStack nova auth_url
|
||||||
# For use with the new RackSpace API use https://identity.api.rackspacecloud.com/v2.0/
|
|
||||||
auth_url =
|
auth_url =
|
||||||
|
|
||||||
|
# Authentication system
|
||||||
|
auth_system =
|
||||||
|
|
||||||
# OpenStack nova project_id
|
# OpenStack nova project_id
|
||||||
project_id = None
|
project_id =
|
||||||
|
|
||||||
|
# Serverarm region name to use
|
||||||
|
region_name =
|
||||||
|
|
||||||
# TODO: Some other options
|
# TODO: Some other options
|
||||||
# insecure =
|
# insecure =
|
||||||
# region_name =
|
|
||||||
# endpoint_type =
|
# endpoint_type =
|
||||||
# extensions =
|
# extensions =
|
||||||
# service_type =
|
# service_type =
|
||||||
# service_name =
|
# service_name =
|
||||||
|
|
|
@ -99,7 +99,9 @@ client = nova_client.Client(
|
||||||
username = config.get('openstack', 'username'),
|
username = config.get('openstack', 'username'),
|
||||||
api_key = config.get('openstack', 'api_key'),
|
api_key = config.get('openstack', 'api_key'),
|
||||||
auth_url = config.get('openstack', 'auth_url'),
|
auth_url = config.get('openstack', 'auth_url'),
|
||||||
project_id = config.get('openstack', 'project_id')
|
region_name = config.get('openstack', 'region_name'),
|
||||||
|
project_id = config.get('openstack', 'project_id'),
|
||||||
|
auth_system = config.get('openstack', 'auth_system')
|
||||||
)
|
)
|
||||||
|
|
||||||
if len(sys.argv) == 2 and (sys.argv[1] == '--list'):
|
if len(sys.argv) == 2 and (sys.argv[1] == '--list'):
|
||||||
|
|
Loading…
Add table
Reference in a new issue