yadro.tatlin_uni.tatlin_sp_mgmt_port module – Configure SP network settings

Note

This module is part of the yadro.tatlin_uni collection (version 1.0.0).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install yadro.tatlin_uni.

To use it in a playbook, specify: yadro.tatlin_uni.tatlin_sp_mgmt_port.

New in version 1.0.0: of yadro.tatlin_uni

Synopsis

  • This module is intended to configure management port

  • Supports check mode

Parameters

Parameter

Comments

connection

dictionary / required

connection describes Tatlin Storage Processor (SP) connection configuration.

Only session connection supported.

Authorization is executed automatically with corresponding endpoint. ‘auth/login’ by default.

Client receives x-auth-token and uses it for following requests.

base_url

string / required

Tatlin REST API entrypoint.

password

string

Tatlin user password.

timeout

integer

Tatlin REST API request timeout.

Default: 60

username

string

Tatlin username to login.

validate_certs

boolean

Responsible for SSL certificates validation.

If set to False certificates won’t validated.

Choices:

  • no

  • yes ← (default)

gateway

string

Ip address of default gateway

mtu

integer

Maximum transmission unit

nodes

list / elements=dictionary

List of storage processors with corresponding ip addresses

Listed addresses will replace all addresses of storage processor. For example, if there are addresses 192.168.0.10 and 192.168.0.11 at sp-0 and only one address 192.168.0.20 was passed, result addresses list will contain single 192.168.0.20

addresses

list / elements=dictionary / required

List of ip addresses with mask

ip

string / required

Ip address of Storage Processor

mask

string / required

Ip address mask

name

string / required

Name of Storage Processor

virtual_address

dictionary

Storage Processor’s virtual ip with mask

ip

string / required

Virtual ip address of Storage Processor

mask

string / required

Virtual ip address mask

Notes

Note

  • If connection address will be changed by this module, connection will be lost. If there are further tasks that must be executed setting new connection address by set_fact may be used. Also connection address in inventory will no longer be relevant

Examples

---
- name: Update mgmt port settings
  yadro.tatlin_uni.tatlin_sp_mgmt_port:
    connection: "{{ connection }}"
    nodes:
      - name: sp-0
        addresses:
          - ip: 192.168.0.2
            mask: 24
          - ip: 192.168.0.3
            mask: 24
      - name: sp-1
        addresses:
          - ip: 192.168.0.4
            mask: 24
          - ip: 192.168.0.5
            mask: 24
    gateway: 192.168.0.1
    mtu: 1500
    virtual_address:
      ip: 192.168.0.6
      mask: 24

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

error

string

Error details if raised

Returned: on error

msg

string

Operation status message

Returned: always

Authors

  • Sergey Kovalev (@kvlvs)