Skip to content
Snippets Groups Projects
Commit 7e15996e authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

more wallet re-factoring

parent 717c8d36
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
class su_ldap::ldapadmin::posixgroup( class su_ldap::ldapadmin::posixgroup(
Enum['present', 'absent'] $ensure, Enum['present', 'absent'] $ensure,
$env = undef, $env = undef,
String $basedir = '/etc/ldapadmin',
) { ) {
# third, pick your bucket and credentials # third, pick your bucket and credentials
...@@ -33,11 +34,11 @@ class su_ldap::ldapadmin::posixgroup( ...@@ -33,11 +34,11 @@ class su_ldap::ldapadmin::posixgroup(
# Keytab used to access mailman and Posixgroup. # Keytab used to access mailman and Posixgroup.
if ($ensure == 'present') { if ($ensure == 'present') {
base::wallet { 'service/lists': wallet { 'service/lists':
ensure => 'present', ensure => 'present',
path => '/etc/ldap/service-lists.keytab', path => '/etc/ldap/service-lists.keytab',
owner => 'root', owner => 'root',
require => File['/etc/ldapadmin'], require => File[$basedir],
} }
} }
......
...@@ -132,7 +132,8 @@ class su_ldap::sync_scripts ( ...@@ -132,7 +132,8 @@ class su_ldap::sync_scripts (
## Add another remctl driven sync ## Add another remctl driven sync
# LDAP posixgroup (ldap-posix-group) # LDAP posixgroup (ldap-posix-group)
class { 'su_ldap::ldapadmin::posixgroup': class { 'su_ldap::ldapadmin::posixgroup':
env => $env, env => $env,
ensure => $ensure_ldap_posix_group, ensure => $ensure_ldap_posix_group,
basedir => $basedir,
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment