ansible.builtin.purefb_bucket (v2.9.27) — module

Manage Object Store Buckets on a Pure Storage FlashBlade.

| "added in version" 2.8 of ansible.builtin"

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

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

This module managess object store (s3) buckets on Pure Storage FlashBlade.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create new bucket named foo in account bar
  purefb_bucket:
    name: foo
    account: bar
    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 named foo in account bar
  purefb_bucket:
    name: foo
    account: bar
    state: absent
    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: Recover deleted bucket named foo in account bar
  purefb_bucket:
    name: foo
    account: bar
    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: Eradicate bucket named foo in account bar
  purefb_bucket:
    name: foo
    account: bar
    state: absent
    eradicate: true
    fb_url: 10.10.10.2
    api_token: T-55a68eb5-c785-4720-a2ca-8b03903bf641

Inputs

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

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Create, delete or modifies a bucket.
    required: false
    type: str

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

account:
    description:
    - Object Store Account for Bucket.
    required: true
    type: str

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

eradicate:
    default: false
    description:
    - Define whether to eradicate the bucket on delete or leave in trash.
    required: false
    type: bool