purestorage.flashblade.purefb_network (1.17.0) — module

Manage network interfaces in a Pure Storage FlashBlade

| "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 network interfaces on Pure Storage FlashBlade.

When creating a network interface a subnet must already exist with a network prefix that covers the IP address of the interface being created.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create new network interface named foo
  purestorage.flashblade.purefb_network:
    name: foo
    address: 10.21.200.23
    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: Change IP address of network interface named foo
  purestorage.flashblade.purefb_network:
    name: foo
    state: present
    address: 10.21.200.123
    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 network interface named foo
  purestorage.flashblade.purefb_network:
    name: foo
    state: absent
    fb_url: 10.10.10.2

Inputs

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

itype:
    choices:
    - vip
    default: vip
    description:
    - Type of interface.
    required: false
    type: str

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

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

address:
    description:
    - IP address of interface.
    required: false
    type: str

services:
    choices:
    - data
    - replication
    default: data
    description:
    - Define which services are configured for the interfaces.
    required: false
    type: str

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