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
860a96cf
Commit
860a96cf
authored
Jun 02, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11097 from resmo/for-ansible
cloudstack: updates and v1 sync
parents
bc041ffe
caf3cf69
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
lib/ansible/module_utils/cloudstack.py
+2
-0
lib/ansible/utils/module_docs_fragments/cloudstack.py
+8
-6
v1/ansible/module_utils/cloudstack.py
+0
-0
No files found.
lib/ansible/module_utils/cloudstack.py
View file @
860a96cf
...
...
@@ -64,12 +64,14 @@ class AnsibleCloudStack:
api_secret
=
self
.
module
.
params
.
get
(
'secret_key'
)
api_url
=
self
.
module
.
params
.
get
(
'api_url'
)
api_http_method
=
self
.
module
.
params
.
get
(
'api_http_method'
)
api_timeout
=
self
.
module
.
params
.
get
(
'api_timeout'
)
if
api_key
and
api_secret
and
api_url
:
self
.
cs
=
CloudStack
(
endpoint
=
api_url
,
key
=
api_key
,
secret
=
api_secret
,
timeout
=
api_timeout
,
method
=
api_http_method
)
else
:
...
...
lib/ansible/utils/module_docs_fragments/cloudstack.py
View file @
860a96cf
...
...
@@ -27,34 +27,36 @@ options:
- API key of the CloudStack API.
required: false
default: null
aliases: []
api_secret:
description:
- Secret key of the CloudStack API.
required: false
default: null
aliases: []
api_url:
description:
- URL of the CloudStack API e.g. https://cloud.example.com/client/api.
required: false
default: null
aliases: []
api_http_method:
description:
- HTTP method used.
required: false
default: 'get'
aliases: []
choices: [ 'get', 'post' ]
api_timeout:
description:
- HTTP timeout.
required: false
default: 10
requirements:
- "python >= 2.6"
- cs
notes:
- Ansible uses the C(cs) library's configuration method if credentials are not
provided by the options C(api_url), C(api_key), C(api_secret).
Configuration is read from several locations, in the following order
":"
Configuration is read from several locations, in the following order
.
- The C(CLOUDSTACK_ENDPOINT), C(CLOUDSTACK_KEY), C(CLOUDSTACK_SECRET) and
C(CLOUDSTACK_METHOD) environment variables.
C(CLOUDSTACK_METHOD)
. C(CLOUDSTACK_TIMEOUT)
environment variables.
- A C(CLOUDSTACK_CONFIG) environment variable pointing to an C(.ini) file,
- A C(cloudstack.ini) file in the current working directory.
- A C(.cloudstack.ini) file in the users home directory.
...
...
v1/ansible/module_utils/cloudstack.py
View file @
860a96cf
This diff is collapsed.
Click to expand it.
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