aboutsummaryrefslogtreecommitdiff
path: root/modules/role/manifests
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-06-23 14:02:48 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-06-26 00:50:56 +0200
commit580bd7fc5d4b078f8dec2fd440e5989b5f963f61 (patch)
tree74538bdb1512615ce5ddc2a51090af5e3b7e4456 /modules/role/manifests
parentf568173a3d8a43ac30fa9294a75c260042b9e415 (diff)
downloadPuppet-580bd7fc5d4b078f8dec2fd440e5989b5f963f61.tar.gz
Puppet-580bd7fc5d4b078f8dec2fd440e5989b5f963f61.tar.zst
Puppet-580bd7fc5d4b078f8dec2fd440e5989b5f963f61.zip
Add json file
Diffstat (limited to 'modules/role/manifests')
-rw-r--r--modules/role/manifests/etherpad.pp26
1 files changed, 21 insertions, 5 deletions
diff --git a/modules/role/manifests/etherpad.pp b/modules/role/manifests/etherpad.pp
index a43f146..109da96 100644
--- a/modules/role/manifests/etherpad.pp
+++ b/modules/role/manifests/etherpad.pp
@@ -1,6 +1,20 @@
1class role::etherpad ( 1class role::etherpad (
2) { 2) {
3 $password_seed = lookup("base_installation::puppet_pass_seed") 3 $password_seed = lookup("base_installation::puppet_pass_seed")
4 $web_host = lookup("base_installation::real_hostname")
5 $web_listen = "0.0.0.0"
6 $web_port = 18000
7 $pg_db = "etherpad-lite"
8 $pg_user = "etherpad-lite"
9 $pg_password = generate_password(24, $password_seed, "postgres_etherpad")
10
11 $ldap_server = lookup("base_installation::ldap_server")
12 $ldap_base = lookup("base_installation::ldap_base")
13 $ldap_dn = lookup("base_installation::ldap_dn")
14 $ldap_account_pattern = "(&(memberOf=cn=users,cn=etherpad,ou=services,dc=immae,dc=eu)(uid={{username}}))"
15 $ldap_group_pattern = "(memberOf=cn=groups,cn=etherpad,ou=services,dc=immae,dc=eu)"
16 $ldap_password = generate_password(24, $password_seed, "ldap")
17
4 18
5 include "base_installation" 19 include "base_installation"
6 20
@@ -16,6 +30,13 @@ class role::etherpad (
16 -> patch::file { "/usr/share/etherpad-lite/src/node/utils/LibreOffice.js": 30 -> patch::file { "/usr/share/etherpad-lite/src/node/utils/LibreOffice.js":
17 diff_source => "puppet:///modules/role/etherpad/libreoffice_patch.diff", 31 diff_source => "puppet:///modules/role/etherpad/libreoffice_patch.diff",
18 } 32 }
33 -> file { "/etc/etherpad-lite/settings.json":
34 ensure => present,
35 owner => "etherpad-lite",
36 group => "etherpad-lite",
37 notify => Service["etherpad-lite"],
38 content => template("role/etherpad/settings.json.erb"),
39 }
19 40
20 $modules = [ 41 $modules = [
21 "ep_aa_file_menu_toolbar", 42 "ep_aa_file_menu_toolbar",
@@ -66,11 +87,6 @@ class role::etherpad (
66 subscribe => Aur::Package["etherpad-lite"], 87 subscribe => Aur::Package["etherpad-lite"],
67 } 88 }
68 89
69 $web_host = "outils-1.v.immae.eu"
70 $pg_db = "etherpad-lite"
71 $pg_user = "etherpad-lite"
72 $pg_password = generate_password(24, $password_seed, "postgres_etherpad")
73
74 profile::postgresql_master { "postgresql master for etherpad": 90 profile::postgresql_master { "postgresql master for etherpad":
75 letsencrypt_host => $web_host, 91 letsencrypt_host => $web_host,
76 backup_hosts => ["backup-1"], 92 backup_hosts => ["backup-1"],