community.skydive.skydive_node module – Module which add nodes to Skydive topology
Note
This module is part of the community.skydive 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 community.skydive
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: community.skydive.skydive_node
.
Synopsis
This module handles adding node to the Skydive topology.
Requirements
The below requirements are needed on the host that executes this module.
skydive-client
Parameters
Parameter |
Comments |
---|---|
To define host for the node. |
|
To define metadata for the node. |
|
To define name for the node. |
|
To define type for the node. |
|
A dict object containing connection details. |
|
Specifies the hostname/address along with the port as |
|
Ignore SSL certification verification. Choices:
|
|
Specifies the password to use to authenticate the connection to the remote instance of SKYDIVE client. |
|
Specifies the ssl parameter that decides if the connection type shall be http or https. Choices:
|
|
Configures the username to use to authenticate the connection to the remote instance of SKYDIVE client. |
|
used to generate the UUID of the node Default: |
|
State of the Skydive Node. If value is present new node will be created else if it is absent it will be deleted. Choices:
|
Notes
Note
This module must be run locally, which can be achieved by specifying
connection: local
.
Examples
- name: create tor node
community.skydive.skydive_node:
name: TOR
node_type: fabric
seed: TOR1
metadata:
Model: Cisco 5300
state: present
provider:
endpoint: localhost:8082
username: admin
password: admin
- name: update tor node
community.skydive.skydive_node:
name: TOR
node_type: host
seed: TOR1
metadata:
Model: Cisco 3400
state: update
provider:
endpoint: localhost:8082
username: admin
password: admin
- name: Delete the tor node
community.skydive.skydive_node:
name: TOR
node_type: host
seed: TOR1
metadata:
Model: Cisco 3400
state: absent
provider:
endpoint: localhost:8082
username: admin
password: admin