Merge pull request #16 from madonius/maint/v0.99.3

Maint/v0.99.3
This commit is contained in:
Emmanouil Kampitakis 2019-04-08 21:47:10 +02:00 committed by GitHub
commit 0f01382831
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 2 deletions

View file

@ -35,7 +35,7 @@ The following should be present on the target system
| matrix_synapse_dh_path | "{{ matrix_synapse_base_path }}/tls/{{ matrix_server_name }}.dh" |
| matrix_synapse_baseurl | "https://{{ matrix_server_name }}" |
| matrix_synapse_signing_key_path | "{{ matrix_synapse_base_path }}/ssl/{{ matrix_server_name }}.signing.key" |
| matrix_synapse_version | "v0.99.1.1" |
| matrix_synapse_version | "v0.99.3" |
| matrix_synapse_log_days_keep | 30 |
| matrix_synapse_deployment_method | pip | Either pip or docker [¹](#footnote_1) |
| matrix_synapse_supervision_method | systemd | Either systemd, runit or docker [¹](#footnote_1) |

View file

@ -7,7 +7,7 @@ matrix_synapse_secrets_path: "{{ matrix_synapse_base_path }}/secrets"
matrix_synapse_dh_path: "{{ matrix_synapse_base_path }}/tls/{{ matrix_server_name }}.dh"
matrix_synapse_baseurl: "https://{{ matrix_server_name }}"
matrix_synapse_signing_key_path: "{{ matrix_synapse_base_path }}/tls/{{ matrix_server_name }}.signing.key"
matrix_synapse_version: "v0.99.2"
matrix_synapse_version: "v0.99.3"
matrix_synapse_log_days_keep: 30
matrix_synapse_skip_tls: false
matrix_synapse_pid_file: "{{ matrix_synapse_base_path }}/synapse.pid"

View file

@ -1,6 +1,17 @@
---
- hosts: all
become: true
tasks:
- name: Check if the api returns the correct version
uri:
url: "http://localhost:8008/_matrix/federation/v1/version"
return_content: true
register: api_version
- name: Check returned api version
fail: >
Return value is not as expected {{ api_version }}
when: matrix_synapse_version != "v"~(api_version.content | from_json).server.version
vars:
dbname: synapse
dbuser: synapse_user

View file

@ -5,6 +5,17 @@
dbname: synapse
dbuser: synapse_user
dbpw: synapse_password
tasks:
- name: Check if the api returns the correct version
uri:
url: "http://localhost:8008/_matrix/federation/v1/version"
return_content: true
register: api_version
- name: Check returned api version
fail: >
Return value is not as expected {{ api_version }}
when: matrix_synapse_version != "v"~(api_version.content | from_json).server.version
roles:
- role: geerlingguy.pip
- role: geerlingguy.postgresql