dubzland.openstack.openstack_datastore_version module – Creates a new datastore version for a given datastore type.
Note
This module is part of the dubzland.openstack collection (version 1.1.0).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install dubzland.openstack
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: dubzland.openstack.openstack_datastore_version
.
Synopsis
Creates the datastore version
Applies the specified validation rules file
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.8
python-openstackclient
python-troveclient
Parameters
Parameter |
Comments |
---|---|
Name of the cloud in |
|
Name of the datastore this version belongs to. If the datastore does not exist, it will be created. |
|
Glance image ID used for instances. Mutually exclusive with |
|
List of tags used to find the appropriate image in Glance. Mutually exclusive with |
|
Trove datastore manager responsible for this version. Choices:
|
|
State of this datastore version. Choices:
|
|
Path on the controller to the configuration validation rules for this datastore version. |
|
Datastore version number. This is the Docker image version that will be downloaded and executed in the instance. |
Examples
- name: Create a new MySQL version
dubzland.openstack.openstack_datastore_version:
cloud: local
manager: mysql
datastore: mysql
version: "5.7.29"
image_tags:
- trove
- mysql
validation_rules: /usr/lib/python3/dist-packages/trove/templates/mysql/validation-rules.json
state: enabled