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 | |
| 23 | management_hosts_template: |
| 24 | type: tosca.nodes.NetworkTemplate |
| 25 | properties: |
| 26 | visibility: private |
| 27 | translation: none |
| 28 | vtn_kind: MANAGEMENT_HOST |
| 29 | |
| 30 | management: |
| 31 | type: tosca.nodes.network.Network |
| 32 | properties: |
| 33 | ip_version: 4 |
| 34 | cidr: {{ management_network_cidr }} |
| 35 | requirements: |
| 36 | - network_template: |
| 37 | node: management_template |
| 38 | relationship: tosca.relationships.UsesNetworkTemplate |
| 39 | - owner: |
| 40 | node: {{ site_name }}_management |
| 41 | relationship: tosca.relationships.MemberOfSlice |
| 42 | |
| 43 | {{ site_name }}_management: |
| 44 | description: This slice exists solely to own the management network |
| 45 | type: tosca.nodes.Slice |
| 46 | properties: |
| 47 | network: noauto |
| 48 | requirements: |
| 49 | - site: |
| 50 | node: {{ site_name }} |
| 51 | relationship: tosca.relationships.MemberOfSite |
| 52 | |