From d119905bd521e8bc31f04ba0b86419fc96924f90 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Tue, 1 Nov 2022 20:09:31 +0100 Subject: [PATCH] Fix non-matching defaults. (#5452) (#5454) (cherry picked from commit f84a9bf932890c4770c4b765240fb66d98c4d43b) --- plugins/doc_fragments/influxdb.py | 2 ++ plugins/doc_fragments/ldap.py | 1 + plugins/doc_fragments/utm.py | 1 + plugins/modules/cloud/atomic/atomic_container.py | 1 + .../modules/cloud/dimensiondata/dimensiondata_vlan.py | 3 +++ plugins/modules/cloud/huawei/hwc_ecs_instance.py | 1 + plugins/modules/cloud/huawei/hwc_evs_disk.py | 1 + plugins/modules/cloud/huawei/hwc_network_vpc.py | 1 + plugins/modules/cloud/huawei/hwc_vpc_eip.py | 1 + .../modules/cloud/huawei/hwc_vpc_peering_connect.py | 1 + plugins/modules/cloud/huawei/hwc_vpc_port.py | 1 + plugins/modules/cloud/huawei/hwc_vpc_subnet.py | 1 + plugins/modules/cloud/linode/linode.py | 1 + plugins/modules/cloud/memset/memset_zone.py | 1 + plugins/modules/cloud/memset/memset_zone_record.py | 3 +++ plugins/modules/cloud/misc/rhevm.py | 1 + plugins/modules/cloud/misc/serverless.py | 3 ++- plugins/modules/cloud/misc/terraform.py | 1 + .../cloud/oneandone/oneandone_firewall_policy.py | 5 +++++ .../cloud/oneandone/oneandone_load_balancer.py | 5 +++++ .../cloud/oneandone/oneandone_monitoring_policy.py | 11 +++++++++++ .../cloud/oneandone/oneandone_private_network.py | 2 ++ plugins/modules/cloud/packet/packet_device.py | 1 + plugins/modules/cloud/profitbricks/profitbricks.py | 2 ++ .../modules/cloud/profitbricks/profitbricks_volume.py | 4 ++-- plugins/modules/cloud/pubnub/pubnub_blocks.py | 4 +++- plugins/modules/cloud/rackspace/rax.py | 4 ++++ plugins/modules/cloud/rackspace/rax_cbs.py | 1 + plugins/modules/cloud/rackspace/rax_clb.py | 1 + plugins/modules/cloud/rackspace/rax_files.py | 1 + plugins/modules/cloud/rackspace/rax_files_objects.py | 1 + plugins/modules/cloud/rackspace/rax_meta.py | 1 + plugins/modules/cloud/rackspace/rax_mon_check.py | 2 ++ plugins/modules/cloud/rackspace/rax_mon_entity.py | 2 ++ plugins/modules/cloud/rackspace/rax_scaling_group.py | 2 ++ plugins/modules/cloud/scaleway/scaleway_lb.py | 1 + plugins/modules/cloud/softlayer/sl_vm.py | 1 + .../cloud/spotinst/spotinst_aws_elastigroup.py | 6 ++++++ plugins/modules/cloud/univention/udm_dns_zone.py | 2 ++ plugins/modules/cloud/univention/udm_group.py | 2 ++ plugins/modules/cloud/univention/udm_user.py | 3 +++ plugins/modules/database/mssql/mssql_db.py | 2 ++ plugins/modules/files/xml.py | 1 + plugins/modules/identity/onepassword_info.py | 1 - plugins/modules/monitoring/sensu/sensu_check.py | 4 ---- plugins/modules/monitoring/statsd.py | 1 + plugins/modules/net_tools/dnsmadeeasy.py | 1 - plugins/modules/net_tools/infinity/infinity.py | 5 ----- plugins/modules/net_tools/ldap/ldap_entry.py | 1 + plugins/modules/notification/mail.py | 2 ++ plugins/modules/packaging/language/composer.py | 1 + plugins/modules/packaging/language/maven_artifact.py | 1 + plugins/modules/packaging/os/opkg.py | 1 + plugins/modules/packaging/os/pacman.py | 6 +++--- plugins/modules/packaging/os/redhat_subscription.py | 1 - plugins/modules/packaging/os/sorcery.py | 1 + .../lenovoxcc/xcc_redfish_command.py | 1 + .../remote_management/manageiq/manageiq_tenant.py | 2 +- .../remote_management/redfish/redfish_command.py | 3 +++ .../remote_management/redfish/redfish_config.py | 3 +++ .../modules/remote_management/stacki/stacki_host.py | 2 ++ plugins/modules/source_control/gitlab/gitlab_hook.py | 1 + plugins/modules/storage/zfs/zfs.py | 1 + plugins/modules/storage/zfs/zfs_facts.py | 1 + plugins/modules/system/aix_lvol.py | 2 ++ plugins/modules/system/java_cert.py | 1 - plugins/modules/system/lvg.py | 2 ++ plugins/modules/system/selinux_permissive.py | 1 + plugins/modules/web_infrastructure/jira.py | 1 + .../web_infrastructure/sophos_utm/utm_aaa_group.py | 6 ++++++ .../web_infrastructure/sophos_utm/utm_dns_host.py | 2 ++ .../sophos_utm/utm_network_interface_address.py | 1 + .../sophos_utm/utm_proxy_location.py | 3 +++ 73 files changed, 130 insertions(+), 21 deletions(-) diff --git a/plugins/doc_fragments/influxdb.py b/plugins/doc_fragments/influxdb.py index a31c84cbb1..8354e464fe 100644 --- a/plugins/doc_fragments/influxdb.py +++ b/plugins/doc_fragments/influxdb.py @@ -42,6 +42,7 @@ options: - The path on which InfluxDB server is accessible - Only available when using python-influxdb >= 5.1.0 type: str + default: '' version_added: '0.2.0' validate_certs: description: @@ -79,4 +80,5 @@ options: description: - HTTP(S) proxy to use for Requests to connect to InfluxDB server. type: dict + default: {} ''' diff --git a/plugins/doc_fragments/ldap.py b/plugins/doc_fragments/ldap.py index e79fe3a681..8bfa26b140 100644 --- a/plugins/doc_fragments/ldap.py +++ b/plugins/doc_fragments/ldap.py @@ -22,6 +22,7 @@ options: description: - The password to use with I(bind_dn). type: str + default: '' dn: required: true description: diff --git a/plugins/doc_fragments/utm.py b/plugins/doc_fragments/utm.py index 413fb49675..3dcc65d5b0 100644 --- a/plugins/doc_fragments/utm.py +++ b/plugins/doc_fragments/utm.py @@ -16,6 +16,7 @@ options: - Is needed for some modules type: dict required: false + default: {} utm_host: description: - The REST Endpoint of the Sophos UTM. diff --git a/plugins/modules/cloud/atomic/atomic_container.py b/plugins/modules/cloud/atomic/atomic_container.py index a6be44317b..6f1567281b 100644 --- a/plugins/modules/cloud/atomic/atomic_container.py +++ b/plugins/modules/cloud/atomic/atomic_container.py @@ -60,6 +60,7 @@ options: - The values specified here will be used at installation time as --set arguments for atomic install. type: list elements: str + default: [] ''' EXAMPLES = r''' diff --git a/plugins/modules/cloud/dimensiondata/dimensiondata_vlan.py b/plugins/modules/cloud/dimensiondata/dimensiondata_vlan.py index 26c621f44b..992f7a2d88 100644 --- a/plugins/modules/cloud/dimensiondata/dimensiondata_vlan.py +++ b/plugins/modules/cloud/dimensiondata/dimensiondata_vlan.py @@ -44,6 +44,7 @@ options: description: - A description of the VLAN. type: str + default: '' network_domain: description: - The Id or name of the target network domain. @@ -53,11 +54,13 @@ options: description: - The base address for the VLAN's IPv4 network (e.g. 192.168.1.0). type: str + default: '' private_ipv4_prefix_size: description: - The size of the IPv4 address space, e.g 24. - Required, if C(private_ipv4_base_address) is specified. type: int + default: 0 state: description: - The desired state for the target VLAN. diff --git a/plugins/modules/cloud/huawei/hwc_ecs_instance.py b/plugins/modules/cloud/huawei/hwc_ecs_instance.py index 3d4ba84b64..6c1def26a6 100644 --- a/plugins/modules/cloud/huawei/hwc_ecs_instance.py +++ b/plugins/modules/cloud/huawei/hwc_ecs_instance.py @@ -33,6 +33,7 @@ options: description: - The timeouts for each operations. type: dict + default: {} suboptions: create: description: diff --git a/plugins/modules/cloud/huawei/hwc_evs_disk.py b/plugins/modules/cloud/huawei/hwc_evs_disk.py index 4aec1b94db..eaeedeb465 100644 --- a/plugins/modules/cloud/huawei/hwc_evs_disk.py +++ b/plugins/modules/cloud/huawei/hwc_evs_disk.py @@ -33,6 +33,7 @@ options: description: - The timeouts for each operations. type: dict + default: {} suboptions: create: description: diff --git a/plugins/modules/cloud/huawei/hwc_network_vpc.py b/plugins/modules/cloud/huawei/hwc_network_vpc.py index f53369adcd..1d7c075117 100644 --- a/plugins/modules/cloud/huawei/hwc_network_vpc.py +++ b/plugins/modules/cloud/huawei/hwc_network_vpc.py @@ -33,6 +33,7 @@ options: description: - The timeouts for each operations. type: dict + default: {} suboptions: create: description: diff --git a/plugins/modules/cloud/huawei/hwc_vpc_eip.py b/plugins/modules/cloud/huawei/hwc_vpc_eip.py index b53395f87a..d13890bbe9 100644 --- a/plugins/modules/cloud/huawei/hwc_vpc_eip.py +++ b/plugins/modules/cloud/huawei/hwc_vpc_eip.py @@ -33,6 +33,7 @@ options: description: - The timeouts for each operations. type: dict + default: {} suboptions: create: description: diff --git a/plugins/modules/cloud/huawei/hwc_vpc_peering_connect.py b/plugins/modules/cloud/huawei/hwc_vpc_peering_connect.py index a4d5921b77..73f6579d22 100644 --- a/plugins/modules/cloud/huawei/hwc_vpc_peering_connect.py +++ b/plugins/modules/cloud/huawei/hwc_vpc_peering_connect.py @@ -34,6 +34,7 @@ options: description: - The timeouts for each operations. type: dict + default: {} suboptions: create: description: diff --git a/plugins/modules/cloud/huawei/hwc_vpc_port.py b/plugins/modules/cloud/huawei/hwc_vpc_port.py index cf0718f59b..e1efd321a9 100644 --- a/plugins/modules/cloud/huawei/hwc_vpc_port.py +++ b/plugins/modules/cloud/huawei/hwc_vpc_port.py @@ -33,6 +33,7 @@ options: description: - The timeouts for each operations. type: dict + default: {} suboptions: create: description: diff --git a/plugins/modules/cloud/huawei/hwc_vpc_subnet.py b/plugins/modules/cloud/huawei/hwc_vpc_subnet.py index ccf180502c..e606928c9b 100644 --- a/plugins/modules/cloud/huawei/hwc_vpc_subnet.py +++ b/plugins/modules/cloud/huawei/hwc_vpc_subnet.py @@ -33,6 +33,7 @@ options: description: - The timeouts for each operations. type: dict + default: {} suboptions: create: description: diff --git a/plugins/modules/cloud/linode/linode.py b/plugins/modules/cloud/linode/linode.py index c627fb705a..aaac091a6b 100644 --- a/plugins/modules/cloud/linode/linode.py +++ b/plugins/modules/cloud/linode/linode.py @@ -36,6 +36,7 @@ options: description: - Add the instance to a Display Group in Linode Manager. type: str + default: '' linode_id: description: - Unique ID of a linode server. This value is read-only in the sense that diff --git a/plugins/modules/cloud/memset/memset_zone.py b/plugins/modules/cloud/memset/memset_zone.py index 38642cdb42..e73fe67943 100644 --- a/plugins/modules/cloud/memset/memset_zone.py +++ b/plugins/modules/cloud/memset/memset_zone.py @@ -43,6 +43,7 @@ options: - The default TTL for all records created in the zone. This must be a valid int from U(https://www.memset.com/apidocs/methods_dns.html#dns.zone_create). type: int + default: 0 choices: [ 0, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400 ] force: required: false diff --git a/plugins/modules/cloud/memset/memset_zone_record.py b/plugins/modules/cloud/memset/memset_zone_record.py index 9725f73fea..e4cf9ebb7c 100644 --- a/plugins/modules/cloud/memset/memset_zone_record.py +++ b/plugins/modules/cloud/memset/memset_zone_record.py @@ -43,11 +43,13 @@ options: description: - C(SRV) and C(TXT) record priority, in the range 0 > 999 (inclusive). type: int + default: 0 record: required: false description: - The subdomain to create. type: str + default: '' type: required: true description: @@ -64,6 +66,7 @@ options: description: - The record's TTL in seconds (will inherit zone's TTL if not explicitly set). This must be a valid int from U(https://www.memset.com/apidocs/methods_dns.html#dns.zone_record_create). + default: 0 choices: [ 0, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400 ] type: int zone: diff --git a/plugins/modules/cloud/misc/rhevm.py b/plugins/modules/cloud/misc/rhevm.py index 682ef18257..55c020c468 100644 --- a/plugins/modules/cloud/misc/rhevm.py +++ b/plugins/modules/cloud/misc/rhevm.py @@ -53,6 +53,7 @@ options: description: - The RHEV/oVirt cluster in which you want you VM to start. type: str + default: '' datacenter: description: - The RHEV/oVirt datacenter in which you want you VM to start. diff --git a/plugins/modules/cloud/misc/serverless.py b/plugins/modules/cloud/misc/serverless.py index 38aeff4c00..809f57047e 100644 --- a/plugins/modules/cloud/misc/serverless.py +++ b/plugins/modules/cloud/misc/serverless.py @@ -34,6 +34,7 @@ options: - The name of the serverless framework project stage to deploy to. - This uses the serverless framework default "dev". type: str + default: '' functions: description: - A list of specific functions to deploy. @@ -41,12 +42,12 @@ options: - Deprecated parameter, it will be removed in community.general 5.0.0. type: list elements: str - default: [] region: description: - AWS region to deploy the service to. - This parameter defaults to C(us-east-1). type: str + default: '' deploy: description: - Whether or not to deploy artifacts after building them. diff --git a/plugins/modules/cloud/misc/terraform.py b/plugins/modules/cloud/misc/terraform.py index a52a3125e9..61bdfab6f1 100644 --- a/plugins/modules/cloud/misc/terraform.py +++ b/plugins/modules/cloud/misc/terraform.py @@ -89,6 +89,7 @@ options: resources selected here will also auto-include any dependencies. type: list elements: str + default: [] lock: description: - Enable statefile locking, if you use a service that accepts locks (such diff --git a/plugins/modules/cloud/oneandone/oneandone_firewall_policy.py b/plugins/modules/cloud/oneandone/oneandone_firewall_policy.py index d46ce38897..9a4b7d39e8 100644 --- a/plugins/modules/cloud/oneandone/oneandone_firewall_policy.py +++ b/plugins/modules/cloud/oneandone/oneandone_firewall_policy.py @@ -59,6 +59,7 @@ options: (port_from, port_to, and source) type: list elements: dict + default: [] add_server_ips: description: - A list of server identifiers (id or name) to be assigned to a firewall policy. @@ -66,12 +67,14 @@ options: type: list elements: str required: false + default: [] remove_server_ips: description: - A list of server IP ids to be unassigned from a firewall policy. Used in combination with update state. type: list elements: str required: false + default: [] add_rules: description: - A list of rules that will be added to an existing firewall policy. @@ -79,12 +82,14 @@ options: type: list elements: dict required: false + default: [] remove_rules: description: - A list of rule ids that will be removed from an existing firewall policy. Used in combination with update state. type: list elements: str required: false + default: [] description: description: - Firewall policy description. maxLength=256 diff --git a/plugins/modules/cloud/oneandone/oneandone_load_balancer.py b/plugins/modules/cloud/oneandone/oneandone_load_balancer.py index 5f541a878c..f4b7061668 100644 --- a/plugins/modules/cloud/oneandone/oneandone_load_balancer.py +++ b/plugins/modules/cloud/oneandone/oneandone_load_balancer.py @@ -97,6 +97,7 @@ options: port_balancer, and port_server parameters, in addition to source parameter, which is optional. type: list elements: dict + default: [] description: description: - Description of the load balancer. maxLength=256 @@ -109,12 +110,14 @@ options: type: list elements: str required: false + default: [] remove_server_ips: description: - A list of server IP ids to be unassigned from a load balancer. Used in combination with update state. type: list elements: str required: false + default: [] add_rules: description: - A list of rules that will be added to an existing load balancer. @@ -122,12 +125,14 @@ options: type: list elements: dict required: false + default: [] remove_rules: description: - A list of rule ids that will be removed from an existing load balancer. Used in combination with update state. type: list elements: str required: false + default: [] wait: description: - wait for the instance to be in state 'running' before returning diff --git a/plugins/modules/cloud/oneandone/oneandone_monitoring_policy.py b/plugins/modules/cloud/oneandone/oneandone_monitoring_policy.py index 28dd0d41c5..d27616a3ff 100644 --- a/plugins/modules/cloud/oneandone/oneandone_monitoring_policy.py +++ b/plugins/modules/cloud/oneandone/oneandone_monitoring_policy.py @@ -73,6 +73,7 @@ options: and value is used to advise when the value is exceeded. type: list elements: dict + default: [] suboptions: cpu: description: @@ -99,6 +100,7 @@ options: - Array of ports that will be monitoring. type: list elements: dict + default: [] suboptions: protocol: description: @@ -123,6 +125,7 @@ options: - Array of processes that will be monitoring. type: list elements: dict + default: [] suboptions: process: description: @@ -139,48 +142,56 @@ options: type: list elements: dict required: false + default: [] add_processes: description: - Processes to add to the monitoring policy. type: list elements: dict required: false + default: [] add_servers: description: - Servers to add to the monitoring policy. type: list elements: str required: false + default: [] remove_ports: description: - Ports to remove from the monitoring policy. type: list elements: str required: false + default: [] remove_processes: description: - Processes to remove from the monitoring policy. type: list elements: str required: false + default: [] remove_servers: description: - Servers to remove from the monitoring policy. type: list elements: str required: false + default: [] update_ports: description: - Ports to be updated on the monitoring policy. type: list elements: dict required: false + default: [] update_processes: description: - Processes to be updated on the monitoring policy. type: list elements: dict required: false + default: [] wait: description: - wait for the instance to be in state 'running' before returning diff --git a/plugins/modules/cloud/oneandone/oneandone_private_network.py b/plugins/modules/cloud/oneandone/oneandone_private_network.py index 6a16cf683e..5719d0cde9 100644 --- a/plugins/modules/cloud/oneandone/oneandone_private_network.py +++ b/plugins/modules/cloud/oneandone/oneandone_private_network.py @@ -73,11 +73,13 @@ options: - List of server identifiers (name or id) to be added to the private network. type: list elements: str + default: [] remove_members: description: - List of server identifiers (name or id) to be removed from the private network. type: list elements: str + default: [] wait: description: - wait for the instance to be in state 'running' before returning diff --git a/plugins/modules/cloud/packet/packet_device.py b/plugins/modules/cloud/packet/packet_device.py index abafa51870..e396f487ed 100644 --- a/plugins/modules/cloud/packet/packet_device.py +++ b/plugins/modules/cloud/packet/packet_device.py @@ -136,6 +136,7 @@ options: - URL of custom iPXE script for provisioning. - More about custom iPXE for Packet devices at U(https://help.packet.net/technical/infrastructure/custom-ipxe). type: str + default: '' always_pxe: description: diff --git a/plugins/modules/cloud/profitbricks/profitbricks.py b/plugins/modules/cloud/profitbricks/profitbricks.py index eccedb71f4..6902ee6b0d 100644 --- a/plugins/modules/cloud/profitbricks/profitbricks.py +++ b/plugins/modules/cloud/profitbricks/profitbricks.py @@ -37,6 +37,7 @@ options: - Public SSH keys allowing access to the virtual machine. type: list elements: str + default: [] datacenter: description: - The datacenter to provision this virtual machine. @@ -73,6 +74,7 @@ options: - list of instance ids, currently only used when state='absent' to remove instances. type: list elements: str + default: [] count: description: - The number of virtual machines to create. diff --git a/plugins/modules/cloud/profitbricks/profitbricks_volume.py b/plugins/modules/cloud/profitbricks/profitbricks_volume.py index 0cb7f0ad4d..db5c99791b 100644 --- a/plugins/modules/cloud/profitbricks/profitbricks_volume.py +++ b/plugins/modules/cloud/profitbricks/profitbricks_volume.py @@ -49,7 +49,7 @@ options: - Public SSH keys allowing access to the virtual machine. type: list elements: str - required: false + default: [] disk_type: description: - The disk type of the volume. @@ -80,7 +80,7 @@ options: - list of instance ids, currently only used when state='absent' to remove instances. type: list elements: str - required: false + default: [] subscription_user: description: - The ProfitBricks username. Overrides the PB_SUBSCRIPTION_ID environment variable. diff --git a/plugins/modules/cloud/pubnub/pubnub_blocks.py b/plugins/modules/cloud/pubnub/pubnub_blocks.py index d3b76337a3..45a69647f2 100644 --- a/plugins/modules/cloud/pubnub/pubnub_blocks.py +++ b/plugins/modules/cloud/pubnub/pubnub_blocks.py @@ -36,6 +36,7 @@ options: same play)." required: false type: str + default: '' password: description: - Password which match to account to which specified C(email) belong. @@ -43,6 +44,7 @@ options: same play)." required: false type: str + default: '' cache: description: > In case if single play use blocks management module few times it is @@ -57,7 +59,7 @@ options: manage blocks." - "User's account will be used if value not set or empty." type: str - required: false + default: '' application: description: - "Name of target PubNub application for which blocks configuration on diff --git a/plugins/modules/cloud/rackspace/rax.py b/plugins/modules/cloud/rackspace/rax.py index 8c452d9d72..efdc100773 100644 --- a/plugins/modules/cloud/rackspace/rax.py +++ b/plugins/modules/cloud/rackspace/rax.py @@ -81,17 +81,20 @@ options: default: 'no' extra_client_args: type: dict + default: {} description: - A hash of key/value pairs to be used when creating the cloudservers client. This is considered an advanced option, use it wisely and with caution. extra_create_args: type: dict + default: {} description: - A hash of key/value pairs to be used when creating a new server. This is considered an advanced option, use it wisely and with caution. files: type: dict + default: {} description: - Files to insert into the instance. remotefilename:localcontent flavor: @@ -123,6 +126,7 @@ options: - keypair meta: type: dict + default: {} description: - A hash of metadata to associate with the instance name: diff --git a/plugins/modules/cloud/rackspace/rax_cbs.py b/plugins/modules/cloud/rackspace/rax_cbs.py index abfda419ed..986785f555 100644 --- a/plugins/modules/cloud/rackspace/rax_cbs.py +++ b/plugins/modules/cloud/rackspace/rax_cbs.py @@ -25,6 +25,7 @@ options: C(name). This option requires C(pyrax>=1.9.3) meta: type: dict + default: {} description: - A hash of metadata to associate with the volume name: diff --git a/plugins/modules/cloud/rackspace/rax_clb.py b/plugins/modules/cloud/rackspace/rax_clb.py index 9160133e21..775cc749ec 100644 --- a/plugins/modules/cloud/rackspace/rax_clb.py +++ b/plugins/modules/cloud/rackspace/rax_clb.py @@ -27,6 +27,7 @@ options: default: LEAST_CONNECTIONS meta: type: dict + default: {} description: - A hash of metadata to associate with the instance name: diff --git a/plugins/modules/cloud/rackspace/rax_files.py b/plugins/modules/cloud/rackspace/rax_files.py index 1e1f82c85d..cf9492f5c6 100644 --- a/plugins/modules/cloud/rackspace/rax_files.py +++ b/plugins/modules/cloud/rackspace/rax_files.py @@ -27,6 +27,7 @@ options: - The container to use for container or metadata operations. meta: type: dict + default: {} description: - A hash of items to set as metadata values on a container private: diff --git a/plugins/modules/cloud/rackspace/rax_files_objects.py b/plugins/modules/cloud/rackspace/rax_files_objects.py index 3269fe0512..ffe1c45bda 100644 --- a/plugins/modules/cloud/rackspace/rax_files_objects.py +++ b/plugins/modules/cloud/rackspace/rax_files_objects.py @@ -39,6 +39,7 @@ options: Requires an integer, specifying expiration in seconds meta: type: dict + default: {} description: - A hash of items to set as metadata values on an uploaded file or folder method: diff --git a/plugins/modules/cloud/rackspace/rax_meta.py b/plugins/modules/cloud/rackspace/rax_meta.py index 3504181f19..ccea0ec203 100644 --- a/plugins/modules/cloud/rackspace/rax_meta.py +++ b/plugins/modules/cloud/rackspace/rax_meta.py @@ -29,6 +29,7 @@ options: - Server name to modify metadata for meta: type: dict + default: {} description: - A hash of metadata to associate with the instance author: "Matt Martz (@sivel)" diff --git a/plugins/modules/cloud/rackspace/rax_mon_check.py b/plugins/modules/cloud/rackspace/rax_mon_check.py index 04501b27b0..bd596bf007 100644 --- a/plugins/modules/cloud/rackspace/rax_mon_check.py +++ b/plugins/modules/cloud/rackspace/rax_mon_check.py @@ -86,6 +86,7 @@ options: I(ip_addresses) hash to resolve an IP address to target. details: type: dict + default: {} description: - Additional details specific to the check type. Must be a hash of strings between 1 and 255 characters long, or an array or object containing 0 to @@ -97,6 +98,7 @@ options: default: false metadata: type: dict + default: {} description: - Hash of arbitrary key-value pairs to accompany this check if it fires. Keys and values must be strings between 1 and 255 characters long. diff --git a/plugins/modules/cloud/rackspace/rax_mon_entity.py b/plugins/modules/cloud/rackspace/rax_mon_entity.py index 2f8cdeefd8..7245f7088c 100644 --- a/plugins/modules/cloud/rackspace/rax_mon_entity.py +++ b/plugins/modules/cloud/rackspace/rax_mon_entity.py @@ -37,6 +37,7 @@ options: bound. Necessary to collect C(agent.) rax_mon_checks against this entity. named_ip_addresses: type: dict + default: {} description: - Hash of IP addresses that may be referenced by name by rax_mon_checks added to this entity. Must be a dictionary of with keys that are names @@ -44,6 +45,7 @@ options: addresses. metadata: type: dict + default: {} description: - Hash of arbitrary C(name), C(value) pairs that are passed to associated rax_mon_alarms. Names and values must all be between 1 and 255 characters diff --git a/plugins/modules/cloud/rackspace/rax_scaling_group.py b/plugins/modules/cloud/rackspace/rax_scaling_group.py index 4080e4c6a4..b3be75080b 100644 --- a/plugins/modules/cloud/rackspace/rax_scaling_group.py +++ b/plugins/modules/cloud/rackspace/rax_scaling_group.py @@ -36,6 +36,7 @@ options: - manual files: type: dict + default: {} description: - 'Files to insert into the instance. Hash of C(remotepath: localpath)' flavor: @@ -65,6 +66,7 @@ options: required: true meta: type: dict + default: {} description: - A hash of metadata to associate with the instance min_entities: diff --git a/plugins/modules/cloud/scaleway/scaleway_lb.py b/plugins/modules/cloud/scaleway/scaleway_lb.py index 2112ae4411..f440a4a6a2 100644 --- a/plugins/modules/cloud/scaleway/scaleway_lb.py +++ b/plugins/modules/cloud/scaleway/scaleway_lb.py @@ -65,6 +65,7 @@ options: tags: type: list elements: str + default: [] description: - List of tags to apply to the load-balancer diff --git a/plugins/modules/cloud/softlayer/sl_vm.py b/plugins/modules/cloud/softlayer/sl_vm.py index 825d82e173..c25e80216a 100644 --- a/plugins/modules/cloud/softlayer/sl_vm.py +++ b/plugins/modules/cloud/softlayer/sl_vm.py @@ -142,6 +142,7 @@ options: - List of ssh keys by their Id to be assigned to a virtual instance. type: list elements: str + default: [] post_uri: description: - URL of a post provisioning script to be loaded and executed on virtual instance. diff --git a/plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py b/plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py index da8f010229..6dbb28a62a 100644 --- a/plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py +++ b/plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py @@ -502,6 +502,12 @@ options: Only works if wait_for_instances is True. type: int + do_not_update: + description: + - TODO document. + type: list + default: [] + ''' EXAMPLES = ''' # Basic configuration YAML example diff --git a/plugins/modules/cloud/univention/udm_dns_zone.py b/plugins/modules/cloud/univention/udm_dns_zone.py index f1cea87e4f..0e74cf1e33 100644 --- a/plugins/modules/cloud/univention/udm_dns_zone.py +++ b/plugins/modules/cloud/univention/udm_dns_zone.py @@ -42,11 +42,13 @@ options: nameserver: type: list elements: str + default: [] description: - List of appropriate name servers. Required if C(state=present). interfaces: type: list elements: str + default: [] description: - List of interface IP addresses, on which the server should response this zone. Required if C(state=present). diff --git a/plugins/modules/cloud/univention/udm_group.py b/plugins/modules/cloud/univention/udm_group.py index aab6e2b7bc..1177a0c000 100644 --- a/plugins/modules/cloud/univention/udm_group.py +++ b/plugins/modules/cloud/univention/udm_group.py @@ -44,11 +44,13 @@ options: - define the whole ldap position of the group, e.g. C(cn=g123m-1A,cn=classes,cn=schueler,cn=groups,ou=schule,dc=example,dc=com). type: str + default: '' ou: required: false description: - LDAP OU, e.g. school for LDAP OU C(ou=school,dc=example,dc=com). type: str + default: '' subpath: required: false description: diff --git a/plugins/modules/cloud/univention/udm_user.py b/plugins/modules/cloud/univention/udm_user.py index b0d6138fda..ea7712a59b 100644 --- a/plugins/modules/cloud/univention/udm_user.py +++ b/plugins/modules/cloud/univention/udm_user.py @@ -168,6 +168,7 @@ options: description: - List of telephone numbers. type: list + default: [] postcode: description: - Postal code of users business address. @@ -199,11 +200,13 @@ options: join." aliases: [ sambaPrivileges ] type: list + default: [] samba_user_workstations: description: - Allow the authentication only on this Microsoft Windows host. aliases: [ sambaUserWorkstations ] type: list + default: [] sambahome: description: - Windows home path, e.g. C('\\$FQDN\$USERNAME'). diff --git a/plugins/modules/database/mssql/mssql_db.py b/plugins/modules/database/mssql/mssql_db.py index e6c5f183fa..db9e3b88c6 100644 --- a/plugins/modules/database/mssql/mssql_db.py +++ b/plugins/modules/database/mssql/mssql_db.py @@ -26,10 +26,12 @@ options: description: - The username used to authenticate with type: str + default: '' login_password: description: - The password used to authenticate with type: str + default: '' login_host: description: - Host running the database diff --git a/plugins/modules/files/xml.py b/plugins/modules/files/xml.py index ae95e9c646..1983d09d8e 100644 --- a/plugins/modules/files/xml.py +++ b/plugins/modules/files/xml.py @@ -39,6 +39,7 @@ options: - The namespace C(prefix:uri) mapping for the XPath expression. - Needs to be a C(dict), not a C(list) of items. type: dict + default: {} state: description: - Set or remove an xpath selection (node(s), attribute(s)). diff --git a/plugins/modules/identity/onepassword_info.py b/plugins/modules/identity/onepassword_info.py index 6621092303..9cdba37062 100644 --- a/plugins/modules/identity/onepassword_info.py +++ b/plugins/modules/identity/onepassword_info.py @@ -85,7 +85,6 @@ options: description: - The secret key for your subdomain. - Only required for initial sign in. - default: {} required: False cli_path: type: path diff --git a/plugins/modules/monitoring/sensu/sensu_check.py b/plugins/modules/monitoring/sensu/sensu_check.py index ec43b60abe..f54a15213d 100644 --- a/plugins/modules/monitoring/sensu/sensu_check.py +++ b/plugins/modules/monitoring/sensu/sensu_check.py @@ -52,14 +52,12 @@ options: elements: str description: - List of handlers to notify when the check fails - default: [] subscribers: type: list elements: str description: - List of subscribers/channels this check should run for - See sensu_subscribers to subscribe a machine to a channel - default: [] interval: type: int description: @@ -91,7 +89,6 @@ options: elements: str description: - Other checks this check depends on, if dependencies fail handling of this check will be disabled - default: [] metric: description: - Whether the check is a metric @@ -137,7 +134,6 @@ options: description: - A hash/dictionary of custom parameters for mixing to the configuration. - You can't rewrite others module parameters using this - default: {} source: type: str description: diff --git a/plugins/modules/monitoring/statsd.py b/plugins/modules/monitoring/statsd.py index b07851641b..ca9d2d41a2 100644 --- a/plugins/modules/monitoring/statsd.py +++ b/plugins/modules/monitoring/statsd.py @@ -61,6 +61,7 @@ options: type: str description: - The prefix to add to the metric. + default: '' value: type: int required: true diff --git a/plugins/modules/net_tools/dnsmadeeasy.py b/plugins/modules/net_tools/dnsmadeeasy.py index 1d708cdce0..aa5f5a4398 100644 --- a/plugins/modules/net_tools/dnsmadeeasy.py +++ b/plugins/modules/net_tools/dnsmadeeasy.py @@ -126,7 +126,6 @@ options: description: - Name or id of the contact list that the monitor will notify. - The default C('') means the Account Owner. - default: '' type: str httpFqdn: diff --git a/plugins/modules/net_tools/infinity/infinity.py b/plugins/modules/net_tools/infinity/infinity.py index bd12f85af2..24ae23f755 100644 --- a/plugins/modules/net_tools/infinity/infinity.py +++ b/plugins/modules/net_tools/infinity/infinity.py @@ -41,27 +41,22 @@ options: description: - Network ID. type: str - default: '' ip_address: description: - IP Address for a reservation or a release. type: str - default: '' network_address: description: - Network address with CIDR format (e.g., 192.168.310.0). type: str - default: '' network_size: description: - Network bitmask (e.g. 255.255.255.220) or CIDR format (e.g., /26). type: str - default: '' network_name: description: - The name of a network. type: str - default: '' network_location: description: - The parent network id for a given network. diff --git a/plugins/modules/net_tools/ldap/ldap_entry.py b/plugins/modules/net_tools/ldap/ldap_entry.py index 24e121e521..58add7f3bc 100644 --- a/plugins/modules/net_tools/ldap/ldap_entry.py +++ b/plugins/modules/net_tools/ldap/ldap_entry.py @@ -36,6 +36,7 @@ options: entries are never modified. To assert specific attribute values on an existing entry, use M(community.general.ldap_attrs) module instead. type: dict + default: {} objectClass: description: - If I(state=present), value or list of values to use when creating diff --git a/plugins/modules/notification/mail.py b/plugins/modules/notification/mail.py index 82ca6d52b2..7f1dfe3ae9 100644 --- a/plugins/modules/notification/mail.py +++ b/plugins/modules/notification/mail.py @@ -48,12 +48,14 @@ options: - This is a list, which may contain address and phrase portions. type: list elements: str + default: [] bcc: description: - The email-address(es) the mail is being 'blind' copied to. - This is a list, which may contain address and phrase portions. type: list elements: str + default: [] subject: description: - The subject of the email being sent. diff --git a/plugins/modules/packaging/language/composer.py b/plugins/modules/packaging/language/composer.py index 86fe7bdea3..e287cafb33 100644 --- a/plugins/modules/packaging/language/composer.py +++ b/plugins/modules/packaging/language/composer.py @@ -30,6 +30,7 @@ options: type: str description: - Composer arguments like required package, version and so on. + default: '' executable: type: path description: diff --git a/plugins/modules/packaging/language/maven_artifact.py b/plugins/modules/packaging/language/maven_artifact.py index c184830580..4446815172 100644 --- a/plugins/modules/packaging/language/maven_artifact.py +++ b/plugins/modules/packaging/language/maven_artifact.py @@ -50,6 +50,7 @@ options: type: str description: - The maven classifier coordinate + default: '' extension: type: str description: diff --git a/plugins/modules/packaging/os/opkg.py b/plugins/modules/packaging/os/opkg.py index bede73fb88..04915dc7e5 100644 --- a/plugins/modules/packaging/os/opkg.py +++ b/plugins/modules/packaging/os/opkg.py @@ -46,6 +46,7 @@ options: - "remove" - "checksum" - "removal-of-dependent-packages" + default: "" type: str update_cache: description: diff --git a/plugins/modules/packaging/os/pacman.py b/plugins/modules/packaging/os/pacman.py index 093d6efc28..7d96efc5a3 100644 --- a/plugins/modules/packaging/os/pacman.py +++ b/plugins/modules/packaging/os/pacman.py @@ -72,7 +72,7 @@ options: extra_args: description: - Additional option to pass to pacman when enforcing C(state). - default: + default: '' type: str update_cache: @@ -91,7 +91,7 @@ options: update_cache_extra_args: description: - Additional option to pass to pacman when enforcing C(update_cache). - default: + default: '' type: str upgrade: @@ -104,7 +104,7 @@ options: upgrade_extra_args: description: - Additional option to pass to pacman when enforcing C(upgrade). - default: + default: '' type: str notes: diff --git a/plugins/modules/packaging/os/redhat_subscription.py b/plugins/modules/packaging/os/redhat_subscription.py index a52cca1bb2..6f56f1082e 100644 --- a/plugins/modules/packaging/os/redhat_subscription.py +++ b/plugins/modules/packaging/os/redhat_subscription.py @@ -151,7 +151,6 @@ options: When some attribute is not listed in the new list of attributes, the existing attribute will be removed from C(syspurpose.json) file. Unknown attributes are ignored. type: dict - default: {} suboptions: usage: description: Syspurpose attribute usage diff --git a/plugins/modules/packaging/os/sorcery.py b/plugins/modules/packaging/os/sorcery.py index 347413fc9d..03b4243731 100644 --- a/plugins/modules/packaging/os/sorcery.py +++ b/plugins/modules/packaging/os/sorcery.py @@ -75,6 +75,7 @@ options: - especially useful for SCM and rsync grimoires - makes sense only in pair with C(update_cache) type: int + default: 0 ''' diff --git a/plugins/modules/remote_management/lenovoxcc/xcc_redfish_command.py b/plugins/modules/remote_management/lenovoxcc/xcc_redfish_command.py index 7fc207feee..b12b62ad29 100644 --- a/plugins/modules/remote_management/lenovoxcc/xcc_redfish_command.py +++ b/plugins/modules/remote_management/lenovoxcc/xcc_redfish_command.py @@ -68,6 +68,7 @@ options: - The list of media types appropriate for the image. type: list elements: str + default: [] image_url: description: - The URL of the image to insert or eject. diff --git a/plugins/modules/remote_management/manageiq/manageiq_tenant.py b/plugins/modules/remote_management/manageiq/manageiq_tenant.py index 58c2e1ed71..fb7b59744d 100644 --- a/plugins/modules/remote_management/manageiq/manageiq_tenant.py +++ b/plugins/modules/remote_management/manageiq/manageiq_tenant.py @@ -79,7 +79,7 @@ options: - ' - C(vms_allocated) (int): use null to remove the quota.' - ' - C(templates_allocated) (int): use null to remove the quota.' required: false - default: null + default: {} ''' EXAMPLES = ''' diff --git a/plugins/modules/remote_management/redfish/redfish_command.py b/plugins/modules/remote_management/redfish/redfish_command.py index 26dfee6455..7565c62548 100644 --- a/plugins/modules/remote_management/redfish/redfish_command.py +++ b/plugins/modules/remote_management/redfish/redfish_command.py @@ -115,6 +115,7 @@ options: description: - Properties of account service to update. type: dict + default: {} version_added: '0.2.0' resource_id: required: false @@ -140,6 +141,7 @@ options: - List of target resource URIs to apply the update to. type: list elements: str + default: [] version_added: '0.2.0' update_creds: required: false @@ -171,6 +173,7 @@ options: - List of media types appropriate for the image. type: list elements: str + default: [] image_url: required: false description: diff --git a/plugins/modules/remote_management/redfish/redfish_config.py b/plugins/modules/remote_management/redfish/redfish_config.py index 9c59e29955..c635bebb40 100644 --- a/plugins/modules/remote_management/redfish/redfish_config.py +++ b/plugins/modules/remote_management/redfish/redfish_config.py @@ -71,6 +71,7 @@ options: description: - Setting dict of manager services to update. type: dict + default: {} version_added: '0.2.0' resource_id: required: false @@ -90,6 +91,7 @@ options: description: - Setting dict of EthernetInterface on OOB controller. type: dict + default: {} version_added: '0.2.0' strip_etag_quotes: description: @@ -105,6 +107,7 @@ options: description: - Setting dict of HostInterface on OOB controller. type: dict + default: {} version_added: '4.1.0' hostinterface_id: required: false diff --git a/plugins/modules/remote_management/stacki/stacki_host.py b/plugins/modules/remote_management/stacki/stacki_host.py index fda0c5d318..f238712b3e 100644 --- a/plugins/modules/remote_management/stacki/stacki_host.py +++ b/plugins/modules/remote_management/stacki/stacki_host.py @@ -73,12 +73,14 @@ options: - Rack to be used in host creation. - Required if I(state) is C(present) and host does not yet exist. type: int + default: 0 rank: description: - Rank to be used in host creation. - In Stacki terminology, the rank is the position of the machine in a rack. - Required if I(state) is C(present) and host does not yet exist. type: int + default: 0 network: description: - Network to be configured in the host. diff --git a/plugins/modules/source_control/gitlab/gitlab_hook.py b/plugins/modules/source_control/gitlab/gitlab_hook.py index 2b70ed1540..59ab255346 100644 --- a/plugins/modules/source_control/gitlab/gitlab_hook.py +++ b/plugins/modules/source_control/gitlab/gitlab_hook.py @@ -54,6 +54,7 @@ options: - Branch name of wildcard to trigger hook on push events type: str version_added: '0.2.0' + default: '' issues_events: description: - Trigger hook on issues events. diff --git a/plugins/modules/storage/zfs/zfs.py b/plugins/modules/storage/zfs/zfs.py index a804753a16..313644d44f 100644 --- a/plugins/modules/storage/zfs/zfs.py +++ b/plugins/modules/storage/zfs/zfs.py @@ -37,6 +37,7 @@ options: - A dictionary of zfs properties to be set. - See the zfs(8) man page for more information. type: dict + default: {} notes: - C(check_mode) is supported, but in certain situations it may report a task as changed that will not be reported as changed when C(check_mode) is disabled. diff --git a/plugins/modules/storage/zfs/zfs_facts.py b/plugins/modules/storage/zfs/zfs_facts.py index cb106de111..0e0db6dd74 100644 --- a/plugins/modules/storage/zfs/zfs_facts.py +++ b/plugins/modules/storage/zfs/zfs_facts.py @@ -51,6 +51,7 @@ options: description: - Specifies recursion depth. type: int + default: 0 ''' EXAMPLES = ''' diff --git a/plugins/modules/system/aix_lvol.py b/plugins/modules/system/aix_lvol.py index 02b4f06c5b..58eda512d9 100644 --- a/plugins/modules/system/aix_lvol.py +++ b/plugins/modules/system/aix_lvol.py @@ -61,11 +61,13 @@ options: description: - Free-form options to be passed to the mklv command. type: str + default: '' pvs: description: - A list of physical volumes e.g. C(hdisk1,hdisk2). type: list elements: str + default: [] ''' EXAMPLES = r''' diff --git a/plugins/modules/system/java_cert.py b/plugins/modules/system/java_cert.py index afeab9d9e7..bee2fec78d 100644 --- a/plugins/modules/system/java_cert.py +++ b/plugins/modules/system/java_cert.py @@ -55,7 +55,6 @@ options: description: - Password for importing from PKCS12 keystore. type: str - default: '' pkcs12_alias: description: - Alias in the PKCS12 keystore. diff --git a/plugins/modules/system/lvg.py b/plugins/modules/system/lvg.py index 47d3d6c230..75871b1679 100644 --- a/plugins/modules/system/lvg.py +++ b/plugins/modules/system/lvg.py @@ -41,6 +41,7 @@ options: description: - Additional options to pass to C(pvcreate) when creating the volume group. type: str + default: '' pvresize: description: - If C(yes), resize the physical volume to the maximum available size. @@ -51,6 +52,7 @@ options: description: - Additional options to pass to C(vgcreate) when creating the volume group. type: str + default: '' state: description: - Control if the volume group exists. diff --git a/plugins/modules/system/selinux_permissive.py b/plugins/modules/system/selinux_permissive.py index fd90475712..d694a9a32b 100644 --- a/plugins/modules/system/selinux_permissive.py +++ b/plugins/modules/system/selinux_permissive.py @@ -37,6 +37,7 @@ options: description: - Name of the SELinux policy store to use. type: str + default: '' notes: - Requires a recent version of SELinux and C(policycoreutils-python) (EL 6 or newer). requirements: [ policycoreutils-python ] diff --git a/plugins/modules/web_infrastructure/jira.py b/plugins/modules/web_infrastructure/jira.py index cd7f2ca8bf..151c30007e 100644 --- a/plugins/modules/web_infrastructure/jira.py +++ b/plugins/modules/web_infrastructure/jira.py @@ -160,6 +160,7 @@ options: and the JIRA REST API for the structure required for various fields. - When passed to comment, the data structure is merged at the first level since community.general 4.6.0. Useful to add JIRA properties for example. - Note that JIRA may not allow changing field values on specific transitions or states. + default: {} jql: required: false diff --git a/plugins/modules/web_infrastructure/sophos_utm/utm_aaa_group.py b/plugins/modules/web_infrastructure/sophos_utm/utm_aaa_group.py index e2fa6f5384..ddd4083ac9 100644 --- a/plugins/modules/web_infrastructure/sophos_utm/utm_aaa_group.py +++ b/plugins/modules/web_infrastructure/sophos_utm/utm_aaa_group.py @@ -32,10 +32,12 @@ options: - List of adirectory group strings. type: list elements: str + default: [] adirectory_groups_sids: description: - Dictionary of group sids. type: dict + default: {} backend_match: description: - The backend for the group. @@ -67,18 +69,22 @@ options: - List of edirectory group strings. type: list elements: str + default: [] ipsec_dn: description: - The ipsec dn string. type: str + default: '' ldap_attribute: description: - The ldap attribute to check against. type: str + default: '' ldap_attribute_value: description: - The ldap attribute value to check against. type: str + default: '' members: description: - A list of user ref names (aaa/user). diff --git a/plugins/modules/web_infrastructure/sophos_utm/utm_dns_host.py b/plugins/modules/web_infrastructure/sophos_utm/utm_dns_host.py index 4554384d2d..5b3b164096 100644 --- a/plugins/modules/web_infrastructure/sophos_utm/utm_dns_host.py +++ b/plugins/modules/web_infrastructure/sophos_utm/utm_dns_host.py @@ -41,6 +41,7 @@ options: type: str description: - An optional comment to add to the dns host object + default: '' hostname: type: str description: @@ -49,6 +50,7 @@ options: type: str description: - The reference name of the interface to use. If not provided the default interface will be used + default: '' resolved: description: - whether the hostname's ipv4 address is already resolved or not diff --git a/plugins/modules/web_infrastructure/sophos_utm/utm_network_interface_address.py b/plugins/modules/web_infrastructure/sophos_utm/utm_network_interface_address.py index a5c2d1fd36..bcf735e52b 100644 --- a/plugins/modules/web_infrastructure/sophos_utm/utm_network_interface_address.py +++ b/plugins/modules/web_infrastructure/sophos_utm/utm_network_interface_address.py @@ -41,6 +41,7 @@ options: type: str description: - An optional comment to add to the object + default: '' resolved: type: bool description: diff --git a/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_location.py b/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_location.py index 4c0abb0608..5ccbee15bf 100644 --- a/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_location.py +++ b/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_location.py @@ -46,6 +46,7 @@ options: type: str description: - The reference name of the auth profile + default: '' backend: type: list elements: str @@ -56,10 +57,12 @@ options: type: str description: - The path of the backend + default: '' comment: type: str description: - The optional comment string + default: '' denied_networks: type: list elements: str