aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ansible/roles/prometheus/tasks/deploy.yml3
-rw-r--r--releasenotes/notes/fix-bootstrapping-mysqld-exporter-f10a4ff269c2395b.yaml6
2 files changed, 8 insertions, 1 deletions
diff --git a/ansible/roles/prometheus/tasks/deploy.yml b/ansible/roles/prometheus/tasks/deploy.yml
index 8aba64ae6..89576f144 100644
--- a/ansible/roles/prometheus/tasks/deploy.yml
+++ b/ansible/roles/prometheus/tasks/deploy.yml
@@ -6,7 +6,8 @@
ansible.builtin.import_tasks: check-containers.yml
- name: Bootstrap prometheus service
- ansible.builtin.import_tasks: bootstrap.yml
+ ansible.builtin.include_tasks: bootstrap.yml
+ when: inventory_hostname in groups['prometheus-mysqld-exporter']
- name: Flush handlers
ansible.builtin.meta: flush_handlers
diff --git a/releasenotes/notes/fix-bootstrapping-mysqld-exporter-f10a4ff269c2395b.yaml b/releasenotes/notes/fix-bootstrapping-mysqld-exporter-f10a4ff269c2395b.yaml
new file mode 100644
index 000000000..b857b9d73
--- /dev/null
+++ b/releasenotes/notes/fix-bootstrapping-mysqld-exporter-f10a4ff269c2395b.yaml
@@ -0,0 +1,6 @@
+---
+fixes:
+ - |
+ Fixes bootstrapping of prometheus-mysqld-exporter which is failing creating
+ mariadb user when monitoring group is configured to be deployed on separate
+ hosts.