blob: d4e37b19de3496f22fa9d735c96240cddbddc8a4 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
Zack Williamsa2763112017-01-03 11:38:38 -070019tosca_definitions_version: tosca_simple_yaml_1_0
20
21description: >
22 * Some sample data to populate the demo frontend
23
24imports:
25 - custom_types/xos.yaml
26
27topology_template:
28 node_templates:
29 trusty-server-multi-nic:
30 type: tosca.nodes.Image
31 properties:
32 disk_format: QCOW2
33 container_format: BARE
34
35 {{ deployment_type }}:
36 type: tosca.nodes.Deployment
37 properties:
38 flavors: m1.large, m1.medium, m1.small
39 requirements:
40 - image:
41 node: trusty-server-multi-nic
42 relationship: tosca.relationships.SupportsImage
43
44 CloudLab:
45 type: tosca.nodes.Controller
46 requirements:
47 - deployment:
48 node: {{ deployment_type }}
49 relationship: tosca.relationships.ControllerDeployment
50 properties:
51 backend_type: OpenStack
52 version: Juno
53 auth_url: http://sample/v2
54 admin_user: admin
55 admin_password: adminpassword
56 admin_tenant: admin
57 domain: Default
58
59 {{ site_name }}:
60 type: tosca.nodes.Site
61 properties:
62 display_name: {{ site_name }}
63 site_url: http://opencloud.us/
64 requirements:
65 - deployment:
66 node: {{ deployment_type }}
67 relationship: tosca.relationships.MemberOfDeployment
68 - controller:
69 node: CloudLab
70 relationship: tosca.relationships.UsesController
71
72 Public shared IPv4:
73 type: tosca.nodes.NetworkTemplate
74 properties:
75 visibility: private
76 translation: NAT
77
78 {{ xos_admin_user }}:
79 type: tosca.nodes.User
80 properties:
81 password: {{ xos_admin_pass }}
82 firstname: {{ xos_admin_first }}
83 lastname: {{ xos_admin_last }}
84 is_admin: True
85 is_active: True
86 requirements:
87 - site:
88 node: {{ site_name }}
89 relationship: tosca.relationships.MemberOfSite
90
91 node1.opencloud.us:
92 type: tosca.nodes.Node
93 requirements:
94 - site:
95 node: {{ site_name }}
96 relationship: tosca.relationships.MemberOfSite
97 - deployment:
98 node: {{ deployment_type }}
99 relationship: tosca.relationships.MemberOfDeployment
100
101 node2.opencloud.us:
102 type: tosca.nodes.Node
103 requirements:
104 - site:
105 node: {{ site_name }}
106 relationship: tosca.relationships.MemberOfSite
107 - deployment:
108 node: {{ deployment_type }}
109 relationship: tosca.relationships.MemberOfDeployment
110