Ansible repository with playbooks to manage azure objects
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

49 regels
1.3 KiB

  1. {
  2. "location": "{{ vngw.location }}",
  3. "properties": {
  4. "enableBgpRouteTranslationForNat": {{ vngw.bgproute4nat }},
  5. "enableDnsForwarding": {{ vngw.dnsfwd }},
  6. "enablePrivateIpAddress": {{ vngw.privateip }},
  7. {% if vngw.lngwid is defined and vngw.lngwid != '' %}
  8. "gatewayDefaultSite": {
  9. "id": "{{ vngw.lngwid }}"
  10. },
  11. {% endif %}
  12. "ipConfigurations": [
  13. {% for ipc in vngw.ipcs %}
  14. {
  15. "name": "{{ ipc.name }}",
  16. "properties": {
  17. "privateIPAllocationMethod": "{{ ipc.allocmethod }}",
  18. {% if ipc.allocmethod == "Static" %}
  19. "privateIPAddress": "{{ ipc.privateip }}",
  20. {% endif %}
  21. "publicIPAddress": {
  22. "id": "{{ ipc.pipid }}"
  23. },
  24. "subnet": {
  25. "id": "{{ ipc.subnetid }}"
  26. }
  27. }
  28. },
  29. {% endfor %}
  30. ],
  31. "activeActive": {{ vngw.activeactive }},
  32. "sku": {
  33. "name": "{{ vngw.sku }}",
  34. "tier": "{{ vngw.sku }}"
  35. },
  36. "gatewayType": "{{ vngw.gwtype }}",
  37. "vpnType": "{{ vngw.vpntype }}",
  38. "enableBgp": {{ vngw.enablebgp }},
  39. {% if vngw.enablebgp == "true" %}
  40. "bgpSettings": {
  41. "asn": {{ vngw.asn }},
  42. "bgpPeeringAddress": "{{ vngw.peers }}",
  43. "peerWeight": {{ vngw.weight }}
  44. },
  45. {% endif %}
  46. "vpnGatewayGeneration": "{{ vngw.generation }}"
  47. }
  48. }