commit f000e8abe46788303425197cf96b610fe8d7b6c2 parent 8415a47b0b51ee1454686a31a8c5d19374e7e343 Author: Dionysis Grigoropoulos <dgrig@erethon.com> Date: Sat, 25 Jan 2020 15:11:12 +0200 metrics: Add default group vars for metrics group Diffstat:
4 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/ansible/inventory/group_vars/metrics/apt.yml b/ansible/inventory/group_vars/metrics/apt.yml @@ -0,0 +1,6 @@ +--- + +apt__host_keys: + - url: 'https://packages.grafana.com/gpg.key' +apt__host_repositories: + - repo: 'deb https://packages.grafana.com/oss/deb stable main' diff --git a/ansible/inventory/group_vars/metrics/apt_install.yml b/ansible/inventory/group_vars/metrics/apt_install.yml @@ -0,0 +1,3 @@ +--- + +apt_install__host_packages: ['grafana', 'prometheus', 'prometheus-blackbox-exporter'] diff --git a/ansible/inventory/group_vars/metrics/apt_preferences.yml b/ansible/inventory/group_vars/metrics/apt_preferences.yml @@ -0,0 +1,5 @@ +--- + +apt_preferences__host_list: + - package: 'prometheus' + backports: ['buster'] diff --git a/ansible/inventory/host_vars/productiongrafana/ferm.yml b/ansible/inventory/host_vars/productiongrafana/ferm.yml @@ -0,0 +1,12 @@ +--- + +ferm__host_rules: + - type: 'accept' + filename: 'grafana' + name: 'grafana' + table: 'filter' + chain: 'INPUT' + dport: [ 3000 ] + protocol: 'tcp' + saddr: '192.168.199.1' + domain: 'ip'