Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | imports: |
| 4 | - custom_types/xos.yaml |
| 5 | |
| 6 | description: management network config, generated by platform-install |
| 7 | |
| 8 | topology_template: |
| 9 | node_templates: |
| 10 | |
| 11 | # site, fully created in deployment.yaml |
| 12 | {{ site_name }}: |
| 13 | type: tosca.nodes.Site |
| 14 | |
| 15 | # management network |
| 16 | management_template: |
| 17 | type: tosca.nodes.NetworkTemplate |
| 18 | properties: |
| 19 | visibility: private |
| 20 | translation: none |
| 21 | vtn_kind: MANAGEMENT_LOCAL |
| 22 | |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 23 | management: |
| 24 | type: tosca.nodes.network.Network |
| 25 | properties: |
| 26 | ip_version: 4 |
| 27 | cidr: {{ management_network_cidr }} |
| 28 | requirements: |
| 29 | - network_template: |
| 30 | node: management_template |
| 31 | relationship: tosca.relationships.UsesNetworkTemplate |
| 32 | - owner: |
| 33 | node: {{ site_name }}_management |
| 34 | relationship: tosca.relationships.MemberOfSlice |
| 35 | |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 36 | {% if use_management_hosts %} |
| 37 | management_hosts_template: |
| 38 | type: tosca.nodes.NetworkTemplate |
| 39 | properties: |
| 40 | visibility: private |
| 41 | translation: none |
| 42 | vtn_kind: MANAGEMENT_HOST |
| 43 | |
| 44 | management_hosts: |
| 45 | type: tosca.nodes.network.Network |
| 46 | properties: |
| 47 | ip_version: 4 |
| 48 | cidr: {{ management_hosts_net_cidr }} |
| 49 | start_ip: {{ management_hosts_net_range_xos_low }} |
| 50 | end_ip: {{ management_hosts_net_range_xos_high }} |
| 51 | requirements: |
| 52 | - network_template: |
| 53 | node: management_hosts_template |
| 54 | relationship: tosca.relationships.UsesNetworkTemplate |
| 55 | - owner: |
| 56 | node: {{ site_name }}_management |
| 57 | relationship: tosca.relationships.MemberOfSlice |
| 58 | {% endif %} |
| 59 | |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 60 | {{ site_name }}_management: |
| 61 | description: This slice exists solely to own the management network |
| 62 | type: tosca.nodes.Slice |
| 63 | properties: |
| 64 | network: noauto |
| 65 | requirements: |
| 66 | - site: |
| 67 | node: {{ site_name }} |
| 68 | relationship: tosca.relationships.MemberOfSite |
| 69 | |