From d273edeccd97122de1caec74243d702a652cacb9 Mon Sep 17 00:00:00 2001 From: Andreas Geissler Date: Wed, 19 Oct 2022 17:49:04 +0200 Subject: [GITLAB] Initial content for gitlab project xtesting-onap Issue-ID: INT-2150 Signed-off-by: Andreas Geissler Change-Id: I6a429e2f661474fe54b13b6513eca64f13e99b50 --- roles/xtesting-healthcheck-k8s/defaults/main.yaml | 9 ++ roles/xtesting-healthcheck-k8s/tasks/main.yaml | 126 +++++++++++++++++++++ roles/xtesting-healthcheck-k8s/templates/env-os.j2 | 17 +++ 3 files changed, 152 insertions(+) create mode 100644 roles/xtesting-healthcheck-k8s/defaults/main.yaml create mode 100644 roles/xtesting-healthcheck-k8s/tasks/main.yaml create mode 100644 roles/xtesting-healthcheck-k8s/templates/env-os.j2 (limited to 'roles/xtesting-healthcheck-k8s') diff --git a/roles/xtesting-healthcheck-k8s/defaults/main.yaml b/roles/xtesting-healthcheck-k8s/defaults/main.yaml new file mode 100644 index 0000000..02190ea --- /dev/null +++ b/roles/xtesting-healthcheck-k8s/defaults/main.yaml @@ -0,0 +1,9 @@ +--- +postgres_secret_name: postgres-postgresql +postgres_user: helm +postgres_db: helm +postgres_port: 30347 +postgres_url: "postgresql://{{ + postgres_svc }}.{{ postgres_namespace }}:{{ postgres_port }}/{{ + postgres_db }}?user={{ postgres_user }}&password={{ + postgres_password }}&sslmode=disable" \ No newline at end of file diff --git a/roles/xtesting-healthcheck-k8s/tasks/main.yaml b/roles/xtesting-healthcheck-k8s/tasks/main.yaml new file mode 100644 index 0000000..2f727e9 --- /dev/null +++ b/roles/xtesting-healthcheck-k8s/tasks/main.yaml @@ -0,0 +1,126 @@ +--- +# tasks file for functest (tests) + +## +- block: + - name: Clean directory + ansible.builtin.file: + path: "{{ exec_local_path }}" + state: absent + + - name: Create directory + ansible.builtin.file: + path: "{{ exec_local_path }}" + state: directory + mode: 0755 + + - name: check helm version + command: "helm version --template {% raw %}'{{.Version}}'{% endraw %}" + register: helm_version + + # Return of previous command will be "v3.3.4" for v3 and up and "" + # for version 2. + - name: store helm version + ansible.builtin.set_fact: + helmv3: "{{ ('