VMware Networking Community
haozch
Enthusiast
Enthusiast
Jump to solution

ansible automate deploy nsx-t 2.5

hi,

I have used ansible and deploy nsx-manager and add vcenter to nsx-manager.

next step, I will deploy edge node.

in setup_infra_var.yml file, I don't know how to fetch value.

"node_deployment_info": {

        "deployment_type": "VIRTUAL_MACHINE",

        "deployment_config": {

          "vm_deployment_config": {

            "vc_name": "vcenter",

            "compute_id": "domain-c7",

            "storage_id": "datastore-21",

            "host_id": "host-20",

           "management_network_id": "network-16",

            "hostname": "edgenode-02.lab.local",

           "data_network_ids": [

              "network-16",

              "dvportgroup-24",

              "dvportgroup-24"


how to fetch  compute_id/stroage_id/host_id/manager_netowrk_id/data_nework_ids.

#####################################################################################################################

     "node_deployment_info": {

        "resource_type": "HostNode",

        "ip_addresses": ["192.168.110.1"],

        "os_type": "ESXI",

        "host_credential": {

          "username": "root",

          "password": "VM12345",

          "thumbprint": "61:FB:63:1A:7B:C2:9F:B2:1D:11:E4:4F:76:29:61:9B:E3:D2:DF:0D:F7:19:64:4B:39:DF:6F:A4:93:E1:BE:1B"

How to fetch thumbprint?

#####################################################################################################################

"edge_clusters": [

    {

      "display_name": "Edge-Cluster-01",

      "cluster_profile_binding_id": "91bcaa06-47a1-11e4-8316-17ffc770799b",

      "members": [

        {

          "transport_node_name": "EdgeNode-01"

        },

How to fetch  cluster_profile_binding_id"?

Reply
0 Kudos
1 Solution

Accepted Solutions
mauricioamorim
VMware Employee
VMware Employee
Jump to solution

The information for deployment comes from vCenter. Best place to get this information is from vCenter MOB, which can be accessed by https://x.x.x.x/mob/ (where x.x.x.x is your vCenter IP address or hostname). There you can navigate the vCenter objects and can find the IDs of what you need to deploy the Edge VM under content > rootFolder.

This first step is vCenter only, necessary for sending the necessary information so the Edge VM can be deployed under the right cluster/host/datastore/networks.

The next part is for the Edge VM to be able to connect to the NSX Manager and register itself. You will see in the installation guide that the command to get the thumbprint is get certificate api thumbprint.

The last part is so the Edge VM joins a cluster. The ID can be seen in NSX-T manager under System > Fabric > Nodes > Edge Clusters on the desired cluster.

Take a look at the installation guide where you can find most of your answers. If you understand what the ansible script is doing and what is being automated it is easy to find the information you have to enter.

View solution in original post

Reply
0 Kudos
1 Reply
mauricioamorim
VMware Employee
VMware Employee
Jump to solution

The information for deployment comes from vCenter. Best place to get this information is from vCenter MOB, which can be accessed by https://x.x.x.x/mob/ (where x.x.x.x is your vCenter IP address or hostname). There you can navigate the vCenter objects and can find the IDs of what you need to deploy the Edge VM under content > rootFolder.

This first step is vCenter only, necessary for sending the necessary information so the Edge VM can be deployed under the right cluster/host/datastore/networks.

The next part is for the Edge VM to be able to connect to the NSX Manager and register itself. You will see in the installation guide that the command to get the thumbprint is get certificate api thumbprint.

The last part is so the Edge VM joins a cluster. The ID can be seen in NSX-T manager under System > Fabric > Nodes > Edge Clusters on the desired cluster.

Take a look at the installation guide where you can find most of your answers. If you understand what the ansible script is doing and what is being automated it is easy to find the information you have to enter.

Reply
0 Kudos