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

232 行
10 KiB

  1. ---
  2. # Go-NEB is a Matrix bot written in Go. It is the successor to Matrix-NEB, the original Matrix bot written in Python.
  3. # See: https://github.com/matrix-org/go-neb
  4. matrix_bot_go_neb_enabled: true
  5. matrix_bot_go_neb_version: latest
  6. matrix_bot_go_neb_docker_image: "matrixdotorg/go-neb:{{ matrix_bot_go_neb_version }}"
  7. matrix_bot_go_neb_docker_image_force_pull: "{{ matrix_bot_go_neb_docker_image.endswith(':latest') }}"
  8. matrix_bot_go_neb_base_path: "{{ matrix_base_data_path }}/go-neb"
  9. matrix_bot_go_neb_config_path: "{{ matrix_bot_go_neb_base_path }}/config"
  10. matrix_bot_go_neb_config_path_in_container: "/config/config.yaml"
  11. matrix_bot_go_neb_data_path: "{{ matrix_bot_go_neb_base_path }}/data"
  12. matrix_bot_go_neb_data_store_path: "{{ matrix_bot_go_neb_data_path }}/store"
  13. # Controls whether the matrix-bot-go-neb container exposes its HTTP port (tcp/4050 in the container).
  14. #
  15. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:4050"), or empty string to not expose.
  16. matrix_bot_go_neb_container_http_host_bind_port: ''
  17. # A list of extra arguments to pass to the container
  18. matrix_bot_go_neb_container_extra_arguments: []
  19. # List of systemd services that matrix-bot-go-neb.service depends on
  20. matrix_bot_go_neb_systemd_required_services_list: ['docker.service']
  21. # List of systemd services that matrix-bot-go-neb.service wants
  22. matrix_bot_go_neb_systemd_wanted_services_list: []
  23. # Database-related configuration fields.
  24. #
  25. # MUST be "sqlite3". No other type is supported.
  26. matrix_bot_go_neb_database_engine: 'sqlite3'
  27. matrix_bot_go_neb_sqlite_database_path_local: "{{ matrix_bot_go_neb_data_path }}/bot.db"
  28. matrix_bot_go_neb_sqlite_database_path_in_container: "/data/bot.db"
  29. matrix_bot_go_neb_storage_database: "{{
  30. {
  31. 'sqlite3': (matrix_bot_go_neb_sqlite_database_path_in_container + '?_busy_timeout=5000'),
  32. }[matrix_bot_go_neb_database_engine]
  33. }}"
  34. # The bot's username(s). These users need to be created manually beforehand.
  35. # The access tokens that the bot uses to authenticate.
  36. # Generate one as described in
  37. # https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/configuring-playbook-dimension.md#access-token
  38. # via curl. With the element method, you might run into decryption problems (see https://github.com/matrix-org/go-neb#quick-start)
  39. matrix_bot_go_neb_clients: []
  40. # - UserID: "@goneb:{{ matrix_domain }}"
  41. # AccessToken: "MDASDASJDIASDJASDAFGFRGER"
  42. # DeviceID: "DEVICE1"
  43. # HomeserverURL: "{{ matrix_homeserver_container_url }}"
  44. # Sync: true
  45. # AutoJoinRooms: true
  46. # DisplayName: "Go-NEB!"
  47. # AcceptVerificationFromUsers: [":{{ matrix_domain }}"]
  48. #
  49. # - UserID: "@another_goneb:{{ matrix_domain }}"
  50. # AccessToken: "MDASDASJDIASDJASDAFGFRGER"
  51. # DeviceID: "DEVICE2"
  52. # HomeserverURL: "{{ matrix_homeserver_container_url }}"
  53. # Sync: false
  54. # AutoJoinRooms: false
  55. # DisplayName: "Go-NEB!"
  56. # AcceptVerificationFromUsers: ["^@admin:{{ matrix_domain }}"]
  57. # The list of realms which Go-NEB is aware of.
  58. # Delete or modify this list as appropriate.
  59. # See the docs for /configureAuthRealm for the full list of options:
  60. # https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#ConfigureAuthRealmRequest
  61. matrix_bot_go_neb_realms: []
  62. # - ID: "github_realm"
  63. # Type: "github"
  64. # Config: {} # No need for client ID or Secret as Go-NEB isn't generating OAuth URLs
  65. # The list of *authenticated* sessions which Go-NEB is aware of.
  66. # Delete or modify this list as appropriate.
  67. # The full list of options are shown below: there is no single HTTP endpoint
  68. # which maps to this section.
  69. # https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#Session
  70. matrix_bot_go_neb_sessions: []
  71. # - SessionID: "your_github_session"
  72. # RealmID: "github_realm"
  73. # UserID: "@YOUR_USER_ID:{{ matrix_domain }}" # This needs to be the username of the person that's allowed to use the !github commands
  74. # Config:
  75. # # Populate these fields by generating a "Personal Access Token" on github.com
  76. # AccessToken: "YOUR_GITHUB_ACCESS_TOKEN"
  77. # Scopes: "admin:org_hook,admin:repo_hook,repo,user"
  78. # The list of services which Go-NEB is aware of.
  79. # Delete or modify this list as appropriate.
  80. # See the docs for /configureService for the full list of options:
  81. # https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#ConfigureServiceRequest
  82. matrix_bot_go_neb_services: []
  83. # - ID: "echo_service"
  84. # Type: "echo"
  85. # UserID: "@goneb:{{ matrix_domain }}"
  86. # Config: {}
  87. ## Can be obtained from https://developers.giphy.com/dashboard/
  88. # - ID: "giphy_service"
  89. # Type: "giphy"
  90. # UserID: "@goneb:{{ matrix_domain }}" # requires a Syncing client
  91. # Config:
  92. # api_key: "qwg4672vsuyfsfe"
  93. # use_downsized: false
  94. #
  95. ## This service has been dead for over a year :/
  96. # - ID: "guggy_service"
  97. # Type: "guggy"
  98. # UserID: "@goneb:{{ matrix_domain }}" # requires a Syncing client
  99. # Config:
  100. # api_key: "2356saaqfhgfe"
  101. #
  102. ## API Key via https://developers.google.com/custom-search/v1/introduction
  103. ## CX via http://www.google.com/cse/manage/all
  104. ## https://stackoverflow.com/questions/6562125/getting-a-cx-id-for-custom-search-google-api-python
  105. ## 'Search the entire web' and 'Image search' enabled for best results
  106. # - ID: "google_service"
  107. # Type: "google"
  108. # UserID: "@goneb:{{ matrix_domain }}" # requires a Syncing client
  109. # Config:
  110. # api_key: "AIzaSyA4FD39m9"
  111. # cx: "AIASDFWSRRtrtr"
  112. #
  113. ## Get a key via https://api.imgur.com/oauth2/addclient
  114. ## Select "oauth2 without callback url"
  115. # - ID: "imgur_service"
  116. # Type: "imgur"
  117. # UserID: "@imgur:{{ matrix_domain }}" # requires a Syncing client
  118. # Config:
  119. # client_id: "AIzaSyA4FD39m9"
  120. # client_secret: "somesecret"
  121. #
  122. # - ID: "wikipedia_service"
  123. # Type: "wikipedia"
  124. # UserID: "@goneb:{{ matrix_domain }}" # requires a Syncing client
  125. # Config:
  126. #
  127. # - ID: "rss_service"
  128. # Type: "rssbot"
  129. # UserID: "@another_goneb:{{ matrix_domain }}"
  130. # Config:
  131. # feeds:
  132. # "http://lorem-rss.herokuapp.com/feed?unit=second&interval=60":
  133. # rooms: ["!qmElAGdFYCHoCJuaNt:localhost"]
  134. # must_include:
  135. # author:
  136. # - author1
  137. # description:
  138. # - lorem
  139. # - ipsum
  140. # must_not_include:
  141. # title:
  142. # - Lorem
  143. # - Ipsum
  144. #
  145. # - ID: "github_cmd_service"
  146. # Type: "github"
  147. # UserID: "@goneb:{{ matrix_domain }}" # requires a Syncing client
  148. # Config:
  149. # RealmID: "github_realm"
  150. #
  151. # # Make sure your BASE_URL can be accessed by Github!
  152. # - ID: "github_webhook_service"
  153. # Type: "github-webhook"
  154. # UserID: "@another_goneb:{{ matrix_domain }}"
  155. # Config:
  156. # RealmID: "github_realm"
  157. # ClientUserID: "@YOUR_USER_ID:{{ matrix_domain }}" # needs to be an authenticated user so Go-NEB can create webhooks. Check the UserID field in the github_realm in matrix_bot_go_neb_sessions.
  158. # Rooms:
  159. # "!someroom:id":
  160. # Repos:
  161. # "matrix-org/synapse":
  162. # Events: ["push", "issues"]
  163. # "matrix-org/dendron":
  164. # Events: ["pull_request"]
  165. # "!anotherroom:id":
  166. # Repos:
  167. # "matrix-org/synapse":
  168. # Events: ["push", "issues"]
  169. # "matrix-org/dendron":
  170. # Events: ["pull_request"]
  171. #
  172. # - ID: "slackapi_service"
  173. # Type: "slackapi"
  174. # UserID: "@slackapi:{{ matrix_domain }}"
  175. # Config:
  176. # Hooks:
  177. # "hook1":
  178. # RoomID: "!someroom:id"
  179. # MessageType: "m.text" # default is m.text
  180. #
  181. # - ID: "alertmanager_service"
  182. # Type: "alertmanager"
  183. # UserID: "@alertmanager:{{ matrix_domain }}"
  184. # Config:
  185. # # This is for information purposes only. It should point to Go-NEB path as follows:
  186. # # `/services/hooks/<base64 encoded service ID>`
  187. # # Where in this case "service ID" is "alertmanager_service"
  188. # # Make sure your BASE_URL can be accessed by the Alertmanager instance!
  189. # webhook_url: "http://localhost/services/hooks/YWxlcnRtYW5hZ2VyX3NlcnZpY2U"
  190. # # Each room will get the notification with the alert rendered with the given template
  191. # rooms:
  192. # "!someroomid:domain.tld":
  193. # text_template: "{% raw %}{{range .Alerts -}} [{{ .Status }}] {{index .Labels \"alertname\"}}: {{index .Annotations \"description\"}} {{ end -}}{% endraw %}"
  194. # html_template: "{% raw %}{{range .Alerts -}} {{ $severity := index .Labels \"severity\"}} {{ if eq .Status \"firing\"}} {{ if eq $severity \"critical\"}} <font color='red'><b>[FIRING - CRITICAL]</b></font> {{ else if eq $severity \"warning\"}} <font color='orange'><b>[FIRING - WARNING]</b></font> {{ else }} <b>[FIRING - {{ $severity }}]</b> {{ end }} {{ else }} <font color='green'><b>[RESOLVED]</b></font> {{ end }} {{ index .Labels \"alertname\"}} : {{ index .Annotations \"description\"}} <a href=\"{{ .GeneratorURL }}\">source</a><br/>{{end -}}{% endraw %}"
  195. # msg_type: "m.text" # Must be either `m.text` or `m.notice`
  196. # Default configuration template which covers the generic use case.
  197. # You can customize it by controlling the various variables inside it.
  198. #
  199. # For a more advanced customization, you can extend the default (see `matrix_bot_go_neb_configuration_extension_yaml`)
  200. # or completely replace this variable with your own template.
  201. matrix_bot_go_neb_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  202. matrix_bot_go_neb_configuration_extension_yaml: |
  203. # Your custom YAML configuration goes here.
  204. # This configuration extends the default starting configuration (`matrix_bot_go_neb_configuration_yaml`).
  205. #
  206. # You can override individual variables from the default configuration, or introduce new ones.
  207. #
  208. # If you need something more special, you can take full control by
  209. # completely redefining `matrix_bot_go_neb_configuration_yaml`.
  210. matrix_bot_go_neb_configuration_extension: "{{ matrix_bot_go_neb_configuration_extension_yaml|from_yaml if matrix_bot_go_neb_configuration_extension_yaml|from_yaml is mapping else {} }}"
  211. # Holds the final configuration (a combination of the default and its extension).
  212. # You most likely don't need to touch this variable. Instead, see `matrix_bot_go_neb_configuration_yaml`.
  213. matrix_bot_go_neb_configuration: "{{ matrix_bot_go_neb_configuration_yaml|from_yaml|combine(matrix_bot_go_neb_configuration_extension, recursive=True) }}"