Skip to content
Snippets Groups Projects
Commit e16ce946 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

prometheus: Add Gentoo support

parent 19a7ea72
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,16 @@
name:
- prometheus
state: present
when: ansible_distribution_file_variety == "Debian"
tags:
- prometheus
- name: Install prometheus
portage:
package:
- app-metrics/prometheus
state: present
when: ansible_distribution == "Gentoo"
tags:
- prometheus
......@@ -14,6 +24,18 @@
dest: /etc/default/prometheus
notify:
- Restart prometheus
when: ansible_distribution_file_variety == "Debian"
tags:
- prometheus
- config
- name: Configure prometheus command arguments
template:
src: confd-prometheus.j2
dest: /etc/conf.d/prometheus
notify:
- Restart prometheus
when: ansible_distribution == "Gentoo"
tags:
- prometheus
- config
......
# arguments for Prometheus
command_args="{{ prometheus_args }}"
supervisor="supervise-daemon"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment