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: list of compute nodes, created by platform-install |
| 7 | |
| 8 | topology_template: |
| 9 | node_templates: |
| 10 | |
| 11 | # Site/Deployment, fully defined in deployment.yaml |
| 12 | {{ site_name }}: |
| 13 | type: tosca.nodes.Site |
| 14 | |
| 15 | {{ deployment_type }}: |
| 16 | type: tosca.nodes.Deployment |
| 17 | |
| 18 | # compute nodes |
| 19 | {% for node in groups["compute"] %} |
| 20 | {{ hostvars[node]['ansible_hostname'] }}: |
| 21 | type: tosca.nodes.Node |
| 22 | requirements: |
| 23 | - site: |
| 24 | node: {{ site_name }} |
| 25 | relationship: tosca.relationships.MemberOfSite |
| 26 | - deployment: |
| 27 | node: {{ deployment_type }} |
| 28 | relationship: tosca.relationships.MemberOfDeployment |
| 29 | |
| 30 | {% endfor %} |
| 31 | |