add extras role
This commit is contained in:
11
roles/extras/vars/defaults.yml
Normal file
11
roles/extras/vars/defaults.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
|
||||
matrix_extra_wait_before_start: false
|
||||
matrix_extra_workdir: /opt/{{ matrix_extra }}
|
||||
|
||||
mautrix_permissions:
|
||||
relay: relay
|
||||
user: user
|
||||
admin: admin
|
||||
mautrix_blocks: []
|
||||
mautrix_default_encrypt: false
|
||||
15
roles/extras/vars/maubot.yml
Normal file
15
roles/extras/vars/maubot.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
|
||||
depends: "{{ python_depends }}"
|
||||
|
||||
matrix_extra_tasks:
|
||||
- pip
|
||||
- maubot
|
||||
|
||||
pip_packages:
|
||||
- maubot
|
||||
- psycopg2
|
||||
|
||||
exec: '{{ matrix_extra_workdir }}/bin/python3 -m maubot -c {{ matrix_extra_workdir }}/config.yaml'
|
||||
|
||||
matrix_extra_wait_before_start: true
|
||||
30
roles/extras/vars/mautrix-facebook.yml
Normal file
30
roles/extras/vars/mautrix-facebook.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
|
||||
depends: "{{ python_depends }}"
|
||||
|
||||
matrix_extra_tasks:
|
||||
- pip
|
||||
- appservice
|
||||
|
||||
pip_packages:
|
||||
- 'mautrix-facebook[all]'
|
||||
|
||||
registrationgen_exec: >
|
||||
{{ matrix_extra_workdir }}/bin/python -m mautrix_facebook
|
||||
-g
|
||||
-r '{{ matrix_extra_workdir }}/appservice-registration.yaml'
|
||||
-c '{{ matrix_extra_workdir }}/config.yaml'
|
||||
exec: >
|
||||
{{ matrix_extra_workdir }}/bin/python -m mautrix_facebook
|
||||
-c {{ matrix_extra_workdir }}/config.yaml
|
||||
|
||||
|
||||
mautrix_port: 29319
|
||||
mautrix_loggers:
|
||||
- mau
|
||||
- paho
|
||||
- aiohttp
|
||||
mautrix_blocks:
|
||||
- public
|
||||
- backfill
|
||||
- displayname_template
|
||||
29
roles/extras/vars/mautrix-googlechat.yml
Normal file
29
roles/extras/vars/mautrix-googlechat.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
|
||||
depends: "{{ python_depends }}"
|
||||
|
||||
matrix_extra_tasks:
|
||||
- pip
|
||||
- appservice
|
||||
|
||||
pip_packages:
|
||||
- 'mautrix-googlechat[all]'
|
||||
|
||||
registrationgen_exec: >
|
||||
{{ matrix_extra_workdir }}/bin/python -m mautrix_googlechat
|
||||
-g
|
||||
-r '{{ matrix_extra_workdir }}/appservice-registration.yaml'
|
||||
-c '{{ matrix_extra_workdir }}/config.yaml'
|
||||
exec: >
|
||||
{{ matrix_extra_workdir }}/bin/python -m mautrix_googlechat
|
||||
-c {{ matrix_extra_workdir }}/config.yaml
|
||||
|
||||
mautrix_port: 29320
|
||||
mautrix_loggers:
|
||||
- mau
|
||||
- maugclib
|
||||
- aiohttp
|
||||
- backfill
|
||||
|
||||
mautrix_block:
|
||||
- provisioning
|
||||
30
roles/extras/vars/mautrix-instagram.yml
Normal file
30
roles/extras/vars/mautrix-instagram.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
|
||||
depends: "{{ python_depends }}"
|
||||
|
||||
matrix_extra_tasks:
|
||||
- pip
|
||||
- appservice
|
||||
|
||||
pip_packages:
|
||||
- 'git+https://github.com/mautrix/instagram.git#egg=mautrix-instagram[all]'
|
||||
|
||||
registrationgen_exec: >
|
||||
{{ matrix_extra_workdir }}/bin/python -m mautrix_instagram
|
||||
-g
|
||||
-r '{{ matrix_extra_workdir }}/appservice-registration.yaml'
|
||||
-c '{{ matrix_extra_workdir }}/config.yaml'
|
||||
exec: >
|
||||
{{ matrix_extra_workdir }}/bin/python -m mautrix_instagram
|
||||
-c {{ matrix_extra_workdir }}/config.yaml
|
||||
|
||||
mautrix_port: 29330
|
||||
mautrix_loggers:
|
||||
- mau
|
||||
- mauigpapi
|
||||
- aiohttp
|
||||
- paho.mqtt
|
||||
mautrix_blocks:
|
||||
- relay
|
||||
- delivery_error_reports
|
||||
- backfill
|
||||
34
roles/extras/vars/mautrix-signal.yml
Normal file
34
roles/extras/vars/mautrix-signal.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
|
||||
depends: "{{ python_depends }}"
|
||||
repo_depends:
|
||||
- repo: signald
|
||||
packages:
|
||||
- signald
|
||||
|
||||
matrix_extra_tasks:
|
||||
- signald
|
||||
- pip
|
||||
- appservice
|
||||
|
||||
pip_packages:
|
||||
- 'mautrix-signal[all]'
|
||||
|
||||
registrationgen_exec: >
|
||||
{{ matrix_extra_workdir }}/bin/python -m mautrix_signal
|
||||
-g
|
||||
-r '{{ matrix_extra_workdir }}/appservice-registration.yaml'
|
||||
-c '{{ matrix_extra_workdir }}/config.yaml'
|
||||
exec: >
|
||||
{{ matrix_extra_workdir }}/bin/python -m mautrix_signal
|
||||
-c {{ matrix_extra_workdir }}/config.yaml
|
||||
|
||||
mautrix_port: 29328
|
||||
mautrix_loggers:
|
||||
- mau
|
||||
- aiohttp
|
||||
mautrix_blocks:
|
||||
- relay
|
||||
- delivery_error_reports
|
||||
- displayname_template
|
||||
mautrix_default_encrypt: true
|
||||
35
roles/extras/vars/mautrix-telegram.yml
Normal file
35
roles/extras/vars/mautrix-telegram.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
|
||||
depends: "{{ python_depends }}"
|
||||
|
||||
matrix_extra_tasks:
|
||||
- pip
|
||||
- appservice
|
||||
|
||||
pip_packages:
|
||||
- 'mautrix-telegram[all]'
|
||||
|
||||
registrationgen_exec: >
|
||||
{{ matrix_extra_workdir }}/bin/python -m mautrix_telegram
|
||||
-g
|
||||
-r '{{ matrix_extra_workdir }}/appservice-registration.yaml'
|
||||
-c '{{ matrix_extra_workdir }}/config.yaml'
|
||||
exec: >
|
||||
{{ matrix_extra_workdir }}/bin/python -m mautrix_telegram
|
||||
-c {{ matrix_extra_workdir }}/config.yaml
|
||||
|
||||
mautrix_port: 29317
|
||||
mautrix_loggers:
|
||||
- mau
|
||||
- telethon
|
||||
- aiohttp
|
||||
mautrix_blocks:
|
||||
- public
|
||||
- provisioning
|
||||
- delivery_error_reports
|
||||
- displayname_template
|
||||
- backfill
|
||||
mautrix_permissions:
|
||||
relay: relaybot
|
||||
user: full
|
||||
admin: admin
|
||||
16
roles/extras/vars/mautrix-whatsapp.yml
Normal file
16
roles/extras/vars/mautrix-whatsapp.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
|
||||
depends:
|
||||
- ffmpeg
|
||||
|
||||
matrix_extra_tasks:
|
||||
- mautrix-whatsapp
|
||||
|
||||
registrationgen_exec: >
|
||||
{{ matrix_extra_workdir }}/mautrix-whatsapp
|
||||
-g
|
||||
-r '{{ matrix_extra_workdir }}/appservice-registration.yaml'
|
||||
-c '{{ matrix_extra_workdir }}/config.yaml'
|
||||
exec: >
|
||||
{{ matrix_extra_workdir }}/mautrix-whatsapp
|
||||
-c {{ matrix_extra_workdir }}/config.yaml
|
||||
17
roles/extras/vars/mx-puppet-discord.yml
Normal file
17
roles/extras/vars/mx-puppet-discord.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
|
||||
depends:
|
||||
- git
|
||||
- nodejs
|
||||
- npm
|
||||
- yarnpkg
|
||||
|
||||
matrix_extra_tasks:
|
||||
- npm
|
||||
- appservice
|
||||
|
||||
matrix_extra_git_repo: 'https://gitlab.com/mx-puppet/discord/mx-puppet-discord.git'
|
||||
matrix_extra_workdir: /opt/{{ matrix_extra }}/src
|
||||
|
||||
registrationgen_exec: "npm run start -- -r -f '/opt/{{ matrix_extra }}/appservice-registration.yaml' -c '/opt/{{ matrix_extra }}/config.yaml'"
|
||||
exec: "npm run start -- -f '/opt/{{ matrix_extra }}/appservice-registration.yaml' -c '/opt/{{ matrix_extra }}/config.yaml'"
|
||||
17
roles/extras/vars/mx-puppet-slack.yml
Normal file
17
roles/extras/vars/mx-puppet-slack.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
|
||||
depends:
|
||||
- git
|
||||
- nodejs
|
||||
- npm
|
||||
- yarnpkg
|
||||
|
||||
matrix_extra_tasks:
|
||||
- npm
|
||||
- appservice
|
||||
|
||||
matrix_extra_git_repo: 'https://github.com/Sorunome/mx-puppet-slack.git'
|
||||
matrix_extra_workdir: /opt/{{ matrix_extra }}/src
|
||||
|
||||
registrationgen_exec: "npm run start -- -r -f '/opt/{{ matrix_extra }}/appservice-registration.yaml' -c '/opt/{{ matrix_extra }}/config.yaml'"
|
||||
exec: "npm run start -- -f '/opt/{{ matrix_extra }}/appservice-registration.yaml' -c '/opt/{{ matrix_extra }}/config.yaml'"
|
||||
Reference in New Issue
Block a user