purestorage.flashblade.purefb_alert (1.17.0) — module

Configure Pure Storage FlashBlade alert email settings

| "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

Configure alert email configuration for Pure Storage FlashArrays.

Add or delete an individual syslog server to the existing list of serves.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add new email recipient and enable, or enable existing email
  purestorage.flashblade.purefb_alert:
    address: "user@domain.com"
    enabled: true
    state: present
    fb_url: 10.10.10.2
    api_token: e31060a7-21fc-e277-6240-25983c6c4592
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete existing email recipient
  purestorage.flashblade.purefb_alert:
    state: absent
    address: "user@domain.com"
    fb_url: 10.10.10.2
    api_token: e31060a7-21fc-e277-6240-25983c6c4592

Inputs

    
state:
    choices:
    - absent
    - present
    default: present
    description:
    - Create or delete alert email
    type: str

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

address:
    description:
    - Email address (valid format required)
    required: true
    type: str

enabled:
    default: true
    description:
    - Set specified email address to be enabled or disabled
    type: bool

severity:
    choices:
    - info
    - warning
    - critical
    default: info
    description:
    - The minimum severity that an alert must have in order for emails to be sent to the
      array's alert watchers
    type: str

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