From 0da60fd54516d5c08e48bec6a7841dcb58e3e24a Mon Sep 17 00:00:00 2001
From: Stefan Haun <tux@netz39.de>
Date: Sat, 27 Aug 2022 18:27:35 +0200
Subject: [PATCH] Remove openhab

---
 pottwal.yml | 51 ---------------------------------------------------
 1 file changed, 51 deletions(-)

diff --git a/pottwal.yml b/pottwal.yml
index a4df212..63bc220 100644
--- a/pottwal.yml
+++ b/pottwal.yml
@@ -7,13 +7,6 @@
 
     data_dir: "/srv/data"
 
-
-    openhab_image: openhab/openhab:2.5.11
-    openhab_data: "{{ data_dir }}/openhab"
-    openhab_host_port: 8081
-    openhab_configuration_source: https://github.com/netz39/n39-openhab.git
-    openhab_configuration_version: master
-
     gitea_host_port: 9091
     uritools_host_port: 8080
     entities_validation_svc_host_port: 8082
@@ -87,50 +80,6 @@
         ports:
           - 3142:3142
 
-    - name: Ensure the openhab directories exist
-      file:
-        path: "{{ item }}"
-        state: directory
-      with_items:
-        - "{{ openhab_data }}/addons"
-        - "{{ openhab_data }}/conf"
-        - "{{ openhab_data }}/userdata"
-
-    - name: Clone or update configuration
-      git:
-        repo: "{{ openhab_configuration_source }}"
-        version: "{{ openhab_configuration_version }}"
-        dest: "{{ openhab_data }}/conf"
-        clone: yes
-        update: yes
-
-    - name: ensure openhab is up and running
-      docker_container:
-        name: openhab
-        image: "{{ openhab_image }}"
-        pull: true
-        state: started
-        detach: yes
-        interactive: yes
-        tty: yes
-        ports:
-          - "{{ openhab_host_port }}:8080"
-        volumes:
-          - /etc/localtime:/etc/localtime:ro
-          - /etc/timezone:/etc/timezone:ro
-          - "{{ openhab_data }}/addons:/openhab/addons:rw"
-          - "{{ openhab_data }}/conf:/openhab/conf:rw"
-          - "{{ openhab_data }}/userdata:/openhab/userdata:rw"
-        keep_volumes: yes
-        restart_policy: unless-stopped
-        env: EXTRA_JAVA_OPTS="-Duser.timezone=Europe/Berlin"
-
-    - name: Setup proxy site openhab.n39.eu
-      include_role:
-        name: setup-http-site-proxy
-      vars:
-        site_name: openhab.n39.eu
-        proxy_port: "{{ openhab_host_port }}"
 
     - name: Ensure container for URI tools is running
       docker_container: