Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

111 satır
5.8 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. - {'old': 'matrix_hookshot_ident', 'new': 'matrix_hookshot_identifier'}
  31. - name: Fail if required Hookshot settings not defined
  32. ansible.builtin.fail:
  33. msg: >-
  34. You need to define a required configuration setting (`{{ item }}`).
  35. when: "vars[item] == ''"
  36. with_items:
  37. - "matrix_hookshot_appservice_token"
  38. - "matrix_hookshot_homeserver_address"
  39. - "matrix_hookshot_homeserver_token"
  40. - "matrix_hookshot_container_network"
  41. - name: Fail if required GitHub settings not defined
  42. ansible.builtin.fail:
  43. msg: >-
  44. You need to define a required configuration setting (`{{ item }}`) to enable GitHub.
  45. when: "matrix_hookshot_github_enabled and vars[item] == ''"
  46. with_items:
  47. - "matrix_hookshot_github_auth_id"
  48. - "matrix_hookshot_github_webhook_secret"
  49. - name: Fail if required GitHub OAuth settings not defined
  50. ansible.builtin.fail:
  51. msg: >-
  52. You need to define a required configuration setting (`{{ item }}`) to enable GitHub OAuth.
  53. when: "matrix_hookshot_github_oauth_enabled and vars[item] == ''"
  54. with_items:
  55. - "matrix_hookshot_github_oauth_client_id"
  56. - "matrix_hookshot_github_oauth_client_secret"
  57. - name: Fail if required Jira settings not defined
  58. ansible.builtin.fail:
  59. msg: >-
  60. You need to define a required configuration setting (`{{ item }}`) to enable Jira.
  61. when: "matrix_hookshot_jira_enabled and vars[item] == ''"
  62. with_items:
  63. - "matrix_hookshot_jira_webhook_secret"
  64. - name: Fail if required Jira OAuth settings not defined
  65. ansible.builtin.fail:
  66. msg: >-
  67. You need to define a required configuration setting (`{{ item }}`) to enable Jira OAuth.
  68. when: "matrix_hookshot_jira_oauth_enabled and vars[item] == ''"
  69. with_items:
  70. - "matrix_hookshot_jira_oauth_client_id"
  71. - "matrix_hookshot_jira_oauth_client_secret"
  72. - name: Fail if required Figma settings not defined
  73. ansible.builtin.fail:
  74. msg: >-
  75. You need to define at least one Figma instance in `matrix_hookshot_figma_instances` to enable Figma.
  76. when: "matrix_hookshot_figma_enabled and matrix_hookshot_figma_instances | length == 0"
  77. - name: Fail if required provisioning settings not defined
  78. ansible.builtin.fail:
  79. msg: >-
  80. You need to define a required configuration setting (`{{ item }}`) to enable provisioning.
  81. when: "matrix_hookshot_provisioning_enabled and vars[item] == ''"
  82. with_items:
  83. - "matrix_hookshot_provisioning_secret"
  84. - name: Fail if no Redis queue enabled when Hookshot encryption is enabled
  85. ansible.builtin.fail:
  86. msg: >-
  87. You need to define a required configuration setting (`{{ item }}`) to enable Hookshot encryption.
  88. when: "matrix_hookshot_experimental_encryption_enabled and matrix_hookshot_queue_host == ''"
  89. - name: (Deprecation) Catch and report old metrics usage
  90. ansible.builtin.fail:
  91. msg: >-
  92. Your configuration contains a variable (`{{ item }}`), which refers to the old metrics collection system for Hookshot,
  93. which exposed metrics on `https://stats.DOMAIN/hookshot/metrics`.
  94. We now recommend exposing Hookshot metrics in another way, from another URL.
  95. Refer to the changelog for more details: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/CHANGELOG.md#2022-06-22
  96. with_items:
  97. - matrix_hookshot_proxy_metrics
  98. - matrix_hookshot_metrics_endpoint
  99. when: "item in vars"