feat(sygnal): add version as container label

This commit is contained in:
Vincent Wilke 2020-06-24 23:50:53 +02:00 committed by Jan Christian Grünhage
parent c4f6759add
commit 11e53c8654
3 changed files with 11 additions and 2 deletions

View file

@ -7,6 +7,7 @@ Role Variables
--------------
specify Apps with:
```
sygnal_apps:
- id: com.example.myapp
type: apns
@ -15,6 +16,7 @@ sygnal_apps:
- id: com.example.myotherapp
type: gcm
gcm_api_key: your_api_key_for_gcm
```
it is possible to use systemd and pip instead of docker, specify as follows:
sygnal_supervision_method: systemd
@ -22,7 +24,9 @@ sygnal_deployment_method: pip
CAUTION: this role is not tested with this variables set, probably it needs maintenace to work properly
You have to overide the db password in order to run sygnal
```
sygnal_postgresql_password:
```
A complete list of all variables is in defaults/main.yml

View file

@ -26,9 +26,14 @@ sygnal_postgresql_database: "sygnal"
sygnal_postgresql_host: "172.17.0.1"
sygnal_postgresql_user: "sygnal"
sygnal_version: "0.5.0"
sygnal_docker_name: sygnal
sygnal_docker_image: "registry.gitlab.com/famedly/containers/sygnal"
sygnal_docker_image: "registry.gitlab.com/famedly/containers/sygnal:v{{ sygnal_version }}"
#sygnal_docker_image: "matrixdotorg/sygnal:v{{ sygnal_version }}" #with 0.7.0 not working (yet)
sygnal_docker_ports: []
sygnal_docker_labels_complete: "{{ sygnal_docker_labels_base | combine(sygnal_docker_labels) }}"
sygnal_docker_labels_base:
version: "{{ sygnal_version }}"
sygnal_docker_labels: {}
# Metrics

View file

@ -45,7 +45,7 @@
name: "{{ sygnal_docker_name }}"
image: "{{ sygnal_docker_image }}"
ports: "{{ sygnal_docker_ports }}"
labels: "{{ sygnal_docker_labels }}"
labels: "{{ sygnal_docker_labels_complete }}"
restart_policy: unless-stopped
recreate: true
pull: true