22 lines
647 B
Puppet
22 lines
647 B
Puppet
# profiles::ldap::server
|
|
class profiles::ldap::server (
|
|
Hash $users = lookup('glauth::users', { default_value => {} }),
|
|
Hash $services = lookup('glauth::services', { default_value => {} }),
|
|
Hash $groups = lookup('glauth::groups', { default_value => {} }),
|
|
) {
|
|
|
|
Glauth::Obj::User {
|
|
config_path => '/etc/glauth/glauth.conf',
|
|
}
|
|
Glauth::Obj::Service {
|
|
config_path => '/etc/glauth/glauth.conf',
|
|
}
|
|
Glauth::Obj::Group {
|
|
config_path => '/etc/glauth/glauth.conf',
|
|
}
|
|
|
|
create_resources('glauth::obj::user', $users)
|
|
create_resources('glauth::obj::service', $services)
|
|
create_resources('glauth::obj::group', $groups)
|
|
}
|