1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
|
# ============LICENSE_START==========================================
# ===================================================================
# Copyright (c) 2017 AT&T
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#============LICENSE_END============================================
tosca_definitions_version: cloudify_dsl_1_3
imports:
- http://www.getcloudify.org/spec/cloudify/3.4.2/types.yaml
- http://www.getcloudify.org/spec/fabric-plugin/1.5/plugin.yaml
inputs:
# For agent, toggle to true.
install_method:
default: none # For fabric use false.
ip:
user:
default: centos
namespace_perfix:
default: onap
node_types:
cloudify.nodes.Helm:
derived_from: cloudify.nodes.SoftwareComponent
properties:
cwd:
default: /home/centos/oom/kubernetes/oneclick
args:
default:
- onap
- mso
interfaces:
cloudify.interfaces.lifecycle:
# This is for fabric: # Run Anywhere.
start:
implementation: fabric.fabric_plugin.tasks.run_script
inputs:
script_path:
default: helminstall.sh # Relative to the blueprint file.
process:
default: &process_vars
cwd: { get_property: [ SELF, cwd ] }
args: { get_property: [ SELF, args ] }
fabric_env:
default: &fabric_env
user: { get_property: [ k8s_master, agent_config, user ] }
host_string: { get_property: [ k8s_master, ip ] }
key: { get_property: [ k8s_master, agent_config, key ] }
stop:
implementation: fabric.fabric_plugin.tasks.run_script
inputs:
script_path:
default: helmdelete.sh
process:
default: *process_vars
fabric_env:
default: *fabric_env
node_templates:
k8s_master:
type: cloudify.nodes.Compute
properties:
ip: { get_input: ip }
agent_config:
install_method: { get_input: install_method } # False for Fabric.
key: { get_secret: agent_key_private }
user: { get_input: user }
consul:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- consul
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
msb:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- msb
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
mso:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- mso
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
appc:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- appc
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
message-router:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- message-router
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
sdnc:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- sdnc
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
vid:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- vid
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
robot:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- robot
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
policy:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- policy
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
portal:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- portal
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
aai:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- aai
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
sdc:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- sdc
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
log:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- log
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
cli:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- cli
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
multicloud:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- multicloud
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
clamp:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- clamp
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
vnfsdk:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- vnfsdk
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
uui:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- uui
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
aaf:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- aaf
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
vfc:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- vfc
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
kube2msb:
type: cloudify.nodes.Helm
properties:
args:
- { get_input: namespace_perfix }
- kube2msb
relationships:
- type: cloudify.relationships.connected_to
target: k8s_master
|