From 7601ed678d0853d4eee75734a640b2d43cab5084 Mon Sep 17 00:00:00 2001
From: Vagrant Default User <elberfeld@web.de>
Date: Sun, 27 Nov 2016 02:08:57 +0000
Subject: [PATCH] Aktualisirte baseline config

---
 all/common/templates/motd.j2 |  6 ++++--
 host_vars/vorstandspi        |  4 ++++
 host_vars/warphab            |  4 ++++
 host_vars/warpsrvext         | 19 +++++++++++++++++++
 host_vars/warpsrvint         | 19 +++++++++++++++++++
 host_vars/webserver          |  4 ++++
 hosts                        | 12 +++++++++---
 7 files changed, 63 insertions(+), 5 deletions(-)
 create mode 100644 host_vars/warpsrvext
 create mode 100644 host_vars/warpsrvint

diff --git a/all/common/templates/motd.j2 b/all/common/templates/motd.j2
index 03ac7225..0f2843f4 100644
--- a/all/common/templates/motd.j2
+++ b/all/common/templates/motd.j2
@@ -6,6 +6,8 @@
     \/      \/  //      \\ ||  \\ ||    //===   \\=//   ||    \|| ||====
  
  Server:  {{ ansible_hostname }}
- Öffentliche IPs: {{ansible_eth0.ipv4.address}} / {{ansible_eth0.ipv6[0].address}}
-
+ {% for line in motd_lines %}
+ {{ line }}
+ {% endfor %}
+ 
 
diff --git a/host_vars/vorstandspi b/host_vars/vorstandspi
index c29b658f..46f6712c 100644
--- a/host_vars/vorstandspi
+++ b/host_vars/vorstandspi
@@ -1,6 +1,10 @@
 
 # Host spezifische Variablen 
 
+motd_lines: 
+  - "Vorstands-PI"
+  - "Öffentliche IPs: {{ansible_eth0.ipv4.address}} / {{ansible_eth0.ipv6[0].address}}"
+
 debian_sources: 
   - "deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi"
 
diff --git a/host_vars/warphab b/host_vars/warphab
index 65a933d9..b14fd642 100644
--- a/host_vars/warphab
+++ b/host_vars/warphab
@@ -1,6 +1,10 @@
 
 # Host spezifische Variablen 
 
+motd_lines: 
+  - "OpenHAB Server"
+  - "Öffentliche IPs: {{ansible_eth0.ipv4.address}} / {{ansible_eth0.ipv6[0].address}}"
+
 debian_sources: 
   - "deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi"
   - "deb https://homegear.eu/packages/Raspbian/ jessie/"
diff --git a/host_vars/warpsrvext b/host_vars/warpsrvext
new file mode 100644
index 00000000..3e0271eb
--- /dev/null
+++ b/host_vars/warpsrvext
@@ -0,0 +1,19 @@
+
+# Host spezifische Variablen 
+
+motd_lines: 
+  - "Externer Server @ myLoc"
+  - "Öffentliche IPs: {{ansible_br0.ipv4.address}} / {{ansible_br0.ipv6[0].address}}"
+
+debian_sources: 
+  - "deb http://repo.myloc.de/debian jessie main non-free contrib"
+  - "deb http://security.debian.org/ jessie/updates main contrib non-free"
+
+debian_keys:
+
+administratorenteam:
+  - "void"
+  - "sandhome"
+  - "sandmobil"
+
+
diff --git a/host_vars/warpsrvint b/host_vars/warpsrvint
new file mode 100644
index 00000000..4d1c4c0d
--- /dev/null
+++ b/host_vars/warpsrvint
@@ -0,0 +1,19 @@
+
+# Host spezifische Variablen 
+
+motd_lines: 
+  - "Interner Server @ warpzone"
+  - "Haupt-IP @ eth2: {{ansible_eth2.ipv4.address}}"
+
+debian_sources: 
+  - "deb http://debian.uni-duisburg-essen.de/debian/ jessie main non-free contrib"
+  - "deb http://security.debian.org/ jessie/updates main contrib non-free"
+  - "deb http://debian.uni-duisburg-essen.de/debian/ jessie-updates main contrib non-free"
+
+debian_keys:
+
+administratorenteam:
+  - "void"
+  - "sandhome"
+  - "sandmobil"
+#  - "ennox" (ssh key fehlt noch)
diff --git a/host_vars/webserver b/host_vars/webserver
index 66105090..83038811 100644
--- a/host_vars/webserver
+++ b/host_vars/webserver
@@ -1,6 +1,10 @@
 
 # Host spezifische Variablen 
 
+motd_lines: 
+  - "Webserver"
+  - "Öffentliche IPs: {{ansible_eth0.ipv4.address}} / {{ansible_eth0.ipv6[0].address}}"
+
 debian_sources: 
   - "deb http://ftp.halifax.rwth-aachen.de/debian/ jessie main contrib non-free"
   - "deb http://security.debian.org/ jessie/updates main contrib non-free"
diff --git a/hosts b/hosts
index 023ca815..f8dbda90 100644
--- a/hosts
+++ b/hosts
@@ -2,12 +2,18 @@
 # Debian Jessie basierte Server 
 [debianjessie]
 
+# Interner Server Warpzone 
+# Umgebaute Watchguard im Serverschrank 
+# Die KVM Verwaltung erfolgt aktuell noch manuell 
+warpsrvint   ansible_ssh_host=192.168.0.103
+
 # Server für Interne Dienste 
-warpdock   ansible_ssh_host=192.168.0.201
+# warpsrvint   ansible_ssh_host=192.168.0.103
 
 # Öffentlicher Server Warpzone 
-# Hauptinstanz für KVM Verwaltung
-# kvmserver   ansible_ssh_host=217.79.181.126 
+# Webserver im Rechnzentrum bei myLoc 
+# Die KVM Verwaltung erfolgt aktuell noch manuell 
+warpsrvext  ansible_ssh_host=217.79.181.126 
 
 # Öffentlicher Webserver Warpzone 
 # VM auf dem Webtropia-Server
-- 
GitLab