| tosca_definitions_version: tosca_simple_yaml_1_0 |
| description: Adds OpenStack compute nodes |
| # Site/Deployment, fully defined in deployment.yaml |
| type: tosca.nodes.Deployment |
| # OpenStack compute nodes |
| {% for node in groups["compute"] %} |
| {% if (('ipv4' in hostvars[node]['ansible_fabric']) or |
| ('ipv4' in hostvars[node]['ansible_br_int'])) %} |
| {{ hostvars[node]['ansible_hostname'] }}: |
| relationship: tosca.relationships.MemberOfSite |
| node: {{ deployment_type }} |
| relationship: tosca.relationships.MemberOfDeployment |