Matrix Docker Ansible eploy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 

81 行
4.3 KiB

  1. matrix_postgres_enabled: true
  2. matrix_postgres_connection_hostname: "matrix-postgres"
  3. matrix_postgres_connection_port: 5432
  4. matrix_postgres_connection_username: "matrix"
  5. matrix_postgres_connection_password: ""
  6. matrix_postgres_db_name: "matrix"
  7. matrix_postgres_base_path: "{{ matrix_base_data_path }}/postgres"
  8. matrix_postgres_data_path: "{{ matrix_postgres_base_path }}/data"
  9. matrix_postgres_docker_image_v9: "docker.io/postgres:9.6.20-alpine"
  10. matrix_postgres_docker_image_v10: "docker.io/postgres:10.15-alpine"
  11. matrix_postgres_docker_image_v11: "docker.io/postgres:11.10-alpine"
  12. matrix_postgres_docker_image_v12: "docker.io/postgres:12.5-alpine"
  13. matrix_postgres_docker_image_v13: "docker.io/postgres:13.1-alpine"
  14. matrix_postgres_docker_image_latest: "{{ matrix_postgres_docker_image_v13 }}"
  15. # This variable is assigned at runtime. Overriding its value has no effect.
  16. matrix_postgres_docker_image_to_use: '{{ matrix_postgres_docker_image_latest }}'
  17. matrix_postgres_docker_image_force_pull: "{{ matrix_postgres_docker_image_to_use.endswith(':latest') }}"
  18. # A list of extra arguments to pass to the container
  19. matrix_postgres_container_extra_arguments: []
  20. # Controls whether the matrix-postgres container exposes a port (tcp/5432 in the
  21. # container) that can be used to access the database from outside the container (e.g. with psql)
  22. #
  23. # psql postgresql://username:password@localhost:<port>/database_name
  24. #
  25. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:5432"), or empty string to not expose.
  26. matrix_postgres_container_postgres_bind_port: ""
  27. # A list of additional (databases and their credentials) to create.
  28. #
  29. # Example:
  30. # matrix_postgres_additional_databases:
  31. # - name: matrix_appservice_discord
  32. # username: matrix_appservice_discord
  33. # password: some_password
  34. # - name: matrix_appservice_slack
  35. # username: matrix_appservice_slack
  36. # password: some_password
  37. matrix_postgres_additional_databases: []
  38. # A list of roles/users to avoid creating when importing (or upgrading) the database.
  39. # If a dump file contains the roles and they've also been created beforehand (see `matrix_postgres_additional_databases`),
  40. # importing would fail.
  41. # We either need to not create them or to ignore the `CREATE ROLE` statements in the dump.
  42. matrix_postgres_import_roles_to_ignore: [matrix_postgres_connection_username]
  43. matrix_postgres_import_roles_ignore_regex: "^CREATE ROLE ({{ matrix_postgres_import_roles_to_ignore|join('|') }});"
  44. # A list of databases to avoid creating when importing (or upgrading) the database.
  45. # If a dump file contains the databases and they've also been created beforehand (see `matrix_postgres_additional_databases`),
  46. # importing would fail.
  47. # We either need to not create them or to ignore the `CREATE DATABASE` statements in the dump.
  48. matrix_postgres_import_databases_to_ignore: [matrix_postgres_db_name]
  49. matrix_postgres_import_databases_ignore_regex: "^CREATE DATABASE ({{ matrix_postgres_import_databases_to_ignore|join('|') }})\\s"
  50. # The number of seconds to wait after starting `matrix-postgres.service`
  51. # and before trying to run queries for creating additional databases/users against it.
  52. #
  53. # For most (subsequent) runs, Postgres would already be running, so no waiting will be happening at all.
  54. matrix_postgres_additional_databases_postgres_start_wait_timeout_seconds: 15
  55. matrix_postgres_pgloader_container_image_self_build: false
  56. matrix_postgres_pgloader_container_image_self_build_repo: "https://github.com/illagrenan/pgloader-docker.git"
  57. matrix_postgres_pgloader_container_image_self_build_repo_branch: "v{{ matrix_postgres_pgloader_docker_image_tag }}"
  58. matrix_postgres_pgloader_container_image_self_build_src_path: "{{ matrix_postgres_base_path }}/pgloader-container-src"
  59. # We use illagrenan/pgloader, instead of the more official dimitri/pgloader image,
  60. # because the official one only provides a `latest` tag.
  61. matrix_postgres_pgloader_docker_image: "{{ matrix_postgres_pgloader_docker_image_name_prefix }}illagrenan/pgloader:{{ matrix_postgres_pgloader_docker_image_tag }}"
  62. matrix_postgres_pgloader_docker_image_name_prefix: "{{ 'localhost/' if matrix_postgres_pgloader_container_image_self_build else 'docker.io/' }}"
  63. matrix_postgres_pgloader_docker_image_tag: "3.6.2"
  64. matrix_postgres_pgloader_docker_image_force_pull: "{{ matrix_postgres_pgloader_docker_image.endswith(':latest') }}"