diff options
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 | } |