Heat templates for deploying OpenStack
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.

net-config-noop.j2.yaml 3.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. heat_template_version: rocky
  2. description: >
  3. Software Config to no-op for os-net-config. Using this will allow you
  4. to use the parameter driven (init-neutron-ovs) configuration instead.
  5. parameters:
  6. ControlPlaneIp:
  7. default: ''
  8. description: IP address/subnet on the ctlplane network
  9. type: string
  10. ControlPlaneSubnetCidr:
  11. default: ''
  12. description: >
  13. The subnet CIDR of the control plane network. (The parameter is
  14. automatically resolved from the ctlplane subnet's cidr attribute.)
  15. type: string
  16. ControlPlaneDefaultRoute:
  17. default: ''
  18. description: The default route of the control plane network. (The parameter
  19. is automatically resolved from the ctlplane subnet's gateway_ip attribute.)
  20. type: string
  21. ControlPlaneStaticRoutes:
  22. default: []
  23. description: >
  24. Routes for the ctlplane network traffic.
  25. JSON route e.g. [{'destination':'10.0.0.0/16', 'nexthop':'10.0.0.1'}]
  26. Unless the default is changed, the parameter is automatically resolved
  27. from the subnet host_routes attribute.
  28. type: json
  29. ControlPlaneMtu:
  30. default: 1500
  31. description: The maximum transmission unit (MTU) size(in bytes) that is
  32. guaranteed to pass through the data path of the segments in the network.
  33. (The parameter is automatically resolved from the ctlplane network's mtu attribute.)
  34. type: number
  35. DnsServers: # Override this via parameter_defaults
  36. default: []
  37. description: >
  38. DNS servers to use for the Overcloud (2 max for some implementations).
  39. If not set the nameservers configured in the ctlplane subnet's
  40. dns_nameservers attribute will be used.
  41. type: comma_delimited_list
  42. {%- for network in networks %}
  43. {{network.name}}IpSubnet:
  44. default: ''
  45. description: IP address/subnet on the {{network.name_lower}} network
  46. type: string
  47. {{network.name}}InterfaceRoutes:
  48. default: []
  49. description: >
  50. Routes for the {{network.name_lower}} network traffic.
  51. JSON route e.g. [{'destination':'10.0.0.0/16', 'nexthop':'10.0.0.1'}]
  52. Unless the default is changed, the parameter is automatically resolved
  53. from the subnet host_routes attribute.
  54. type: json
  55. {{network.name}}Mtu:
  56. default: {{network.mtu|default('1500')}}
  57. description: The maximum transmission unit (MTU) size(in bytes) that is
  58. guaranteed to pass through the data path of the segments in the
  59. {{network.name}} network.
  60. type: number
  61. {{network.name}}InterfaceDefaultRoute:
  62. default: ''
  63. description: default route for the {{network.name_lower}} network
  64. type: string
  65. {{network.name}}NetworkVlanID:
  66. default: {{network.vlan|default(1)}}
  67. description: Vlan ID for the {{network.name_lower}} network traffic.
  68. type: number
  69. {%- endfor %}
  70. resources:
  71. OsNetConfigImpl:
  72. type: OS::Heat::StructuredConfig
  73. properties:
  74. group: apply-config
  75. config: {}
  76. outputs:
  77. OS::stack_id:
  78. description: The OsNetConfigImpl resource.
  79. value: {get_resource: OsNetConfigImpl}