yadro.tatlin_uni.tatlin_sp_host module – Create and modify host
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_host
.
New in version 1.0.0: of yadro.tatlin_uni
Synopsis
This module is intended for creating new host or change specific parameters for existing host
Supports check mode
Parameters
Parameter |
Comments |
---|---|
The type of authentication Required if new host is creating and port_type=eth Forbidden if port_type=dc Forbidden to change Choices:
|
|
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. |
|
Tatlin REST API entrypoint. |
|
Tatlin user password. |
|
Tatlin REST API request timeout. Default: 60 |
|
Tatlin username to login. |
|
Responsible for SSL certificates validation. If set to False certificates won’t validated. Choices:
|
|
The password of the user for iscsi connection to host Required if auth=mutual |
|
The name of the user for iscsi connection to host Required if auth=mutual |
|
Name of the host |
|
The password of the user for iscsi connection to Tatlin Required if auth=oneway or auth=mutual |
|
The port type of the host server Required if new host is creating Choices:
|
|
The identifiers of the hosts` ports (wwpn or iqn) |
|
The tags of the host |
|
The name of the user for iscsi connection to Tatlin Required if auth=oneway or auth=mutual |
Examples
---
- name: Set host
yadro.tatlin_uni.tatlin_sp_host:
connection: "{{ connection }}"
name: newhost
port_type: eth
ports:
- some_iqn1
- some_iqn2
tags:
- tag1
- tag2
auth: mutual
username: name1
password: pass1
mutual_username: name2
mutual_password: name2
- name: Test host | Update tags
yadro.tatlin_uni.tatlin_sp_host:
connection: "{{ connection }}"
name: newhost
tags:
- tag2
- tag3
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Error details if raised Returned: on error |
|
Operation status message Returned: always |