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.
 
 

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