EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 40677bff authored by Nicolas Baudoin's avatar Nicolas Baudoin
Browse files

Many changes for Prometheus_Faster_DNS that haven't been committed yet.

parent 50ad9826
No related branches found
No related tags found
No related merge requests found
...@@ -10,3 +10,5 @@ prometheus_federators: [] ...@@ -10,3 +10,5 @@ prometheus_federators: []
prometheus_federator: False prometheus_federator: False
backup_prometheus: True backup_prometheus: True
use_service_vrf: False use_service_vrf: False
prometheus_config_method: "dns"
\ No newline at end of file
...@@ -46,3 +46,11 @@ ...@@ -46,3 +46,11 @@
backup_path: '/var/lib/prometheus' backup_path: '/var/lib/prometheus'
tags: backup tags: backup
when: backup_prometheus == True when: backup_prometheus == True
- import_role:
name: label
vars:
label:
name: prometheus
description: 'Prometheus server'
tags: label
\ No newline at end of file
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
- 'postfix' - 'postfix'
- 'legacy' - 'legacy'
- 'fail2ban' - 'fail2ban'
when: prometheus_config_method == "file"
tags: target_yml tags: target_yml
- name: core alerts - name: core alerts
......
...@@ -89,7 +89,18 @@ scrape_configs: ...@@ -89,7 +89,18 @@ scrape_configs:
key_file: '/etc/ssl/prometheus_client/{{fqdn}}.key' key_file: '/etc/ssl/prometheus_client/{{fqdn}}.key'
file_sd_configs: file_sd_configs:
- files: - files:
- 'fail2ban.yml' - 'fail2ban.yml'
- job_name: pct
scheme: https
tls_config:
ca_file: '/etc/ssl/prometheus_client/root.ca.crt'
cert_file: '/etc/ssl/prometheus_client/{{fqdn}}.crt'
key_file: '/etc/ssl/prometheus_client/{{fqdn}}.key'
dns_sd_configs:
- names:
- 'pct.dc1.eox.at'
type: 'SRV'
refresh_interval: 1m
{% if groups['lxc_host'] is defined %} {% if groups['lxc_host'] is defined %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment