Scott Baker | 9a16e6c | 2015-08-05 18:24:14 -0700 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
Scott Baker | 5679f2a | 2015-08-05 18:44:14 -0700 | [diff] [blame] | 3 | description: > |
| 4 | * Create a new deployment, controller, and site. |
| 5 | * Add a SiteDeployment from the site to the deployment using the controller. |
Tony Mack | 3201006 | 2015-09-13 22:50:39 +0000 | [diff] [blame] | 6 | * Create a Slice in the Site, with one Instance |
Scott Baker | 9a16e6c | 2015-08-05 18:24:14 -0700 | [diff] [blame] | 7 | |
| 8 | imports: |
| 9 | - custom_types/xos.yaml |
| 10 | |
| 11 | topology_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 Baker | f6f3495 | 2015-08-05 18:41:00 -0700 | [diff] [blame] | 22 | 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 Baker | c2c205f | 2015-10-27 10:29:39 -0700 | [diff] [blame^] | 30 | rabbit_host: rabhost |
| 31 | rabbit_user: rabuser |
| 32 | rabbit_password: rabpw |
Scott Baker | 9a16e6c | 2015-08-05 18:24:14 -0700 | [diff] [blame] | 33 | |
| 34 | newsite: |
| 35 | type: tosca.nodes.Site |
Scott Baker | 068b118 | 2015-08-05 18:34:23 -0700 | [diff] [blame] | 36 | properties: |
| 37 | display_name: some new site |
Scott Baker | c399d76 | 2015-08-05 23:45:29 -0700 | [diff] [blame] | 38 | site_url: http://newsite.org/ |
Scott Baker | 9a16e6c | 2015-08-05 18:24:14 -0700 | [diff] [blame] | 39 | requirements: |
| 40 | - deployment: |
| 41 | node: newdeployment |
| 42 | relationship: tosca.relationships.SiteDeployment |
| 43 | requirements: |
| 44 | - controller: |
| 45 | node: newcontroller |
Scott Baker | 0bc1bd7 | 2015-09-16 16:11:30 -0700 | [diff] [blame] | 46 | relationship: tosca.relationships.UsesController |
Scott Baker | 9a16e6c | 2015-08-05 18:24:14 -0700 | [diff] [blame] | 47 | |
| 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 |