blob: 7ba953bcc89383eac7a00ff1c19b367612ff97ac [file] [log] [blame]
Zack Williams682450e2016-11-19 09:04:41 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3imports:
4 - custom_types/xos.yaml
5
6description: list of compute nodes, created by platform-install
7
8topology_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