Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

94 lines
4.2 KiB

  1. ---
  2. matrix_backup_borg_enabled: true
  3. matrix_backup_borg_base_path: "{{ matrix_base_data_path }}/backup-borg"
  4. matrix_backup_borg_config_path: "{{ matrix_backup_borg_base_path }}/config"
  5. matrix_backup_borg_container_image_self_build: false
  6. matrix_backup_borg_docker_repo: "https://github.com/borgmatic-collective/docker-borgmatic"
  7. matrix_backup_borg_docker_src_files_path: "{{ matrix_backup_borg_base_path }}/docker-src"
  8. matrix_backup_borg_version: ""
  9. matrix_backup_borg_docker_image: "{{ matrix_backup_borg_docker_image_name_prefix }}etke.cc/borgmatic:{{ matrix_backup_borg_version }}"
  10. matrix_backup_borg_docker_image_name_prefix: "{{ 'localhost/' if matrix_backup_borg_container_image_self_build else 'registry.gitlab.com/' }}"
  11. matrix_backup_borg_docker_image_force_pull: "{{ matrix_backup_borg_docker_image.endswith(':latest') or matrix_backup_borg_version|default('') == '' }}"
  12. # A list of extra arguments to pass to the container
  13. matrix_backup_borg_container_extra_arguments: []
  14. # List of systemd services that matrix-backup-borg.service depends on
  15. matrix_backup_borg_systemd_required_services_list: ['docker.service']
  16. # List of systemd services that matrix-backup-borg.service wants
  17. matrix_backup_borg_systemd_wanted_services_list: []
  18. # systemd calendar configuration for backup job
  19. matrix_backup_borg_schedule: "*-*-* 04:00:00"
  20. # what directories should be added to backup
  21. matrix_backup_borg_location_source_directories: []
  22. # postgres db backup
  23. matrix_backup_borg_postgresql_enabled: true
  24. matrix_backup_borg_postgresql_databases: []
  25. matrix_backup_borg_postgresql_databases_hostname: "matrix-postgres"
  26. matrix_backup_borg_postgresql_databases_username: "matrix"
  27. matrix_backup_borg_postgresql_databases_password: ""
  28. matrix_backup_borg_postgresql_databases_port: 5432
  29. # target repositories
  30. matrix_backup_borg_location_repositories: []
  31. # exclude following paths:
  32. matrix_backup_borg_location_exclude_patterns: []
  33. # borg encryption mode, only repokey-* is supported
  34. matrix_backup_borg_encryption: repokey-blake2
  35. # private ssh key used to connect to the borg repo
  36. matrix_backup_borg_ssh_key_private: ""
  37. # borg ssh command with ssh key
  38. matrix_backup_borg_storage_ssh_command: ssh -o "StrictHostKeyChecking accept-new" -i /etc/borgmatic.d/sshkey
  39. # compression algorithm
  40. matrix_backup_borg_storage_compression: lz4
  41. # archive name format
  42. matrix_backup_borg_storage_archive_name_format: "matrix-{now:%Y-%m-%d-%H%M%S}"
  43. # repository passphrase
  44. matrix_backup_borg_storage_encryption_passphrase: ""
  45. # retention configuration
  46. matrix_backup_borg_retention_keep_hourly: 0
  47. matrix_backup_borg_retention_keep_daily: 7
  48. matrix_backup_borg_retention_keep_weekly: 4
  49. matrix_backup_borg_retention_keep_monthly: 12
  50. matrix_backup_borg_retention_keep_yearly: 2
  51. # retention prefix
  52. matrix_backup_borg_retention_prefix: "matrix-"
  53. # Default borgmatic configuration template which covers the generic use case.
  54. # You can customize it by controlling the various variables inside it.
  55. #
  56. # For a more advanced customization, you can extend the default (see `matrix_backup_borg_configuration_extension_yaml`)
  57. # or completely replace this variable with your own template.
  58. matrix_backup_borg_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  59. matrix_backup_borg_configuration_extension_yaml: |
  60. # Your custom YAML configuration for borgmatic goes here.
  61. # This configuration extends the default starting configuration (`matrix_borg_configuration_yaml`).
  62. #
  63. # You can override individual variables from the default configuration, or introduce new ones.
  64. #
  65. # If you need something more special, you can take full control by
  66. # completely redefining `matrix_backup_borg_configuration_yaml`.
  67. matrix_backup_borg_configuration_extension: "{{ matrix_backup_borg_configuration_extension_yaml|from_yaml if matrix_backup_borg_configuration_extension_yaml|from_yaml is mapping else {} }}"
  68. # Holds the final borgmatic configuration (a combination of the default and its extension).
  69. # You most likely don't need to touch this variable. Instead, see `matrix_backup_borg_configuration_yaml`.
  70. matrix_backup_borg_configuration: "{{ matrix_backup_borg_configuration_yaml|from_yaml|combine(matrix_backup_borg_configuration_extension, recursive=True) }}"