aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/manifests/postgresql/master.pp
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-06-28 12:17:40 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-06-28 12:17:40 +0200
commit0a145a25c0a8cbcd50d515d2a828bd6665836ddb (patch)
treec6e3832098d19917b0ba0bcbe119103c632c7d29 /modules/profile/manifests/postgresql/master.pp
parentf1d583bfdaf881116e5f9ca9e050307e7acdc28e (diff)
parent3925777d9715d271c0643faef9f520e7816dba89 (diff)
downloadPuppet-0a145a25c0a8cbcd50d515d2a828bd6665836ddb.tar.gz
Puppet-0a145a25c0a8cbcd50d515d2a828bd6665836ddb.tar.zst
Puppet-0a145a25c0a8cbcd50d515d2a828bd6665836ddb.zip
Merge branch 'refactoring' into dev
Diffstat (limited to 'modules/profile/manifests/postgresql/master.pp')
-rw-r--r--modules/profile/manifests/postgresql/master.pp20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/profile/manifests/postgresql/master.pp b/modules/profile/manifests/postgresql/master.pp
new file mode 100644
index 0000000..969905f
--- /dev/null
+++ b/modules/profile/manifests/postgresql/master.pp
@@ -0,0 +1,20 @@
1define profile::postgresql::master (
2 $letsencrypt_host = undef,
3 $backup_hosts = [],
4) {
5 profile::postgresql::ssl { "/var/lib/postgres/data":
6 cert => "/etc/letsencrypt/live/$letsencrypt_host/cert.pem",
7 key => "/etc/letsencrypt/live/$letsencrypt_host/privkey.pem",
8 require => Letsencrypt::Certonly[$letsencrypt_host],
9 handle_config_entry => true,
10 }
11
12 $backup_hosts.each |$backup_host| {
13 profile::postgresql::replication { $backup_host:
14 handle_config => true,
15 handle_role => true,
16 handle_slot => true,
17 add_self_role => true,
18 }
19 }
20}