ctera.ctera.ctera_portal_storage_node (2.2.17) — module

CTERA-Networks Portal Storage Node Management

Authors: Saimon Michelson (@saimonation), Ygal Blum (@ygalblum)

preview | supported by community

Install collection

Install with ansible-galaxy collection install ctera.ctera:==2.2.17


Add to requirements.yml

  collections:
    - name: ctera.ctera
      version: 2.2.17

Description

Manage Portal Storage Node

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: New Storage node
  ctera_portal_storage_node:
    name: Example
    bucket_info:
      bucket_type: S3
      bucket: ctera
      access_key: ACCESSKEY
      secret_key: SECRETKEY
    ctera_host: "{{ ctera_portal_hostname }}"
    ctera_user: "{{ ctera_portal_user }}"
    ctera_password: "{{ ctera_portal_password }}"

Inputs

    
name:
    description: The name of the managed Storage Node
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Whether the specified Storage Node should exist or not.
    type: str

tenant:
    description:
    - Name of the tenant.
    - For Global Admin operations set to "$admin"
    - Use default if not provided.
    - Do not set for initialization operations
    type: str

read_only:
    default: false
    description: Set bucket to read-delete only, defaults to False
    type: bool

bucket_info:
    description: The type of the managed storage node. Required when c(state) is present
    suboptions:
      access_key:
        description: Access Key to connect to the bucket
        required: true
        type: str
      bucket:
        description: Name of the storage node bucket
        required: true
        type: str
      bucket_type:
        choices:
        - Azure
        - Scality
        - AWS
        - ICOS
        - GenericS3
        - Nutanix
        - Wasabi
        - Google
        - NetAppStorageGRID
        description: The type of the managed storage node
        required: true
        type: str
      direct:
        description: Use Direct Upload. If not provided, the default per c(bucket_type)
          is used
        type: bool
      endpoint:
        description: Endpoint of the bucket. Required when c(bucket_type) is ScalityS3,
          CleverSafeS3, GenericS3 Nutanix WasabiS3 or GoogleS3
        type: str
      https:
        description: Use HTTPS for connection. If not provided, the default per c(bucket_type)
          is used
        type: bool
      secret_key:
        description: Secret Key to connect to the bucket
        required: true
        type: str
    type: dict

dedicated_to:
    description: Name of the tenant to dedicate the storage node to
    type: str