dubzland.openstack.openstack_datastore_version (1.1.0) — module

Creates a new datastore version for a given datastore type.

Authors: Josh Williams (@t3hpr1m3)

Install collection

Install with ansible-galaxy collection install dubzland.openstack:==1.1.0


Add to requirements.yml

  collections:
    - name: dubzland.openstack
      version: 1.1.0

Description

Creates the datastore version

Applies the specified validation rules file


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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

Inputs

    
cloud:
    description: Name of the cloud in C(clouds.yaml) on the controller.
    required: true
    type: str

state:
    choices:
    - present
    - absent
    - enabled
    - disabled
    default: present
    description: State of this datastore version.  V(enabled)/V(disabled) control the
      C(--active) flag.
    type: str

manager:
    choices:
    - mysql
    - postgresql
    - mariadb
    description: Trove datastore manager responsible for this version.
    required: true
    type: str

version:
    description: Datastore version number.  This is the Docker image version that will
      be downloaded and executed in the instance.
    required: true
    type: str

image_id:
    description: Glance image ID used for instances. Mutually exclusive with O(image_tags).
    type: str

datastore:
    description: Name of the datastore this version belongs to. If the datastore does
      not exist, it will be created.
    required: true
    type: str

image_tags:
    description: List of tags used to find the appropriate image in Glance.  Mutually
      exclusive with O(image_id).
    elements: str
    type: list

validation_rules:
    description: Path on the controller to the configuration validation rules for this
      datastore version.
    required: true
    type: path