pn_cluster - CLI command to create/delete a cluster.

New in version 2.2.

Synopsis

Parameters

Parameter Choices/Defaults Comments
pn_clipassword
Provide login password if user is not root.
pn_cliswitch
Target switch to run the cli on.
pn_cliusername
Provide login username if user is not root.
pn_cluster_node1
Specify the name of the first switch in the cluster.
Required for 'cluster-create'.
pn_cluster_node2
Specify the name of the second switch in the cluster.
Required for 'cluster-create'.
pn_name
required
Specify the name of the cluster.
pn_validate
    Choices:
  • validate
  • no-validate
Validate the inter-switch links and state of switches in the cluster.
state
required
    Choices:
  • present
  • absent
Specify action to perform. Use 'present' to create cluster and 'absent' to delete cluster.

Examples

- name: create spine cluster
  pn_cluster:
    state: 'present'
    pn_name: 'spine-cluster'
    pn_cluster_node1: 'spine01'
    pn_cluster_node2: 'spine02'
    pn_validate: validate
    pn_quiet: True

- name: delete spine cluster
  pn_cluster:
    state: 'absent'
    pn_name: 'spine-cluster'
    pn_quiet: True

Return Values

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

Key Returned Description
changed
bool
always
Indicates whether the CLI caused changes on the target.

command
str
always
The CLI command run on the target node(s).

stderr
list
on error
The set of error responses from the cluster command.

stdout
list
always
The set of responses from the cluster command.



Status

This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.

Maintenance

This module is flagged as community which means that it is maintained by the Ansible Community. See Module Maintenance & Support for more info.

For a list of other modules that are also maintained by the Ansible Community, see here.

Author

  • Pluribus Networks (@amitsi)

Hint

If you notice any issues in this documentation you can edit this document to improve it.