Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

109 líneas
5.7 KiB

  1. ---
  2. - name: (Deprecation) Catch and report renamed Hookshot variables
  3. ansible.builtin.fail:
  4. msg: >-
  5. Your configuration contains a variable, which now has a different name.
  6. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  7. when: "item.old in vars"
  8. with_items:
  9. - {'old': 'matrix_hookshot_feeds_interval', 'new': 'matrix_hookshot_feeds_pollIntervalSeconds'}
  10. - {'old': 'matrix_hookshot_generic_urlprefix', 'new': 'matrix_hookshot_generic_urlPrefix'}
  11. - {'old': 'matrix_hookshot_generic_allow_js_transformation_functions', 'new': 'matrix_hookshot_generic_allowJsTransformationFunctions'}
  12. - {'old': 'matrix_hookshot_generic_user_id_prefix', 'new': 'matrix_hookshot_generic_userIdPrefix'}
  13. - {'old': 'matrix_hookshot_github_secret', 'new': 'matrix_hookshot_github_webhook_secret'}
  14. - {'old': 'matrix_hookshot_github_appid', 'new': 'matrix_hookshot_github_auth_id'}
  15. - {'old': 'matrix_hookshot_github_oauth_id', 'new': 'matrix_hookshot_github_oauth_client_id'}
  16. - {'old': 'matrix_hookshot_github_oauth_secret', 'new': 'matrix_hookshot_github_oauth_client_secret'}
  17. - {'old': 'matrix_hookshot_github_oauth_uri', 'new': 'matrix_hookshot_github_oauth_redirect_uri'}
  18. - {'old': 'matrix_hookshot_github_ignore_hooks', 'new': 'matrix_hookshot_github_defaultOptions_ignoreHooks'}
  19. - {'old': 'matrix_hookshot_github_command_prefix', 'new': 'matrix_hookshot_github_defaultOptions_commandPrefix'}
  20. - {'old': 'matrix_hookshot_github_showIssueRoomLink', 'new': 'matrix_hookshot_github_defaultOptions_showIssueRoomLink'}
  21. - {'old': 'matrix_hookshot_github_pr_diff', 'new': 'matrix_hookshot_github_defaultOptions_prDiff'}
  22. - {'old': 'matrix_hookshot_github_including_labels', 'new': 'matrix_hookshot_github_defaultOptions_includingLabels'}
  23. - {'old': 'matrix_hookshot_github_excluding_labels', 'new': 'matrix_hookshot_github_defaultOptions_excludingLabels'}
  24. - {'old': 'matrix_hookshot_github_hotlink_prefix', 'new': 'matrix_hookshot_github_defaultOptions_hotlinkIssues_prefix'}
  25. - {'old': 'matrix_hookshot_jira_secret', 'new': 'matrix_hookshot_jira_webhook_secret'}
  26. - {'old': 'matrix_hookshot_jira_oauth_id', 'new': 'matrix_hookshot_jira_oauth_client_id'}
  27. - {'old': 'matrix_hookshot_jira_oauth_secret', 'new': 'matrix_hookshot_jira_oauth_client_secret'}
  28. - {'old': 'matrix_hookshot_jira_oauth_uri', 'new': 'matrix_hookshot_jira_oauth_client_secret'}
  29. - {'old': 'matrix_hookshot_gitlab_secret', 'new': 'matrix_hookshot_gitlab_webhook_secret'}
  30. - name: Fail if required settings not defined
  31. ansible.builtin.fail:
  32. msg: >-
  33. You need to define a required configuration setting (`{{ item }}`).
  34. when: "vars[item] == ''"
  35. with_items:
  36. - "matrix_hookshot_appservice_token"
  37. - "matrix_hookshot_homeserver_address"
  38. - "matrix_hookshot_homeserver_token"
  39. - name: Fail if required GitHub settings not defined
  40. ansible.builtin.fail:
  41. msg: >-
  42. You need to define a required configuration setting (`{{ item }}`) to enable GitHub.
  43. when: "matrix_hookshot_github_enabled and vars[item] == ''"
  44. with_items:
  45. - "matrix_hookshot_github_auth_id"
  46. - "matrix_hookshot_github_webhook_secret"
  47. - name: Fail if required GitHub OAuth settings not defined
  48. ansible.builtin.fail:
  49. msg: >-
  50. You need to define a required configuration setting (`{{ item }}`) to enable GitHub OAuth.
  51. when: "matrix_hookshot_github_oauth_enabled and vars[item] == ''"
  52. with_items:
  53. - "matrix_hookshot_github_oauth_client_id"
  54. - "matrix_hookshot_github_oauth_client_secret"
  55. - name: Fail if required Jira settings not defined
  56. ansible.builtin.fail:
  57. msg: >-
  58. You need to define a required configuration setting (`{{ item }}`) to enable Jira.
  59. when: "matrix_hookshot_jira_enabled and vars[item] == ''"
  60. with_items:
  61. - "matrix_hookshot_jira_webhook_secret"
  62. - name: Fail if required Jira OAuth settings not defined
  63. ansible.builtin.fail:
  64. msg: >-
  65. You need to define a required configuration setting (`{{ item }}`) to enable Jira OAuth.
  66. when: "matrix_hookshot_jira_oauth_enabled and vars[item] == ''"
  67. with_items:
  68. - "matrix_hookshot_jira_oauth_client_id"
  69. - "matrix_hookshot_jira_oauth_client_secret"
  70. - name: Fail if required Figma settings not defined
  71. ansible.builtin.fail:
  72. msg: >-
  73. You need to define at least one Figma instance in `matrix_hookshot_figma_instances` to enable Figma.
  74. when: "matrix_hookshot_figma_enabled and matrix_hookshot_figma_instances | length == 0"
  75. - name: Fail if required provisioning settings not defined
  76. ansible.builtin.fail:
  77. msg: >-
  78. You need to define a required configuration setting (`{{ item }}`) to enable provisioning.
  79. when: "matrix_hookshot_provisioning_enabled and vars[item] == ''"
  80. with_items:
  81. - "matrix_hookshot_provisioning_secret"
  82. - name: Fail if no Redis queue enabled when Hookshot encryption is enabled
  83. ansible.builtin.fail:
  84. msg: >-
  85. You need to define a required configuration setting (`{{ item }}`) to enable Hookshot encryption.
  86. when: "matrix_hookshot_experimental_encryption_enabled and matrix_hookshot_queue_host == ''"
  87. - name: (Deprecation) Catch and report old metrics usage
  88. ansible.builtin.fail:
  89. msg: >-
  90. Your configuration contains a variable (`{{ item }}`), which refers to the old metrics collection system for Hookshot,
  91. which exposed metrics on `https://stats.DOMAIN/hookshot/metrics`.
  92. We now recommend exposing Hookshot metrics in another way, from another URL.
  93. Refer to the changelog for more details: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/CHANGELOG.md#2022-06-22
  94. with_items:
  95. - matrix_hookshot_proxy_metrics
  96. - matrix_hookshot_metrics_endpoint
  97. when: "item in vars"