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

cloud

string / required

Name of the cloud in clouds.yaml on the controller.

datastore

string / required

Name of the datastore this version belongs to. If the datastore does not exist, it will be created.

image_id

string

Glance image ID used for instances. Mutually exclusive with image_tags.

image_tags

list / elements=string

List of tags used to find the appropriate image in Glance. Mutually exclusive with image_id.

manager

string / required

Trove datastore manager responsible for this version.

Choices:

  • "mysql"

  • "postgresql"

  • "mariadb"

state

string

State of this datastore version. enabled/disabled control the --active flag.

Choices:

  • "present" ← (default)

  • "absent"

  • "enabled"

  • "disabled"

validation_rules

path / required

Path on the controller to the configuration validation rules for this datastore version.

version

string / required

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

Authors

  • Josh Williams (@t3hpr1m3)