blob: dbf6a9ac773f4dbf17aaf8738e8d058cced4d46a [file] [log] [blame]
Andy Bavierc0aa0b92018-04-23 11:28:38 -07001---
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
20replicaCount: 1
21
22nameOverride: ""
23fullnameOverride: ""
24
Matteo Scandoloe2965c92018-05-08 13:22:20 -070025imagePullPolicy: 'Always'
Andy Bavierc0aa0b92018-04-23 11:28:38 -070026
27httpieImage: "clue/httpie:latest"
28
Andy Bavier43cdc662018-05-15 14:50:47 -070029xosAdminUser: "admin@opencord.org"
30xosAdminPassword: "letmein"
31
32cordSiteName: &site "mysite"
33cordDeploymentName: &deployment "mydeployment"
34
35keystoneAdminUser: "admin"
36keystoneAdminPassword: "password"
37keystoneAdminTenant: "admin"
38keystoneDomain: "Default"
Andy Bavierc0aa0b92018-04-23 11:28:38 -070039
40# TOSCA recipes for the tosca-loader
41toscaRecipes:
Andy Bavierc0aa0b92018-04-23 11:28:38 -070042 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 Bavier43cdc662018-05-15 14:50:47 -070057 site:
Andy Bavierc0aa0b92018-04-23 11:28:38 -070058 type: tosca.nodes.Site
59 properties:
Andy Bavier43cdc662018-05-15 14:50:47 -070060 name: *site
Andy Bavierc0aa0b92018-04-23 11:28:38 -070061 must-exist: true
62
Andy Bavier43cdc662018-05-15 14:50:47 -070063 deployment:
Andy Bavierc0aa0b92018-04-23 11:28:38 -070064 type: tosca.nodes.Deployment
65 properties:
Andy Bavier43cdc662018-05-15 14:50:47 -070066 name: *deployment
Andy Bavierc0aa0b92018-04-23 11:28:38 -070067 must-exist: true
68
Andy Bavier43cdc662018-05-15 14:50:47 -070069 site_deployment:
Andy Bavierc0aa0b92018-04-23 11:28:38 -070070 type: tosca.nodes.SiteDeployment
71 requirements:
72 - site:
Andy Bavier43cdc662018-05-15 14:50:47 -070073 node: site
Andy Bavierc0aa0b92018-04-23 11:28:38 -070074 relationship: tosca.relationships.BelongsToOne
75 - deployment:
Andy Bavier43cdc662018-05-15 14:50:47 -070076 node: deployment
Andy Bavierc0aa0b92018-04-23 11:28:38 -070077 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 Bavier43cdc662018-05-15 14:50:47 -070090 node: site_deployment
Andy Bavierc0aa0b92018-04-23 11:28:38 -070091 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 Bavier43cdc662018-05-15 14:50:47 -0700102 node: site_deployment
Andy Bavierc0aa0b92018-04-23 11:28:38 -0700103 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 Bavier43cdc662018-05-15 14:50:47 -0700114 node: site_deployment
Andy Bavierc0aa0b92018-04-23 11:28:38 -0700115 relationship: tosca.relationships.BelongsToOne