feat: add users/services/groups

This commit is contained in:
2024-07-01 21:02:27 +10:00
parent c8604baa4e
commit 6e3802ad57
2 changed files with 96 additions and 0 deletions
+11
View File
@@ -4,6 +4,17 @@ class profiles::ldap::server (
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)