aboutsummaryrefslogtreecommitdiffstats
path: root/TOSCA/kubernetes-cluster-TOSCA/openstack-blueprint.yaml
diff options
context:
space:
mode:
authorAlexis de Talhouƫt <alexis.de_talhouet@bell.ca>2018-03-01 16:25:40 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-01 16:25:40 +0000
commitf0a34e22011b4323bbd6a51ad313d6e547808101 (patch)
tree66eb980a731f3055b22e32c107d96d1ae3e90e01 /TOSCA/kubernetes-cluster-TOSCA/openstack-blueprint.yaml
parentd142adbf0d24ebea092b15138552673b452e5674 (diff)
parent8ba58626516754d086bbdbf01066cf304e5f7177 (diff)
Merge "add tasks to install k8s tools"
Diffstat (limited to 'TOSCA/kubernetes-cluster-TOSCA/openstack-blueprint.yaml')
-rw-r--r--TOSCA/kubernetes-cluster-TOSCA/openstack-blueprint.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/TOSCA/kubernetes-cluster-TOSCA/openstack-blueprint.yaml b/TOSCA/kubernetes-cluster-TOSCA/openstack-blueprint.yaml
index 9ff0d58a80..3219791c0d 100644
--- a/TOSCA/kubernetes-cluster-TOSCA/openstack-blueprint.yaml
+++ b/TOSCA/kubernetes-cluster-TOSCA/openstack-blueprint.yaml
@@ -45,6 +45,10 @@ inputs:
User for connecting to agent VMs
default: centos
+ helm_version:
+ description: helm version to be installed
+ default: v2.7.0
+
dsl_definitions:
openstack_config: &openstack_config
@@ -76,6 +80,25 @@ node_templates:
- type: cloudify.relationships.contained_in
target: kubernetes_master_host
+ k8s_tools:
+ type: cloudify.nodes.SoftwareComponent
+ properties:
+ interfaces:
+ cloudify.interfaces.lifecycle:
+ start:
+ implementation: fabric.fabric_plugin.tasks.run_script
+ inputs:
+ script_path: scripts/k8s_tools.sh
+ process:
+ args: [{ get_input: helm_version }]
+ fabric_env:
+ host_string: { get_attribute: [ kubernetes_master_host, ip ] }
+ user: { get_input: agent_user }
+ key: { get_secret: agent_key_private }
+ relationships:
+ - type: cloudify.relationships.contained_in
+ target: kubernetes_master
+
kubernetes_master_host:
type: cloudify.openstack.nodes.Server
properties: