|
|
@ -2,17 +2,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
# Copyright (c) 2015 VMware, Inc. All Rights Reserved.
|
|
|
|
# Copyright (c) 2015 VMware, Inc. All Rights Reserved.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# This file is part of Ansible
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
# Ansible is free software: you can redistribute it and/or modify
|
|
|
|
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# Ansible is distributed in the hope that it will be useful,
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
|
|
|
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DOCUMENTATION = '''
|
|
|
|
DOCUMENTATION = '''
|
|
|
|
---
|
|
|
|
---
|
|
|
@ -23,75 +27,63 @@ description:
|
|
|
|
version_added: "2.0"
|
|
|
|
version_added: "2.0"
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
username:
|
|
|
|
username:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The vca username or email address, if not set the environment variable VCA_USER is checked for the username.
|
|
|
|
- The vca username or email address, if not set the environment variable VCA_USER is checked for the username.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
password:
|
|
|
|
password:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The vca password, if not set the environment variable VCA_PASS is checked for the password
|
|
|
|
- The vca password, if not set the environment variable VCA_PASS is checked for the password
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
org:
|
|
|
|
org:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The org to login to for creating vapp, mostly set when the service_type is vdc.
|
|
|
|
- The org to login to for creating vapp, mostly set when the service_type is vdc.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
service_id:
|
|
|
|
service_id:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The service id in a vchs environment to be used for creating the vapp
|
|
|
|
- The service id in a vchs environment to be used for creating the vapp
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
host:
|
|
|
|
host:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The authentication host to be used when service type is vcd.
|
|
|
|
- The authentication host to be used when service type is vcd.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
api_version:
|
|
|
|
api_version:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The api version to be used with the vca
|
|
|
|
- The api version to be used with the vca
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: "5.7"
|
|
|
|
default: "5.7"
|
|
|
|
service_type:
|
|
|
|
service_type:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The type of service we are authenticating against
|
|
|
|
- The type of service we are authenticating against
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: vca
|
|
|
|
default: vca
|
|
|
|
choices: [ "vca", "vchs", "vcd" ]
|
|
|
|
choices: [ "vca", "vchs", "vcd" ]
|
|
|
|
state:
|
|
|
|
state:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- if the object should be added or removed
|
|
|
|
- if the object should be added or removed
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: present
|
|
|
|
default: present
|
|
|
|
choices: [ "present", "absent" ]
|
|
|
|
choices: [ "present", "absent" ]
|
|
|
|
verify_certs:
|
|
|
|
verify_certs:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- If the certificates of the authentication is to be verified
|
|
|
|
- If the certificates of the authentication is to be verified
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: True
|
|
|
|
default: True
|
|
|
|
vdc_name:
|
|
|
|
vdc_name:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The name of the vdc where the gateway is located.
|
|
|
|
- The name of the vdc where the gateway is located.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
gateway_name:
|
|
|
|
gateway_name:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The name of the gateway of the vdc where the rule should be added
|
|
|
|
- The name of the gateway of the vdc where the rule should be added
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: gateway
|
|
|
|
default: gateway
|
|
|
|
fw_rules:
|
|
|
|
fw_rules:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- A list of firewall rules to be added to the gateway, Please see examples on valid entries
|
|
|
|
- A list of firewall rules to be added to the gateway, Please see examples on valid entries
|
|
|
|
required: True
|
|
|
|
required: True
|
|
|
|