2023-12-22 15:49:55 +01:00
|
|
|
# General
|
2024-01-22 18:53:35 +01:00
|
|
|
pause_duration: "120" # Database delay to wait for the central database before continue tasks
|
|
|
|
top_domain: "localhost" # Change this in inventory to your domain
|
|
|
|
ip4_address: "127.0.0.1" # Change thie in inventory to the ip address of your server
|
|
|
|
backups_folder_path: "/Backups/" # Path to the backups folder
|
|
|
|
|
|
|
|
# Administrator
|
|
|
|
administrator_username: "administrator" # Username of the administrator
|
|
|
|
administrator_email: "{{administrator_username}}@{{top_domain}}" # Email of the administrator
|
2023-12-22 15:49:55 +01:00
|
|
|
|
2024-01-08 19:38:36 +01:00
|
|
|
# Mode
|
|
|
|
|
|
|
|
# The following modes can be combined with each other
|
|
|
|
mode_reset: false # Cleans up all CyMaIS files. It's necessary to run to whole playbook and not particial roles when using this function.
|
2024-01-22 18:53:35 +01:00
|
|
|
mode_debug: false # Prints well formated debug information
|
2024-01-08 19:38:36 +01:00
|
|
|
mode_test: false # Executes test routines instead of productive routines
|
2024-01-09 12:47:44 +01:00
|
|
|
mode_update: true # Executes updates
|
|
|
|
mode_backup: true # Activates the backup before the update procedure
|
2024-01-09 12:52:49 +01:00
|
|
|
mode_setup: false # Execute the setup and initializing procedures
|
|
|
|
|
2024-01-08 19:38:36 +01:00
|
|
|
|
2023-12-14 12:34:30 +01:00
|
|
|
# Server Tact Variables
|
2023-04-16 10:33:21 +02:00
|
|
|
|
2024-01-23 09:58:47 +01:00
|
|
|
## Ours in which the server is "awake" (100% working). Rest of the time is reserved for maintanance
|
|
|
|
hours_server_awake: "0..23"
|
2023-12-14 19:06:57 +01:00
|
|
|
|
2023-12-14 12:34:30 +01:00
|
|
|
## Random delay for systemd timers to avoid peak loads.
|
2023-12-14 19:06:57 +01:00
|
|
|
randomized_delay_sec: "5min"
|
2023-04-15 17:06:10 +02:00
|
|
|
|
2023-12-14 12:34:30 +01:00
|
|
|
## Schedule for Health Checks
|
2023-12-16 13:50:19 +01:00
|
|
|
on_calendar_health_btrfs: "*-*-* 00:00:00" # Check once per day the btrfs for errors
|
|
|
|
on_calendar_health_journalctl: "*-*-* 00:00:00" # Check once per day the journalctl for errors
|
|
|
|
on_calendar_health_disc_space: "*-*-* 06,12,18,00:00:00" # Check four times per day if there is sufficient disc space
|
|
|
|
on_calendar_health_docker_container: "*-*-* {{ hours_server_awake }}:00:00" # Check once per hour if the docker containers are healthy
|
|
|
|
on_calendar_health_docker_volumes: "*-*-* {{ hours_server_awake }}:15:00" # Check once per hour if the docker volumes are healthy
|
2023-12-17 17:34:34 +01:00
|
|
|
on_calendar_health_nginx: "*-*-* {{ hours_server_awake }}:45:00" # Check once per hour if all webservices are available
|
2023-04-16 10:33:21 +02:00
|
|
|
|
2023-12-14 12:34:30 +01:00
|
|
|
## Schedule for Cleanup Tasks
|
2023-12-16 13:50:19 +01:00
|
|
|
on_calendar_cleanup_backups: "*-*-* 00,06,12,18:30:00" # Cleanup backups every 6 hours, MUST be called before disc space cleanup
|
|
|
|
on_calendar_cleanup_disc_space: "*-*-* 07,13,19,01:30:00" # Cleanup disc space every 6 hours
|
2023-12-14 12:34:30 +01:00
|
|
|
|
|
|
|
## Schedule for Backup Tasks
|
2023-11-17 12:35:39 +01:00
|
|
|
on_calendar_backup_docker_to_local: "*-*-* 03:30:00"
|
|
|
|
on_calendar_backup_remote_to_local: "*-*-* 21:30:00"
|
2023-12-14 12:34:30 +01:00
|
|
|
|
|
|
|
## Schedule for Maintenance Tasks
|
2023-12-16 13:50:19 +01:00
|
|
|
on_calendar_heal_docker: "*-*-* {{ hours_server_awake }}:30:00" # Heal unhealthy docker instances once per hour
|
|
|
|
on_calendar_renew_lets_encrypt_certificates: "*-*-* 12,00:30:00" # Renew Mailu certificates twice per day
|
|
|
|
on_calendar_deploy_mailu_certificates: "*-*-* 13,01:30:00" # Deploy Mailu certificates twice per day
|
|
|
|
on_calendar_msi_keyboard_color: "*-*-* *:*:00" # Change the keyboard color every minute
|
2023-12-18 12:20:05 +01:00
|
|
|
on_calendar_cleanup_failed_docker: "*-*-* 12:00:00" # Clean up failed docker backups every noon
|
2024-05-27 23:24:21 +02:00
|
|
|
on_calendar_btrfs_auto_balancer: "Sat *-*-01..07 00:00:00" # Execute btrfs auto balancer every first Saturday of a month
|
2023-04-26 11:52:11 +02:00
|
|
|
|
2023-12-14 12:34:30 +01:00
|
|
|
# Storage Space-Related Configurations
|
|
|
|
size_percent_maximum_backup: 75 # Maximum storage space in percent for backups
|
2024-04-04 19:02:37 +02:00
|
|
|
size_percent_cleanup_disc_space: 85 # Threshold for triggering cleanup actions
|
|
|
|
size_percent_disc_space_warning: 90 # Warning threshold in percent for free disk space
|
2023-12-14 12:34:30 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Path Variables for Key Directories and Scripts
|
2023-12-16 20:37:40 +01:00
|
|
|
path_administrator_home: "/home/administrator/"
|
|
|
|
path_administrator_scripts: "{{path_administrator_home}}scripts/"
|
|
|
|
path_docker_volumes: "{{path_administrator_home}}volumes/docker/"
|
|
|
|
path_docker_compose_instances: "{{path_administrator_home}}docker-compose/"
|
|
|
|
path_system_lock_script: "{{path_administrator_scripts}}system-maintenance-lock.py"
|
2023-11-18 20:02:55 +01:00
|
|
|
|
2023-12-14 12:34:30 +01:00
|
|
|
|
|
|
|
# Runtime Variables for Process Control
|
2023-12-14 00:32:52 +01:00
|
|
|
activate_all_timers: false # Activates all timers, independend if the handlers had been triggered
|
|
|
|
nginx_matomo_tracking: false # Activates matomo tracking on all html pages
|
2023-12-12 01:44:37 +01:00
|
|
|
|
2023-12-14 16:29:11 +01:00
|
|
|
# System maintenance Services
|
2023-12-12 01:44:37 +01:00
|
|
|
|
2023-12-14 16:29:11 +01:00
|
|
|
## Timeouts to wait for other services to stop
|
2024-01-10 23:36:18 +01:00
|
|
|
sytem_maintenance_lock_timeout_cleanup_services: "15min"
|
|
|
|
sytem_maintenance_lock_timeout_storage_optimizer: "10min"
|
|
|
|
sytem_maintenance_lock_timeout_backup_services: "1h"
|
|
|
|
sytem_maintenance_lock_timeout_heal_docker: "30min"
|
|
|
|
sytem_maintenance_lock_timeout_update_docker: "2min"
|
2023-12-14 16:29:11 +01:00
|
|
|
|
|
|
|
## Services
|
|
|
|
|
|
|
|
### Defined Services for Backup Tasks
|
|
|
|
system_maintenance_backup_services:
|
2023-12-13 19:02:07 +01:00
|
|
|
- "backup-docker-to-local"
|
|
|
|
- "backup-remote-to-local"
|
|
|
|
- "backup-data-to-usb"
|
2023-12-27 22:12:19 +01:00
|
|
|
- "backup-docker-to-local-everything"
|
2023-12-14 12:34:30 +01:00
|
|
|
|
2023-12-14 16:29:11 +01:00
|
|
|
### Defined Services for System Cleanup
|
|
|
|
system_maintenance_cleanup_services:
|
2023-12-13 19:02:07 +01:00
|
|
|
- "cleanup-backups"
|
|
|
|
- "cleanup-disc-space"
|
|
|
|
- "cleanup-failed-docker-backups"
|
2023-12-14 12:34:30 +01:00
|
|
|
|
2023-12-14 16:29:11 +01:00
|
|
|
### Services that Manipulate the System
|
|
|
|
system_maintenance_manipulation_services:
|
2023-12-13 19:02:07 +01:00
|
|
|
- "heal-docker"
|
|
|
|
- "update-docker"
|
2024-01-10 14:00:43 +01:00
|
|
|
- "system-storage-optimizer"
|
2023-12-14 12:34:30 +01:00
|
|
|
|
|
|
|
## Total System Maintenance Services
|
2023-12-14 16:29:11 +01:00
|
|
|
system_maintenance_services: "{{ system_maintenance_backup_services + system_maintenance_cleanup_services + system_maintenance_manipulation_services }}"
|
2023-12-13 19:02:07 +01:00
|
|
|
|
2024-01-03 15:46:28 +01:00
|
|
|
### Define Variables for Docker Volume Health services
|
|
|
|
whitelisted_anonymous_docker_volumes: []
|
|
|
|
|
2023-12-14 12:34:30 +01:00
|
|
|
# Webserver Configuration
|
|
|
|
|
|
|
|
## Nginx-Specific Path Configurations
|
|
|
|
nginx_configuration_directory: "/etc/nginx/conf.d/" # General configuration dir
|
|
|
|
nginx_servers_directory: "{{nginx_configuration_directory}}servers/" # Contains server blogs
|
|
|
|
nginx_maps_directory: "{{nginx_configuration_directory}}maps/" # Contains mappins
|
|
|
|
nginx_upstreams_directory: "{{nginx_configuration_directory}}upstreams/" # Contains upstream configurations
|
2024-01-19 11:52:08 +01:00
|
|
|
nginx_well_known_root: "/usr/share/nginx/well-known/" # Path where well-known files are stored
|
|
|
|
nginx_homepage_root: "/usr/share/nginx/homepage/" # Path where the static homepage files are stored
|
2023-12-14 12:34:30 +01:00
|
|
|
|
2024-01-22 18:53:35 +01:00
|
|
|
## Domains
|
2024-01-13 20:12:39 +01:00
|
|
|
|
2024-01-22 18:53:35 +01:00
|
|
|
### Service Domains
|
|
|
|
domain_akaunting: "accounting.{{top_domain}}"
|
2024-05-26 21:32:44 +02:00
|
|
|
domain_attendize: "tickets.{{top_domain}}"
|
2023-12-14 12:34:30 +01:00
|
|
|
domain_baserow: "baserow.{{top_domain}}"
|
|
|
|
domain_bigbluebutton: "meet.{{top_domain}}"
|
|
|
|
domain_discourse: "forum.{{top_domain}}"
|
2024-05-26 21:32:44 +02:00
|
|
|
domain_elk: "elk.{{top_domain}}"
|
2023-12-14 12:34:30 +01:00
|
|
|
domain_funkwhale: "music.{{top_domain}}"
|
|
|
|
domain_gitea: "git.{{top_domain}}"
|
2023-12-28 00:28:30 +01:00
|
|
|
domain_gitlab: "gitlab.{{top_domain}}"
|
2023-12-14 12:34:30 +01:00
|
|
|
domain_listmonk: "newsletter.{{top_domain}}"
|
|
|
|
domain_mailu: "mail.{{top_domain}}"
|
|
|
|
domain_mastodon: "microblog.{{top_domain}}"
|
2024-01-22 18:53:35 +01:00
|
|
|
domains_mastodon_alternates: ["mastodon.{{top_domain}}"]
|
2023-12-14 12:34:30 +01:00
|
|
|
domain_matomo: "matomo.{{top_domain}}"
|
2023-12-19 14:07:05 +01:00
|
|
|
domain_matrix_synapse: "matrix.{{top_domain}}"
|
2023-12-21 20:42:33 +01:00
|
|
|
domain_matrix_element: "element.{{top_domain}}"
|
2024-01-22 18:53:35 +01:00
|
|
|
domain_moodle: "academy.{{top_domain}}"
|
2023-12-14 12:34:30 +01:00
|
|
|
domain_mediawiki: "wiki.{{top_domain}}"
|
|
|
|
domain_nextcloud: "cloud.{{top_domain}}"
|
2024-05-26 21:32:44 +02:00
|
|
|
domain_openproject: "project.{{top_domain}}"
|
2023-12-15 18:26:32 +01:00
|
|
|
domain_pixelfed: "picture.{{top_domain}}"
|
|
|
|
domain_peertube: "video.{{top_domain}}"
|
2023-12-14 12:34:30 +01:00
|
|
|
domains_peertube: []
|
|
|
|
domain_roulette: "roulette.{{top_domain}}"
|
2024-05-26 21:32:44 +02:00
|
|
|
domain_taiga: "kanban.{{top_domain}}"
|
2023-12-14 12:34:30 +01:00
|
|
|
domain_yourls: "s.{{top_domain}}"
|
2024-01-04 09:09:38 +01:00
|
|
|
domains_wordpress: ["wordpress.{{top_domain}}","blog.{{top_domain}}"]
|
2023-12-14 12:34:30 +01:00
|
|
|
|
2024-01-22 18:53:35 +01:00
|
|
|
### Domain Redirects
|
|
|
|
redirect_domain_mappings:
|
|
|
|
- { source: "akaunting.{{top_domain}}", target: "{{domain_akaunting}}" }
|
|
|
|
- { source: "bbb.{{top_domain}}", target: "{{domain_bigbluebutton}}" }
|
|
|
|
- { source: "discourse.{{top_domain}}", target: "{{domain_discourse}}" }
|
|
|
|
- { source: "funkwhale.{{top_domain}}", target: "{{domain_funkwhale}}" }
|
|
|
|
- { source: "gitea.{{top_domain}}", target: "{{domain_gitea}}" }
|
|
|
|
- { source: "listmonk.{{top_domain}}", target: "{{domain_listmonk}}" }
|
|
|
|
- { source: "moodle.{{top_domain}}", target: "{{domain_moodle}}" }
|
|
|
|
- { source: "nextcloud.{{top_domain}}", target: "{{domain_nextcloud}}" }
|
|
|
|
- { source: "openproject.{{top_domain}}", target: "{{domain_openproject}}" }
|
|
|
|
- { source: "peertube.{{top_domain}}", target: "{{domain_peertube}}" }
|
|
|
|
- { source: "pictures.{{top_domain}}", target: "{{domain_pixelfed}}" }
|
|
|
|
- { source: "pixelfed.{{top_domain}}", target: "{{domain_pixelfed}}" }
|
|
|
|
- { source: "short.{{top_domain}}", target: "{{domain_yourls}}" }
|
2024-05-26 21:32:44 +02:00
|
|
|
- { source: "taiga.{{top_domain}}", target: "{{domain_taiga}}" }
|
2024-01-22 18:53:35 +01:00
|
|
|
- { source: "videos.{{top_domain}}", target: "{{domain_peertube}}" }
|
|
|
|
|
|
|
|
## Docker Applications
|
|
|
|
|
|
|
|
### Enable Central MariaDB
|
|
|
|
enable_central_database: true
|
|
|
|
enable_central_database_mailu: "{{enable_central_database}}"
|
|
|
|
|
|
|
|
### Enable Storage Optimizer for Docker Volumes
|
|
|
|
enable_system_storage_optimizer: true
|
|
|
|
|
2023-12-28 00:28:30 +01:00
|
|
|
### Common Configurations
|
|
|
|
postgres_default_version: "16"
|
|
|
|
|
2023-12-22 15:49:55 +01:00
|
|
|
### Docker Role Specific Parameters
|
2024-01-12 20:57:58 +01:00
|
|
|
docker_restart_policy: "unless-stopped"
|
2023-12-13 15:16:02 +01:00
|
|
|
|
2024-01-05 23:13:46 +01:00
|
|
|
#### Akaunting
|
2024-01-22 18:53:35 +01:00
|
|
|
akaunting_version: "latest"
|
|
|
|
akaunting_company_name: "{{top_domain}}"
|
|
|
|
akaunting_company_email: "{{administrator_email}}"
|
|
|
|
akaunting_setup_admin_email: "{{administrator_email}}"
|
2023-12-19 14:07:05 +01:00
|
|
|
|
2024-01-13 01:32:17 +01:00
|
|
|
#### Big Blue Button
|
2024-01-13 20:12:39 +01:00
|
|
|
bigbluebutton_enable_greenlight: "true"
|
2024-01-13 01:32:17 +01:00
|
|
|
|
2024-01-05 23:13:46 +01:00
|
|
|
#### Listmonk
|
|
|
|
listmonk_admin_username: "admin"
|
2023-12-21 17:32:54 +01:00
|
|
|
|
2023-12-22 15:49:55 +01:00
|
|
|
#### Mastodon
|
2024-01-22 18:53:35 +01:00
|
|
|
mastodon_version: "latest"
|
2024-01-05 23:13:46 +01:00
|
|
|
mastodon_single_user_mode: false
|
2023-12-21 19:50:19 +01:00
|
|
|
|
2024-01-05 23:13:46 +01:00
|
|
|
#### Matrix
|
2024-01-22 18:53:35 +01:00
|
|
|
matrix_admin_name: "{{administrator_username}}" # Accountname of the matrix admin
|
|
|
|
matrix_playbook_tags: "setup-all,start" # For the initial update use: install-all,ensure-matrix-users-created,start
|
|
|
|
matrix_role: "compose" # Role to setup Matrix. Valid values: ansible, compose
|
|
|
|
matrix_server_name: "{{top_domain}}" # Adress for the account names etc.
|
2023-12-22 15:49:55 +01:00
|
|
|
|
|
|
|
#### Mailu
|
2024-01-22 18:53:35 +01:00
|
|
|
mailu_version: "2.0"
|
|
|
|
mailu_domain: "{{top_domain}}"
|
|
|
|
mailu_subnet: "192.168.203.0/24"
|
|
|
|
|
|
|
|
#### Moodle
|
|
|
|
moodle_site_name: "Global Learning Academy on {{top_domain}}"
|
|
|
|
moodle_user_name: "{{administrator_username}}"
|
|
|
|
moodle_user_email: "{{administrator_email}}"
|
2023-12-22 15:49:55 +01:00
|
|
|
|
|
|
|
#### Nextcloud
|
2024-01-22 18:53:35 +01:00
|
|
|
nextcloud_version: "production" # Danger: Nextcloud can't skipp major version updates.
|
2023-12-22 15:49:55 +01:00
|
|
|
|
2024-07-10 19:24:52 +02:00
|
|
|
#### Peertube
|
|
|
|
peertube_version: "bookworm"
|
|
|
|
|
2024-01-05 23:13:46 +01:00
|
|
|
#### Pixelfed
|
2024-01-22 18:53:35 +01:00
|
|
|
pixelfed_app_name: "Pictures on {{top_domain}}"
|
2024-01-05 23:13:46 +01:00
|
|
|
|
|
|
|
#### YOURLS
|
2024-01-22 18:53:35 +01:00
|
|
|
yourls_user: "{{administrator_username}}"
|