puppet.conf: do not set pluginsync=true on stretch hosts
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 11 Apr 2017 13:20:50 +0000 (15:20 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 11 Apr 2017 13:20:50 +0000 (15:20 +0200)
pluginsync has been deprecated in puppet version 4.4.0. It is however
the default, so it can be safely removed from the configuration file.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
modules/debian_org/templates/puppet.conf.erb

index e094726..83d06de 100644 (file)
@@ -9,9 +9,11 @@ vardir=/var/lib/puppet
 ssldir=/var/lib/puppet/ssl
 rundir=/var/run/puppet
 factpath=$vardir/lib/facter
-pluginsync=true
 # This is the default environment for all clients
 environment=production
+<%- if has_variable?("puppetversion") and (scope.call_function('versioncmp', [@puppetversion.to_s, '4.4.0']) < 0) -%>
+pluginsync=true
+<%- end -%>
 
 <% if scope.function_has_role(['puppetmaster']) %>
 [master]