On this page
community.skydive.skydive_node – Module which add nodes to Skydive topology
Note
This plugin 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
.
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 | Choices/Defaults | Comments | |
---|---|---|---|
host
string
|
To define host for the node.
|
||
metadata
string
|
To define metadata for the node.
|
||
name
string / required
|
To define name for the node.
|
||
node_type
string / required
|
To define type for the node.
|
||
provider
string
|
A dict object containing connection details.
|
||
endpoint
string / required
|
Specifies the hostname/address along with the port as localhost:8082 for connecting to the remote instance of SKYDIVE client over the REST API.
|
||
insecure
boolean
|
|
Ignore SSL certification verification.
|
|
password
string
|
Specifies the password to use to authenticate the connection to the remote instance of SKYDIVE client.
|
||
ssl
boolean
|
|
Specifies the ssl parameter that decides if the connection type shall be http or https.
|
|
user
string
|
Configures the username to use to authenticate the connection to the remote instance of SKYDIVE client.
|
||
seed
string
|
Default:
""
|
used to generate the UUID of the node
|
|
state
string
|
|
State of the Skydive Node. If value is present new node will be created else if it is absent it will be deleted.
|
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
Authors
- Sumit Jaiswal (@sjaiswal)
© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/skydive/skydive_node_module.html