Skip to content
Snippets Groups Projects
Commit d2e2edeb authored by Srinivas Rao Puttagunta's avatar Srinivas Rao Puttagunta
Browse files

Add posinxgroup.pp

parent 2c9a428f
No related branches found
No related tags found
No related merge requests found
......@@ -51,14 +51,6 @@ class su_ldap::ldapadmin (
require => File['/etc/ldapadmin'],
}
# Configuration for Remctl posixgroup
file { '/etc/ldapadmin/ldap-group-maint.conf':
ensure => $ensure,
mode => '0644',
content => template('su_ldap/etc/ldapadmin/ldap-group-maint.conf.erb'),
require => File['/etc/ldapadmin'],
}
# Get the database credentials used by LDAPadmin.pm
#
# These two credentials files would be combined into a
......@@ -126,5 +118,10 @@ class su_ldap::ldapadmin (
ensure => $ensure_ldap_watcher,
}
# The LDAP remctl wrapper script that invokes ldap-group-maint and
# restricts the options to setting up or showing a posix group.
class { 'su_ldap::ldapadmin::posixgroup':
ensure => $ensure_posixgroup,
}
}
# This class manages the configuration for the script
# /usr/bin/ldap-posix-group. From the script's man page: "This is a remctl
# wrapper script that invokes ldap-group-maint and restricts the options
# to setting up or showing a posix group.
class su_ldap::ldapadmin::posixgroup(
Enum['present', 'absent'] $ensure,
) {
if ($ensure == 'present')) {
fail("missing $ensure parameter")
}
# Configuration for Remctl posixgroup
file { '/etc/ldapadmin/ldap-group-maint.conf':
ensure => $ensure,
mode => '0644',
content => template('su_ldap/etc/ldapadmin/ldap-group-maint.conf.erb'),
require => File['/etc/ldapadmin'],
}
# Keytab used to access mailman and Posixgroup.
if ($ensure == 'present') {
base::wallet { 'service/lists':
ensure => 'present',
path => '/etc/ldap/service-lists.keytab',
owner => 'root',
require => File['/etc/ldapadmin'],
}
}
}
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