From c7c9badba808207189ecbd65b3933b96444a6a76 Mon Sep 17 00:00:00 2001
From: Christian Elberfeld <christian.elberfeld@adesso.de>
Date: Tue, 19 May 2020 23:58:41 +0200
Subject: [PATCH] Upgrade server auf debian buster, telegraf entfernt

---
 all/common/tasks/main.yml    |  1 +
 common/docker/tasks/main.yml | 15 +--------------
 host_vars/verwaltung         | 11 ++++-------
 host_vars/webserver          | 12 +++---------
 host_vars/webserver-test     | 18 +++++++-----------
 site.yml                     |  2 --
 6 files changed, 16 insertions(+), 43 deletions(-)

diff --git a/all/common/tasks/main.yml b/all/common/tasks/main.yml
index 5a61317b..45d2461b 100644
--- a/all/common/tasks/main.yml
+++ b/all/common/tasks/main.yml
@@ -45,6 +45,7 @@
       - wget
       - psmisc
       - tree
+      - tmux 
 
 - name: deploy sshd config
   template: src=sshd_config.j2 dest=/etc/ssh/sshd_config
diff --git a/common/docker/tasks/main.yml b/common/docker/tasks/main.yml
index 8dd5fe0b..08757f87 100644
--- a/common/docker/tasks/main.yml
+++ b/common/docker/tasks/main.yml
@@ -8,20 +8,7 @@
   vars:
     packages:
       - docker-ce
+      - docker-compose
       - python 
       - python-pip
     
-- name: uninstall pip packages
-  pip: 
-    name: docker-py
-    state: absent
-
-- name: install pip packages
-  pip: 
-    name: "{{ packages }}"
-    state: present
-  vars:
-    packages:
-      - docker
-      - docker-compose 
-
diff --git a/host_vars/verwaltung b/host_vars/verwaltung
index 794f37c8..1c3e105f 100644
--- a/host_vars/verwaltung
+++ b/host_vars/verwaltung
@@ -6,18 +6,14 @@ motd_lines:
   - "Öffentliche IPs: {{ansible_ens3.ipv4.address}} / {{ansible_ens3.ipv6[0].address}}"
 
 debian_sources: 
-  - "deb http://repo.myloc.de/debian stretch main non-free contrib"
-  - "deb https://download.docker.com/linux/debian stretch stable"
-  - "deb http://packages.x2go.org/debian stretch main"
-  - "deb https://repos.influxdata.com/debian stretch stable"
-
+  - "deb http://ftp.halifax.rwth-aachen.de/debian/ buster main contrib non-free"
+  - "deb http://security.debian.org/ buster/updates main contrib non-free"
+  - "deb https://download.docker.com/linux/debian buster stable"
 
 debian_keys_id:
-  - "E1F958385BFE2B6E" # x2go repo key
   
 debian_keys_url:
   - "https://download.docker.com/linux/debian/gpg"
-  - "https://repos.influxdata.com/influxdb.key"
 
 
 # Primäre IP Adressen des Hosts 
@@ -49,6 +45,7 @@ openvpn_clients:
 
 
 administratorenteam:
+  - "void"
   - "sandhome"
   - "h3rb3rn"
 
diff --git a/host_vars/webserver b/host_vars/webserver
index f4780627..d3d904c2 100644
--- a/host_vars/webserver
+++ b/host_vars/webserver
@@ -6,18 +6,14 @@ motd_lines:
   - "Öffentliche IPs: {{ansible_ens3.ipv4.address}} / {{ansible_ens3.ipv6[0].address}}"
 
 debian_sources: 
-  - "deb http://ftp.halifax.rwth-aachen.de/debian/ stretch main contrib non-free"
-  - "deb http://security.debian.org/ stretch/updates main contrib non-free"
-  - "deb http://ftp.de.debian.org/debian/ stretch-updates main"
-  - "deb http://ftp.halifax.rwth-aachen.de/debian/ stretch-updates main contrib non-free"
-  - "deb https://download.docker.com/linux/debian stretch stable"
-  - "deb https://repos.influxdata.com/debian stretch stable"
+  - "deb http://ftp.halifax.rwth-aachen.de/debian/ buster main contrib non-free"
+  - "deb http://security.debian.org/ buster/updates main contrib non-free"
+  - "deb https://download.docker.com/linux/debian buster stable"
 
 debian_keys_id:
 
 debian_keys_url:
   - "https://download.docker.com/linux/debian/gpg"
-  - "https://repos.influxdata.com/influxdb.key"
 
 
 # Primäre IP Adressen des Hosts 
@@ -62,9 +58,7 @@ openvpn_server:
 
 administratorenteam:
   - "void"
-  - "dray"
   - "sandhome"
-  - "commander1024"
   
 
 # Definition von Borgbackup Repositories 
diff --git a/host_vars/webserver-test b/host_vars/webserver-test
index 0a951ddf..3f03463d 100644
--- a/host_vars/webserver-test
+++ b/host_vars/webserver-test
@@ -6,16 +6,14 @@ motd_lines:
   - "Öffentliche IPs: {{ansible_ens3.ipv4.address}} / {{ansible_ens3.ipv6[0].address}}"
 
 debian_sources: 
-  - "deb http://ftp.halifax.rwth-aachen.de/debian/ stretch main contrib non-free"
-  - "deb http://security.debian.org/ stretch/updates main contrib non-free"
-  - "deb http://ftp.de.debian.org/debian/ stretch-updates main"
-  - "deb http://ftp.halifax.rwth-aachen.de/debian/ stretch-updates main contrib non-free"
-  - "deb https://download.docker.com/linux/debian stretch stable"
-  - "deb https://repos.influxdata.com/debian stretch stable"
-
-debian_keys:
+  - "deb http://ftp.halifax.rwth-aachen.de/debian/ buster main contrib non-free"
+  - "deb http://security.debian.org/ buster/updates main contrib non-free"
+  - "deb https://download.docker.com/linux/debian buster stable"
+
+debian_keys_id:
+
+debian_keys_url:
   - "https://download.docker.com/linux/debian/gpg"
-  - "https://repos.influxdata.com/influxdb.key"
 
 
 # Art des Hosts: physical, vm, docker 
@@ -34,7 +32,5 @@ webserver_domains:
 
 administratorenteam:
   - "void"
-  - "dray"
   - "sandhome"
-  - "commander1024"
   
diff --git a/site.yml b/site.yml
index ad6c954a..2ae13068 100644
--- a/site.yml
+++ b/site.yml
@@ -48,7 +48,6 @@
   roles:
     - { role: common/borgbackup, tags: borgbackup }
     - { role: common/docker, tags: docker }
-    - { role: common/telegraf, tags: telegraf }
     - { role: common/nginx, tags: nginx }
     - { role: common/openvpn, tags: openvpn }
     - { role: common/docker_ldap, tags: ldap }
@@ -72,7 +71,6 @@
   remote_user: root
   roles:
     - { role: common/borgbackup, tags: borgbackup }
-    - { role: common/telegraf, tags: telegraf }
     - { role: common/docker, tags: docker }
     - { role: common/nginx, tags: nginx }
     - { role: common/openvpn, tags: openvpn }
-- 
GitLab