diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-06-26 01:04:09 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-06-27 09:07:50 +0200 |
commit | 5feedbb4f3e35cfb63201a360a685127b2608345 (patch) | |
tree | f268f78f54cc8039c962ca1c926971f6242d2319 /modules/profile | |
parent | bcc5318b2e938234fcc93f70d6af21367290c1ce (diff) | |
download | Puppet-5feedbb4f3e35cfb63201a360a685127b2608345.tar.gz Puppet-5feedbb4f3e35cfb63201a360a685127b2608345.tar.zst Puppet-5feedbb4f3e35cfb63201a360a685127b2608345.zip |
Allow host to replicate the cluster from backup
Diffstat (limited to 'modules/profile')
-rw-r--r-- | modules/profile/manifests/postgresql_master.pp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/modules/profile/manifests/postgresql_master.pp b/modules/profile/manifests/postgresql_master.pp index 9966f0d..6f8854d 100644 --- a/modules/profile/manifests/postgresql_master.pp +++ b/modules/profile/manifests/postgresql_master.pp | |||
@@ -83,33 +83,33 @@ define profile::postgresql_master ( | |||
83 | ensure => present | 83 | ensure => present |
84 | } | 84 | } |
85 | } | 85 | } |
86 | } | ||
86 | 87 | ||
87 | $ldap_server = lookup("base_installation::ldap_server") | 88 | $ldap_server = lookup("base_installation::ldap_server") |
88 | $ldap_base = lookup("base_installation::ldap_base") | 89 | $ldap_base = lookup("base_installation::ldap_base") |
89 | $ldap_dn = lookup("base_installation::ldap_dn") | 90 | $ldap_dn = lookup("base_installation::ldap_dn") |
90 | $ldap_password = generate_password(24, $password_seed, "ldap") | 91 | $ldap_password = generate_password(24, $password_seed, "ldap") |
91 | $ldap_attribute = "cn" | 92 | $ldap_attribute = "cn" |
92 | 93 | ||
93 | file { "/etc/pam_ldap.d": | 94 | file { "/etc/pam_ldap.d": |
94 | ensure => directory, | 95 | ensure => directory, |
95 | mode => "0755", | 96 | mode => "0755", |
96 | owner => "root", | 97 | owner => "root", |
97 | group => "root", | 98 | group => "root", |
98 | } -> | 99 | } -> |
99 | file { "/etc/pam_ldap.d/postgresql.conf": | 100 | file { "/etc/pam_ldap.d/postgresql.conf": |
100 | ensure => "present", | 101 | ensure => "present", |
101 | mode => "0600", | 102 | mode => "0600", |
102 | owner => $::profile::postgresql::pg_user, | 103 | owner => $::profile::postgresql::pg_user, |
103 | group => "root", | 104 | group => "root", |
104 | content => template("profile/postgresql_master/pam_ldap_postgresql.conf.erb"), | 105 | content => template("profile/postgresql_master/pam_ldap_postgresql.conf.erb"), |
105 | } -> | 106 | } -> |
106 | file { "/etc/pam.d/postgresql": | 107 | file { "/etc/pam.d/postgresql": |
107 | ensure => "present", | 108 | ensure => "present", |
108 | mode => "0644", | 109 | mode => "0644", |
109 | owner => "root", | 110 | owner => "root", |
110 | group => "root", | 111 | group => "root", |
111 | source => "puppet:///modules/profile/postgresql_master/pam_postgresql" | 112 | source => "puppet:///modules/profile/postgresql_master/pam_postgresql" |
112 | } | ||
113 | } | 113 | } |
114 | 114 | ||
115 | } | 115 | } |