kowabunga.cloud.volume module – Manage Kowabunga storage volumes

Note

This module is part of the kowabunga.cloud collection (version 0.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 kowabunga.cloud. You need further requirements to be able to use this module, see Requirements for details.

To use it in a playbook, specify: kowabunga.cloud.volume.

Synopsis

  • Create, update or delete a Kowabunga storage volume.

Requirements

The below requirements are needed on the host that executes this module.

  • python >= 3.8

  • kowabunga >= 0.52.5

Parameters

Parameter

Comments

api_key

string / required

Private API key used to connect with specified Kowabunga Kahuna endpoint. Recommended to be encrypted using Ansible Vault or SOPS.

description

string

Description for the storage volume.

endpoint

string / required

HTTPS(S) URI of the Kowabunga Kahuna endpoint. Should be formatted as https://kowabunga.acme.com for example.

name

string / required

Name for the storage volume.

This attribute cannot be updated.

project

string / required

Name (or ID) of the project where the volume will be created.

region

string / required

Name (or ID) of the region where the volume will be created.

size

integer / required

Volume size in gigabytes.

This attribute cannot be updated.

state

string

Should the resource be present or absent.

Choices:

  • "present" ← (default)

  • "absent"

type

string / required

Volume type.

This attribute cannot be updated.

Choices:

  • "os"

  • "iso"

  • "raw"

Examples

- name: Create a storage volume
  kowabunga.cloud.volume:
    endpoint: https://kowabunga.acme.com
    api_key: API_KEY
    name: disk-01
    type: os
    size: 20
    project: my-project
    region: eu-west-1

- name: Delete a storage volume
  kowabunga.cloud.volume:
    endpoint: https://kowabunga.acme.com
    api_key: API_KEY
    name: disk-01
    project: my-project
    region: eu-west-1
    state: absent

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

volume

dictionary

Dictionary describing the storage volume.

Returned: On success when state is present.

description

string

Volume description

Returned: success

Sample: "Disk 01"

id

string

Volume ID

Returned: success

Sample: "6850281677f2462b6919dbe5"

name

string

Volume name

Returned: success

Sample: "disk-01"

size

integer

Volume size in GB

Returned: success

Sample: 20

type

string

Volume type

Returned: success

Sample: "os"

Authors

  • The Kowabunga Project