puppet-prod/modules/glauth/manifests/service.pp
Ben Vincent fe35baacfd chore: cleanup glauth
- remove datavol, not required
- remove commented out systemd socket
2024-07-02 18:12:08 +10:00

31 lines
916 B
Puppet

# manage the glauth service/socket
class glauth::service (
$service_enable = $glauth::service_enable,
$service_name = $glauth::service_name,
$user = $glauth::user,
$group = $glauth::group,
$config_path = $glauth::config_path,
$bin_path = $glauth::bin_path,
$ldap_port = $glauth::ldap_port,
$ldaps_port = $glauth::ldaps_port,
$api_port = $glauth::api_port,
){
if $service_enable {
include ::systemd
systemd::unit_file { "${service_name}.service":
content => epp('glauth/systemd.service.epp', {
'bin_path' => $bin_path,
'config_path' => $config_path,
'user' => $user,
'group' => $group,
'service_name' => $service_name,
}),
enable => true,
active => true,
subscribe => Concat[$config_path],
# should also subscribe to tls certs
}
}
}