From: Peter Palfrader Date: Sun, 5 May 2013 09:56:40 +0000 (+0200) Subject: bacula on freebsd does not do capabilities X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=321045e3b629fbea2ffd79b26d523b68b716a48e;p=mirror%2Fdsa-puppet.git bacula on freebsd does not do capabilities --- diff --git a/modules/bacula/templates/default.bacula-fd.erb b/modules/bacula/templates/default.bacula-fd.erb index 113570800..96b2455c9 100644 --- a/modules/bacula/templates/default.bacula-fd.erb +++ b/modules/bacula/templates/default.bacula-fd.erb @@ -10,7 +10,11 @@ ENABLED="yes" # Additional start arguments can be provided here # ARGS="" +<% if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('architecture') and scope.lookupvar('site::nodeinfo')['ldap']['architecture'][0].start_with?('kfreebsd') -%> +ARGS="" +<% else -%> ARGS="-u bacula -k" +<% end -%> # Default config file can be changed here # CONFIG="/etc/bacula/bacula-fd.conf"