From 06473bcb331e48d1660cfe6f8cc5119481904c55 Mon Sep 17 00:00:00 2001
From: Thomas Schneider <thomas@fsmpi.rwth-aachen.de>
Date: Tue, 18 May 2021 14:35:24 +0200
Subject: [PATCH] etherpad: Allow configuring users

---
 etherpad/defaults/main.yml          | 4 ++++
 etherpad/templates/settings.json.j2 | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/etherpad/defaults/main.yml b/etherpad/defaults/main.yml
index 010877c..cccee2b 100644
--- a/etherpad/defaults/main.yml
+++ b/etherpad/defaults/main.yml
@@ -14,4 +14,8 @@ etherpads: []
 #     apikey: {{…}}
 #     edit_only: false
 #     require_auth: false
+#     users:
+#       admin:
+#         password: hunter2
+#         is_admin: true
 #
diff --git a/etherpad/templates/settings.json.j2 b/etherpad/templates/settings.json.j2
index 7df9038..1f16796 100644
--- a/etherpad/templates/settings.json.j2
+++ b/etherpad/templates/settings.json.j2
@@ -107,6 +107,8 @@
     "percentageToScrollWhenUserPressesArrowUp": 0
   },
 
+  "users": {{item.users|default({})|to_json}},
+
   "loadTest": false,
 
   "importExportRateLimiting": {
-- 
GitLab