diff --git a/docs/services/influxdb.md b/docs/services/influxdb.md new file mode 100644 index 0000000..5f483f9 --- /dev/null +++ b/docs/services/influxdb.md @@ -0,0 +1,46 @@ +# 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 +# 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" +#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`) 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..a9ab821 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-3 + 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