blob: 5e36bcb15304d02178981914081646eed21645b6 [file] [log] [blame]
Scott Baker9a16e6c2015-08-05 18:24:14 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
Scott Baker5679f2a2015-08-05 18:44:14 -07003description: >
4 * Create a new deployment, controller, and site.
5 * Add a SiteDeployment from the site to the deployment using the controller.
Tony Mack32010062015-09-13 22:50:39 +00006 * Create a Slice in the Site, with one Instance
Scott Baker9a16e6c2015-08-05 18:24:14 -07007
8imports:
9 - custom_types/xos.yaml
10
11topology_template:
12 node_templates:
13 newdeployment:
14 type: tosca.nodes.Deployment
15
16 newcontroller:
17 type: tosca.nodes.Controller
18 requirements:
19 - deployment:
20 node: newdeployment
21 relationship: tosca.relationships.ControllerDeployment
Scott Bakerf6f34952015-08-05 18:41:00 -070022 properties:
23 backend_type: openstack
24 version: v1.23.4
25 auth_url: http://foo/
26 admin_user: johndoe
27 admin_password: letmeout
28 admin_tenant: 12345678
29 domain: mydomain
Scott Bakerc2c205f2015-10-27 10:29:39 -070030 rabbit_host: rabhost
31 rabbit_user: rabuser
32 rabbit_password: rabpw
Scott Baker9a16e6c2015-08-05 18:24:14 -070033
34 newsite:
35 type: tosca.nodes.Site
Scott Baker068b1182015-08-05 18:34:23 -070036 properties:
37 display_name: some new site
Scott Bakerc399d762015-08-05 23:45:29 -070038 site_url: http://newsite.org/
Scott Baker9a16e6c2015-08-05 18:24:14 -070039 requirements:
40 - deployment:
41 node: newdeployment
42 relationship: tosca.relationships.SiteDeployment
43 requirements:
44 - controller:
45 node: newcontroller
Scott Baker0bc1bd72015-09-16 16:11:30 -070046 relationship: tosca.relationships.UsesController
Scott Baker9a16e6c2015-08-05 18:24:14 -070047
48 newsite_tosca:
49 type: tosca.nodes.Slice
50 requirements:
51 - slice:
52 node: newsite
53 relationship: tosca.relationships.MemberOfSite
54
55 my_server:
56 type: tosca.nodes.Compute
57 capabilities:
58 # Host container properties
59 host:
60 properties:
61 num_cpus: 1
62 disk_size: 10 GB
63 mem_size: 4 MB
64 # Guest Operating System properties
65 os:
66 properties:
67 # host Operating System image properties
68 architecture: x86_64
69 type: linux
70 distribution: rhel
71 version: 6.5
72 requirements:
73 - slice:
74 node: newsite_tosca
75 relationship: tosca.relationships.MemberOfSlice