From e5c53d4cc0778e0333037b0af3a7b39da1ab16b3 Mon Sep 17 00:00:00 2001
From: binary <me@rgoncalves.se>
Date: Sun, 22 Nov 2020 21:10:01 +0100
Subject: Move packages vars to global variables.

---
 group_vars/all.yml        | 26 ++++++++++++++++++++++++++
 group_vars/freebsd.yml    |  1 +
 roles/tools/vars/main.yml | 19 -------------------
 3 files changed, 27 insertions(+), 19 deletions(-)

diff --git a/group_vars/all.yml b/group_vars/all.yml
index 1215536..ffdf3f8 100644
--- a/group_vars/all.yml
+++ b/group_vars/all.yml
@@ -7,6 +7,8 @@
 user_root: "root"
 group_root: "root"
 
+path_prometheusconfig: "/etc/prometheus/prometheus.yml"
+
 global:
 
   dcontroller: "dcontroller"
@@ -14,3 +16,27 @@ global:
   dns:
     - 8.8.8.8
     - 8.8.4.4
+
+packages:
+
+  alpine:
+    sshfs: "sshfs"
+    wireguard: "wireguard-lts wireguard-tools ip6tables"
+    node_exporter: "prometheus-node-exporter"
+    extra: "shadow"
+
+  debian:
+    sshfs: "sshfs"
+    wireguard: "wireguard"
+    node_exporter: "node_exporter"
+
+  freebsd:
+    sshfs: "fusefs-sshfs"
+    wireguard: "wireguard"
+    node_exporter: "node_exporter"
+
+  openbsd:
+    sshfs: "sshfs-fuse"
+    wireguard: "wireguard-tools"
+    node_exporter: "node_exporter"
+
diff --git a/group_vars/freebsd.yml b/group_vars/freebsd.yml
index eb345ac..ecd32c8 100644
--- a/group_vars/freebsd.yml
+++ b/group_vars/freebsd.yml
@@ -9,6 +9,7 @@ path_zshconfig: "/usr/local/etc/zshrc"
 path_tmuxconfig: "/usr/local/etc/tmux.conf"
 path_doasconfig: "/usr/local/etc/doas.conf"
 path_gitshell: "/usr/local/bin/git-shell"
+path_prometheusconfig: "/usr/local/etc/prometheus.yml"
 
 os_distribution: "freebsd"
 
diff --git a/roles/tools/vars/main.yml b/roles/tools/vars/main.yml
index 7876681..a5346e5 100644
--- a/roles/tools/vars/main.yml
+++ b/roles/tools/vars/main.yml
@@ -3,22 +3,3 @@
 
 ---
 
-packages:
-
-  alpine:
-    sshfs: "sshfs"
-    wireguard: "wireguard-lts wireguard-tools ip6tables"
-    extra: "shadow"
-
-  debian:
-    sshfs: "sshfs"
-    wireguard: "wireguard"
-
-  freebsd:
-    sshfs: "fusefs-sshfs"
-    wireguard: "wireguard"
-
-  openbsd:
-    sshfs: "sshfs-fuse"
-    wireguard: "wireguard-tools"
-
-- 
cgit v1.2.3