override for bacula-sd: set group and supplementary group
authorPeter Palfrader <peter@palfrader.org>
Mon, 17 Jul 2017 09:47:07 +0000 (09:47 +0000)
committerPeter Palfrader <peter@palfrader.org>
Mon, 17 Jul 2017 09:47:07 +0000 (09:47 +0000)
modules/bacula/manifests/storage.pp

index 35dffb2..7c274c1 100644 (file)
@@ -9,6 +9,13 @@ class bacula::storage inherits bacula {
                enable    => true,
                hasstatus => true,
        }
+       systemd::override { 'bacula-sd':
+               content => @(EOT)
+                       [Service]
+                       Group=bacula
+                       SupplementaryGroups=ssl-cert
+                       | EOT
+       }
 
        exec { 'bacula-sd restart-when-idle':
                path        => '/usr/bin:/usr/sbin:/bin:/sbin',