From ca1f00c7ca1daf79c7eca9e03c6271d787dd0e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Thu, 29 Jun 2023 00:51:46 +0200 Subject: [PATCH 1/6] Initial influxdb commit --- group_vars/mash_servers | 42 +++++++++++++++++++++++++++++++++++++++++ requirements.yml | 3 +++ setup.yml | 2 ++ 3 files changed, 47 insertions(+) diff --git a/group_vars/mash_servers b/group_vars/mash_servers index ece9d0b..70d3b2c 100644 --- a/group_vars/mash_servers +++ b/group_vars/mash_servers @@ -123,6 +123,8 @@ devture_systemd_service_manager_services_list_auto: | + ([{'name': (infisical_identifier + '-frontend.service'), 'priority': 2000, 'groups': ['mash', 'infisical', 'infisical-frontend']}] if infisical_enabled else []) + + ([{'name': (influxdb + '.service'), 'priority': 2000, 'groups': ['mash', 'influxdb']}] if influxdb_enabled else []) + + ([{'name': (jitsi_identifier + '-web.service'), 'priority': 4200, 'groups': ['mash', 'jitsi', 'jitsi-web']}] if jitsi_enabled else []) + ([{'name': (jitsi_identifier + '-prosody.service'), 'priority': 4000, 'groups': ['mash', 'jitsi', 'jitsi-prosody']}] if jitsi_enabled else []) @@ -1452,6 +1454,46 @@ infisical_mongodb_auth_source: "{{ infisical_mongodb_db_name }}" + +######################################################################## +# # +# influxdb # +# # +######################################################################## + +influxdb_enabled: false + +influxdb_identifier: "{{ mash_playbook_service_identifier_prefix }}influxdb" + +influxdb_base_path: "{{ mash_playbook_base_path }}/{{ mash_playbook_service_base_directory_name_prefix }}influxdb" + +influxdb_uid: "{{ mash_playbook_uid }}" +influxdb_gid: "{{ mash_playbook_gid }}" + +influxdb_systemd_required_services_list: | + {{ + (['docker.service']) + }} + +influxdb_container_additional_networks: | + {{ + ([mash_playbook_reverse_proxyable_services_additional_network] if mash_playbook_reverse_proxyable_services_additional_network else []) + }} + +influxdb_container_labels_traefik_enabled: "{{ mash_playbook_traefik_labels_enabled }}" +influxdb_container_labels_traefik_docker_network: "{{ mash_playbook_reverse_proxyable_services_additional_network }}" +influxdb_container_labels_traefik_entrypoints: "{{ devture_traefik_entrypoint_primary }}" +influxdb_container_labels_traefik_tls_certResolver: "{{ devture_traefik_certResolver_primary }}" + + +######################################################################## +# # +# /influxdb # +# # +######################################################################## + + + ######################################################################## # # # jitsi # diff --git a/requirements.yml b/requirements.yml index 44c9c20..3d50521 100644 --- a/requirements.yml +++ b/requirements.yml @@ -83,6 +83,9 @@ - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-infisical.git version: v0.3.8-4 name: infisical +- src: git+https://github.com/mother-of-all-self-hosting/ansible-role-influxdb.git + version: v2.7.0-0 + name: influxdb - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-jitsi.git version: v8615-0 name: jitsi diff --git a/setup.yml b/setup.yml index 21f74ec..c5f64e6 100644 --- a/setup.yml +++ b/setup.yml @@ -94,6 +94,8 @@ - role: galaxy/hubsite + - role: galaxy/influxdb + - role: galaxy/jitsi - role: galaxy/keycloak From 9566d01676820c9cdd145a60db2dca3830912001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Thu, 29 Jun 2023 01:24:39 +0200 Subject: [PATCH 2/6] Add docs --- docs/services/influxdb.md | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docs/services/influxdb.md diff --git a/docs/services/influxdb.md b/docs/services/influxdb.md new file mode 100644 index 0000000..059f3f3 --- /dev/null +++ b/docs/services/influxdb.md @@ -0,0 +1,42 @@ +# InfluxDB + +[InfluxDB](https://www.influxdata.com/) is a self-hosted time-series database, that this playbook can install, powered by the [mother-of-all-self-hosting/ansible-role-influxdb](https://github.com/mother-of-all-self-hosting/ansible-role-influxdb) Ansible role. + +## Configuration + +To enable this service, add the following configuration to your `vars.yml` file and re-run the [installation](../installing.md) process: + +```yaml +######################################################################## +# # +# influxdb # +# # +######################################################################## + +# Configuring this role for your playbook + +influxdb_enabled: true +influxdb_hostname: 'example.org' + + +# Advanced configuration +# To bootstrap an initial user, bucket and organization you can uncomment and replace + +#influxdb_init: true +#influxdb_init_username: "USERNAME" +#influxdb_init_password: "SUPERSECRETPASSWORD" +#influxdb_init_org: "EXAMPLE_ORG" +#influxdb_init_bucket: "SOMEBUCKET" + +######################################################################## +# # +# /influxdb # +# # +######################################################################## +``` + +After installation, visit the domain you set in `influxdb_hostname` to get started. + +## Usage + +After [installing](../installing.md), you can visit at the URL specified in `influxdb_hostname` and configure your first user (or login if you set `influxdb_init`) From 5c174385301ad97612349e7f18ef6e0e8f6cc061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Thu, 29 Jun 2023 01:26:49 +0200 Subject: [PATCH 3/6] Update role --- requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.yml b/requirements.yml index 3d50521..18b6197 100644 --- a/requirements.yml +++ b/requirements.yml @@ -84,7 +84,7 @@ version: v0.3.8-4 name: infisical - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-influxdb.git - version: v2.7.0-0 + version: v2.7.0-1 name: influxdb - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-jitsi.git version: v8615-0 From a17855ddd476f8b0b98c97bf2da6af1d7b20ca83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Thu, 29 Jun 2023 01:35:21 +0200 Subject: [PATCH 4/6] Bump influxdb role version --- requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.yml b/requirements.yml index 18b6197..f6e386f 100644 --- a/requirements.yml +++ b/requirements.yml @@ -84,7 +84,7 @@ version: v0.3.8-4 name: infisical - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-influxdb.git - version: v2.7.0-1 + version: v2.7.0-2 name: influxdb - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-jitsi.git version: v8615-0 From d90c07519cb8aa204e6ee10f8d77a82a4c5e4fde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Thu, 29 Jun 2023 09:13:43 +0200 Subject: [PATCH 5/6] Fix alignment issues --- docs/services/influxdb.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/services/influxdb.md b/docs/services/influxdb.md index 059f3f3..c08eb3c 100644 --- a/docs/services/influxdb.md +++ b/docs/services/influxdb.md @@ -9,7 +9,7 @@ To enable this service, add the following configuration to your `vars.yml` file ```yaml ######################################################################## # # -# influxdb # +# influxdb # # # ######################################################################## @@ -30,7 +30,7 @@ influxdb_hostname: 'example.org' ######################################################################## # # -# /influxdb # +# /influxdb # # # ######################################################################## ``` From 77bd62f03136be5d350c5e153ee61d5889e96c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Thu, 29 Jun 2023 09:26:24 +0200 Subject: [PATCH 6/6] Add documentation + minor refactoring --- docs/services/influxdb.md | 8 ++++++-- requirements.yml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/services/influxdb.md b/docs/services/influxdb.md index c08eb3c..5f483f9 100644 --- a/docs/services/influxdb.md +++ b/docs/services/influxdb.md @@ -20,8 +20,12 @@ influxdb_hostname: 'example.org' # Advanced configuration -# To bootstrap an initial user, bucket and organization you can uncomment and replace - +# Configure the inital user, organization and bucket +# +# This setting will only be used once upon initial installation of influxdb. Changing this values +# after the first start of influxdb will have no effect. +# Not setting this will allow you to manually set these by visiting the domain you set in influxdb_hostname +# after installation. #influxdb_init: true #influxdb_init_username: "USERNAME" #influxdb_init_password: "SUPERSECRETPASSWORD" diff --git a/requirements.yml b/requirements.yml index f6e386f..a9ab821 100644 --- a/requirements.yml +++ b/requirements.yml @@ -84,7 +84,7 @@ version: v0.3.8-4 name: infisical - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-influxdb.git - version: v2.7.0-2 + version: v2.7.0-3 name: influxdb - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-jitsi.git version: v8615-0