mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* fixed validation-modules for plugins/modules/cloud/oneandone/oneandone_firewall_policy.py
* fixed validation-modules for plugins/modules/cloud/oneandone/oneandone_load_balancer.py
* fixed validation-modules for plugins/modules/cloud/oneandone/oneandone_monitoring_policy.py
* fixed validation-modules for plugins/modules/cloud/oneandone/oneandone_private_network.py
* fixed validation-modules for plugins/modules/cloud/oneandone/oneandone_public_ip.py
* fixed validation-modules for plugins/modules/cloud/oneandone/oneandone_server.py
* Tidy up validate-modules ignores for cloud/oneandone modules
* Update plugins/modules/cloud/oneandone/oneandone_server.py
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 88c6e6ac61
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
af913c9a6a
commit
1d290c129f
9 changed files with 103 additions and 86 deletions
|
@ -29,52 +29,60 @@ options:
|
||||||
description:
|
description:
|
||||||
- Define a firewall policy state to create, remove, or update.
|
- Define a firewall policy state to create, remove, or update.
|
||||||
required: false
|
required: false
|
||||||
|
type: str
|
||||||
default: 'present'
|
default: 'present'
|
||||||
choices: [ "present", "absent", "update" ]
|
choices: [ "present", "absent", "update" ]
|
||||||
auth_token:
|
auth_token:
|
||||||
description:
|
description:
|
||||||
- Authenticating API token provided by 1&1.
|
- Authenticating API token provided by 1&1.
|
||||||
required: true
|
type: str
|
||||||
api_url:
|
api_url:
|
||||||
description:
|
description:
|
||||||
- Custom API URL. Overrides the
|
- Custom API URL. Overrides the
|
||||||
ONEANDONE_API_URL environment variable.
|
ONEANDONE_API_URL environment variable.
|
||||||
|
type: str
|
||||||
required: false
|
required: false
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- Firewall policy name used with present state. Used as identifier (id or name) when used with absent state.
|
- Firewall policy name used with present state. Used as identifier (id or name) when used with absent state.
|
||||||
maxLength=128
|
maxLength=128
|
||||||
required: true
|
type: str
|
||||||
firewall_policy:
|
firewall_policy:
|
||||||
description:
|
description:
|
||||||
- The identifier (id or name) of the firewall policy used with update state.
|
- The identifier (id or name) of the firewall policy used with update state.
|
||||||
required: true
|
type: str
|
||||||
rules:
|
rules:
|
||||||
description:
|
description:
|
||||||
- A list of rules that will be set for the firewall policy.
|
- A list of rules that will be set for the firewall policy.
|
||||||
Each rule must contain protocol parameter, in addition to three optional parameters
|
Each rule must contain protocol parameter, in addition to three optional parameters
|
||||||
(port_from, port_to, and source)
|
(port_from, port_to, and source)
|
||||||
|
type: list
|
||||||
add_server_ips:
|
add_server_ips:
|
||||||
description:
|
description:
|
||||||
- A list of server identifiers (id or name) to be assigned to a firewall policy.
|
- A list of server identifiers (id or name) to be assigned to a firewall policy.
|
||||||
Used in combination with update state.
|
Used in combination with update state.
|
||||||
|
type: list
|
||||||
required: false
|
required: false
|
||||||
remove_server_ips:
|
remove_server_ips:
|
||||||
description:
|
description:
|
||||||
- A list of server IP ids to be unassigned from a firewall policy. Used in combination with update state.
|
- A list of server IP ids to be unassigned from a firewall policy. Used in combination with update state.
|
||||||
|
type: list
|
||||||
required: false
|
required: false
|
||||||
add_rules:
|
add_rules:
|
||||||
description:
|
description:
|
||||||
- A list of rules that will be added to an existing firewall policy.
|
- A list of rules that will be added to an existing firewall policy.
|
||||||
It is syntax is the same as the one used for rules parameter. Used in combination with update state.
|
It is syntax is the same as the one used for rules parameter. Used in combination with update state.
|
||||||
|
type: list
|
||||||
required: false
|
required: false
|
||||||
remove_rules:
|
remove_rules:
|
||||||
description:
|
description:
|
||||||
- A list of rule ids that will be removed from an existing firewall policy. Used in combination with update state.
|
- A list of rule ids that will be removed from an existing firewall policy. Used in combination with update state.
|
||||||
|
type: list
|
||||||
required: false
|
required: false
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- Firewall policy description. maxLength=256
|
- Firewall policy description. maxLength=256
|
||||||
|
type: str
|
||||||
required: false
|
required: false
|
||||||
wait:
|
wait:
|
||||||
description:
|
description:
|
||||||
|
@ -85,10 +93,12 @@ options:
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
- how long before wait gives up, in seconds
|
- how long before wait gives up, in seconds
|
||||||
|
type: int
|
||||||
default: 600
|
default: 600
|
||||||
wait_interval:
|
wait_interval:
|
||||||
description:
|
description:
|
||||||
- Defines the number of seconds to wait when using the _wait_for methods
|
- Defines the number of seconds to wait when using the _wait_for methods
|
||||||
|
type: int
|
||||||
default: 5
|
default: 5
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
|
|
|
@ -28,90 +28,99 @@ options:
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Define a load balancer state to create, remove, or update.
|
- Define a load balancer state to create, remove, or update.
|
||||||
|
type: str
|
||||||
required: false
|
required: false
|
||||||
default: 'present'
|
default: 'present'
|
||||||
choices: [ "present", "absent", "update" ]
|
choices: [ "present", "absent", "update" ]
|
||||||
auth_token:
|
auth_token:
|
||||||
description:
|
description:
|
||||||
- Authenticating API token provided by 1&1.
|
- Authenticating API token provided by 1&1.
|
||||||
required: true
|
type: str
|
||||||
load_balancer:
|
load_balancer:
|
||||||
description:
|
description:
|
||||||
- The identifier (id or name) of the load balancer used with update state.
|
- The identifier (id or name) of the load balancer used with update state.
|
||||||
required: true
|
type: str
|
||||||
api_url:
|
api_url:
|
||||||
description:
|
description:
|
||||||
- Custom API URL. Overrides the
|
- Custom API URL. Overrides the
|
||||||
ONEANDONE_API_URL environment variable.
|
ONEANDONE_API_URL environment variable.
|
||||||
|
type: str
|
||||||
required: false
|
required: false
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- Load balancer name used with present state. Used as identifier (id or name) when used with absent state.
|
- Load balancer name used with present state. Used as identifier (id or name) when used with absent state.
|
||||||
maxLength=128
|
maxLength=128
|
||||||
required: true
|
type: str
|
||||||
health_check_test:
|
health_check_test:
|
||||||
description:
|
description:
|
||||||
- Type of the health check. At the moment, HTTP is not allowed.
|
- Type of the health check. At the moment, HTTP is not allowed.
|
||||||
|
type: str
|
||||||
choices: [ "NONE", "TCP", "HTTP", "ICMP" ]
|
choices: [ "NONE", "TCP", "HTTP", "ICMP" ]
|
||||||
required: true
|
|
||||||
health_check_interval:
|
health_check_interval:
|
||||||
description:
|
description:
|
||||||
- Health check period in seconds. minimum=5, maximum=300, multipleOf=1
|
- Health check period in seconds. minimum=5, maximum=300, multipleOf=1
|
||||||
required: true
|
type: str
|
||||||
health_check_path:
|
health_check_path:
|
||||||
description:
|
description:
|
||||||
- Url to call for checking. Required for HTTP health check. maxLength=1000
|
- Url to call for checking. Required for HTTP health check. maxLength=1000
|
||||||
|
type: str
|
||||||
required: false
|
required: false
|
||||||
health_check_parse:
|
health_check_parse:
|
||||||
description:
|
description:
|
||||||
- Regular expression to check. Required for HTTP health check. maxLength=64
|
- Regular expression to check. Required for HTTP health check. maxLength=64
|
||||||
|
type: str
|
||||||
required: false
|
required: false
|
||||||
persistence:
|
persistence:
|
||||||
description:
|
description:
|
||||||
- Persistence.
|
- Persistence.
|
||||||
required: true
|
|
||||||
type: bool
|
type: bool
|
||||||
persistence_time:
|
persistence_time:
|
||||||
description:
|
description:
|
||||||
- Persistence time in seconds. Required if persistence is enabled. minimum=30, maximum=1200, multipleOf=1
|
- Persistence time in seconds. Required if persistence is enabled. minimum=30, maximum=1200, multipleOf=1
|
||||||
required: true
|
type: str
|
||||||
method:
|
method:
|
||||||
description:
|
description:
|
||||||
- Balancing procedure.
|
- Balancing procedure.
|
||||||
|
type: str
|
||||||
choices: [ "ROUND_ROBIN", "LEAST_CONNECTIONS" ]
|
choices: [ "ROUND_ROBIN", "LEAST_CONNECTIONS" ]
|
||||||
required: true
|
|
||||||
datacenter:
|
datacenter:
|
||||||
description:
|
description:
|
||||||
- ID or country code of the datacenter where the load balancer will be created.
|
- ID or country code of the datacenter where the load balancer will be created.
|
||||||
default: US
|
- If not specified, it defaults to I(US).
|
||||||
|
type: str
|
||||||
choices: [ "US", "ES", "DE", "GB" ]
|
choices: [ "US", "ES", "DE", "GB" ]
|
||||||
required: false
|
required: false
|
||||||
rules:
|
rules:
|
||||||
description:
|
description:
|
||||||
- A list of rule objects that will be set for the load balancer. Each rule must contain protocol,
|
- A list of rule objects that will be set for the load balancer. Each rule must contain protocol,
|
||||||
port_balancer, and port_server parameters, in addition to source parameter, which is optional.
|
port_balancer, and port_server parameters, in addition to source parameter, which is optional.
|
||||||
required: true
|
type: list
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- Description of the load balancer. maxLength=256
|
- Description of the load balancer. maxLength=256
|
||||||
|
type: str
|
||||||
required: false
|
required: false
|
||||||
add_server_ips:
|
add_server_ips:
|
||||||
description:
|
description:
|
||||||
- A list of server identifiers (id or name) to be assigned to a load balancer.
|
- A list of server identifiers (id or name) to be assigned to a load balancer.
|
||||||
Used in combination with update state.
|
Used in combination with update state.
|
||||||
|
type: list
|
||||||
required: false
|
required: false
|
||||||
remove_server_ips:
|
remove_server_ips:
|
||||||
description:
|
description:
|
||||||
- A list of server IP ids to be unassigned from a load balancer. Used in combination with update state.
|
- A list of server IP ids to be unassigned from a load balancer. Used in combination with update state.
|
||||||
|
type: list
|
||||||
required: false
|
required: false
|
||||||
add_rules:
|
add_rules:
|
||||||
description:
|
description:
|
||||||
- A list of rules that will be added to an existing load balancer.
|
- A list of rules that will be added to an existing load balancer.
|
||||||
It is syntax is the same as the one used for rules parameter. Used in combination with update state.
|
It is syntax is the same as the one used for rules parameter. Used in combination with update state.
|
||||||
|
type: list
|
||||||
required: false
|
required: false
|
||||||
remove_rules:
|
remove_rules:
|
||||||
description:
|
description:
|
||||||
- A list of rule ids that will be removed from an existing load balancer. Used in combination with update state.
|
- A list of rule ids that will be removed from an existing load balancer. Used in combination with update state.
|
||||||
|
type: list
|
||||||
required: false
|
required: false
|
||||||
wait:
|
wait:
|
||||||
description:
|
description:
|
||||||
|
@ -122,10 +131,12 @@ options:
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
- how long before wait gives up, in seconds
|
- how long before wait gives up, in seconds
|
||||||
|
type: int
|
||||||
default: 600
|
default: 600
|
||||||
wait_interval:
|
wait_interval:
|
||||||
description:
|
description:
|
||||||
- Defines the number of seconds to wait when using the _wait_for methods
|
- Defines the number of seconds to wait when using the _wait_for methods
|
||||||
|
type: int
|
||||||
default: 5
|
default: 5
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
|
|
|
@ -29,37 +29,40 @@ options:
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Define a monitoring policy's state to create, remove, update.
|
- Define a monitoring policy's state to create, remove, update.
|
||||||
|
type: str
|
||||||
required: false
|
required: false
|
||||||
default: present
|
default: present
|
||||||
choices: [ "present", "absent", "update" ]
|
choices: [ "present", "absent", "update" ]
|
||||||
auth_token:
|
auth_token:
|
||||||
description:
|
description:
|
||||||
- Authenticating API token provided by 1&1.
|
- Authenticating API token provided by 1&1.
|
||||||
required: true
|
type: str
|
||||||
api_url:
|
api_url:
|
||||||
description:
|
description:
|
||||||
- Custom API URL. Overrides the
|
- Custom API URL. Overrides the
|
||||||
ONEANDONE_API_URL environment variable.
|
ONEANDONE_API_URL environment variable.
|
||||||
|
type: str
|
||||||
required: false
|
required: false
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- Monitoring policy name used with present state. Used as identifier (id or name) when used with absent state. maxLength=128
|
- Monitoring policy name used with present state. Used as identifier (id or name) when used with absent state. maxLength=128
|
||||||
required: true
|
type: str
|
||||||
monitoring_policy:
|
monitoring_policy:
|
||||||
description:
|
description:
|
||||||
- The identifier (id or name) of the monitoring policy used with update state.
|
- The identifier (id or name) of the monitoring policy used with update state.
|
||||||
required: true
|
type: str
|
||||||
agent:
|
agent:
|
||||||
description:
|
description:
|
||||||
- Set true for using agent.
|
- Set true for using agent.
|
||||||
required: true
|
type: str
|
||||||
email:
|
email:
|
||||||
description:
|
description:
|
||||||
- User's email. maxLength=128
|
- User's email. maxLength=128
|
||||||
required: true
|
type: str
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- Monitoring policy description. maxLength=256
|
- Monitoring policy description. maxLength=256
|
||||||
|
type: str
|
||||||
required: false
|
required: false
|
||||||
thresholds:
|
thresholds:
|
||||||
description:
|
description:
|
||||||
|
@ -67,7 +70,7 @@ options:
|
||||||
which both have alert and value suboptions. Warning is used to set limits for
|
which both have alert and value suboptions. Warning is used to set limits for
|
||||||
warning alerts, critical is used to set critical alerts. alert enables alert,
|
warning alerts, critical is used to set critical alerts. alert enables alert,
|
||||||
and value is used to advise when the value is exceeded.
|
and value is used to advise when the value is exceeded.
|
||||||
required: true
|
type: list
|
||||||
suboptions:
|
suboptions:
|
||||||
cpu:
|
cpu:
|
||||||
description:
|
description:
|
||||||
|
@ -92,7 +95,7 @@ options:
|
||||||
ports:
|
ports:
|
||||||
description:
|
description:
|
||||||
- Array of ports that will be monitoring.
|
- Array of ports that will be monitoring.
|
||||||
required: true
|
type: list
|
||||||
suboptions:
|
suboptions:
|
||||||
protocol:
|
protocol:
|
||||||
description:
|
description:
|
||||||
|
@ -115,7 +118,7 @@ options:
|
||||||
processes:
|
processes:
|
||||||
description:
|
description:
|
||||||
- Array of processes that will be monitoring.
|
- Array of processes that will be monitoring.
|
||||||
required: true
|
type: list
|
||||||
suboptions:
|
suboptions:
|
||||||
process:
|
process:
|
||||||
description:
|
description:
|
||||||
|
@ -129,34 +132,42 @@ options:
|
||||||
add_ports:
|
add_ports:
|
||||||
description:
|
description:
|
||||||
- Ports to add to the monitoring policy.
|
- Ports to add to the monitoring policy.
|
||||||
|
type: list
|
||||||
required: false
|
required: false
|
||||||
add_processes:
|
add_processes:
|
||||||
description:
|
description:
|
||||||
- Processes to add to the monitoring policy.
|
- Processes to add to the monitoring policy.
|
||||||
|
type: list
|
||||||
required: false
|
required: false
|
||||||
add_servers:
|
add_servers:
|
||||||
description:
|
description:
|
||||||
- Servers to add to the monitoring policy.
|
- Servers to add to the monitoring policy.
|
||||||
|
type: list
|
||||||
required: false
|
required: false
|
||||||
remove_ports:
|
remove_ports:
|
||||||
description:
|
description:
|
||||||
- Ports to remove from the monitoring policy.
|
- Ports to remove from the monitoring policy.
|
||||||
|
type: list
|
||||||
required: false
|
required: false
|
||||||
remove_processes:
|
remove_processes:
|
||||||
description:
|
description:
|
||||||
- Processes to remove from the monitoring policy.
|
- Processes to remove from the monitoring policy.
|
||||||
|
type: list
|
||||||
required: false
|
required: false
|
||||||
remove_servers:
|
remove_servers:
|
||||||
description:
|
description:
|
||||||
- Servers to remove from the monitoring policy.
|
- Servers to remove from the monitoring policy.
|
||||||
|
type: list
|
||||||
required: false
|
required: false
|
||||||
update_ports:
|
update_ports:
|
||||||
description:
|
description:
|
||||||
- Ports to be updated on the monitoring policy.
|
- Ports to be updated on the monitoring policy.
|
||||||
|
type: list
|
||||||
required: false
|
required: false
|
||||||
update_processes:
|
update_processes:
|
||||||
description:
|
description:
|
||||||
- Processes to be updated on the monitoring policy.
|
- Processes to be updated on the monitoring policy.
|
||||||
|
type: list
|
||||||
required: false
|
required: false
|
||||||
wait:
|
wait:
|
||||||
description:
|
description:
|
||||||
|
@ -167,10 +178,12 @@ options:
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
- how long before wait gives up, in seconds
|
- how long before wait gives up, in seconds
|
||||||
|
type: int
|
||||||
default: 600
|
default: 600
|
||||||
wait_interval:
|
wait_interval:
|
||||||
description:
|
description:
|
||||||
- Defines the number of seconds to wait when using the _wait_for methods
|
- Defines the number of seconds to wait when using the _wait_for methods
|
||||||
|
type: int
|
||||||
default: 5
|
default: 5
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
|
|
|
@ -28,44 +28,53 @@ options:
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Define a network's state to create, remove, or update.
|
- Define a network's state to create, remove, or update.
|
||||||
|
type: str
|
||||||
required: false
|
required: false
|
||||||
default: 'present'
|
default: 'present'
|
||||||
choices: [ "present", "absent", "update" ]
|
choices: [ "present", "absent", "update" ]
|
||||||
auth_token:
|
auth_token:
|
||||||
description:
|
description:
|
||||||
- Authenticating API token provided by 1&1.
|
- Authenticating API token provided by 1&1.
|
||||||
required: true
|
type: str
|
||||||
private_network:
|
private_network:
|
||||||
description:
|
description:
|
||||||
- The identifier (id or name) of the network used with update state.
|
- The identifier (id or name) of the network used with update state.
|
||||||
required: true
|
type: str
|
||||||
api_url:
|
api_url:
|
||||||
description:
|
description:
|
||||||
- Custom API URL. Overrides the
|
- Custom API URL. Overrides the
|
||||||
ONEANDONE_API_URL environment variable.
|
ONEANDONE_API_URL environment variable.
|
||||||
|
type: str
|
||||||
required: false
|
required: false
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- Private network name used with present state. Used as identifier (id or name) when used with absent state.
|
- Private network name used with present state. Used as identifier (id or name) when used with absent state.
|
||||||
required: true
|
type: str
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- Set a description for the network.
|
- Set a description for the network.
|
||||||
|
type: str
|
||||||
datacenter:
|
datacenter:
|
||||||
description:
|
description:
|
||||||
- The identifier of the datacenter where the private network will be created
|
- The identifier of the datacenter where the private network will be created
|
||||||
|
type: str
|
||||||
|
choices: [US, ES, DE, GB]
|
||||||
network_address:
|
network_address:
|
||||||
description:
|
description:
|
||||||
- Set a private network space, i.e. 192.168.1.0
|
- Set a private network space, i.e. 192.168.1.0
|
||||||
|
type: str
|
||||||
subnet_mask:
|
subnet_mask:
|
||||||
description:
|
description:
|
||||||
- Set the netmask for the private network, i.e. 255.255.255.0
|
- Set the netmask for the private network, i.e. 255.255.255.0
|
||||||
|
type: str
|
||||||
add_members:
|
add_members:
|
||||||
description:
|
description:
|
||||||
- List of server identifiers (name or id) to be added to the private network.
|
- List of server identifiers (name or id) to be added to the private network.
|
||||||
|
type: list
|
||||||
remove_members:
|
remove_members:
|
||||||
description:
|
description:
|
||||||
- List of server identifiers (name or id) to be removed from the private network.
|
- List of server identifiers (name or id) to be removed from the private network.
|
||||||
|
type: list
|
||||||
wait:
|
wait:
|
||||||
description:
|
description:
|
||||||
- wait for the instance to be in state 'running' before returning
|
- wait for the instance to be in state 'running' before returning
|
||||||
|
@ -75,10 +84,12 @@ options:
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
- how long before wait gives up, in seconds
|
- how long before wait gives up, in seconds
|
||||||
|
type: int
|
||||||
default: 600
|
default: 600
|
||||||
wait_interval:
|
wait_interval:
|
||||||
description:
|
description:
|
||||||
- Defines the number of seconds to wait when using the _wait_for methods
|
- Defines the number of seconds to wait when using the _wait_for methods
|
||||||
|
type: int
|
||||||
default: 5
|
default: 5
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
|
|
|
@ -28,36 +28,43 @@ options:
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Define a public ip state to create, remove, or update.
|
- Define a public ip state to create, remove, or update.
|
||||||
|
type: str
|
||||||
required: false
|
required: false
|
||||||
default: 'present'
|
default: 'present'
|
||||||
choices: [ "present", "absent", "update" ]
|
choices: [ "present", "absent", "update" ]
|
||||||
auth_token:
|
auth_token:
|
||||||
description:
|
description:
|
||||||
- Authenticating API token provided by 1&1.
|
- Authenticating API token provided by 1&1.
|
||||||
required: true
|
type: str
|
||||||
api_url:
|
api_url:
|
||||||
description:
|
description:
|
||||||
- Custom API URL. Overrides the
|
- Custom API URL. Overrides the
|
||||||
ONEANDONE_API_URL environment variable.
|
ONEANDONE_API_URL environment variable.
|
||||||
|
type: str
|
||||||
required: false
|
required: false
|
||||||
reverse_dns:
|
reverse_dns:
|
||||||
description:
|
description:
|
||||||
- Reverse DNS name. maxLength=256
|
- Reverse DNS name. maxLength=256
|
||||||
|
type: str
|
||||||
required: false
|
required: false
|
||||||
datacenter:
|
datacenter:
|
||||||
description:
|
description:
|
||||||
- ID of the datacenter where the IP will be created (only for unassigned IPs).
|
- ID of the datacenter where the IP will be created (only for unassigned IPs).
|
||||||
|
type: str
|
||||||
|
choices: [US, ES, DE, GB]
|
||||||
|
default: US
|
||||||
required: false
|
required: false
|
||||||
type:
|
type:
|
||||||
description:
|
description:
|
||||||
- Type of IP. Currently, only IPV4 is available.
|
- Type of IP. Currently, only IPV4 is available.
|
||||||
|
type: str
|
||||||
choices: ["IPV4", "IPV6"]
|
choices: ["IPV4", "IPV6"]
|
||||||
default: 'IPV4'
|
default: 'IPV4'
|
||||||
required: false
|
required: false
|
||||||
public_ip_id:
|
public_ip_id:
|
||||||
description:
|
description:
|
||||||
- The ID of the public IP used with update and delete states.
|
- The ID of the public IP used with update and delete states.
|
||||||
required: true
|
type: str
|
||||||
wait:
|
wait:
|
||||||
description:
|
description:
|
||||||
- wait for the instance to be in state 'running' before returning
|
- wait for the instance to be in state 'running' before returning
|
||||||
|
@ -67,10 +74,12 @@ options:
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
- how long before wait gives up, in seconds
|
- how long before wait gives up, in seconds
|
||||||
|
type: int
|
||||||
default: 600
|
default: 600
|
||||||
wait_interval:
|
wait_interval:
|
||||||
description:
|
description:
|
||||||
- Defines the number of seconds to wait when using the _wait_for methods
|
- Defines the number of seconds to wait when using the _wait_for methods
|
||||||
|
type: int
|
||||||
default: 5
|
default: 5
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
|
|
|
@ -28,80 +28,98 @@ options:
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Define a server's state to create, remove, start or stop it.
|
- Define a server's state to create, remove, start or stop it.
|
||||||
|
type: str
|
||||||
default: present
|
default: present
|
||||||
choices: [ "present", "absent", "running", "stopped" ]
|
choices: [ "present", "absent", "running", "stopped" ]
|
||||||
auth_token:
|
auth_token:
|
||||||
description:
|
description:
|
||||||
- Authenticating API token provided by 1&1. Overrides the
|
- Authenticating API token provided by 1&1. Overrides the
|
||||||
ONEANDONE_AUTH_TOKEN environment variable.
|
ONEANDONE_AUTH_TOKEN environment variable.
|
||||||
required: true
|
type: str
|
||||||
api_url:
|
api_url:
|
||||||
description:
|
description:
|
||||||
- Custom API URL. Overrides the
|
- Custom API URL. Overrides the
|
||||||
ONEANDONE_API_URL environment variable.
|
ONEANDONE_API_URL environment variable.
|
||||||
|
type: str
|
||||||
datacenter:
|
datacenter:
|
||||||
description:
|
description:
|
||||||
- The datacenter location.
|
- The datacenter location.
|
||||||
|
type: str
|
||||||
default: US
|
default: US
|
||||||
choices: [ "US", "ES", "DE", "GB" ]
|
choices: [ "US", "ES", "DE", "GB" ]
|
||||||
hostname:
|
hostname:
|
||||||
description:
|
description:
|
||||||
- The hostname or ID of the server. Only used when state is 'present'.
|
- The hostname or ID of the server. Only used when state is 'present'.
|
||||||
|
type: str
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- The description of the server.
|
- The description of the server.
|
||||||
|
type: str
|
||||||
appliance:
|
appliance:
|
||||||
description:
|
description:
|
||||||
- The operating system name or ID for the server.
|
- The operating system name or ID for the server.
|
||||||
It is required only for 'present' state.
|
It is required only for 'present' state.
|
||||||
|
type: str
|
||||||
fixed_instance_size:
|
fixed_instance_size:
|
||||||
description:
|
description:
|
||||||
- The instance size name or ID of the server.
|
- The instance size name or ID of the server.
|
||||||
It is required only for 'present' state, and it is mutually exclusive with
|
It is required only for 'present' state, and it is mutually exclusive with
|
||||||
vcore, cores_per_processor, ram, and hdds parameters.
|
vcore, cores_per_processor, ram, and hdds parameters.
|
||||||
required: true
|
- 'The available choices are: C(S), C(M), C(L), C(XL), C(XXL), C(3XL), C(4XL), C(5XL)'
|
||||||
choices: [ "S", "M", "L", "XL", "XXL", "3XL", "4XL", "5XL" ]
|
type: str
|
||||||
vcore:
|
vcore:
|
||||||
description:
|
description:
|
||||||
- The total number of processors.
|
- The total number of processors.
|
||||||
It must be provided with cores_per_processor, ram, and hdds parameters.
|
It must be provided with cores_per_processor, ram, and hdds parameters.
|
||||||
|
type: int
|
||||||
cores_per_processor:
|
cores_per_processor:
|
||||||
description:
|
description:
|
||||||
- The number of cores per processor.
|
- The number of cores per processor.
|
||||||
It must be provided with vcore, ram, and hdds parameters.
|
It must be provided with vcore, ram, and hdds parameters.
|
||||||
|
type: int
|
||||||
ram:
|
ram:
|
||||||
description:
|
description:
|
||||||
- The amount of RAM memory.
|
- The amount of RAM memory.
|
||||||
It must be provided with with vcore, cores_per_processor, and hdds parameters.
|
It must be provided with with vcore, cores_per_processor, and hdds parameters.
|
||||||
|
type: float
|
||||||
hdds:
|
hdds:
|
||||||
description:
|
description:
|
||||||
- A list of hard disks with nested "size" and "is_main" properties.
|
- A list of hard disks with nested "size" and "is_main" properties.
|
||||||
It must be provided with vcore, cores_per_processor, and ram parameters.
|
It must be provided with vcore, cores_per_processor, and ram parameters.
|
||||||
|
type: list
|
||||||
private_network:
|
private_network:
|
||||||
description:
|
description:
|
||||||
- The private network name or ID.
|
- The private network name or ID.
|
||||||
|
type: str
|
||||||
firewall_policy:
|
firewall_policy:
|
||||||
description:
|
description:
|
||||||
- The firewall policy name or ID.
|
- The firewall policy name or ID.
|
||||||
|
type: str
|
||||||
load_balancer:
|
load_balancer:
|
||||||
description:
|
description:
|
||||||
- The load balancer name or ID.
|
- The load balancer name or ID.
|
||||||
|
type: str
|
||||||
monitoring_policy:
|
monitoring_policy:
|
||||||
description:
|
description:
|
||||||
- The monitoring policy name or ID.
|
- The monitoring policy name or ID.
|
||||||
|
type: str
|
||||||
server:
|
server:
|
||||||
description:
|
description:
|
||||||
- Server identifier (ID or hostname). It is required for all states except 'running' and 'present'.
|
- Server identifier (ID or hostname). It is required for all states except 'running' and 'present'.
|
||||||
|
type: str
|
||||||
count:
|
count:
|
||||||
description:
|
description:
|
||||||
- The number of servers to create.
|
- The number of servers to create.
|
||||||
|
type: int
|
||||||
default: 1
|
default: 1
|
||||||
ssh_key:
|
ssh_key:
|
||||||
description:
|
description:
|
||||||
- User's public SSH key (contents, not path).
|
- User's public SSH key (contents, not path).
|
||||||
|
type: raw
|
||||||
server_type:
|
server_type:
|
||||||
description:
|
description:
|
||||||
- The type of server to be built.
|
- The type of server to be built.
|
||||||
|
type: str
|
||||||
default: "cloud"
|
default: "cloud"
|
||||||
choices: [ "cloud", "baremetal", "k8s_node" ]
|
choices: [ "cloud", "baremetal", "k8s_node" ]
|
||||||
wait:
|
wait:
|
||||||
|
@ -115,10 +133,12 @@ options:
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
- how long before wait gives up, in seconds
|
- how long before wait gives up, in seconds
|
||||||
|
type: int
|
||||||
default: 600
|
default: 600
|
||||||
wait_interval:
|
wait_interval:
|
||||||
description:
|
description:
|
||||||
- Defines the number of seconds to wait when using the wait_for methods
|
- Defines the number of seconds to wait when using the wait_for methods
|
||||||
|
type: int
|
||||||
default: 5
|
default: 5
|
||||||
auto_increment:
|
auto_increment:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -117,32 +117,11 @@ plugins/modules/cloud/lxd/lxd_profile.py validate-modules:doc-default-does-not-m
|
||||||
plugins/modules/cloud/lxd/lxd_profile.py validate-modules:doc-missing-type
|
plugins/modules/cloud/lxd/lxd_profile.py validate-modules:doc-missing-type
|
||||||
plugins/modules/cloud/lxd/lxd_profile.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/lxd/lxd_profile.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/cloud/misc/rhevm.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/cloud/misc/rhevm.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:doc-required-mismatch
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:parameter-list-no-elements
|
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:doc-default-does-not-match-spec
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:doc-required-mismatch
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:parameter-list-no-elements
|
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_monitoring_policy.py validate-modules:doc-required-mismatch
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_monitoring_policy.py validate-modules:parameter-list-no-elements
|
plugins/modules/cloud/oneandone/oneandone_monitoring_policy.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/cloud/oneandone/oneandone_monitoring_policy.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_private_network.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_private_network.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_private_network.py validate-modules:doc-required-mismatch
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_private_network.py validate-modules:parameter-list-no-elements
|
plugins/modules/cloud/oneandone/oneandone_private_network.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/cloud/oneandone/oneandone_private_network.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_public_ip.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_public_ip.py validate-modules:doc-default-does-not-match-spec
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_public_ip.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_public_ip.py validate-modules:doc-required-mismatch
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_public_ip.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_server.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_server.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_server.py validate-modules:doc-required-mismatch
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_server.py validate-modules:parameter-list-no-elements
|
plugins/modules/cloud/oneandone/oneandone_server.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/cloud/oneandone/oneandone_server.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/online/online_server_facts.py validate-modules:doc-required-mismatch
|
plugins/modules/cloud/online/online_server_facts.py validate-modules:doc-required-mismatch
|
||||||
plugins/modules/cloud/online/online_server_facts.py validate-modules:return-syntax-error
|
plugins/modules/cloud/online/online_server_facts.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/online/online_server_info.py validate-modules:doc-required-mismatch
|
plugins/modules/cloud/online/online_server_info.py validate-modules:doc-required-mismatch
|
||||||
|
|
|
@ -117,32 +117,11 @@ plugins/modules/cloud/lxd/lxd_profile.py validate-modules:doc-default-does-not-m
|
||||||
plugins/modules/cloud/lxd/lxd_profile.py validate-modules:doc-missing-type
|
plugins/modules/cloud/lxd/lxd_profile.py validate-modules:doc-missing-type
|
||||||
plugins/modules/cloud/lxd/lxd_profile.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/lxd/lxd_profile.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/cloud/misc/rhevm.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/cloud/misc/rhevm.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:doc-required-mismatch
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:parameter-list-no-elements
|
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:doc-default-does-not-match-spec
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:doc-required-mismatch
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:parameter-list-no-elements
|
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_monitoring_policy.py validate-modules:doc-required-mismatch
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_monitoring_policy.py validate-modules:parameter-list-no-elements
|
plugins/modules/cloud/oneandone/oneandone_monitoring_policy.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/cloud/oneandone/oneandone_monitoring_policy.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_private_network.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_private_network.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_private_network.py validate-modules:doc-required-mismatch
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_private_network.py validate-modules:parameter-list-no-elements
|
plugins/modules/cloud/oneandone/oneandone_private_network.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/cloud/oneandone/oneandone_private_network.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_public_ip.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_public_ip.py validate-modules:doc-default-does-not-match-spec
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_public_ip.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_public_ip.py validate-modules:doc-required-mismatch
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_public_ip.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_server.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_server.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_server.py validate-modules:doc-required-mismatch
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_server.py validate-modules:parameter-list-no-elements
|
plugins/modules/cloud/oneandone/oneandone_server.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/cloud/oneandone/oneandone_server.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/online/online_server_facts.py validate-modules:doc-required-mismatch
|
plugins/modules/cloud/online/online_server_facts.py validate-modules:doc-required-mismatch
|
||||||
plugins/modules/cloud/online/online_server_facts.py validate-modules:return-syntax-error
|
plugins/modules/cloud/online/online_server_facts.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/online/online_server_info.py validate-modules:doc-required-mismatch
|
plugins/modules/cloud/online/online_server_info.py validate-modules:doc-required-mismatch
|
||||||
|
|
|
@ -95,21 +95,6 @@ plugins/modules/cloud/misc/helm.py validate-modules:deprecation-mismatch
|
||||||
plugins/modules/cloud/misc/helm.py validate-modules:invalid-documentation
|
plugins/modules/cloud/misc/helm.py validate-modules:invalid-documentation
|
||||||
plugins/modules/cloud/misc/ovirt.py validate-modules:deprecation-mismatch
|
plugins/modules/cloud/misc/ovirt.py validate-modules:deprecation-mismatch
|
||||||
plugins/modules/cloud/misc/ovirt.py validate-modules:invalid-documentation
|
plugins/modules/cloud/misc/ovirt.py validate-modules:invalid-documentation
|
||||||
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:doc-default-does-not-match-spec
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_monitoring_policy.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_private_network.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_private_network.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_private_network.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_public_ip.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_public_ip.py validate-modules:doc-default-does-not-match-spec
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_public_ip.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_public_ip.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_server.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_server.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_server.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/online/online_server_facts.py validate-modules:deprecation-mismatch
|
plugins/modules/cloud/online/online_server_facts.py validate-modules:deprecation-mismatch
|
||||||
plugins/modules/cloud/online/online_server_facts.py validate-modules:invalid-documentation
|
plugins/modules/cloud/online/online_server_facts.py validate-modules:invalid-documentation
|
||||||
plugins/modules/cloud/online/online_server_facts.py validate-modules:return-syntax-error
|
plugins/modules/cloud/online/online_server_facts.py validate-modules:return-syntax-error
|
||||||
|
|
Loading…
Reference in a new issue