Giter Club home page Giter Club logo

Comments (2)

Priyanka-Middha avatar Priyanka-Middha commented on September 1, 2024

Hi Wheezy,

Below is the sample Transport node edge deployment which is working fine. Could you please share the yaml which is failing for this Ansible module?


  • hosts: 127.0.0.1
    connection: local
    tasks:
    • name: Create edge transport nodes
      vmware.ansible_for_nsxt.nsxt_transport_nodes:
      hostname: "{{mgr_0_ip_address}}"
      username: "{{username}}"
      password: "{{password}}"
      validate_certs: False
      display_name: "{{display_name}}"
      description: "{{description}}"
      host_switch_spec:
      resource_type: StandardHostSwitchSpec
      host_switches:
      - host_switch_profiles:
      - name: "{{uplink_profile_name}}"
      type: UplinkHostSwitchProfile
      host_switch_name: "{{host_switch_name}}"
      host_switch_mode: "{{host_switch_mode}}"
      pnics:
      - device_name: "{{device_name}}"
      uplink_name: "{{uplink_name}}"
      ip_assignment_spec:
      resource_type: StaticIpPoolSpec
      ip_pool_name: "{{ip_pool_display_name}}"
      transport_zone_endpoints:
      - transport_zone_name: "{{transport_zone_display_name_1}}"
      - transport_zone_name: "{{transport_zone_display_name_2}}"
      node_deployment_info:
      resource_type: EdgeNode
      display_name: "{{node_display_name}}"
      deployment_type: VIRTUAL_MACHINE
      fqdn: "{{ip_address}}"
      ip_addresses:
      - "{{ip_address}}"
      node_settings:
      allow_ssh_root_login: "{{allow_ssh_root_login}}"
      enable_ssh: "{{enable_ssh}}"
      dns_servers:
      - "{{dns_server}}"
      ntp_servers:
      - "{{ntp_server}}"
      hostname: "{{node_display_name}}"
      search_domains:
      - "{{search_domains}}"
      tags:
      - tag: "{{edge_tag}}"
      scope: "{{edge_scope}}"
      deployment_config:
      form_factor: "{{form_factor}}"
      node_user_settings:
      cli_password: "{{password}}"
      root_password: "{{password}}"
      vm_deployment_config:
      placement_type: VsphereDeploymentConfig
      vc_name: "{{prod_vc_display_name}}"
      vc_username: "{{prod_vc_username}}"
      vc_password: "{{prod_vc_password}}"
      host: "{{prod_esx_ip}}"
      compute: "{{prod_vc_cluster}}"
      storage: "{{prod_vc_datastore}}"
      management_network: "{{prod_vc_portgroup}}"
      data_networks:
      - "{{prod_vc_portgroup}}"
      - "{{prod_vc_portgroup}}"
      - "{{prod_vc_portgroup}}"
      management_port_subnets:
      - ip_addresses:
      - "{{ip_address}}"
      prefix_length: "{{prefix_length}}"
      default_gateway_addresses:
      - "{{gateway}}"
      reservation_info:
      cpu_reservation:
      reservation_in_mhz: "{{reservation_in_mhz}}"
      reservation_in_shares: "{{reservation_in_shares}}"
      memory_reservation:
      reservation_percentage: "{{reservation_percentage}}"
      resource_allocation:
      cpu_count: "{{cpu_count}}"
      memory_allocation_in_mb: "{{memory_allocation_in_mb}}"
      tags:
      • tag: "{{edge_tn_tag}}"
        scope: "{{edge_tn_scope}}"
        state: "{{state}}"

Thanks,
Priyanka

from ansible-for-nsxt.

Wheezy93 avatar Wheezy93 commented on September 1, 2024

Hi Priyanka,

In attachement my role and default vars file.
My goal is to create multiple edge tranport node. So i isolate common parameter and i loop my task on edge node name.
create_node.zip

Regards,
Denis

from ansible-for-nsxt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.