saltext.vmware.states.nsxt_manager#

NSX-T Datacenter Configuration Management state module#

maintainer:

<VMware>

maturity:

new

Enable/Disable the NSX-T manager’s publish_fqdns status.

Example usage:

configure_nsx_manager:
  nsx_manager.publish_fqdns_enabled:
    - name: Enable publish fqdns
      hostname: <hostname>
      username: <username>
      password: <password>
      cert: <certificate pem file path>
      verify_ssl: <False/True>

Warning

It is recommended to pass the NSX authentication details using Pillars rather than specifying as plain text in SLS files.

saltext.vmware.states.nsxt_manager.__virtual__()[source]#

Only load if the nsxt_manager module is available in __salt__

saltext.vmware.states.nsxt_manager.publish_fqdns_enabled(name, hostname, username, password, verify_ssl=True, cert=None, cert_common_name=None)[source]#

Check the value for publish_fqdns, if it is true then do nothing else set it to true

configure_nsxt_manager:
  nsx_manager.publish_fqdns_enabled:
    - name: Enable publish fqdns
    - hostname: <hostname>
    - username: <username>
    - password: <password>
    - cert: <certificate path>
    - verify_ssl: <False/True>
name

The Operation to perform

hostname

NSX-T manager’s hostname

username

NSX-T manager’s username

password

NSX-T manager’s password

verify_ssl

(Optional) Option to enable/disable SSL verification. Enabled by default. If set to False, the certificate validation is skipped.

cert

(Optional) Path to the SSL client certificate file to connect to NSX-T manager. The certificate can be retrieved from browser.

cert_common_name

(Optional) By default, the hostname parameter and the common name in certificate is compared for host name verification. If the client certificate common name and hostname do not match (in case of self-signed certificates), specify the certificate common name as part of this parameter. This value is then used to compare against certificate common name.

saltext.vmware.states.nsxt_manager.publish_fqdns_disabled(name, hostname, username, password, verify_ssl=True, cert=None, cert_common_name=None)[source]#

Check the value for publish_fqdns, if it is false then do nothing else set it to false

configure_nsxt_manager:
  nsx_manager.publish_fqdns_disabled:
    - name: Disable publish fqdns
    - hostname: <hostname>
    - username: <username>
    - password: <password>
    - cert: <certificate>
    - verify_ssl: <False/True>
name

The Operation to perform

hostname

NSX-T manager’s hostname

username

NSX-T manager’s username

password

NSX-T manager’s password

verify_ssl

(Optional) Option to enable/disable SSL verification. Enabled by default. If set to False, the certificate validation is skipped.

cert

(Optional) Path to the SSL client certificate file to connect to NSX-T manager. The certificate can be retrieved from browser.

cert_common_name

(Optional) By default, the hostname parameter and the common name in certificate is compared for host name verification. If the client certificate common name and hostname do not match (in case of self-signed certificates), specify the certificate common name as part of this parameter. This value is then used to compare against certificate common name.