mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2024-11-10 05:34:16 +00:00
chore(barad_dur): fix lints
This commit is contained in:
parent
d248f5947e
commit
da04b82985
8 changed files with 18 additions and 19 deletions
|
@ -49,7 +49,7 @@ deploying commonly used matrix services:
|
|||
able to run in the browser, maintained by element.
|
||||
- [`hedwig`](roles/hedwig/README.md): Hedwig, a push-gateway server alternative
|
||||
to `sygnal`, developed by Famedly.
|
||||
- [`barad-dur`](roles/barad-dur/README.md): Barad-dûr, a matrix phone-home stats collector alternative, developed by Famedly.
|
||||
- [`barad_dur`](roles/barad_dur/README.md): Barad-dûr, a matrix phone-home stats collector alternative, developed by Famedly.
|
||||
|
||||
### Unmaintained roles
|
||||
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
---
|
||||
|
||||
- name: restart-barad-dur
|
||||
docker_container:
|
||||
name: "{{ barad_dur_container_name }}"
|
||||
state: started
|
||||
restart: yes
|
|
@ -8,7 +8,7 @@ barad_dur_container_image_registry: "registry.gitlab.com"
|
|||
barad_dur_container_image_namespace: "famedly/company/backend/services/"
|
||||
barad_dur_container_image_name: "barad-dur"
|
||||
barad_dur_version: "0.1.2"
|
||||
#barad_dur_container_image_tag: ~
|
||||
# barad_dur_container_image_tag: ~
|
||||
barad_dur_container_force_pull: "{{ barad_dur_container_image_tag is defined }}"
|
||||
|
||||
barad_dur_container_image_reference: >-
|
8
roles/barad_dur/handlers/main.yml
Normal file
8
roles/barad_dur/handlers/main.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
|
||||
- name: Restart barad-dur container
|
||||
community.docker.docker_container:
|
||||
name: "{{ barad_dur_container_name }}"
|
||||
state: started
|
||||
restart: true
|
||||
listen: restart-barad-dur
|
|
@ -6,8 +6,7 @@
|
|||
state: present
|
||||
system: true
|
||||
register: barad_dur_user_res
|
||||
tags: [ 'prepare', 'prepare-barad_dur',
|
||||
'deploy', 'deploy-barad_dur' ]
|
||||
tags: ['prepare', 'prepare-barad_dur', 'deploy', 'deploy-barad_dur']
|
||||
|
||||
- name: Create base-directory for barad-dur [{{ barad_dur_base_path }}]
|
||||
file:
|
||||
|
@ -16,7 +15,7 @@
|
|||
owner: "{{ barad_dur_user_res.uid }}"
|
||||
group: "{{ barad_dur_user_res.group }}"
|
||||
mode: "0755"
|
||||
tags: [ 'prepare', 'prepare-barad_dur' ]
|
||||
tags: ['prepare', 'prepare-barad_dur']
|
||||
|
||||
- name: Template configuration file for barad-dur [{{ barad_dur_config_file }}]
|
||||
template:
|
||||
|
@ -26,10 +25,10 @@
|
|||
group: "{{ barad_dur_user_res.group }}"
|
||||
mode: "0640"
|
||||
notify: restart-barad-dur
|
||||
tags: [ 'deploy', 'deploy-barad_dur' ]
|
||||
tags: ['deploy', 'deploy-barad_dur']
|
||||
|
||||
- name: Pull barad-dur container
|
||||
docker_image:
|
||||
community.docker.docker_image:
|
||||
name: "{{ barad_dur_container_image_reference }}"
|
||||
source: pull
|
||||
state: present
|
||||
|
@ -38,10 +37,10 @@
|
|||
until: barad_dur_container_image_pulled is success
|
||||
retries: 10
|
||||
delay: 5
|
||||
tags: [ 'prepare', 'prepare-barad_dur' ]
|
||||
tags: ['prepare', 'prepare-barad_dur']
|
||||
|
||||
- name: Start barad-dur container
|
||||
docker_container:
|
||||
community.docker.docker_container:
|
||||
name: "{{ barad_dur_container_name }}"
|
||||
image: "{{ barad_dur_container_image_reference }}"
|
||||
env: "{{ barad_dur_container_env }}"
|
||||
|
@ -51,4 +50,4 @@
|
|||
volumes: "{{ barad_dur_container_volumes }}"
|
||||
restart_policy: "{{ barad_dur_container_restart_policy }}"
|
||||
state: "{{ barad_dur_container_state }}"
|
||||
tags: [ 'deploy', 'deploy-barad_dur' ]
|
||||
tags: ['deploy', 'deploy-barad_dur']
|
|
@ -1,10 +1,9 @@
|
|||
---
|
||||
|
||||
barad_dur_container_base_volumes:
|
||||
- "{{ barad_dur_config_file }}:{{ barad_dur_container_base_path }}/config.yaml:ro"
|
||||
|
||||
barad_dur_container_volumes: "{{ barad_dur_container_base_volumes + barad_dur_container_extra_volumes }}"
|
||||
|
||||
barad_dur_container_base_labels:
|
||||
version: "{{ barad_dur_container_image_tag|default(barad_dur_version) }}"
|
||||
version: "{{ barad_dur_container_image_tag | default(barad_dur_version) }}"
|
||||
barad_dur_container_labels_complete: "{{ barad_dur_container_base_labels | combine(barad_dur_container_labels) }}"
|
Loading…
Reference in a new issue