MariaDB Cluster
mariadb_cluster
This is a module that supports creating, updating or destroying MariaDB Clusters
Example Syntax
Returned object
For more examples please check out the tests here.
NOTE: If you are using a versions 7.0.0 and up: modules can replace resources if certain set parameters differ from the results found in the API!
Parameters that can trigger a resource replacement:
mariadb_version
connections
maintenance_window
instances
cores
ram
storage_size
display_name
state: present
Available parameters for state present:
maintenance_window dict
False
A weekly 4 hour-long window, during which maintenance might occur.
mariadb_version str
True
The MariaDB version of your cluster.
instances int
True
The total number of instances in the cluster (one master and n-1 standbys).
cores int
True
The number of CPU cores per instance.
ram int
True
The amount of memory per instance in megabytes. Has to be a multiple of 1024.
storage_size int
True
The amount of storage per instance in megabytes.
connections list
True
Array of datacenters to connect to your cluster.
display_name str
True
The friendly name of your cluster.
db_username str
True
The username for the initial MariaDB user. Some system usernames are restricted (e.g. "mariadb", "admin", "standby").
db_password str
True
The password for a MariaDB user.
allow_replace bool
False
Boolean indicating if the resource should be recreated when the state cannot be reached in another way. This may be used to prevent resources from being deleted from specifying a different value to an immutable property. An error will be thrown instead Default: False
api_url str
False
The Ionos API base URL.
certificate_fingerprint str
False
The Ionos API certificate fingerprint.
username str
False
The Ionos username. Overrides the IONOS_USERNAME environment variable.
password str
False
The Ionos password. Overrides the IONOS_PASSWORD environment variable.
token str
False
The Ionos token. Overrides the IONOS_TOKEN environment variable.
wait bool
False
Wait for the resource to be created before returning. Default: True Options: [True, False]
wait_timeout int
False
How long before wait gives up, in seconds. Default: 600
state str
False
Indicate desired state of the resource. Default: present Options: ['present', 'absent', 'update', 'restore']
state: absent
Available parameters for state absent:
mariadb_cluster str
True
The ID or name of an existing MariaDB Cluster.
api_url str
False
The Ionos API base URL.
certificate_fingerprint str
False
The Ionos API certificate fingerprint.
username str
False
The Ionos username. Overrides the IONOS_USERNAME environment variable.
password str
False
The Ionos password. Overrides the IONOS_PASSWORD environment variable.
token str
False
The Ionos token. Overrides the IONOS_TOKEN environment variable.
wait bool
False
Wait for the resource to be created before returning. Default: True Options: [True, False]
wait_timeout int
False
How long before wait gives up, in seconds. Default: 600
state str
False
Indicate desired state of the resource. Default: present Options: ['present', 'absent', 'update', 'restore']
state: update
Available parameters for state update:
maintenance_window dict
False
A weekly 4 hour-long window, during which maintenance might occur.
mariadb_version str
False
The MariaDB version of your cluster.
instances int
False
The total number of instances in the cluster (one master and n-1 standbys).
cores int
False
The number of CPU cores per instance.
ram int
False
The amount of memory per instance in megabytes. Has to be a multiple of 1024.
storage_size int
False
The amount of storage per instance in megabytes.
display_name str
False
The friendly name of your cluster.
mariadb_cluster str
True
The ID or name of an existing MariaDB Cluster.
allow_replace bool
False
Boolean indicating if the resource should be recreated when the state cannot be reached in another way. This may be used to prevent resources from being deleted from specifying a different value to an immutable property. An error will be thrown instead Default: False
api_url str
False
The Ionos API base URL.
certificate_fingerprint str
False
The Ionos API certificate fingerprint.
username str
False
The Ionos username. Overrides the IONOS_USERNAME environment variable.
password str
False
The Ionos password. Overrides the IONOS_PASSWORD environment variable.
token str
False
The Ionos token. Overrides the IONOS_TOKEN environment variable.
wait bool
False
Wait for the resource to be created before returning. Default: True Options: [True, False]
wait_timeout int
False
How long before wait gives up, in seconds. Default: 600
state str
False
Indicate desired state of the resource. Default: present Options: ['present', 'absent', 'update', 'restore']
state: restore
Available parameters for state restore:
api_url str
False
The Ionos API base URL.
certificate_fingerprint str
False
The Ionos API certificate fingerprint.
username str
False
The Ionos username. Overrides the IONOS_USERNAME environment variable.
password str
False
The Ionos password. Overrides the IONOS_PASSWORD environment variable.
token str
False
The Ionos token. Overrides the IONOS_TOKEN environment variable.
wait bool
False
Wait for the resource to be created before returning. Default: True Options: [True, False]
wait_timeout int
False
How long before wait gives up, in seconds. Default: 600
state str
False
Indicate desired state of the resource. Default: present Options: ['present', 'absent', 'update', 'restore']
Last updated