From 8ba58626516754d086bbdbf01066cf304e5f7177 Mon Sep 17 00:00:00 2001 From: Hong Guan Date: Thu, 22 Feb 2018 10:54:22 -0500 Subject: add tasks to install k8s tools Change-Id: Iae1032f73c03fcdf3bb69b341fc113bc67ecbb46 Issue-ID: OOM-725 Signed-off-by: hg4105 --- .../openstack-blueprint.yaml | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'TOSCA/kubernetes-cluster-TOSCA/openstack-blueprint.yaml') 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: -- cgit 1.2.3-korg