Dinesh Garg 5bf8b0084d Allow customization to setup the environment
Added default variable repo name to download packages

Change-Id: Iabbe85973646b5cb98a59a4570061f76a70b8b55
2020-12-16 15:53:34 +00:00

31 lines
1.1 KiB
YAML

# 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.
# NOTE(lamt): We should be using zuul's ensure-helm zuul-job instead of
# re-inventing the wheel here, but that job relies on Helm 2, and has a step to
# "helm init" which is removed in Helm 3. We will just use the key
# part from the zuul-job until that is resolved.
---
- name: Download Helm
unarchive:
remote_src: true
src: "{{ repo_name }}/helm-v{{ version.helm }}-linux-amd64.tar.gz"
dest: /tmp
- name: Install Helm
become: true
copy:
remote_src: true
src: /tmp/linux-amd64/helm
dest: /usr/local/bin/helm
mode: '0755'