mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update validate-modules (#20932)
* Update validate-modules * Validates ANSIBLE_METADATA * Ensures imports happen after documentation vars * Some pep8 cleanup * Clean up some left over unneeded code * Update modules for new module guidelines and validate-modules checks * Update imports for ec2_vpc_route_table and ec2_vpc_nat_gateway
This commit is contained in:
parent
1718719d77
commit
829c0b8f62
178 changed files with 1849 additions and 1783 deletions
|
@ -15,6 +15,7 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
|
|
|
@ -13,12 +13,9 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this library. If not, see <http://www.gnu.org/licenses/>.
|
# along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# import module snippets
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
'supported_by': 'community',
|
||||||
from ansible.module_utils.ec2 import ec2_argument_spec, get_aws_connection_info
|
'version': '1.0'}
|
||||||
from ansible.module_utils.ec2 import boto3_conn, camel_dict_to_snake_dict
|
|
||||||
from ansible.module_utils.ec2 import ansible_dict_to_boto3_filter_list, HAS_BOTO3
|
|
||||||
|
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
|
@ -100,6 +97,12 @@ changed:
|
||||||
sample: "false"
|
sample: "false"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
# import module snippets
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ec2 import ec2_argument_spec, get_aws_connection_info
|
||||||
|
from ansible.module_utils.ec2 import boto3_conn, camel_dict_to_snake_dict
|
||||||
|
from ansible.module_utils.ec2 import ansible_dict_to_boto3_filter_list, HAS_BOTO3
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import botocore
|
import botocore
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
|
@ -14,18 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# import module snippets
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ec2 import ec2_argument_spec, get_aws_connection_info, boto3_conn
|
|
||||||
|
|
||||||
import datetime
|
|
||||||
import random
|
|
||||||
import re
|
|
||||||
import time
|
|
||||||
|
|
||||||
from dateutil.tz import tzutc
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -221,6 +209,16 @@ nat_gateway_addresses:
|
||||||
]
|
]
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ec2 import ec2_argument_spec, get_aws_connection_info, boto3_conn
|
||||||
|
|
||||||
|
import datetime
|
||||||
|
import random
|
||||||
|
import re
|
||||||
|
import time
|
||||||
|
|
||||||
|
from dateutil.tz import tzutc
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import botocore
|
import botocore
|
||||||
import boto3
|
import boto3
|
||||||
|
@ -228,7 +226,6 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
HAS_BOTO3 = False
|
HAS_BOTO3 = False
|
||||||
|
|
||||||
|
|
||||||
DRY_RUN_GATEWAYS = [
|
DRY_RUN_GATEWAYS = [
|
||||||
{
|
{
|
||||||
"nat_gateway_id": "nat-123456789",
|
"nat_gateway_id": "nat-123456789",
|
||||||
|
|
|
@ -14,12 +14,9 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import json
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
|
'supported_by': 'community',
|
||||||
# import module snippets
|
'version': '1.0'}
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ec2 import ec2_argument_spec, get_aws_connection_info, boto3_conn
|
|
||||||
from ansible.module_utils.ec2 import ansible_dict_to_boto3_filter_list, HAS_BOTO3
|
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
module: ec2_vpc_nat_gateway_facts
|
module: ec2_vpc_nat_gateway_facts
|
||||||
|
@ -90,6 +87,12 @@ result:
|
||||||
type: list
|
type: list
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import json
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ec2 import ec2_argument_spec, get_aws_connection_info, boto3_conn
|
||||||
|
from ansible.module_utils.ec2 import ansible_dict_to_boto3_filter_list, HAS_BOTO3
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import botocore
|
import botocore
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
|
@ -13,12 +13,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this library. If not, see <http://www.gnu.org/licenses/>.
|
# along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import re
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ec2 import AnsibleAWSError, connect_to_aws, ec2_argument_spec, get_aws_connection_info
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['stableinterface'],
|
ANSIBLE_METADATA = {'status': ['stableinterface'],
|
||||||
'supported_by': 'committer',
|
'supported_by': 'committer',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -120,6 +114,11 @@ EXAMPLES = '''
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import re
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ec2 import AnsibleAWSError, connect_to_aws, ec2_argument_spec, get_aws_connection_info
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import boto.ec2
|
import boto.ec2
|
||||||
import boto.vpc
|
import boto.vpc
|
||||||
|
|
|
@ -13,12 +13,9 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this library. If not, see <http://www.gnu.org/licenses/>.
|
# along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# import module snippets
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
'supported_by': 'community',
|
||||||
from ansible.module_utils.ec2 import ec2_argument_spec, get_aws_connection_info
|
'version': '1.0'}
|
||||||
from ansible.module_utils.ec2 import boto3_conn, camel_dict_to_snake_dict
|
|
||||||
from ansible.module_utils.ec2 import ansible_dict_to_boto3_filter_list, HAS_BOTO3
|
|
||||||
|
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
|
@ -102,6 +99,11 @@ changed:
|
||||||
sample: "false"
|
sample: "false"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ec2 import ec2_argument_spec, get_aws_connection_info
|
||||||
|
from ansible.module_utils.ec2 import boto3_conn, camel_dict_to_snake_dict
|
||||||
|
from ansible.module_utils.ec2 import ansible_dict_to_boto3_filter_list, HAS_BOTO3
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import botocore
|
import botocore
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
|
@ -14,23 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import json
|
|
||||||
import time
|
|
||||||
import inspect
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import *
|
|
||||||
from ansible.module_utils.ec2 import *
|
|
||||||
|
|
||||||
try:
|
|
||||||
import boto3
|
|
||||||
from botocore.exceptions import ClientError
|
|
||||||
|
|
||||||
HAS_BOTO3 = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_BOTO3 = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -139,6 +122,21 @@ repository:
|
||||||
repositoryUri: 999999999999.dkr.ecr.us-east-1.amazonaws.com/ecr-test-1484664090
|
repositoryUri: 999999999999.dkr.ecr.us-east-1.amazonaws.com/ecr-test-1484664090
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import json
|
||||||
|
import time
|
||||||
|
import inspect
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import *
|
||||||
|
from ansible.module_utils.ec2 import *
|
||||||
|
|
||||||
|
try:
|
||||||
|
import boto3
|
||||||
|
from botocore.exceptions import ClientError
|
||||||
|
|
||||||
|
HAS_BOTO3 = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_BOTO3 = False
|
||||||
|
|
||||||
|
|
||||||
def boto_exception(err):
|
def boto_exception(err):
|
||||||
'''boto error message handler'''
|
'''boto error message handler'''
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
|
'supported_by': 'community',
|
||||||
|
'version': '1.0'}
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: iam_role
|
module: iam_role
|
||||||
|
|
|
@ -14,14 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import boto3
|
|
||||||
from botocore.exceptions import ClientError, ParamValidationError, MissingParametersError
|
|
||||||
HAS_BOTO3 = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_BOTO3 = False
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -154,6 +146,13 @@ name:
|
||||||
sample: dev
|
sample: dev
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import boto3
|
||||||
|
from botocore.exceptions import ClientError, ParamValidationError, MissingParametersError
|
||||||
|
HAS_BOTO3 = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_BOTO3 = False
|
||||||
|
|
||||||
|
|
||||||
class AWSConnection:
|
class AWSConnection:
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -14,16 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import sys
|
|
||||||
|
|
||||||
try:
|
|
||||||
import boto3
|
|
||||||
from botocore.exceptions import ClientError, ParamValidationError, MissingParametersError
|
|
||||||
HAS_BOTO3 = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_BOTO3 = False
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -119,6 +109,16 @@ lambda_stream_events:
|
||||||
type: list
|
type: list
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
|
try:
|
||||||
|
import boto3
|
||||||
|
from botocore.exceptions import ClientError, ParamValidationError, MissingParametersError
|
||||||
|
HAS_BOTO3 = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_BOTO3 = False
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Helper Functions & classes
|
# Helper Functions & classes
|
||||||
|
|
|
@ -14,17 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import datetime
|
|
||||||
import sys
|
|
||||||
|
|
||||||
try:
|
|
||||||
import boto3
|
|
||||||
from botocore.exceptions import ClientError
|
|
||||||
HAS_BOTO3 = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_BOTO3 = False
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -106,6 +95,16 @@ lambda_facts.function.TheName:
|
||||||
type: dict
|
type: dict
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import datetime
|
||||||
|
import sys
|
||||||
|
|
||||||
|
try:
|
||||||
|
import boto3
|
||||||
|
from botocore.exceptions import ClientError
|
||||||
|
HAS_BOTO3 = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_BOTO3 = False
|
||||||
|
|
||||||
|
|
||||||
def fix_return(node):
|
def fix_return(node):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -22,6 +22,10 @@
|
||||||
# - Adam Friedman <tintoy@tintoy.io>
|
# - Adam Friedman <tintoy@tintoy.io>
|
||||||
#
|
#
|
||||||
|
|
||||||
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
|
'supported_by': 'community',
|
||||||
|
'version': '1.0'}
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: dimensiondata_network
|
module: dimensiondata_network
|
||||||
|
|
|
@ -16,8 +16,9 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
from ansible.module_utils.gce import gce_connect
|
'supported_by': 'community',
|
||||||
|
'version': '1.0'}
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
|
@ -129,6 +130,9 @@ snapshots_absent:
|
||||||
sample: "[disk0-example-snapshot, disk1-example-snapshot]"
|
sample: "[disk0-example-snapshot, disk1-example-snapshot]"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.gce import gce_connect
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from libcloud.compute.types import Provider
|
from libcloud.compute.types import Provider
|
||||||
_ = Provider.GCE
|
_ = Provider.GCE
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
|
'supported_by': 'community',
|
||||||
|
'version': '1.0'}
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: gcpubsub
|
module: gcpubsub
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
|
'supported_by': 'community',
|
||||||
|
'version': '1.0'}
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: gcpubsub_facts
|
module: gcpubsub_facts
|
||||||
|
|
|
@ -32,15 +32,6 @@ author:
|
||||||
options: {}
|
options: {}
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import platform
|
|
||||||
|
|
||||||
HAVE_XENAPI = False
|
|
||||||
try:
|
|
||||||
import XenAPI
|
|
||||||
HAVE_XENAPI = True
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Gather facts from xenserver
|
- name: Gather facts from xenserver
|
||||||
xenserver:
|
xenserver:
|
||||||
|
@ -60,6 +51,16 @@ EXAMPLES = '''
|
||||||
# }
|
# }
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import platform
|
||||||
|
|
||||||
|
HAVE_XENAPI = False
|
||||||
|
try:
|
||||||
|
import XenAPI
|
||||||
|
HAVE_XENAPI = True
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class XenServerFacts:
|
class XenServerFacts:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.codes = {
|
self.codes = {
|
||||||
|
|
|
@ -17,19 +17,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import operator
|
|
||||||
import os
|
|
||||||
import time
|
|
||||||
|
|
||||||
try:
|
|
||||||
from novaclient.v1_1 import client as nova_client
|
|
||||||
from novaclient.v1_1 import floating_ips
|
|
||||||
from novaclient import exceptions
|
|
||||||
from novaclient import utils
|
|
||||||
HAS_NOVACLIENT = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_NOVACLIENT = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['deprecated'],
|
ANSIBLE_METADATA = {'status': ['deprecated'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -280,6 +267,18 @@ EXAMPLES = '''
|
||||||
flavor_include: Performance
|
flavor_include: Performance
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import operator
|
||||||
|
import os
|
||||||
|
import time
|
||||||
|
|
||||||
|
try:
|
||||||
|
from novaclient.v1_1 import client as nova_client
|
||||||
|
from novaclient.v1_1 import floating_ips
|
||||||
|
from novaclient import exceptions
|
||||||
|
from novaclient import utils
|
||||||
|
HAS_NOVACLIENT = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_NOVACLIENT = False
|
||||||
|
|
||||||
|
|
||||||
def _delete_server(module, nova):
|
def _delete_server(module, nova):
|
||||||
|
|
|
@ -17,14 +17,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import time
|
|
||||||
try:
|
|
||||||
from novaclient.v1_1 import client as nova_client
|
|
||||||
from novaclient import exceptions as exc
|
|
||||||
HAS_NOVACLIENT = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_NOVACLIENT = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['deprecated'],
|
ANSIBLE_METADATA = {'status': ['deprecated'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -105,6 +97,15 @@ EXAMPLES = '''
|
||||||
name: ansible_key
|
name: ansible_key
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import time
|
||||||
|
try:
|
||||||
|
from novaclient.v1_1 import client as nova_client
|
||||||
|
from novaclient import exceptions as exc
|
||||||
|
HAS_NOVACLIENT = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_NOVACLIENT = False
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = openstack_argument_spec()
|
argument_spec = openstack_argument_spec()
|
||||||
argument_spec.update(dict(
|
argument_spec.update(dict(
|
||||||
|
|
|
@ -16,19 +16,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import time
|
|
||||||
|
|
||||||
try:
|
|
||||||
from novaclient.v1_1 import client as nova_client
|
|
||||||
try:
|
|
||||||
from neutronclient.neutron import client
|
|
||||||
except ImportError:
|
|
||||||
from quantumclient.quantum import client
|
|
||||||
from keystoneclient.v2_0 import client as ksclient
|
|
||||||
HAVE_DEPS = True
|
|
||||||
except ImportError:
|
|
||||||
HAVE_DEPS = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['deprecated'],
|
ANSIBLE_METADATA = {'status': ['deprecated'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -110,6 +97,20 @@ EXAMPLES = '''
|
||||||
internal_network_name: internal_network
|
internal_network_name: internal_network
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import time
|
||||||
|
|
||||||
|
try:
|
||||||
|
from novaclient.v1_1 import client as nova_client
|
||||||
|
try:
|
||||||
|
from neutronclient.neutron import client
|
||||||
|
except ImportError:
|
||||||
|
from quantumclient.quantum import client
|
||||||
|
from keystoneclient.v2_0 import client as ksclient
|
||||||
|
HAVE_DEPS = True
|
||||||
|
except ImportError:
|
||||||
|
HAVE_DEPS = False
|
||||||
|
|
||||||
|
|
||||||
def _get_ksclient(module, kwargs):
|
def _get_ksclient(module, kwargs):
|
||||||
try:
|
try:
|
||||||
kclient = ksclient.Client(username=kwargs.get('login_username'),
|
kclient = ksclient.Client(username=kwargs.get('login_username'),
|
||||||
|
|
|
@ -16,18 +16,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import time
|
|
||||||
try:
|
|
||||||
from novaclient.v1_1 import client as nova_client
|
|
||||||
try:
|
|
||||||
from neutronclient.neutron import client
|
|
||||||
except ImportError:
|
|
||||||
from quantumclient.quantum import client
|
|
||||||
from keystoneclient.v2_0 import client as ksclient
|
|
||||||
HAVE_DEPS = True
|
|
||||||
except ImportError:
|
|
||||||
HAVE_DEPS = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['deprecated'],
|
ANSIBLE_METADATA = {'status': ['deprecated'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -100,6 +88,19 @@ EXAMPLES = '''
|
||||||
instance_name: vm1
|
instance_name: vm1
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import time
|
||||||
|
try:
|
||||||
|
from novaclient.v1_1 import client as nova_client
|
||||||
|
try:
|
||||||
|
from neutronclient.neutron import client
|
||||||
|
except ImportError:
|
||||||
|
from quantumclient.quantum import client
|
||||||
|
from keystoneclient.v2_0 import client as ksclient
|
||||||
|
HAVE_DEPS = True
|
||||||
|
except ImportError:
|
||||||
|
HAVE_DEPS = False
|
||||||
|
|
||||||
|
|
||||||
def _get_ksclient(module, kwargs):
|
def _get_ksclient(module, kwargs):
|
||||||
try:
|
try:
|
||||||
kclient = ksclient.Client(username=kwargs.get('login_username'),
|
kclient = ksclient.Client(username=kwargs.get('login_username'),
|
||||||
|
|
|
@ -16,16 +16,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
try:
|
|
||||||
from neutronclient.neutron import client
|
|
||||||
except ImportError:
|
|
||||||
from quantumclient.quantum import client
|
|
||||||
from keystoneclient.v2_0 import client as ksclient
|
|
||||||
HAVE_DEPS = True
|
|
||||||
except ImportError:
|
|
||||||
HAVE_DEPS = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['deprecated'],
|
ANSIBLE_METADATA = {'status': ['deprecated'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -139,9 +129,20 @@ EXAMPLES = '''
|
||||||
login_tenant_name: admin
|
login_tenant_name: admin
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
try:
|
||||||
|
from neutronclient.neutron import client
|
||||||
|
except ImportError:
|
||||||
|
from quantumclient.quantum import client
|
||||||
|
from keystoneclient.v2_0 import client as ksclient
|
||||||
|
HAVE_DEPS = True
|
||||||
|
except ImportError:
|
||||||
|
HAVE_DEPS = False
|
||||||
|
|
||||||
_os_keystone = None
|
_os_keystone = None
|
||||||
_os_tenant_id = None
|
_os_tenant_id = None
|
||||||
|
|
||||||
|
|
||||||
def _get_ksclient(module, kwargs):
|
def _get_ksclient(module, kwargs):
|
||||||
try:
|
try:
|
||||||
kclient = ksclient.Client(username=kwargs.get('login_username'),
|
kclient = ksclient.Client(username=kwargs.get('login_username'),
|
||||||
|
|
|
@ -16,16 +16,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
try:
|
|
||||||
from neutronclient.neutron import client
|
|
||||||
except ImportError:
|
|
||||||
from quantumclient.quantum import client
|
|
||||||
from keystoneclient.v2_0 import client as ksclient
|
|
||||||
HAVE_DEPS = True
|
|
||||||
except ImportError:
|
|
||||||
HAVE_DEPS = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['deprecated'],
|
ANSIBLE_METADATA = {'status': ['deprecated'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -101,9 +91,20 @@ EXAMPLES = '''
|
||||||
name: router1
|
name: router1
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
try:
|
||||||
|
from neutronclient.neutron import client
|
||||||
|
except ImportError:
|
||||||
|
from quantumclient.quantum import client
|
||||||
|
from keystoneclient.v2_0 import client as ksclient
|
||||||
|
HAVE_DEPS = True
|
||||||
|
except ImportError:
|
||||||
|
HAVE_DEPS = False
|
||||||
|
|
||||||
_os_keystone = None
|
_os_keystone = None
|
||||||
_os_tenant_id = None
|
_os_tenant_id = None
|
||||||
|
|
||||||
|
|
||||||
def _get_ksclient(module, kwargs):
|
def _get_ksclient(module, kwargs):
|
||||||
try:
|
try:
|
||||||
kclient = ksclient.Client(username=kwargs.get('login_username'),
|
kclient = ksclient.Client(username=kwargs.get('login_username'),
|
||||||
|
|
|
@ -16,16 +16,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
try:
|
|
||||||
from neutronclient.neutron import client
|
|
||||||
except ImportError:
|
|
||||||
from quantumclient.quantum import client
|
|
||||||
from keystoneclient.v2_0 import client as ksclient
|
|
||||||
HAVE_DEPS = True
|
|
||||||
except ImportError:
|
|
||||||
HAVE_DEPS = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['deprecated'],
|
ANSIBLE_METADATA = {'status': ['deprecated'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -97,7 +87,19 @@ EXAMPLES = '''
|
||||||
network_name: external_network
|
network_name: external_network
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
try:
|
||||||
|
from neutronclient.neutron import client
|
||||||
|
except ImportError:
|
||||||
|
from quantumclient.quantum import client
|
||||||
|
from keystoneclient.v2_0 import client as ksclient
|
||||||
|
HAVE_DEPS = True
|
||||||
|
except ImportError:
|
||||||
|
HAVE_DEPS = False
|
||||||
|
|
||||||
_os_keystone = None
|
_os_keystone = None
|
||||||
|
|
||||||
|
|
||||||
def _get_ksclient(module, kwargs):
|
def _get_ksclient(module, kwargs):
|
||||||
try:
|
try:
|
||||||
kclient = ksclient.Client(username=kwargs.get('login_username'),
|
kclient = ksclient.Client(username=kwargs.get('login_username'),
|
||||||
|
|
|
@ -16,16 +16,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
try:
|
|
||||||
from neutronclient.neutron import client
|
|
||||||
except ImportError:
|
|
||||||
from quantumclient.quantum import client
|
|
||||||
from keystoneclient.v2_0 import client as ksclient
|
|
||||||
HAVE_DEPS = True
|
|
||||||
except ImportError:
|
|
||||||
HAVE_DEPS = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['deprecated'],
|
ANSIBLE_METADATA = {'status': ['deprecated'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -103,10 +93,20 @@ EXAMPLES = '''
|
||||||
subnet_name: t1subnet
|
subnet_name: t1subnet
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
try:
|
||||||
|
from neutronclient.neutron import client
|
||||||
|
except ImportError:
|
||||||
|
from quantumclient.quantum import client
|
||||||
|
from keystoneclient.v2_0 import client as ksclient
|
||||||
|
HAVE_DEPS = True
|
||||||
|
except ImportError:
|
||||||
|
HAVE_DEPS = False
|
||||||
|
|
||||||
_os_keystone = None
|
_os_keystone = None
|
||||||
_os_tenant_id = None
|
_os_tenant_id = None
|
||||||
|
|
||||||
|
|
||||||
def _get_ksclient(module, kwargs):
|
def _get_ksclient(module, kwargs):
|
||||||
try:
|
try:
|
||||||
kclient = ksclient.Client(username=kwargs.get('login_username'),
|
kclient = ksclient.Client(username=kwargs.get('login_username'),
|
||||||
|
|
|
@ -16,16 +16,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
try:
|
|
||||||
from neutronclient.neutron import client
|
|
||||||
except ImportError:
|
|
||||||
from quantumclient.quantum import client
|
|
||||||
from keystoneclient.v2_0 import client as ksclient
|
|
||||||
HAVE_DEPS = True
|
|
||||||
except ImportError:
|
|
||||||
HAVE_DEPS = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['deprecated'],
|
ANSIBLE_METADATA = {'status': ['deprecated'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -139,10 +129,21 @@ EXAMPLES = '''
|
||||||
cidr: 192.168.0.0/24
|
cidr: 192.168.0.0/24
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
try:
|
||||||
|
from neutronclient.neutron import client
|
||||||
|
except ImportError:
|
||||||
|
from quantumclient.quantum import client
|
||||||
|
from keystoneclient.v2_0 import client as ksclient
|
||||||
|
HAVE_DEPS = True
|
||||||
|
except ImportError:
|
||||||
|
HAVE_DEPS = False
|
||||||
|
|
||||||
_os_keystone = None
|
_os_keystone = None
|
||||||
_os_tenant_id = None
|
_os_tenant_id = None
|
||||||
_os_network_id = None
|
_os_network_id = None
|
||||||
|
|
||||||
|
|
||||||
def _get_ksclient(module, kwargs):
|
def _get_ksclient(module, kwargs):
|
||||||
try:
|
try:
|
||||||
kclient = ksclient.Client(username=kwargs.get('login_username'),
|
kclient = ksclient.Client(username=kwargs.get('login_username'),
|
||||||
|
|
|
@ -15,13 +15,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
from shade import meta
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -50,6 +43,14 @@ EXAMPLES = '''
|
||||||
var: service_catalog
|
var: service_catalog
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
from shade import meta
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
argument_spec = openstack_full_argument_spec()
|
argument_spec = openstack_full_argument_spec()
|
||||||
|
|
|
@ -15,9 +15,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import os_client_config
|
|
||||||
from os_client_config import exceptions
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -56,6 +53,9 @@ EXAMPLES = '''
|
||||||
- mordred
|
- mordred
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import os_client_config
|
||||||
|
from os_client_config import exceptions
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
module = AnsibleModule(argument_spec=dict(
|
module = AnsibleModule(argument_spec=dict(
|
||||||
|
|
|
@ -15,17 +15,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import re
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
from distutils.version import StrictVersion
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -185,6 +174,16 @@ openstack_flavors:
|
||||||
sample: true
|
sample: true
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import re
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
from distutils.version import StrictVersion
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = openstack_full_argument_spec(
|
argument_spec = openstack_full_argument_spec(
|
||||||
|
|
|
@ -15,17 +15,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
from shade import meta
|
|
||||||
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
from distutils.version import StrictVersion
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -141,6 +130,16 @@ EXAMPLES = '''
|
||||||
server: cattle001
|
server: cattle001
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
from shade import meta
|
||||||
|
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
from distutils.version import StrictVersion
|
||||||
|
|
||||||
|
|
||||||
def _get_floating_ip(cloud, floating_ip_address):
|
def _get_floating_ip(cloud, floating_ip_address):
|
||||||
f_ips = cloud.search_floating_ips(
|
f_ips = cloud.search_floating_ips(
|
||||||
|
|
|
@ -14,13 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -101,6 +94,12 @@ group:
|
||||||
sample: "default"
|
sample: "default"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def _system_state_change(state, description, group):
|
def _system_state_change(state, description, group):
|
||||||
if state == 'present' and not group:
|
if state == 'present' and not group:
|
||||||
|
|
|
@ -17,12 +17,6 @@
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
#TODO(mordred): we need to support "location"(v1) and "locations"(v2)
|
#TODO(mordred): we need to support "location"(v1) and "locations"(v2)
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
|
@ -121,6 +115,12 @@ EXAMPLES = '''
|
||||||
distro: ubuntu
|
distro: ubuntu
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
|
|
|
@ -15,12 +15,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -136,6 +130,12 @@ openstack_image:
|
||||||
type: int
|
type: int
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
|
|
|
@ -16,13 +16,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
import jsonpatch
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -152,6 +145,14 @@ EXAMPLES = '''
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
import jsonpatch
|
||||||
|
|
||||||
|
|
||||||
def _parse_properties(module):
|
def _parse_properties(module):
|
||||||
p = module.params['properties']
|
p = module.params['properties']
|
||||||
|
|
|
@ -16,14 +16,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
from distutils.version import StrictVersion
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -100,6 +92,14 @@ EXAMPLES = '''
|
||||||
name: "testnode1"
|
name: "testnode1"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
from distutils.version import StrictVersion
|
||||||
|
|
||||||
|
|
||||||
def _choose_id_value(module):
|
def _choose_id_value(module):
|
||||||
if module.params['uuid']:
|
if module.params['uuid']:
|
||||||
|
|
|
@ -16,14 +16,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
from distutils.version import StrictVersion
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -133,6 +125,14 @@ os_ironic_node:
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
from distutils.version import StrictVersion
|
||||||
|
|
||||||
|
|
||||||
def _choose_id_value(module):
|
def _choose_id_value(module):
|
||||||
if module.params['uuid']:
|
if module.params['uuid']:
|
||||||
|
|
|
@ -17,14 +17,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -98,6 +90,12 @@ private_key:
|
||||||
type: string
|
type: string
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def _system_state_change(module, keypair):
|
def _system_state_change(module, keypair):
|
||||||
state = module.params['state']
|
state = module.params['state']
|
||||||
|
|
|
@ -14,13 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -105,6 +98,13 @@ id:
|
||||||
sample: "474acfe5-be34-494c-b339-50f06aa143e4"
|
sample: "474acfe5-be34-494c-b339-50f06aa143e4"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def _needs_update(module, domain):
|
def _needs_update(module, domain):
|
||||||
if module.params['description'] is not None and \
|
if module.params['description'] is not None and \
|
||||||
domain.description != module.params['description']:
|
domain.description != module.params['description']:
|
||||||
|
|
|
@ -14,13 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -99,6 +92,13 @@ openstack_domains:
|
||||||
type: bool
|
type: bool
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
argument_spec = openstack_full_argument_spec(
|
argument_spec = openstack_full_argument_spec(
|
||||||
|
|
|
@ -14,13 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -79,6 +72,12 @@ role:
|
||||||
sample: "demo"
|
sample: "demo"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def _system_state_change(state, role):
|
def _system_state_change(state, role):
|
||||||
if state == 'present' and not role:
|
if state == 'present' and not role:
|
||||||
|
|
|
@ -14,14 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
from distutils.version import StrictVersion
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -115,6 +107,14 @@ id:
|
||||||
sample: "3292f020780b4d5baf27ff7e1d224c44"
|
sample: "3292f020780b4d5baf27ff7e1d224c44"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
from distutils.version import StrictVersion
|
||||||
|
|
||||||
|
|
||||||
def _needs_update(module, service):
|
def _needs_update(module, service):
|
||||||
if service.enabled != module.params['enabled']:
|
if service.enabled != module.params['enabled']:
|
||||||
|
|
|
@ -16,15 +16,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
from distutils.version import StrictVersion
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -163,6 +154,14 @@ network:
|
||||||
sample: 101
|
sample: 101
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
from distutils.version import StrictVersion
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = openstack_full_argument_spec(
|
argument_spec = openstack_full_argument_spec(
|
||||||
|
|
|
@ -15,12 +15,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -126,6 +120,13 @@ openstack_networks:
|
||||||
type: boolean
|
type: boolean
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
argument_spec = openstack_full_argument_spec(
|
argument_spec = openstack_full_argument_spec(
|
||||||
|
|
|
@ -15,12 +15,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -157,6 +151,12 @@ flavor:
|
||||||
sample: true
|
sample: true
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def _system_state_change(module, flavor):
|
def _system_state_change(module, flavor):
|
||||||
state = module.params['state']
|
state = module.params['state']
|
||||||
|
|
|
@ -14,13 +14,9 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
import shade
|
'supported_by': 'community',
|
||||||
HAS_SHADE = True
|
'version': '1.0'}
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
from distutils.version import StrictVersion
|
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
|
@ -80,6 +76,15 @@ RETURN = '''
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
from distutils.version import StrictVersion
|
||||||
|
|
||||||
|
|
||||||
def _needs_update(module, aggregate):
|
def _needs_update(module, aggregate):
|
||||||
new_metadata = (module.params['metadata'] or {})
|
new_metadata = (module.params['metadata'] or {})
|
||||||
new_metadata['availability_zone'] = module.params['availability_zone']
|
new_metadata['availability_zone'] = module.params['availability_zone']
|
||||||
|
|
|
@ -16,13 +16,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -79,6 +72,12 @@ EXAMPLES = '''
|
||||||
container: config
|
container: config
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def process_object(
|
def process_object(
|
||||||
cloud_obj, container, name, filename, container_access, **kwargs):
|
cloud_obj, container, name, filename, container_access, **kwargs):
|
||||||
|
|
|
@ -15,13 +15,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -211,6 +204,12 @@ admin_state_up:
|
||||||
type: bool
|
type: bool
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def _needs_update(module, port, cloud):
|
def _needs_update(module, port, cloud):
|
||||||
"""Check for differences in the updatable values.
|
"""Check for differences in the updatable values.
|
||||||
|
|
|
@ -15,12 +15,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -198,6 +192,12 @@ openstack_ports:
|
||||||
sample: "51fce036d7984ba6af4f6c849f65ef00"
|
sample: "51fce036d7984ba6af4f6c849f65ef00"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = openstack_full_argument_spec(
|
argument_spec = openstack_full_argument_spec(
|
||||||
|
|
|
@ -14,15 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
from distutils.version import StrictVersion
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -114,6 +105,15 @@ project:
|
||||||
sample: True
|
sample: True
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
from distutils.version import StrictVersion
|
||||||
|
|
||||||
|
|
||||||
def _needs_update(module, project):
|
def _needs_update(module, project):
|
||||||
keys = ('description', 'enabled')
|
keys = ('description', 'enabled')
|
||||||
for key in keys:
|
for key in keys:
|
||||||
|
|
|
@ -14,13 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -118,6 +111,13 @@ openstack_projects:
|
||||||
type: bool
|
type: bool
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
argument_spec = openstack_full_argument_spec(
|
argument_spec = openstack_full_argument_spec(
|
||||||
|
|
|
@ -14,14 +14,10 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import sys
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
|
'supported_by': 'community',
|
||||||
|
'version': '1.0'}
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
|
@ -278,6 +274,15 @@ openstack_quotas:
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def _get_volume_quotas(cloud, project):
|
def _get_volume_quotas(cloud, project):
|
||||||
|
|
||||||
return cloud.get_volume_quotas(project)
|
return cloud.get_volume_quotas(project)
|
||||||
|
|
|
@ -14,15 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
from distutils.version import StrictVersion
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -139,6 +130,14 @@ recordset:
|
||||||
sample: ['10.0.0.1']
|
sample: ['10.0.0.1']
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
from distutils.version import StrictVersion
|
||||||
|
|
||||||
|
|
||||||
def _system_state_change(state, records, description, ttl, zone, recordset):
|
def _system_state_change(state, records, description, ttl, zone, recordset):
|
||||||
if state == 'present':
|
if state == 'present':
|
||||||
|
|
|
@ -13,15 +13,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
from distutils.version import StrictVersion
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -178,6 +169,14 @@ router:
|
||||||
type: list
|
type: list
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
from distutils.version import StrictVersion
|
||||||
|
|
||||||
|
|
||||||
def _needs_update(cloud, module, router, network, internal_subnet_ids):
|
def _needs_update(cloud, module, router, network, internal_subnet_ids):
|
||||||
"""Decide if the given router needs an update.
|
"""Decide if the given router needs an update.
|
||||||
|
|
|
@ -16,13 +16,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -70,6 +63,12 @@ EXAMPLES = '''
|
||||||
description: updated description for the foo security group
|
description: updated description for the foo security group
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def _needs_update(module, secgroup):
|
def _needs_update(module, secgroup):
|
||||||
"""Check for differences in the updatable values.
|
"""Check for differences in the updatable values.
|
||||||
|
|
|
@ -16,13 +16,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -168,6 +161,12 @@ security_group_id:
|
||||||
type: string
|
type: string
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def _ports_match(protocol, module_min, module_max, rule_min, rule_max):
|
def _ports_match(protocol, module_min, module_max, rule_min, rule_max):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -18,15 +18,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
from shade import meta
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -379,6 +370,13 @@ EXAMPLES = '''
|
||||||
- music
|
- music
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
from shade import meta
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def _exit_hostvars(module, cloud, server, changed=True):
|
def _exit_hostvars(module, cloud, server, changed=True):
|
||||||
hostvars = meta.get_hostvars_from_server(cloud, server)
|
hostvars = meta.get_hostvars_from_server(cloud, server)
|
||||||
|
|
|
@ -16,15 +16,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
from shade import meta
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -86,6 +77,14 @@ EXAMPLES = '''
|
||||||
timeout: 200
|
timeout: 200
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
from shade import meta
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
_action_map = {'stop': 'SHUTOFF',
|
_action_map = {'stop': 'SHUTOFF',
|
||||||
'start': 'ACTIVE',
|
'start': 'ACTIVE',
|
||||||
'pause': 'PAUSED',
|
'pause': 'PAUSED',
|
||||||
|
|
|
@ -15,15 +15,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import fnmatch
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
from shade import meta
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -66,6 +57,15 @@ EXAMPLES = '''
|
||||||
var: openstack_servers
|
var: openstack_servers
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import fnmatch
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
from shade import meta
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
|
|
|
@ -15,13 +15,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -114,6 +107,12 @@ user_id:
|
||||||
type: string
|
type: string
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def _system_state_change(state, server_group):
|
def _system_state_change(state, server_group):
|
||||||
if state == 'present' and not server_group:
|
if state == 'present' and not server_group:
|
||||||
|
|
|
@ -16,15 +16,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
from shade import meta
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -77,6 +68,13 @@ EXAMPLES = '''
|
||||||
device: /dev/vdb
|
device: /dev/vdb
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
from shade import meta
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def _system_state_change(state, device):
|
def _system_state_change(state, device):
|
||||||
"""Check if system state would change."""
|
"""Check if system state would change."""
|
||||||
|
|
|
@ -17,14 +17,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from time import sleep
|
|
||||||
from distutils.version import StrictVersion
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -157,6 +149,15 @@ stack:
|
||||||
'updated_time': null}"
|
'updated_time': null}"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
from time import sleep
|
||||||
|
from distutils.version import StrictVersion
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def _create_stack(module, stack, cloud):
|
def _create_stack(module, stack, cloud):
|
||||||
try:
|
try:
|
||||||
stack = cloud.create_stack(module.params['name'],
|
stack = cloud.create_stack(module.params['name'],
|
||||||
|
|
|
@ -16,13 +16,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -161,6 +154,13 @@ EXAMPLES = '''
|
||||||
ipv6_address_mode: dhcpv6-stateless
|
ipv6_address_mode: dhcpv6-stateless
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def _can_update(subnet, module, cloud):
|
def _can_update(subnet, module, cloud):
|
||||||
"""Check for differences in non-updatable values"""
|
"""Check for differences in non-updatable values"""
|
||||||
network_name = module.params['network_name']
|
network_name = module.params['network_name']
|
||||||
|
|
|
@ -15,12 +15,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -139,6 +133,13 @@ openstack_subnets:
|
||||||
type: list of dicts
|
type: list of dicts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
argument_spec = openstack_full_argument_spec(
|
argument_spec = openstack_full_argument_spec(
|
||||||
|
|
|
@ -14,13 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -143,6 +136,13 @@ user:
|
||||||
sample: "demouser"
|
sample: "demouser"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def _needs_update(params_dict, user):
|
def _needs_update(params_dict, user):
|
||||||
for k, v in params_dict.items():
|
for k, v in params_dict.items():
|
||||||
if k not in ('password', 'update_password') and user[k] != v:
|
if k not in ('password', 'update_password') and user[k] != v:
|
||||||
|
|
|
@ -14,13 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -126,6 +119,13 @@ openstack_users:
|
||||||
type: string
|
type: string
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
argument_spec = openstack_full_argument_spec(
|
argument_spec = openstack_full_argument_spec(
|
||||||
|
|
|
@ -14,13 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -61,6 +54,12 @@ EXAMPLES = '''
|
||||||
group: demo
|
group: demo
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def _system_state_change(state, in_group):
|
def _system_state_change(state, in_group):
|
||||||
if state == 'present' and not in_group:
|
if state == 'present' and not in_group:
|
||||||
|
|
|
@ -14,16 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
from distutils.version import StrictVersion
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -99,6 +89,15 @@ RETURN = '''
|
||||||
#
|
#
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
from distutils.version import StrictVersion
|
||||||
|
|
||||||
|
|
||||||
def _system_state_change(state, assignment):
|
def _system_state_change(state, assignment):
|
||||||
if state == 'present' and not assignment:
|
if state == 'present' and not assignment:
|
||||||
return True
|
return True
|
||||||
|
|
|
@ -15,14 +15,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -97,6 +89,12 @@ EXAMPLES = '''
|
||||||
display_name: test_volume
|
display_name: test_volume
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
|
||||||
def _present_volume(module, cloud):
|
def _present_volume(module, cloud):
|
||||||
if cloud.volume_exists(module.params['display_name']):
|
if cloud.volume_exists(module.params['display_name']):
|
||||||
|
|
|
@ -14,15 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import shade
|
|
||||||
HAS_SHADE = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_SHADE = False
|
|
||||||
|
|
||||||
from distutils.version import StrictVersion
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -138,6 +129,14 @@ zone:
|
||||||
sample: []
|
sample: []
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import shade
|
||||||
|
HAS_SHADE = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_SHADE = False
|
||||||
|
|
||||||
|
from distutils.version import StrictVersion
|
||||||
|
|
||||||
|
|
||||||
def _system_state_change(state, email, description, ttl, masters, zone):
|
def _system_state_change(state, email, description, ttl, masters, zone):
|
||||||
if state == 'present':
|
if state == 'present':
|
||||||
|
|
|
@ -19,25 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4.types as otypes
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
BaseModule,
|
|
||||||
check_sdk,
|
|
||||||
check_support,
|
|
||||||
create_connection,
|
|
||||||
equal,
|
|
||||||
ovirt_full_argument_spec,
|
|
||||||
search_by_name,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -151,6 +132,24 @@ affinity_group:
|
||||||
returned: On success if affinity group is found.
|
returned: On success if affinity group is found.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4.types as otypes
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
BaseModule,
|
||||||
|
check_sdk,
|
||||||
|
check_support,
|
||||||
|
create_connection,
|
||||||
|
equal,
|
||||||
|
ovirt_full_argument_spec,
|
||||||
|
search_by_name,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class AffinityGroupsModule(BaseModule):
|
class AffinityGroupsModule(BaseModule):
|
||||||
|
|
||||||
|
|
|
@ -19,23 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4.types as otypes
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from collections import defaultdict
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
BaseModule,
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
ovirt_full_argument_spec,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -109,6 +92,22 @@ affinity_label:
|
||||||
returned: On success if affinity label is found.
|
returned: On success if affinity label is found.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4.types as otypes
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
from collections import defaultdict
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
BaseModule,
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
ovirt_full_argument_spec,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class AffinityLabelsModule(BaseModule):
|
class AffinityLabelsModule(BaseModule):
|
||||||
|
|
||||||
|
|
|
@ -19,18 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import fnmatch
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
get_dict_of_struct,
|
|
||||||
ovirt_facts_full_argument_spec,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -100,6 +88,17 @@ ovirt_affinity_labels:
|
||||||
type: list
|
type: list
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import fnmatch
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
get_dict_of_struct,
|
||||||
|
ovirt_facts_full_argument_spec,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = ovirt_facts_full_argument_spec(
|
argument_spec = ovirt_facts_full_argument_spec(
|
||||||
|
|
|
@ -19,17 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4 as sdk
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import check_sdk
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -171,6 +160,16 @@ ovirt_auth:
|
||||||
sample: False
|
sample: False
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4 as sdk
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import check_sdk
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
|
|
|
@ -19,24 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4.types as otypes
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
BaseModule,
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
equal,
|
|
||||||
ovirt_full_argument_spec,
|
|
||||||
search_by_name,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -276,6 +258,23 @@ cluster:
|
||||||
returned: On success if cluster is found.
|
returned: On success if cluster is found.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4.types as otypes
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
BaseModule,
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
equal,
|
||||||
|
ovirt_full_argument_spec,
|
||||||
|
search_by_name,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class ClustersModule(BaseModule):
|
class ClustersModule(BaseModule):
|
||||||
|
|
||||||
|
|
|
@ -19,17 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
get_dict_of_struct,
|
|
||||||
ovirt_facts_full_argument_spec,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -73,6 +62,16 @@ ovirt_clusters:
|
||||||
type: list
|
type: list
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
get_dict_of_struct,
|
||||||
|
ovirt_facts_full_argument_spec,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = ovirt_facts_full_argument_spec(
|
argument_spec = ovirt_facts_full_argument_spec(
|
||||||
|
|
|
@ -19,25 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4.types as otypes
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
BaseModule,
|
|
||||||
check_sdk,
|
|
||||||
check_params,
|
|
||||||
create_connection,
|
|
||||||
equal,
|
|
||||||
ovirt_full_argument_spec,
|
|
||||||
search_by_name,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -115,6 +96,24 @@ data_center:
|
||||||
returned: "On success if datacenter is found."
|
returned: "On success if datacenter is found."
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4.types as otypes
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
BaseModule,
|
||||||
|
check_sdk,
|
||||||
|
check_params,
|
||||||
|
create_connection,
|
||||||
|
equal,
|
||||||
|
ovirt_full_argument_spec,
|
||||||
|
search_by_name,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class DatacentersModule(BaseModule):
|
class DatacentersModule(BaseModule):
|
||||||
|
|
||||||
|
|
|
@ -19,17 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
get_dict_of_struct,
|
|
||||||
ovirt_facts_full_argument_spec,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -72,6 +61,16 @@ ovirt_datacenters:
|
||||||
type: list
|
type: list
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
get_dict_of_struct,
|
||||||
|
ovirt_facts_full_argument_spec,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = ovirt_facts_full_argument_spec(
|
argument_spec = ovirt_facts_full_argument_spec(
|
||||||
|
|
|
@ -19,38 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import os
|
|
||||||
import time
|
|
||||||
import traceback
|
|
||||||
import ssl
|
|
||||||
|
|
||||||
from httplib import HTTPSConnection
|
|
||||||
|
|
||||||
try:
|
|
||||||
from urllib.parse import urlparse
|
|
||||||
except ImportError:
|
|
||||||
from urlparse import urlparse
|
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4.types as otypes
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
BaseModule,
|
|
||||||
check_sdk,
|
|
||||||
check_params,
|
|
||||||
create_connection,
|
|
||||||
convert_to_bytes,
|
|
||||||
equal,
|
|
||||||
follow_link,
|
|
||||||
ovirt_full_argument_spec,
|
|
||||||
search_by_name,
|
|
||||||
wait,
|
|
||||||
)
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -212,6 +180,38 @@ disk_attachment:
|
||||||
returned: "On success if disk is found and C(vm_id) or C(vm_name) was passed and VM was found."
|
returned: "On success if disk is found and C(vm_id) or C(vm_name) was passed and VM was found."
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import os
|
||||||
|
import time
|
||||||
|
import traceback
|
||||||
|
import ssl
|
||||||
|
|
||||||
|
from httplib import HTTPSConnection
|
||||||
|
|
||||||
|
try:
|
||||||
|
from urllib.parse import urlparse
|
||||||
|
except ImportError:
|
||||||
|
from urlparse import urlparse
|
||||||
|
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4.types as otypes
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
BaseModule,
|
||||||
|
check_sdk,
|
||||||
|
check_params,
|
||||||
|
create_connection,
|
||||||
|
convert_to_bytes,
|
||||||
|
equal,
|
||||||
|
follow_link,
|
||||||
|
ovirt_full_argument_spec,
|
||||||
|
search_by_name,
|
||||||
|
wait,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def _search_by_lun(disks_service, lun_id):
|
def _search_by_lun(disks_service, lun_id):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -19,24 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4.types as otypes
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
BaseModule,
|
|
||||||
check_params,
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
equal,
|
|
||||||
ovirt_full_argument_spec,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -168,6 +150,23 @@ openstack_network_provider:
|
||||||
type: dictionary
|
type: dictionary
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4.types as otypes
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
BaseModule,
|
||||||
|
check_params,
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
equal,
|
||||||
|
ovirt_full_argument_spec,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class ExternalProviderModule(BaseModule):
|
class ExternalProviderModule(BaseModule):
|
||||||
|
|
||||||
|
|
|
@ -19,18 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import fnmatch
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
get_dict_of_struct,
|
|
||||||
ovirt_facts_full_argument_spec,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -92,6 +80,17 @@ openstack_network_providers:
|
||||||
type: list
|
type: list
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import fnmatch
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
get_dict_of_struct,
|
||||||
|
ovirt_facts_full_argument_spec,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def _external_provider_service(provider_type, system_service):
|
def _external_provider_service(provider_type, system_service):
|
||||||
if provider_type == 'os_image':
|
if provider_type == 'os_image':
|
||||||
|
|
|
@ -19,24 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4.types as otypes
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
BaseModule,
|
|
||||||
check_sdk,
|
|
||||||
check_params,
|
|
||||||
create_connection,
|
|
||||||
equal,
|
|
||||||
ovirt_full_argument_spec,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -107,6 +89,23 @@ group:
|
||||||
returned: On success if group is found.
|
returned: On success if group is found.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4.types as otypes
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
BaseModule,
|
||||||
|
check_sdk,
|
||||||
|
check_params,
|
||||||
|
create_connection,
|
||||||
|
equal,
|
||||||
|
ovirt_full_argument_spec,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def _group(connection, module):
|
def _group(connection, module):
|
||||||
groups = connection.system_service().groups_service().list(
|
groups = connection.system_service().groups_service().list(
|
||||||
|
|
|
@ -19,17 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
get_dict_of_struct,
|
|
||||||
ovirt_facts_full_argument_spec,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -72,6 +61,16 @@ ovirt_groups:
|
||||||
type: list
|
type: list
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
get_dict_of_struct,
|
||||||
|
ovirt_facts_full_argument_spec,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = ovirt_facts_full_argument_spec(
|
argument_spec = ovirt_facts_full_argument_spec(
|
||||||
|
|
|
@ -19,27 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4.types as otypes
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
BaseModule,
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
equal,
|
|
||||||
get_dict_of_struct,
|
|
||||||
get_entity,
|
|
||||||
get_link_name,
|
|
||||||
ovirt_full_argument_spec,
|
|
||||||
search_by_name,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -158,6 +137,26 @@ host_nic:
|
||||||
returned: On success if host NIC is found.
|
returned: On success if host NIC is found.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4.types as otypes
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
BaseModule,
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
equal,
|
||||||
|
get_dict_of_struct,
|
||||||
|
get_entity,
|
||||||
|
get_link_name,
|
||||||
|
ovirt_full_argument_spec,
|
||||||
|
search_by_name,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class HostNetworksModule(BaseModule):
|
class HostNetworksModule(BaseModule):
|
||||||
|
|
||||||
|
|
|
@ -19,24 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4.types as otypes
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
BaseModule,
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
equal,
|
|
||||||
ovirt_full_argument_spec,
|
|
||||||
search_by_name,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -131,6 +113,23 @@ agent:
|
||||||
returned: On success if agent is found.
|
returned: On success if agent is found.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4.types as otypes
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
BaseModule,
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
equal,
|
||||||
|
ovirt_full_argument_spec,
|
||||||
|
search_by_name,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class HostModule(BaseModule):
|
class HostModule(BaseModule):
|
||||||
def build_entity(self):
|
def build_entity(self):
|
||||||
|
|
|
@ -19,27 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4.types as otypes
|
|
||||||
|
|
||||||
from ovirtsdk4.types import HostStatus as hoststate
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
BaseModule,
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
equal,
|
|
||||||
ovirt_full_argument_spec,
|
|
||||||
wait,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -178,6 +157,26 @@ host:
|
||||||
returned: On success if host is found.
|
returned: On success if host is found.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import time
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4.types as otypes
|
||||||
|
|
||||||
|
from ovirtsdk4.types import HostStatus as hoststate
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
BaseModule,
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
equal,
|
||||||
|
ovirt_full_argument_spec,
|
||||||
|
wait,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class HostsModule(BaseModule):
|
class HostsModule(BaseModule):
|
||||||
|
|
||||||
|
|
|
@ -19,17 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
get_dict_of_struct,
|
|
||||||
ovirt_facts_full_argument_spec,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -74,6 +63,16 @@ ovirt_hosts:
|
||||||
type: list
|
type: list
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
get_dict_of_struct,
|
||||||
|
ovirt_facts_full_argument_spec,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = ovirt_facts_full_argument_spec(
|
argument_spec = ovirt_facts_full_argument_spec(
|
||||||
|
|
|
@ -19,23 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4.types as otypes
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
BaseModule,
|
|
||||||
check_sdk,
|
|
||||||
equal,
|
|
||||||
create_connection,
|
|
||||||
ovirt_full_argument_spec,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -102,6 +85,22 @@ template:
|
||||||
returned: On success if MAC pool is found.
|
returned: On success if MAC pool is found.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4.types as otypes
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
BaseModule,
|
||||||
|
check_sdk,
|
||||||
|
equal,
|
||||||
|
create_connection,
|
||||||
|
ovirt_full_argument_spec,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class MACPoolModule(BaseModule):
|
class MACPoolModule(BaseModule):
|
||||||
|
|
||||||
|
|
|
@ -19,25 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4.types as otypes
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
BaseModule,
|
|
||||||
check_sdk,
|
|
||||||
check_params,
|
|
||||||
create_connection,
|
|
||||||
equal,
|
|
||||||
ovirt_full_argument_spec,
|
|
||||||
search_by_name,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -121,6 +102,24 @@ network:
|
||||||
returned: "On success if network is found."
|
returned: "On success if network is found."
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4.types as otypes
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
BaseModule,
|
||||||
|
check_sdk,
|
||||||
|
check_params,
|
||||||
|
create_connection,
|
||||||
|
equal,
|
||||||
|
ovirt_full_argument_spec,
|
||||||
|
search_by_name,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class NetworksModule(BaseModule):
|
class NetworksModule(BaseModule):
|
||||||
|
|
||||||
|
|
|
@ -19,17 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
get_dict_of_struct,
|
|
||||||
ovirt_facts_full_argument_spec,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -74,6 +63,16 @@ ovirt_networks:
|
||||||
type: list
|
type: list
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
get_dict_of_struct,
|
||||||
|
ovirt_facts_full_argument_spec,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = ovirt_facts_full_argument_spec(
|
argument_spec = ovirt_facts_full_argument_spec(
|
||||||
|
|
|
@ -19,25 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4.types as otypes
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
BaseModule,
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
equal,
|
|
||||||
get_link_name,
|
|
||||||
ovirt_full_argument_spec,
|
|
||||||
search_by_name,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -127,6 +108,24 @@ nic:
|
||||||
returned: On success if network interface is found.
|
returned: On success if network interface is found.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4.types as otypes
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
BaseModule,
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
equal,
|
||||||
|
get_link_name,
|
||||||
|
ovirt_full_argument_spec,
|
||||||
|
search_by_name,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class VmNicsModule(BaseModule):
|
class VmNicsModule(BaseModule):
|
||||||
|
|
||||||
|
|
|
@ -19,19 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import fnmatch
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
get_dict_of_struct,
|
|
||||||
ovirt_facts_full_argument_spec,
|
|
||||||
search_by_name,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -78,6 +65,18 @@ ovirt_nics:
|
||||||
type: list
|
type: list
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import fnmatch
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
get_dict_of_struct,
|
||||||
|
ovirt_facts_full_argument_spec,
|
||||||
|
search_by_name,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = ovirt_facts_full_argument_spec(
|
argument_spec = ovirt_facts_full_argument_spec(
|
||||||
|
|
|
@ -19,27 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4.types as otypes
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
BaseModule,
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
equal,
|
|
||||||
follow_link,
|
|
||||||
get_link_name,
|
|
||||||
ovirt_full_argument_spec,
|
|
||||||
search_by_attributes,
|
|
||||||
search_by_name,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -144,6 +123,26 @@ permission:
|
||||||
returned: On success if permission is found.
|
returned: On success if permission is found.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4.types as otypes
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
BaseModule,
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
equal,
|
||||||
|
follow_link,
|
||||||
|
get_link_name,
|
||||||
|
ovirt_full_argument_spec,
|
||||||
|
search_by_attributes,
|
||||||
|
search_by_name,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def _objects_service(connection, object_type):
|
def _objects_service(connection, object_type):
|
||||||
if object_type == 'system':
|
if object_type == 'system':
|
||||||
|
|
|
@ -19,23 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4 as sdk
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
get_link_name,
|
|
||||||
ovirt_facts_full_argument_spec,
|
|
||||||
search_by_name,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -90,6 +73,22 @@ ovirt_permissions:
|
||||||
type: list
|
type: list
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4 as sdk
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
get_link_name,
|
||||||
|
ovirt_facts_full_argument_spec,
|
||||||
|
search_by_name,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def _permissions_service(connection, module):
|
def _permissions_service(connection, module):
|
||||||
if module.params['user_name']:
|
if module.params['user_name']:
|
||||||
|
|
|
@ -19,25 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4.types as otypes
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
BaseModule,
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
equal,
|
|
||||||
get_link_name,
|
|
||||||
ovirt_full_argument_spec,
|
|
||||||
search_by_name,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -145,6 +126,24 @@ quota:
|
||||||
returned: On success if quota is found.
|
returned: On success if quota is found.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4.types as otypes
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
BaseModule,
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
equal,
|
||||||
|
get_link_name,
|
||||||
|
ovirt_full_argument_spec,
|
||||||
|
search_by_name,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class QuotasModule(BaseModule):
|
class QuotasModule(BaseModule):
|
||||||
|
|
||||||
|
|
|
@ -19,19 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import fnmatch
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
get_dict_of_struct,
|
|
||||||
ovirt_facts_full_argument_spec,
|
|
||||||
search_by_name,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -77,6 +64,18 @@ ovirt_quotas:
|
||||||
type: list
|
type: list
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import fnmatch
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
get_dict_of_struct,
|
||||||
|
ovirt_facts_full_argument_spec,
|
||||||
|
search_by_name,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = ovirt_facts_full_argument_spec(
|
argument_spec = ovirt_facts_full_argument_spec(
|
||||||
|
|
|
@ -19,28 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4.types as otypes
|
|
||||||
|
|
||||||
from ovirtsdk4.types import StorageDomainStatus as sdstate
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
BaseModule,
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
equal,
|
|
||||||
get_entity,
|
|
||||||
ovirt_full_argument_spec,
|
|
||||||
search_by_name,
|
|
||||||
wait,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -204,6 +182,27 @@ storage_domain:
|
||||||
returned: On success if storage domain is found.
|
returned: On success if storage domain is found.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4.types as otypes
|
||||||
|
|
||||||
|
from ovirtsdk4.types import StorageDomainStatus as sdstate
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
BaseModule,
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
equal,
|
||||||
|
get_entity,
|
||||||
|
ovirt_full_argument_spec,
|
||||||
|
search_by_name,
|
||||||
|
wait,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class StorageDomainModule(BaseModule):
|
class StorageDomainModule(BaseModule):
|
||||||
|
|
||||||
|
|
|
@ -19,17 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
get_dict_of_struct,
|
|
||||||
ovirt_facts_full_argument_spec,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -74,6 +63,16 @@ ovirt_storage_domains:
|
||||||
type: list
|
type: list
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
get_dict_of_struct,
|
||||||
|
ovirt_facts_full_argument_spec,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = ovirt_facts_full_argument_spec(
|
argument_spec = ovirt_facts_full_argument_spec(
|
||||||
|
|
|
@ -19,24 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4.types as otypes
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
BaseModule,
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
equal,
|
|
||||||
ovirt_full_argument_spec,
|
|
||||||
search_by_name,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -106,6 +88,23 @@ tag:
|
||||||
returned: On success if tag is found.
|
returned: On success if tag is found.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4.types as otypes
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
BaseModule,
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
equal,
|
||||||
|
ovirt_full_argument_spec,
|
||||||
|
search_by_name,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class TagsModule(BaseModule):
|
class TagsModule(BaseModule):
|
||||||
|
|
||||||
|
|
|
@ -19,19 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import fnmatch
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
get_dict_of_struct,
|
|
||||||
ovirt_facts_full_argument_spec,
|
|
||||||
search_by_name,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -91,6 +78,18 @@ ovirt_tags:
|
||||||
type: list
|
type: list
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import fnmatch
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
get_dict_of_struct,
|
||||||
|
ovirt_facts_full_argument_spec,
|
||||||
|
search_by_name,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = ovirt_facts_full_argument_spec(
|
argument_spec = ovirt_facts_full_argument_spec(
|
||||||
|
|
|
@ -19,28 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
try:
|
|
||||||
import ovirtsdk4.types as otypes
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
BaseModule,
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
equal,
|
|
||||||
get_dict_of_struct,
|
|
||||||
get_link_name,
|
|
||||||
ovirt_full_argument_spec,
|
|
||||||
search_by_attributes,
|
|
||||||
search_by_name,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -140,6 +118,27 @@ template:
|
||||||
returned: On success if template is found.
|
returned: On success if template is found.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import time
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ovirtsdk4.types as otypes
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
BaseModule,
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
equal,
|
||||||
|
get_dict_of_struct,
|
||||||
|
get_link_name,
|
||||||
|
ovirt_full_argument_spec,
|
||||||
|
search_by_attributes,
|
||||||
|
search_by_name,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class TemplatesModule(BaseModule):
|
class TemplatesModule(BaseModule):
|
||||||
|
|
||||||
|
|
|
@ -19,17 +19,6 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.ovirt import (
|
|
||||||
check_sdk,
|
|
||||||
create_connection,
|
|
||||||
get_dict_of_struct,
|
|
||||||
ovirt_facts_full_argument_spec,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'],
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
'supported_by': 'community',
|
'supported_by': 'community',
|
||||||
'version': '1.0'}
|
'version': '1.0'}
|
||||||
|
@ -74,6 +63,16 @@ ovirt_templates:
|
||||||
type: list
|
type: list
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.ovirt import (
|
||||||
|
check_sdk,
|
||||||
|
create_connection,
|
||||||
|
get_dict_of_struct,
|
||||||
|
ovirt_facts_full_argument_spec,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = ovirt_facts_full_argument_spec(
|
argument_spec = ovirt_facts_full_argument_spec(
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue