Compare commits
1
Commits
1c80554eef
...
56e92b98b7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
56e92b98b7
|
@@ -164,3 +164,29 @@
|
|||||||
- mastodon.eom.dev
|
- mastodon.eom.dev
|
||||||
secretName: mastodon-tls
|
secretName: mastodon-tls
|
||||||
|
|
||||||
|
|
||||||
|
# With registrations "open", the web UI's Create account button links to
|
||||||
|
# SSO_ACCOUNT_SIGN_UP (www.eom.dev/members) instead of a "closed" dialog.
|
||||||
|
# OMNIAUTH_ONLY still disables local sign-up; accounts come only via Dex.
|
||||||
|
- name: Find the Mastodon web pod
|
||||||
|
kubernetes.core.k8s_info:
|
||||||
|
kind: Pod
|
||||||
|
namespace: mastodon
|
||||||
|
label_selectors:
|
||||||
|
- app.kubernetes.io/component=web
|
||||||
|
- app.kubernetes.io/instance=mastodon
|
||||||
|
field_selectors:
|
||||||
|
- status.phase=Running
|
||||||
|
register: mastodon_web_pods
|
||||||
|
|
||||||
|
- name: Open registrations so sign-up links to the membership site
|
||||||
|
kubernetes.core.k8s_exec:
|
||||||
|
namespace: mastodon
|
||||||
|
pod: "{{ mastodon_web_pods.resources[0].metadata.name }}"
|
||||||
|
container: mastodon
|
||||||
|
# kubectl exec skips the image entrypoint, so load the password files.
|
||||||
|
command: >-
|
||||||
|
sh -c 'export REDIS_PASSWORD="$(cat "$MASTODON_REDIS_PASSWORD_FILE")"
|
||||||
|
DB_PASS="$(cat "$MASTODON_DATABASE_PASSWORD_FILE")" HOME=/tmp;
|
||||||
|
tootctl settings registrations open'
|
||||||
|
changed_when: false
|
||||||
|
|||||||
Reference in New Issue
Block a user