Fix tests for binaries preparation in installation steps 02/90502/1
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Wed, 26 Jun 2019 08:42:49 +0000 (10:42 +0200)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Wed, 26 Jun 2019 08:42:49 +0000 (10:42 +0200)
Change-Id: Ib28bda24b711111c13bbaf9bd2628abd2001a1a9
Issue-ID: OOM-1925
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
ansible/group_vars/infrastructure.yml
ansible/roles/helm/molecule/default/group_vars/infrastructure.yml [new symlink]
ansible/roles/helm/molecule/default/prepare.yml
ansible/test/roles/prepare-helm/defaults/main.yml [deleted file]
ansible/test/roles/prepare-helm/tasks/main.yml

index a6e2d77..fc0699c 100755 (executable)
@@ -25,7 +25,7 @@ simulated_hosts:
     - registry.hub.docker.com
     - registry.npmjs.org
 all_simulated_hosts:
-    "{{ simulated_hosts.git + simulated_hosts.http + simulated_hosts.nexus }}"
+  "{{ simulated_hosts.git + simulated_hosts.http + simulated_hosts.nexus }}"
 populate_nexus: false
 helm_bin_dir: /usr/local/bin
 helm_version: v2.12.3
diff --git a/ansible/roles/helm/molecule/default/group_vars/infrastructure.yml b/ansible/roles/helm/molecule/default/group_vars/infrastructure.yml
new file mode 120000 (symlink)
index 0000000..3e9c2f0
--- /dev/null
@@ -0,0 +1 @@
+../../../../../group_vars/infrastructure.yml
\ No newline at end of file
index 8a149b8..34c41e8 100644 (file)
@@ -1,5 +1,8 @@
 ---
 - name: Prepare for helm tests
-  hosts: all
+  hosts: infrastructure
+  pre_tasks:
+    - name: Include infrastructure group variables
+      include_vars: ../../../../group_vars/infrastructure.yml
   roles:
     - prepare-helm
diff --git a/ansible/test/roles/prepare-helm/defaults/main.yml b/ansible/test/roles/prepare-helm/defaults/main.yml
deleted file mode 100644 (file)
index 8ab9ed3..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
----
-# Helm version to download.
-helm_version: 2.12.3
index d6fabae..1f46125 100644 (file)
@@ -7,6 +7,6 @@
 
 - name: "Download helm-{{ helm_version }}"
   get_url:
-    url: "https://get.helm.sh/helm-v{{ helm_version }}-linux-amd64.tar.gz"
+    url: "https://get.helm.sh/helm-{{ helm_version }}-linux-amd64.tar.gz"
     dest: "{{ app_data_path }}/downloads"
     remote_src: true