From 80d2007ba93441d94d773031ee9b8c26ec48d6c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Wed, 26 Feb 2020 12:14:58 +0100 Subject: [PATCH] Import __matrix_synapse type --- .../__matrix_synapse/files/homeserver.yaml.sh | 1651 +++++++++++++++++ .../type/__matrix_synapse/files/log.config.sh | 38 + cdist/conf/type/__matrix_synapse/man.rst | 122 ++ cdist/conf/type/__matrix_synapse/manifest | 234 +++ .../type/__matrix_synapse/parameter/boolean | 5 + .../parameter/default/database_host | 0 .../parameter/default/database_password | 0 .../parameter/default/database_user | 0 .../parameter/default/ldap_base_dn | 0 .../parameter/default/ldap_bind_dn | 0 .../parameter/default/ldap_bind_password | 0 .../parameter/default/ldap_filter | 1 + .../parameter/default/ldap_mail_attribute | 1 + .../parameter/default/ldap_name_attribute | 1 + .../parameter/default/ldap_uid_attribute | 1 + .../parameter/default/ldap_uri | 0 .../parameter/default/max_upload_size | 1 + .../parameter/default/turn_user_lifetime | 1 + .../type/__matrix_synapse/parameter/optional | 14 + .../parameter/optional_multiple | 1 + .../type/__matrix_synapse/parameter/required | 4 + cdist/conf/type/__matrix_synapse/singleton | 0 22 files changed, 2075 insertions(+) create mode 100755 cdist/conf/type/__matrix_synapse/files/homeserver.yaml.sh create mode 100755 cdist/conf/type/__matrix_synapse/files/log.config.sh create mode 100644 cdist/conf/type/__matrix_synapse/man.rst create mode 100755 cdist/conf/type/__matrix_synapse/manifest create mode 100644 cdist/conf/type/__matrix_synapse/parameter/boolean create mode 100644 cdist/conf/type/__matrix_synapse/parameter/default/database_host create mode 100644 cdist/conf/type/__matrix_synapse/parameter/default/database_password create mode 100644 cdist/conf/type/__matrix_synapse/parameter/default/database_user create mode 100644 cdist/conf/type/__matrix_synapse/parameter/default/ldap_base_dn create mode 100644 cdist/conf/type/__matrix_synapse/parameter/default/ldap_bind_dn create mode 100644 cdist/conf/type/__matrix_synapse/parameter/default/ldap_bind_password create mode 100644 cdist/conf/type/__matrix_synapse/parameter/default/ldap_filter create mode 100644 cdist/conf/type/__matrix_synapse/parameter/default/ldap_mail_attribute create mode 100644 cdist/conf/type/__matrix_synapse/parameter/default/ldap_name_attribute create mode 100644 cdist/conf/type/__matrix_synapse/parameter/default/ldap_uid_attribute create mode 100644 cdist/conf/type/__matrix_synapse/parameter/default/ldap_uri create mode 100644 cdist/conf/type/__matrix_synapse/parameter/default/max_upload_size create mode 100644 cdist/conf/type/__matrix_synapse/parameter/default/turn_user_lifetime create mode 100644 cdist/conf/type/__matrix_synapse/parameter/optional create mode 100644 cdist/conf/type/__matrix_synapse/parameter/optional_multiple create mode 100644 cdist/conf/type/__matrix_synapse/parameter/required create mode 100644 cdist/conf/type/__matrix_synapse/singleton diff --git a/cdist/conf/type/__matrix_synapse/files/homeserver.yaml.sh b/cdist/conf/type/__matrix_synapse/files/homeserver.yaml.sh new file mode 100755 index 00000000..01f328d9 --- /dev/null +++ b/cdist/conf/type/__matrix_synapse/files/homeserver.yaml.sh @@ -0,0 +1,1651 @@ +#!/bin/sh + +# NOTE: this template has been generated using the +# matrix-synapse-1.5.1-1.fc31.noarch Fedora package for use with CDIST. + +generate_database () { + if [ "$DATABASE_ENGINE" = "sqlite3" ]; then + cat << EOF +database: + # The database engine name + name: "$DATABASE_ENGINE" + # Arguments to pass to the engine + args: + # Path to the database + database: "$DATABASE_NAME" +EOF + else +cat << EOF +database: + # The database engine name + name: "$DATABASE_ENGINE" + # Arguments to pass to the engine + args: + database: "$DATABASE_NAME" + host: "$DATABASE_HOST" + user: "$DATABASE_USER" + password: "$DATABASE_PASSWORD" +EOF + fi +} + +generate_password_providers () { + if [ "$ENABLE_LDAP_AUTH" = "true" ]; then + cat <