Matrix Docker Ansible eploy
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

108 lines
5.0 KiB

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