Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 1 | --- |
| 2 | # Copyright 2018-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | # Default values for the base-openstack profile. |
| 17 | # This is a YAML-formatted file. |
| 18 | # Declare variables to be passed into your templates. |
| 19 | |
| 20 | replicaCount: 1 |
| 21 | |
| 22 | nameOverride: "" |
| 23 | fullnameOverride: "" |
| 24 | |
Matteo Scandolo | e2965c9 | 2018-05-08 13:22:20 -0700 | [diff] [blame] | 25 | imagePullPolicy: 'Always' |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 26 | |
| 27 | httpieImage: "clue/httpie:latest" |
| 28 | |
Andy Bavier | 43cdc66 | 2018-05-15 14:50:47 -0700 | [diff] [blame] | 29 | xosAdminUser: "admin@opencord.org" |
| 30 | xosAdminPassword: "letmein" |
| 31 | |
| 32 | cordSiteName: &site "mysite" |
| 33 | cordDeploymentName: &deployment "mydeployment" |
| 34 | |
| 35 | keystoneAdminUser: "admin" |
| 36 | keystoneAdminPassword: "password" |
| 37 | keystoneAdminTenant: "admin" |
| 38 | keystoneDomain: "Default" |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 39 | |
| 40 | # TOSCA recipes for the tosca-loader |
| 41 | toscaRecipes: |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 42 | openstackCompute: |
| 43 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 44 | |
| 45 | imports: |
| 46 | - custom_types/deployment.yaml |
| 47 | - custom_types/node.yaml |
| 48 | - custom_types/site.yaml |
| 49 | - custom_types/sitedeployment.yaml |
| 50 | |
| 51 | description: Adds OpenStack compute nodes |
| 52 | |
| 53 | topology_template: |
| 54 | node_templates: |
| 55 | |
| 56 | # Site/Deployment, fully defined in deployment.yaml |
Andy Bavier | 43cdc66 | 2018-05-15 14:50:47 -0700 | [diff] [blame] | 57 | site: |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 58 | type: tosca.nodes.Site |
| 59 | properties: |
Andy Bavier | 43cdc66 | 2018-05-15 14:50:47 -0700 | [diff] [blame] | 60 | name: *site |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 61 | must-exist: true |
| 62 | |
Andy Bavier | 43cdc66 | 2018-05-15 14:50:47 -0700 | [diff] [blame] | 63 | deployment: |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 64 | type: tosca.nodes.Deployment |
| 65 | properties: |
Andy Bavier | 43cdc66 | 2018-05-15 14:50:47 -0700 | [diff] [blame] | 66 | name: *deployment |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 67 | must-exist: true |
| 68 | |
Andy Bavier | 43cdc66 | 2018-05-15 14:50:47 -0700 | [diff] [blame] | 69 | site_deployment: |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 70 | type: tosca.nodes.SiteDeployment |
| 71 | requirements: |
| 72 | - site: |
Andy Bavier | 43cdc66 | 2018-05-15 14:50:47 -0700 | [diff] [blame] | 73 | node: site |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 74 | relationship: tosca.relationships.BelongsToOne |
| 75 | - deployment: |
Andy Bavier | 43cdc66 | 2018-05-15 14:50:47 -0700 | [diff] [blame] | 76 | node: deployment |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 77 | relationship: tosca.relationships.BelongsToOne |
| 78 | |
| 79 | # OpenStack compute nodes |
| 80 | |
| 81 | head1: |
| 82 | type: tosca.nodes.Node |
| 83 | properties: |
| 84 | name: head1 |
| 85 | bridgeId: of:00000000abcdef01 |
| 86 | dataPlaneIntf: fabricbridge |
| 87 | dataPlaneIp: 10.6.1.1/24 |
| 88 | requirements: |
| 89 | - site_deployment: |
Andy Bavier | 43cdc66 | 2018-05-15 14:50:47 -0700 | [diff] [blame] | 90 | node: site_deployment |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 91 | relationship: tosca.relationships.BelongsToOne |
| 92 | |
| 93 | compute1: |
| 94 | type: tosca.nodes.Node |
| 95 | properties: |
| 96 | name: compute1 |
| 97 | bridgeId: of:00000000abcdef02 |
| 98 | dataPlaneIntf: fabricbond |
| 99 | dataPlaneIp: 10.6.1.17/24 |
| 100 | requirements: |
| 101 | - site_deployment: |
Andy Bavier | 43cdc66 | 2018-05-15 14:50:47 -0700 | [diff] [blame] | 102 | node: site_deployment |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 103 | relationship: tosca.relationships.BelongsToOne |
| 104 | |
| 105 | compute2: |
| 106 | type: tosca.nodes.Node |
| 107 | properties: |
| 108 | name: compute2 |
| 109 | bridgeId: of:00000000abcdef03 |
| 110 | dataPlaneIntf: fabricbond |
| 111 | dataPlaneIp: 10.6.1.18/24 |
| 112 | requirements: |
| 113 | - site_deployment: |
Andy Bavier | 43cdc66 | 2018-05-15 14:50:47 -0700 | [diff] [blame] | 114 | node: site_deployment |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 115 | relationship: tosca.relationships.BelongsToOne |