summaryrefslogtreecommitdiffstats
path: root/ansible/roles
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles')
-rw-r--r--ansible/roles/application-install/tasks/install.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/ansible/roles/application-install/tasks/install.yml b/ansible/roles/application-install/tasks/install.yml
index eaa40ce2..ab17aba4 100644
--- a/ansible/roles/application-install/tasks/install.yml
+++ b/ansible/roles/application-install/tasks/install.yml
@@ -38,6 +38,21 @@
environment:
PATH: "{{ helm_bin_dir }}:{{ ansible_env.PATH }}"
+- name: Register root certificate
+ slurp:
+ src: '/certs/rootCA.crt'
+ register: root_cert
+ delegate_to: localhost
+
+# WA: this is required because deploy plugin dont process params properly
+- name: Create override file with global.cacert
+ copy:
+ dest: "{{ app_data_path}}/override.yaml"
+ content: |
+ global:
+ cacert:
+ {{ root_cert['content'] | b64decode | indent( width=4, indentfirst=False) }}
+
- name: Check for deploy plugin presence
stat:
path: '~/.helm/plugins/deploy/deploy.sh'
@@ -50,3 +65,4 @@
{{ app_helm_release_name }}
{{ helm_repository_name }}/{{ app_helm_chart_name }}
--namespace {{ app_kubernetes_namespace }}
+ -f {{ app_data_path }}/override.yaml