Comments (2)
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}}"
- tag: "{{edge_tn_tag}}"
- name: Create edge transport nodes
Thanks,
Priyanka
from ansible-for-nsxt.
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)
- Add option to remove unscpecified rules when updating a Security Policy HOT 1
- NSX-T RS Mode support
- SNMP collector settings
- NSX cannot be enabled on vLCM enabled cluster as trust is not enabled on Compute Manager
- Cannot deploy a VRF using vmware.ansible_for_nsxt.nsxt_policy_tier0 HOT 1
- Edge node deployment cannot set DNS server, NTP server and DNS domain
- ERROR! couldn't resolve module/action 'nsxt_fabric_compute_manager'. This often indicates a misspelling, missing collection, or incorrect module path HOT 3
- NSXT Edges Pool Allocation Size
- Module nsxt_policy_tier1 is missing ha_mode parameter HOT 1
- git hub branch for NSX-T 4.1
- nsxt_fabric_compute_managers support for 'create_service_account'
- nsxt_uplink_profiles module fails after initial run
- SyntaxWarning: invalid escape sequence '\w' HOT 1
- Ansible-Segment-Creation-error
- Branch to be used for version NSXT-4.X HOT 1
- Permissions required to run nsxt_vm_tags module HOT 5
- Add the ability to create policy groups that are of the "IP Address Only" type. HOT 1
- KeyError: external_interface_info in nsxt_policy_tier0.py HOT 1
- nsxt_transport_node_profiles -- User must provide VdsUplink for HostSwitch
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-for-nsxt.