Pingping Lin | adef86c | 2017-01-23 22:36:46 +0000 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
Pingping Lin | adef86c | 2017-01-23 22:36:46 +0000 | [diff] [blame] | 3 | imports: |
| 4 | - custom_types/xos.yaml |
| 5 | |
Pingping Lin | 07cb966 | 2017-01-25 18:29:09 -0800 | [diff] [blame] | 6 | description: deployment config, generated by platform-install |
| 7 | |
Pingping Lin | adef86c | 2017-01-23 22:36:46 +0000 | [diff] [blame] | 8 | topology_template: |
| 9 | node_templates: |
| 10 | |
Pingping Lin | 07cb966 | 2017-01-25 18:29:09 -0800 | [diff] [blame] | 11 | # Flavors |
| 12 | |
Pingping Lin | adef86c | 2017-01-23 22:36:46 +0000 | [diff] [blame] | 13 | m1.small: |
| 14 | type: tosca.nodes.Flavor |
| 15 | |
| 16 | m1.medium: |
| 17 | type: tosca.nodes.Flavor |
| 18 | |
| 19 | m1.large: |
| 20 | type: tosca.nodes.Flavor |
| 21 | |
| 22 | m1.xlarge: |
| 23 | type: tosca.nodes.Flavor |
| 24 | |
Pingping Lin | 07cb966 | 2017-01-25 18:29:09 -0800 | [diff] [blame] | 25 | |
| 26 | # Deployment |
Pingping Lin | adef86c | 2017-01-23 22:36:46 +0000 | [diff] [blame] | 27 | MyDeployment: |
| 28 | type: tosca.nodes.Deployment |
| 29 | requirements: |
| 30 | - m1.small: |
Pingping Lin | 07cb966 | 2017-01-25 18:29:09 -0800 | [diff] [blame] | 31 | node: m1.small |
| 32 | relationship: tosca.relationships.SupportsFlavor |
Pingping Lin | adef86c | 2017-01-23 22:36:46 +0000 | [diff] [blame] | 33 | |
Pingping Lin | 07cb966 | 2017-01-25 18:29:09 -0800 | [diff] [blame] | 34 | - m1.medium: |
| 35 | node: m1.medium |
| 36 | relationship: tosca.relationships.SupportsFlavor |
| 37 | |
| 38 | - m1.large: |
| 39 | node: m1.large |
| 40 | relationship: tosca.relationships.SupportsFlavor |
| 41 | |
| 42 | - m1.xlarge: |
| 43 | node: m1.xlarge |
| 44 | relationship: tosca.relationships.SupportsFlavor |
| 45 | |
| 46 | |
| 47 | # Site |
Pingping Lin | adef86c | 2017-01-23 22:36:46 +0000 | [diff] [blame] | 48 | mysite: |
| 49 | type: tosca.nodes.Site |
| 50 | properties: |
| 51 | display_name: MySite |
Pingping Lin | 07cb966 | 2017-01-25 18:29:09 -0800 | [diff] [blame] | 52 | site_url: http://mysite.opencloud.us/ |
| 53 | hosts_nodes: true |
Pingping Lin | adef86c | 2017-01-23 22:36:46 +0000 | [diff] [blame] | 54 | requirements: |
Pingping Lin | 07cb966 | 2017-01-25 18:29:09 -0800 | [diff] [blame] | 55 | - deployment: |
| 56 | node: MyDeployment |
| 57 | relationship: tosca.relationships.MemberOfDeployment |
Pingping Lin | adef86c | 2017-01-23 22:36:46 +0000 | [diff] [blame] | 58 | |
Pingping Lin | 07cb966 | 2017-01-25 18:29:09 -0800 | [diff] [blame] | 59 | # Attach the Tenant view to the deployment |
Pingping Lin | adef86c | 2017-01-23 22:36:46 +0000 | [diff] [blame] | 60 | Tenant: |
| 61 | type: tosca.nodes.DashboardView |
| 62 | properties: |
| 63 | no-create: true |
| 64 | no-delete: true |
| 65 | requirements: |
| 66 | - deployment: |
| 67 | node: MyDeployment |
| 68 | relationship: tosca.relationships.SupportsDeployment |
| 69 | |
Pingping Lin | 07cb966 | 2017-01-25 18:29:09 -0800 | [diff] [blame] | 70 | # XOS Users |
Pingping Lin | adef86c | 2017-01-23 22:36:46 +0000 | [diff] [blame] | 71 | padmin@vicci.org: |
| 72 | type: tosca.nodes.User |
| 73 | properties: |
Pingping Lin | 07cb966 | 2017-01-25 18:29:09 -0800 | [diff] [blame] | 74 | password: letmein |
| 75 | firstname: PAdmin |
| 76 | lastname: VicciOrg |
| 77 | is_admin: True |
Pingping Lin | adef86c | 2017-01-23 22:36:46 +0000 | [diff] [blame] | 78 | requirements: |
Pingping Lin | 07cb966 | 2017-01-25 18:29:09 -0800 | [diff] [blame] | 79 | - site: |
| 80 | node: mysite |
| 81 | relationship: tosca.relationships.MemberOfSite |
| 82 | - tenant_dashboard: |
Pingping Lin | adef86c | 2017-01-23 22:36:46 +0000 | [diff] [blame] | 83 | node: Tenant |
| 84 | relationship: tosca.relationships.UsesDashboard |
| 85 | |