nsxt_fabric_compute_managers – Register compute manager with NSX

New in version 2.7.

Synopsis

  • Registers compute manager with NSX. Inventory service will collect data from the registered compute manager

Parameters

Parameter Choices/Defaults Comments
credential
dictionary
Login credentials for the compute manager
description
string
Description of the resource
display_name
string / required
Display name
hostname
string / required
Deployed NSX manager hostname.
origin_type
string / required
Compute manager type like vCenter
password
string / required
The password to authenticate with the NSX manager.
server
string / required
IP address or hostname of compute manager
set_as_oidc_provider
boolean
    Choices:
  • no
  • yes
Specifies whether compute manager has been set as OIDC provider If the compute manager is VC and need to set set as OIDC provider for NSX then this flag should be set as true. This is specific to TKGS. NSX-T 3.0 only
state
- / required
    Choices:
  • present
  • absent
State can be either 'present' or 'absent'. 'present' is used to create or update resource. 'absent' is used to delete resource.
username
string / required
The username to authenticate with the NSX manager.

Examples

- name: Register compute manager with NSX
  nsxt_fabric_compute_managers:
    hostname: "10.192.167.137"
    username: "admin"
    password: "Admin!23Admin"
    validate_certs: False
    display_name: "vCenter"
    server: "10.161.244.213"
    description: "Description of the resource"
    origin_type: vCenter
    credential:
      credential_type: "UsernamePasswordLoginCredential"
      username: "administrator@vsphere.local"
      password: "Admin!23"
      thumbprint: "36:43:34:D9:C2:06:27:4B:EE:C3:4A:AE:23:BF:76:A0:0C:4D:D6:8A:D3:16:55:97:62:07:C2:84:0C:D8:BA:66"
    state: present

Status

  • This module is not guaranteed to have a backwards compatible interface. [preview]

  • This module is maintained by the Ansible Community. [community]

Authors

  • Rahul Raghuvanshi