|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
# (c) 2012, Matt Martz <matt@sivel.net>
|
|
|
|
|
# (c) 2014, Matt Martz <matt@sivel.net>
|
|
|
|
|
#
|
|
|
|
|
# This file is part of Ansible
|
|
|
|
|
#
|
|
|
|
@ -15,18 +15,17 @@
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
RACKSPACE_AND_OPENSTACK = """
|
|
|
|
|
|
|
|
|
|
class ModuleDocFragment(object):
|
|
|
|
|
|
|
|
|
|
# Standard Rackspace only documentation fragment
|
|
|
|
|
DOCUMENTATION = """
|
|
|
|
|
options:
|
|
|
|
|
api_key:
|
|
|
|
|
description:
|
|
|
|
|
- Rackspace API key (overrides I(credentials))
|
|
|
|
|
aliases:
|
|
|
|
|
- password
|
|
|
|
|
auth_endpoint:
|
|
|
|
|
description:
|
|
|
|
|
- The URI of the authentication service
|
|
|
|
|
default: https://identity.api.rackspacecloud.com/v2.0/
|
|
|
|
|
version_added: 1.5
|
|
|
|
|
credentials:
|
|
|
|
|
description:
|
|
|
|
|
- File to find the Rackspace credentials in (ignored if I(api_key) and
|
|
|
|
@ -39,23 +38,10 @@ options:
|
|
|
|
|
- Environment as configured in ~/.pyrax.cfg,
|
|
|
|
|
see U(https://github.com/rackspace/pyrax/blob/master/docs/getting_started.md#pyrax-configuration)
|
|
|
|
|
version_added: 1.5
|
|
|
|
|
identity_type:
|
|
|
|
|
description:
|
|
|
|
|
- Authentication machanism to use, such as rackspace or keystone
|
|
|
|
|
default: rackspace
|
|
|
|
|
version_added: 1.5
|
|
|
|
|
region:
|
|
|
|
|
description:
|
|
|
|
|
- Region to create an instance in
|
|
|
|
|
default: DFW
|
|
|
|
|
tenant_id:
|
|
|
|
|
description:
|
|
|
|
|
- The tenant ID used for authentication
|
|
|
|
|
version_added: 1.5
|
|
|
|
|
tenant_name:
|
|
|
|
|
description:
|
|
|
|
|
- The tenant name used for authentication
|
|
|
|
|
version_added: 1.5
|
|
|
|
|
username:
|
|
|
|
|
description:
|
|
|
|
|
- Rackspace username (overrides I(credentials))
|
|
|
|
@ -74,13 +60,20 @@ notes:
|
|
|
|
|
- C(RAX_REGION) defines a Rackspace Public Cloud region (DFW, ORD, LON, ...)
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
RACKSPACE = """
|
|
|
|
|
# Documentation fragment including attributes to enable communication
|
|
|
|
|
# of other OpenStack clouds. Not all rax modules support this.
|
|
|
|
|
OPENSTACK = """
|
|
|
|
|
options:
|
|
|
|
|
api_key:
|
|
|
|
|
description:
|
|
|
|
|
- Rackspace API key (overrides I(credentials))
|
|
|
|
|
aliases:
|
|
|
|
|
- password
|
|
|
|
|
auth_endpoint:
|
|
|
|
|
description:
|
|
|
|
|
- The URI of the authentication service
|
|
|
|
|
default: https://identity.api.rackspacecloud.com/v2.0/
|
|
|
|
|
version_added: 1.5
|
|
|
|
|
credentials:
|
|
|
|
|
description:
|
|
|
|
|
- File to find the Rackspace credentials in (ignored if I(api_key) and
|
|
|
|
@ -93,10 +86,23 @@ options:
|
|
|
|
|
- Environment as configured in ~/.pyrax.cfg,
|
|
|
|
|
see U(https://github.com/rackspace/pyrax/blob/master/docs/getting_started.md#pyrax-configuration)
|
|
|
|
|
version_added: 1.5
|
|
|
|
|
identity_type:
|
|
|
|
|
description:
|
|
|
|
|
- Authentication machanism to use, such as rackspace or keystone
|
|
|
|
|
default: rackspace
|
|
|
|
|
version_added: 1.5
|
|
|
|
|
region:
|
|
|
|
|
description:
|
|
|
|
|
- Region to create an instance in
|
|
|
|
|
default: DFW
|
|
|
|
|
tenant_id:
|
|
|
|
|
description:
|
|
|
|
|
- The tenant ID used for authentication
|
|
|
|
|
version_added: 1.5
|
|
|
|
|
tenant_name:
|
|
|
|
|
description:
|
|
|
|
|
- The tenant name used for authentication
|
|
|
|
|
version_added: 1.5
|
|
|
|
|
username:
|
|
|
|
|
description:
|
|
|
|
|
- Rackspace username (overrides I(credentials))
|