Merge pull request 'neoloc/glauth' (#87) from neoloc/glauth into develop

Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/87
This commit was merged in pull request #87.
This commit is contained in:
2024-07-02 18:12:54 +10:00
22 changed files with 696 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# 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)
}