Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
7fed89b5
Commit
7fed89b5
authored
Oct 09, 2012
by
Marco Vito Moscaritolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved RackSpace configuration support (needed by latest version of rackspace API)
parent
de912381
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
plugins/inventory/nova.ini
+8
-4
plugins/inventory/nova.py
+3
-1
No files found.
plugins/inventory/nova.ini
View file @
7fed89b5
...
...
@@ -11,16 +11,20 @@ username =
api_key
=
# OpenStack nova auth_url
# For use with the new RackSpace API use https://identity.api.rackspacecloud.com/v2.0/
auth_url
=
# Authentication system
auth_system
=
# OpenStack nova project_id
project_id
=
None
project_id
=
# Serverarm region name to use
region_name =
# TODO: Some other options
# insecure =
# region_name =
# endpoint_type =
# extensions =
# extensions =
# service_type =
# service_name =
plugins/inventory/nova.py
View file @
7fed89b5
...
...
@@ -99,7 +99,9 @@ client = nova_client.Client(
username
=
config
.
get
(
'openstack'
,
'username'
),
api_key
=
config
.
get
(
'openstack'
,
'api_key'
),
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'
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment