commit
af5fcdcb13
@ -0,0 +1 @@
|
||||
Run a matrix-eavesdrop bot
|
@ -0,0 +1,17 @@
|
||||
# Version 2 is the latest that is supported by docker-compose in
|
||||
# Ubuntu Xenial.
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
eavesdrop:
|
||||
image: docker.io/opendevorg/matrix-eavesdrop:latest
|
||||
network_mode: host
|
||||
restart: always
|
||||
logging:
|
||||
driver: syslog
|
||||
options:
|
||||
tag: "docker-matrix-eavesdrop"
|
||||
volumes:
|
||||
- /var/lib/matrix-eavesdrop/data:/data
|
||||
- /var/lib/matrix-eavesdrop/config:/config
|
||||
- /var/lib/limnoria/opendev/logs/ChannelLogger/oftc:/logs
|
@ -0,0 +1,44 @@
|
||||
- name: Ensure bot directories
|
||||
file:
|
||||
state: directory
|
||||
path: '/var/lib/matrix-eavesdrop/{{ item }}'
|
||||
mode: 0755
|
||||
loop:
|
||||
- data
|
||||
- config
|
||||
|
||||
- name: Install eavesdrop config
|
||||
template:
|
||||
src: config.yaml
|
||||
dest: /var/lib/matrix-eavesdrop/config/config.yaml
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: Ensure /etc/matrix-eavesdrop-docker directory
|
||||
file:
|
||||
state: directory
|
||||
path: /etc/matrix-eavesdrop-docker
|
||||
mode: 0755
|
||||
|
||||
- name: Put docker-compose file in place
|
||||
copy:
|
||||
src: docker-compose.yaml
|
||||
dest: /etc/matrix-eavesdrop-docker/docker-compose.yaml
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: Run docker-compose pull
|
||||
shell:
|
||||
cmd: docker-compose pull
|
||||
chdir: /etc/matrix-eavesdrop-docker/
|
||||
|
||||
- name: Run docker-compose up
|
||||
shell:
|
||||
cmd: "docker-compose up -d"
|
||||
chdir: /etc/matrix-eavesdrop-docker/
|
||||
|
||||
- name: Run docker prune to cleanup unneeded images
|
||||
shell:
|
||||
cmd: docker image prune -f
|
@ -0,0 +1,13 @@
|
||||
config:
|
||||
data_dir: /data
|
||||
homeserver: https://opendev.ems.host
|
||||
user_id: "@logs:opendev.org"
|
||||
password: "{{ matrix_logs_password }}"
|
||||
log_dir: /logs
|
||||
|
||||
# For each room, add the following:
|
||||
# id: The full Matrix ID of the room
|
||||
# path: A relative path to log_dir, or begin with '/' for an absolute path.
|
||||
rooms:
|
||||
- id: "#test:opendev.org"
|
||||
path: "#test"
|
Loading…
Reference in new issue