mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2024-11-10 13:44:16 +00:00
feat(sygnal): add version as container label
This commit is contained in:
parent
c4f6759add
commit
11e53c8654
3 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue