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
2924c90a
Commit
2924c90a
authored
May 29, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10977 from emonty/fix-envvars
Fix envvars support in openstack modules
parents
a0935a1d
cd14d73b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
13 deletions
+12
-13
lib/ansible/module_utils/openstack.py
+1
-5
lib/ansible/utils/module_docs_fragments/openstack.py
+10
-3
v2/ansible/module_utils/openstack.py
+1
-5
No files found.
lib/ansible/module_utils/openstack.py
View file @
2924c90a
...
...
@@ -93,11 +93,7 @@ def openstack_full_argument_spec(**kwargs):
def
openstack_module_kwargs
(
**
kwargs
):
ret
=
dict
(
required_one_of
=
[
[
'cloud'
,
'auth'
],
],
)
ret
=
{}
for
key
in
(
'mutually_exclusive'
,
'required_together'
,
'required_one_of'
):
if
key
in
kwargs
:
if
key
in
ret
:
...
...
lib/ansible/utils/module_docs_fragments/openstack.py
View file @
2924c90a
...
...
@@ -23,7 +23,9 @@ class ModuleDocFragment(object):
options:
cloud:
description:
- Named cloud to operate against. Provides default values for I(auth) and I(auth_plugin)
- Named cloud to operate against. Provides default values for I(auth) and
I(auth_type). This parameter is not needed if I(auth) is provided or if
OpenStack OS_* environment variables are present.
required: false
auth:
description:
...
...
@@ -32,7 +34,8 @@ options:
I(auth_url), I(username), I(password), I(project_name) and any
information about domains if the cloud supports them. For other plugins,
this param will need to contain whatever parameters that auth plugin
requires. This parameter is not needed if a named cloud is provided.
requires. This parameter is not needed if a named cloud is provided or
OpenStack OS_* environment variables are present.
required: false
auth_type:
description:
...
...
@@ -77,14 +80,17 @@ options:
- A path to a CA Cert bundle that can be used as part of verifying
SSL API requests.
required: false
default: None
cert:
description:
- A path to a client certificate to use as part of the SSL transaction
required: false
default: None
key:
description:
- A path to a client key to use as part of the SSL transaction
required: false
default: None
endpoint_type:
description:
- Endpoint URL type to fetch from the service catalog.
...
...
@@ -100,5 +106,6 @@ notes:
can come from a yaml config file in /etc/ansible/openstack.yaml,
/etc/openstack/clouds.yaml or ~/.config/openstack/clouds.yaml, then from
standard environment variables, then finally by explicit parameters in
plays.
plays. More information can be found at
U(http://docs.openstack.org/developer/os-client-config)
'''
v2/ansible/module_utils/openstack.py
View file @
2924c90a
...
...
@@ -93,11 +93,7 @@ def openstack_full_argument_spec(**kwargs):
def
openstack_module_kwargs
(
**
kwargs
):
ret
=
dict
(
required_one_of
=
[
[
'cloud'
,
'auth'
],
],
)
ret
=
{}
for
key
in
(
'mutually_exclusive'
,
'required_together'
,
'required_one_of'
):
if
key
in
kwargs
:
if
key
in
ret
:
...
...
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