purestorage.flashblade.purefb_keytabs (1.17.0) — module

Manage FlashBlade Kerberos Keytabs

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

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

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

Manage Kerberos Keytabs for FlashBlades


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Import a binary keytab
  purestorage.flashblade.purefb_keytabs:
    state: import
    prefix: example
    keytab_file: pure_krb.keytab
    filetype: binary
    fb_url: 10.10.10.2
    api_token: T-9f276a18-50ab-446e-8a0c-666a3529a1b6
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Import a base64 keytab
  purestorage.flashblade.purefb_keytabs:
    state: import
    prefix: example
    keytab_file: pure_krb.keytab.mime
    filetype: base64
    fb_url: 10.10.10.2
    api_token: T-9f276a18-50ab-446e-8a0c-666a3529a1b6
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Export a keytab
  purestorage.flashblade.purefb_keytabs:
    state: export
    name: example.3
    fb_url: 10.10.10.2
    api_token: T-9f276a18-50ab-446e-8a0c-666a3529a1b6
  register: download_file
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete a keytab
  purestorage.flashblade.purefb_keytabs:
    state: absent
    name: example.3
    fb_url: 10.10.10.2
    api_token: T-9f276a18-50ab-446e-8a0c-666a3529a1b6
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Rotate current AD account keytabs
  purestorage.flashblade.purefb_keytabs:
    state: rotate
    fb_url: 10.10.10.2
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Rotate AD account keytabs by creating new series
  purestorage.flashblade.purefb_keytabs:
    state: rotate
    name: next_prefix
    fb_url: 10.10.10.2
    api_token: T-9f276a18-50ab-446e-8a0c-666a3529a1b6

Inputs

    
name:
    description:
    - Name of the Keytab
    - Must include prefix and suffix
    type: str

state:
    choices:
    - absent
    - import
    - export
    - rotate
    default: import
    description:
    - Manage Kerberos Keytabs
    type: str

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

prefix:
    description:
    - Only required for I(import) or I(rotate)
    - Prefix to use for naming the files slots
    - Specifying a file entry prefix is required because a single keytab file can contain
      multiple keytab entries in multiple slots.
    - If not provided for I(import) the current AD Account name will be used.
    type: str

filetype:
    choices:
    - binary
    - base64
    description:
    - Format of the keytab file
    type: str

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

keytab_file:
    description:
    - Name of file holding Keytab
    type: str

Outputs

download_file:
  description:
  - Name of file containing exported keytab
  returned: When using I(export) option
  sample: /tmp/pure_krb8939478070214877726.keytab
  type: str