From 1680818b021ce187abce21f1b661e1f9184b4218 Mon Sep 17 00:00:00 2001 From: Niels Bouma <9073152+nielscil@users.noreply.github.com> Date: Mon, 31 Jul 2023 16:32:00 +0200 Subject: [PATCH 1/5] begin changedetection --- group_vars/mash_servers | 34 ++++++++++++++++++++++++++++++++++ requirements.yml | 2 ++ 2 files changed, 36 insertions(+) diff --git a/group_vars/mash_servers b/group_vars/mash_servers index 83475e7..31df670 100644 --- a/group_vars/mash_servers +++ b/group_vars/mash_servers @@ -73,6 +73,10 @@ devture_systemd_service_manager_services_list_auto: | + ([{'name': (authentik_worker_identifier + '.service'), 'priority': 2000, 'groups': ['mash', 'authentik']}] if authentik_enabled else []) + + ([{'name': (changedetection_identifier + '.service'), 'priority': 2100, 'groups': ['mash', 'changedetection']}] if changedetection_enabled else []) + + + ([{'name': (changedetection_playwright_driver_identifier + '.service'), 'priority': 2000, 'groups': ['mash', 'changedetection']}] if changedetection_enabled else []) + + ([{'name': (clickhouse_identifier + '.service'), 'priority': 2000, 'groups': ['mash', 'clickhouse']}] if clickhouse_enabled else []) + ([{'name': (collabora_online_identifier + '.service'), 'priority': 2000, 'groups': ['mash', 'collabora-online']}] if collabora_online_enabled else []) @@ -713,6 +717,36 @@ backup_borg_systemd_required_services_list: | # # ######################################################################## +######################################################################## +# # +# Changedetection.io # +# # +######################################################################## + +changedetection_enabled: false + +changedetection_identifier: "{{ mash_playbook_service_identifier_prefix }}changedetection" + +changedetection_base_path: "{{ mash_playbook_base_path }}/{{ mash_playbook_service_base_directory_name_prefix }}changedetection" + +changedetection_uid: "{{ mash_playbook_uid }}" +changedetection_gid: "{{ mash_playbook_gid }}" + +changedetection_container_additional_networks_auto: | + {{ + ([mash_playbook_reverse_proxyable_services_additional_network] if mash_playbook_reverse_proxyable_services_additional_network else []) + }} + +changedetection_container_labels_traefik_enabled: "{{ mash_playbook_traefik_labels_enabled }}" +changedetection_container_labels_traefik_docker_network: "{{ mash_playbook_reverse_proxyable_services_additional_network }}" +changedetection_container_labels_traefik_entrypoints: "{{ devture_traefik_entrypoint_primary }}" +changedetection_container_labels_traefik_tls_certResolver: "{{ devture_traefik_certResolver_primary }}" + +######################################################################## +# # +# /Changedetection.io # +# # +######################################################################## ######################################################################## diff --git a/requirements.yml b/requirements.yml index 88efae1..8f7171e 100644 --- a/requirements.yml +++ b/requirements.yml @@ -14,6 +14,8 @@ name: auxiliary - src: git+https://gitlab.com/etke.cc/roles/backup_borg.git version: v1.2.4-1.7.15-1 +- src: git+https://github.com/nielscil/ansible-role-changedetection.git + version: v0.44-0 - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-clickhouse.git version: v23.6.1.1524-0 name: clickhouse From d0434a9d6d08cfcab019870cee2d7e39d39672f1 Mon Sep 17 00:00:00 2001 From: Niels Bouma <9073152+nielscil@users.noreply.github.com> Date: Tue, 1 Aug 2023 11:23:04 +0200 Subject: [PATCH 2/5] add changedetection to setup and update name in requirement --- requirements.yml | 1 + setup.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/requirements.yml b/requirements.yml index 8f7171e..422dfe7 100644 --- a/requirements.yml +++ b/requirements.yml @@ -16,6 +16,7 @@ version: v1.2.4-1.7.15-1 - src: git+https://github.com/nielscil/ansible-role-changedetection.git version: v0.44-0 + name: changedetection - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-clickhouse.git version: v23.6.1.1524-0 name: clickhouse diff --git a/setup.yml b/setup.yml index 7011d84..89c473b 100644 --- a/setup.yml +++ b/setup.yml @@ -64,6 +64,8 @@ - role: galaxy/backup_borg + - role: galaxy/changedetection + - role: galaxy/clickhouse - role: galaxy/collabora_online From 0e8d7eb0e3546510d2fa9fe5a2954d2cf9b55a6a Mon Sep 17 00:00:00 2001 From: Niels Bouma <9073152+nielscil@users.noreply.github.com> Date: Tue, 1 Aug 2023 15:37:34 +0200 Subject: [PATCH 3/5] seperated changedetection playwright driver enabled --- group_vars/mash_servers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/group_vars/mash_servers b/group_vars/mash_servers index 31df670..643b29d 100644 --- a/group_vars/mash_servers +++ b/group_vars/mash_servers @@ -75,7 +75,7 @@ devture_systemd_service_manager_services_list_auto: | + ([{'name': (changedetection_identifier + '.service'), 'priority': 2100, 'groups': ['mash', 'changedetection']}] if changedetection_enabled else []) + - ([{'name': (changedetection_playwright_driver_identifier + '.service'), 'priority': 2000, 'groups': ['mash', 'changedetection']}] if changedetection_enabled else []) + ([{'name': (changedetection_playwright_driver_identifier + '.service'), 'priority': 2000, 'groups': ['mash', 'changedetection']}] if changedetection_playwright_driver_enabled else []) + ([{'name': (clickhouse_identifier + '.service'), 'priority': 2000, 'groups': ['mash', 'clickhouse']}] if clickhouse_enabled else []) + From 906254f5eaca0397f531c3827d3fc7af30e99a61 Mon Sep 17 00:00:00 2001 From: Niels Bouma <9073152+nielscil@users.noreply.github.com> Date: Tue, 1 Aug 2023 16:27:28 +0200 Subject: [PATCH 4/5] Added docs --- docs/services/changedetection.md | 54 ++++++++++++++++++++++++++++++++ docs/supported-services.md | 1 + 2 files changed, 55 insertions(+) create mode 100644 docs/services/changedetection.md diff --git a/docs/services/changedetection.md b/docs/services/changedetection.md new file mode 100644 index 0000000..1bcad6c --- /dev/null +++ b/docs/services/changedetection.md @@ -0,0 +1,54 @@ +# Changedetection.io + +[Changedetection.io](https://github.com/dgtlmoon/changedetection.io) is simple **website change detection and restock monitoring** solution. + + +## Dependencies + +This service requires the following other services: + +- a [Traefik](traefik.md) reverse-proxy server + + +## Configuration + +To enable this service, add the following configuration to your `vars.yml` file and re-run the [installation](../installing.md) process: + +```yaml +######################################################################## +# # +# Changedetection.io # +# # +######################################################################## + +changedetection_enabled: true + +changedetection_hostname: mash.example.com + +changedetection_path_prefix: /changedetection + +######################################################################## +# # +# /Changedetection.io # +# # +######################################################################## +``` + +### Playwright webdriver + +Some advanced options like using javascript or using the Visual Selector tool use an additional playwright webdriver. To enable this driver, add the following **additional** configuration to your `vars.yml` file and re-run the [installation](../installing.md) process: + +```yaml +changedetection_playwright_driver_enabled: true +``` + + +### URL + +In the example configuration above, we configure the service to be hosted at `https://mash.example.com/changedetection`. + +You can remove the `changedetection_path_prefix` variable definition, to make it default to `/`, so that the service is served at `https://mash.example.com/`. + +## Usage + +After installation, you can go to your given URL and start setting up Changedetection.io \ No newline at end of file diff --git a/docs/supported-services.md b/docs/supported-services.md index 1167eac..689a2fb 100644 --- a/docs/supported-services.md +++ b/docs/supported-services.md @@ -6,6 +6,7 @@ | [AdGuard Home](https://adguard.com/en/adguard-home/overview.html/) | A network-wide DNS software for blocking ads & tracking | [Link](services/adguard-home.md) | | [Appsmith](https://www.appsmith.com/) | Platform for building and deploying custom internal tools and applications without writing code | [Link](services/appsmith.md) | | [authentik](https://goauthentik.io/) | An open-source Identity Provider focused on flexibility and versatility. | [Link](services/authentik.md) | +| [Changedetection.io](https://github.com/dgtlmoon/changedetection.io) | A simple website change detection and restock monitoring solution. | [Link](services/changedetection.md) | | [ClickHouse](https://clickhouse.com/) | An open-source column-oriented DBMS for online analytical processing (OLAP) that allows users to generate analytical reports using SQL queries in real-time. | [Link](services/clickhouse.md) | | [Collabora Online](https://www.collaboraoffice.com/) | Your Private Office Suite In The Cloud | [Link](services/collabora-online.md) | | [Docker](https://www.docker.com/) | Open-source software for deploying containerized applications | [Link](services/docker.md) | From ee9cba5c65b4af07bdb3827cfa00451e885572d6 Mon Sep 17 00:00:00 2001 From: Niels Bouma <9073152+nielscil@users.noreply.github.com> Date: Tue, 1 Aug 2023 16:36:01 +0200 Subject: [PATCH 5/5] Fixed typo --- docs/services/changedetection.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/services/changedetection.md b/docs/services/changedetection.md index 1bcad6c..90cc957 100644 --- a/docs/services/changedetection.md +++ b/docs/services/changedetection.md @@ -1,6 +1,6 @@ # Changedetection.io -[Changedetection.io](https://github.com/dgtlmoon/changedetection.io) is simple **website change detection and restock monitoring** solution. +[Changedetection.io](https://github.com/dgtlmoon/changedetection.io) is a simple **website change detection and restock monitoring** solution. ## Dependencies @@ -51,4 +51,4 @@ You can remove the `changedetection_path_prefix` variable definition, to make it ## Usage -After installation, you can go to your given URL and start setting up Changedetection.io \ No newline at end of file +After installation, you can go to your given URL and start setting up Changedetection.io