Skip to content

Commit 4a83301

Browse files
committed
Copy helm values onto target host
1 parent 751e6be commit 4a83301

File tree

2 files changed

+7
-2
lines changed
  • kubetest2-tf/data/k8s-ansible/roles/install-monitoring

2 files changed

+7
-2
lines changed

kubetest2-tf/data/k8s-ansible/roles/install-monitoring/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ helm_chart_version: "78.4.0"
66
helm_namespace: monitoring
77
helm_repo_name: prometheus-community
88
helm_repo_url: https://prometheus-community.github.io/helm-charts
9-
helm_custom_values: "{{ role_path }}/files/power-custom-values.yaml"
9+
helm_custom_values: "power-custom-values.yaml"

kubetest2-tf/data/k8s-ansible/roles/install-monitoring/tasks/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,18 @@
1212
- name: Perform Helm repo update
1313
ansible.builtin.command: helm repo update
1414

15+
- name: Copy helm chart values files
16+
copy:
17+
src: "{{ helm_custom_values }}"
18+
dest: /tmp/
19+
1520
- name: Install or upgrade kube-prometheus-stack chart
1621
kubernetes.core.helm:
1722
name: "{{ helm_release_name }}"
1823
chart_ref: "{{ helm_chart_name }}"
1924
namespace: "{{ helm_namespace }}"
2025
chart_version: "{{ helm_chart_version }}"
21-
values_files: "{{ helm_custom_values }}"
26+
values_files: "/tmp/power-custom-values.yaml"
2227
timeout: 10m
2328
set_values:
2429
- value: grafana.adminUser="{{ grafana_admin_user }}"

0 commit comments

Comments
 (0)