1 # ============LICENSE_START==========================================
2 # ===================================================================
3 # Copyright (c) 2017 AT&T
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #============LICENSE_END============================================
18 tosca_definitions_version: cloudify_dsl_1_3
21 - http://www.getcloudify.org/spec/cloudify/3.4.2/types.yaml
22 - http://www.getcloudify.org/spec/fabric-plugin/1.5/plugin.yaml
25 # For agent, toggle to true.
27 default: none # For fabric use false.
36 derived_from: cloudify.nodes.SoftwareComponent
39 default: /home/centos/oom/kubernetes
45 cloudify.interfaces.lifecycle:
46 # This is for fabric: # Run Anywhere.
48 implementation: fabric.fabric_plugin.tasks.run_script
51 default: helminstall.sh # Relative to the blueprint file.
53 default: &process_vars
54 cwd: { get_property: [ SELF, cwd ] }
55 args: { get_property: [ SELF, args ] }
58 user: { get_property: [ k8s_master, agent_config, user ] }
59 host_string: { get_property: [ k8s_master, ip ] }
60 key: { get_property: [ k8s_master, agent_config, key ] }
62 implementation: fabric.fabric_plugin.tasks.run_script
65 default: helmdelete.sh
67 default: *process_vars
74 type: cloudify.nodes.Compute
78 install_method: { get_input: install_method } # False for Fabric.
79 key: { get_secret: agent_key_private }
80 user: { get_input: user }
83 type: cloudify.nodes.SoftwareComponent
86 cloudify.interfaces.lifecycle:
88 implementation: fabric.fabric_plugin.tasks.run_script
90 script_path: k8s_setup_env.sh
92 args: [{ get_input: namespace }]
94 host_string: { get_input: ip }
95 user: { get_input: user }
96 key: { get_secret: agent_key_private }
98 implementation: fabric.fabric_plugin.tasks.run_script
100 script_path: k8s_delete_env.sh
102 args: [{ get_input: namespace }]
104 host_string: { get_input: ip }
105 user: { get_input: user }
106 key: { get_secret: agent_key_private }
108 - type: cloudify.relationships.connected_to
112 type: cloudify.nodes.Helm
115 - { get_input: namespace }
118 - type: cloudify.relationships.connected_to
122 type: cloudify.nodes.Helm
125 - { get_input: namespace }
128 - type: cloudify.relationships.connected_to
132 type: cloudify.nodes.Helm
135 - { get_input: namespace }
138 - type: cloudify.relationships.connected_to
142 type: cloudify.nodes.Helm
145 - { get_input: namespace }
148 - type: cloudify.relationships.connected_to
152 type: cloudify.nodes.Helm
155 - { get_input: namespace }
158 - type: cloudify.relationships.connected_to
162 type: cloudify.nodes.Helm
165 - { get_input: namespace }
168 - type: cloudify.relationships.connected_to
172 type: cloudify.nodes.Helm
175 - { get_input: namespace }
178 - type: cloudify.relationships.connected_to
182 type: cloudify.nodes.Helm
185 - { get_input: namespace }
188 - type: cloudify.relationships.connected_to
192 type: cloudify.nodes.Helm
195 - { get_input: namespace }
198 - type: cloudify.relationships.connected_to
202 type: cloudify.nodes.Helm
205 - { get_input: namespace }
208 - type: cloudify.relationships.connected_to
212 type: cloudify.nodes.Helm
215 - { get_input: namespace }
218 - type: cloudify.relationships.connected_to
222 type: cloudify.nodes.Helm
225 - { get_input: namespace }
228 - type: cloudify.relationships.connected_to
232 type: cloudify.nodes.Helm
235 - { get_input: namespace }
238 - type: cloudify.relationships.connected_to
242 type: cloudify.nodes.Helm
245 - { get_input: namespace }
248 - type: cloudify.relationships.connected_to
252 type: cloudify.nodes.Helm
255 - { get_input: namespace }
258 - type: cloudify.relationships.connected_to
262 type: cloudify.nodes.Helm
265 - { get_input: namespace }
268 - type: cloudify.relationships.connected_to
272 type: cloudify.nodes.Helm
275 - { get_input: namespace }
278 - type: cloudify.relationships.connected_to
282 type: cloudify.nodes.Helm
285 - { get_input: namespace }
288 - type: cloudify.relationships.connected_to
292 type: cloudify.nodes.Helm
295 - { get_input: namespace }
298 - type: cloudify.relationships.connected_to
302 type: cloudify.nodes.Helm
305 - { get_input: namespace }
308 - type: cloudify.relationships.connected_to
312 type: cloudify.nodes.Helm
315 - { get_input: namespace }
318 - type: cloudify.relationships.connected_to
322 type: cloudify.nodes.Helm
325 - { get_input: namespace }
328 - type: cloudify.relationships.connected_to
332 type: cloudify.nodes.Helm
335 - { get_input: namespace }
338 - type: cloudify.relationships.connected_to
342 type: cloudify.nodes.Helm
345 - { get_input: namespace }
348 - type: cloudify.relationships.connected_to
352 type: cloudify.nodes.Helm
355 - { get_input: namespace }
358 - type: cloudify.relationships.connected_to