From 2135f93c20eadd915f68a3900797f55195c845b1 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sun, 2 Apr 2023 09:22:21 +0300 Subject: [PATCH] Remove jitsi-generate-passwords.sh script The playbook auto-generates these passwords, so there's no need to ask people to do it manually. --- docs/configuring-playbook-jitsi.md | 7 ------ inventory/scripts/jitsi-generate-passwords.sh | 24 ------------------- 2 files changed, 31 deletions(-) delete mode 100755 inventory/scripts/jitsi-generate-passwords.sh diff --git a/docs/configuring-playbook-jitsi.md b/docs/configuring-playbook-jitsi.md index 6c787bdb..c157e59c 100644 --- a/docs/configuring-playbook-jitsi.md +++ b/docs/configuring-playbook-jitsi.md @@ -23,13 +23,6 @@ Add this to your `inventory/host_vars/matrix.DOMAIN/vars.yml` configuration: ```yaml matrix_jitsi_enabled: true - -# Run `bash inventory/scripts/jitsi-generate-passwords.sh` to generate these passwords, -# or define your own strong passwords manually. -matrix_jitsi_jicofo_auth_password: "" -matrix_jitsi_jvb_auth_password: "" -matrix_jitsi_jibri_recorder_password: "" -matrix_jitsi_jibri_xmpp_password: "" ``` diff --git a/inventory/scripts/jitsi-generate-passwords.sh b/inventory/scripts/jitsi-generate-passwords.sh deleted file mode 100755 index f24a3fba..00000000 --- a/inventory/scripts/jitsi-generate-passwords.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash -# This is a bash script for generating strong passwords for the Jitsi role in this ansible project: -# https://github.com/spantaleev/matrix-docker-ansible-deploy - -function generatePassword() { - openssl rand -hex 16 -} - -echo "# If this script fails, it's likely because you don't have the openssl tool installed." -echo "# Install it before using this script, or simply create your own passwords manually." - -echo "" - -JICOFO_AUTH_PASSWORD=$(generatePassword) -JVB_AUTH_PASSWORD=$(generatePassword) -JIBRI_RECORDER_PASSWORD=$(generatePassword) -JIBRI_XMPP_PASSWORD=$(generatePassword) - -echo "# Paste these variables into your inventory/host_vars/matrix.DOMAIN/vars.yml file:" -echo "" -echo "matrix_jitsi_jicofo_auth_password: $JICOFO_AUTH_PASSWORD" -echo "matrix_jitsi_jvb_auth_password: $JVB_AUTH_PASSWORD" -echo "matrix_jitsi_jibri_recorder_password: $JIBRI_RECORDER_PASSWORD" -echo "matrix_jitsi_jibri_xmpp_password: $JIBRI_XMPP_PASSWORD"