1 # ============LICENSE_START==========================================
2 # ===================================================================
3 # Copyright © 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/oneclick
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.Helm
86 - { get_input: namespace_perfix }
89 - type: cloudify.relationships.connected_to
93 type: cloudify.nodes.Helm
96 - { get_input: namespace_perfix }
99 - type: cloudify.relationships.connected_to
104 type: cloudify.nodes.Helm
107 - { get_input: namespace_perfix }
110 - type: cloudify.relationships.connected_to
114 type: cloudify.nodes.Helm
117 - { get_input: namespace_perfix }
120 - type: cloudify.relationships.connected_to
124 type: cloudify.nodes.Helm
127 - { get_input: namespace_perfix }
130 - type: cloudify.relationships.connected_to
134 type: cloudify.nodes.Helm
137 - { get_input: namespace_perfix }
140 - type: cloudify.relationships.connected_to
144 type: cloudify.nodes.Helm
147 - { get_input: namespace_perfix }
150 - type: cloudify.relationships.connected_to
154 type: cloudify.nodes.Helm
157 - { get_input: namespace_perfix }
160 - type: cloudify.relationships.connected_to
164 type: cloudify.nodes.Helm
167 - { get_input: namespace_perfix }
170 - type: cloudify.relationships.connected_to
174 type: cloudify.nodes.Helm
177 - { get_input: namespace_perfix }
180 - type: cloudify.relationships.connected_to
184 type: cloudify.nodes.Helm
187 - { get_input: namespace_perfix }
190 - type: cloudify.relationships.connected_to
194 type: cloudify.nodes.Helm
197 - { get_input: namespace_perfix }
200 - type: cloudify.relationships.connected_to
204 type: cloudify.nodes.Helm
207 - { get_input: namespace_perfix }
210 - type: cloudify.relationships.connected_to
214 type: cloudify.nodes.Helm
217 - { get_input: namespace_perfix }
220 - type: cloudify.relationships.connected_to
224 type: cloudify.nodes.Helm
227 - { get_input: namespace_perfix }
230 - type: cloudify.relationships.connected_to
234 type: cloudify.nodes.Helm
237 - { get_input: namespace_perfix }
240 - type: cloudify.relationships.connected_to
244 type: cloudify.nodes.Helm
247 - { get_input: namespace_perfix }
250 - type: cloudify.relationships.connected_to
254 type: cloudify.nodes.Helm
257 - { get_input: namespace_perfix }
260 - type: cloudify.relationships.connected_to
264 type: cloudify.nodes.Helm
267 - { get_input: namespace_perfix }
270 - type: cloudify.relationships.connected_to
274 type: cloudify.nodes.Helm
277 - { get_input: namespace_perfix }
280 - type: cloudify.relationships.connected_to
284 type: cloudify.nodes.Helm
287 - { get_input: namespace_perfix }
290 - type: cloudify.relationships.connected_to