purestorage.flashblade.purefb_bucket_replica (1.17.0) — module

Manage bucket replica links between Pure Storage FlashBlades

| "added in version" 1.0.0 of purestorage.flashblade"

Authors: Pure Storage Ansible Team (@sdodsley) <pure-ansible-team@purestorage.com>

preview | supported by community

Install collection

Install with ansible-galaxy collection install purestorage.flashblade:==1.17.0


Add to requirements.yml

  collections:
    - name: purestorage.flashblade
      version: 1.17.0

Description

This module manages bucket replica links between Pure Storage FlashBlades.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create new bucket replica from foo to bar on arrayB
  purestorage.flashblade.purefb_bucket_replica:
    name: foo
    target: arrayB
    target_bucket: bar
    credentials: cred_1
    state: present
    fb_url: 10.10.10.2
    api_token: T-55a68eb5-c785-4720-a2ca-8b03903bf641
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Pause exisitng bucket replica link
  purestorage.flashblade.purefb_bucket_replica:
    name: foo
    paused: true
    fb_url: 10.10.10.2
    api_token: T-55a68eb5-c785-4720-a2ca-8b03903bf641
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete bucket replica link foo
  purestorage.flashblade.purefb_fs_replica:
    name: foo
    state: absent
    fb_url: 10.10.10.2

Inputs

    
name:
    description:
    - Local Bucket Name.
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Creates or modifies a bucket replica link
    required: false
    type: str

fb_url:
    description:
    - FlashBlade management IP address or Hostname.
    type: str

paused:
    default: false
    description:
    - State of the bucket replica link
    type: bool

target:
    description:
    - Remote array or target name to create replica on.
    required: false
    type: str

api_token:
    description:
    - FlashBlade API token for admin privileged user.
    type: str

cascading:
    default: false
    description:
    - Objects replicated to this bucket via a replica link from another array will also
      be replicated by this link to the remote bucket
    type: bool
    version_added: 1.14.0
    version_added_collection: purestorage.flashblade

credential:
    description:
    - Name of remote credential name to use.
    required: false
    type: str

target_bucket:
    description:
    - Name of target bucket name
    - If not supplied, will default to I(name).
    required: false
    type: str