-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make sure Synapse deployment doesn't fail
- Loading branch information
Showing
9 changed files
with
147 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
--- | ||
- name: Log in as dummy user to get a token | ||
ansible.builtin.import_tasks: | ||
file: dummy-user.yml | ||
- block: | ||
- name: Log in as dummy user to get a token | ||
ansible.builtin.import_tasks: | ||
file: dummy-user.yml | ||
|
||
- name: (re)create the discovery room | ||
ansible.builtin.import_tasks: | ||
file: discovery-room.yml | ||
- name: (re)create the discovery room | ||
ansible.builtin.import_tasks: | ||
file: discovery-room.yml | ||
|
||
- name: add all users to discovery room | ||
ansible.builtin.import_tasks: | ||
file: join-discovery-room.yml | ||
- name: add all users to discovery room | ||
ansible.builtin.import_tasks: | ||
file: join-discovery-room.yml | ||
|
||
- name: Dummy user joins external discovery rooms listed in matrix.servers_list | ||
uri: | ||
url: "https://{{ matrix.server_name }}/_matrix/client/r0/join/%23discoveryroom:{{ item }}" | ||
method: POST | ||
body: "" | ||
status_code: 200, 201 | ||
body_format: json | ||
use_proxy: false | ||
return_content: no | ||
follow_redirects: all | ||
headers: | ||
Authorization: "Bearer {{ dummy_access_token }}" | ||
loop: "{{ matrix.servers_list }}" | ||
ignore_errors: true | ||
- name: Dummy user joins external discovery rooms listed in matrix.servers_list | ||
uri: | ||
url: "https://{{ matrix.server_name }}/_matrix/client/r0/join/%23discoveryroom:{{ item }}" | ||
method: POST | ||
body: "" | ||
status_code: 200, 201 | ||
body_format: json | ||
use_proxy: false | ||
return_content: no | ||
follow_redirects: all | ||
headers: | ||
Authorization: "Bearer {{ dummy_access_token }}" | ||
loop: "{{ matrix.servers_list }}" | ||
ignore_errors: true | ||
|
||
when: synapse_was_already_running == "0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
kubectl delete deployment matrix-synapse matrix-synapse-redis-master matrix-synapse-wellknown-lighttpd | ||
|
||
SECRETS=$(kubectl get secrets | grep matrix-synapse | awk '{print $1}') | ||
kubectl delete secret $SECRETS | ||
|
||
CONFIGMAPS=$(kubectl get cm | grep matrix-synapse | awk '{print $1}') | ||
kubectl delete cm $CONFIGMAPS |