From 0bd5a15637027d761c0881f16e931704d55512a0 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Fri, 24 Mar 2017 18:22:57 -0400 Subject: [PATCH] Remove "+=" assignments from aegir::hostmaster Puppet removed the "+=" and "-=" operators. Replaced with $a = $a + $b, which requires Puppet 4.x. If compatibility with 3.x is desired, the code needs to be changed to use an external function, like concat(). --- manifests/hostmaster.pp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manifests/hostmaster.pp b/manifests/hostmaster.pp index cf11a6a..2dc5253 100644 --- a/manifests/hostmaster.pp +++ b/manifests/hostmaster.pp @@ -37,16 +37,16 @@ class aegir::hostmaster ( "${package_name}-hostmaster aegir/db_user string ${database['user']}" ] if $email { - $debconf_settings += "${package_name}-hostmaster aegir/email string ${email}" + $debconf_settings = $debconf_settings + ["${package_name}-hostmaster aegir/email string ${email}"] } if $makefile { - $debconf_settings += "${package_name}-hostmaster aegir/makefile string ${makefile}" + $debconf_settings = $debconf_settings + ["${package_name}-hostmaster aegir/makefile string ${makefile}"] } if $working_copy { - $debconf_settings += "${package_name}-hostmaster aegir/working-copy boolean true" + $debconf_settings = $debconf_settings + ["${package_name}-hostmaster aegir/working-copy boolean true"] } if $drush_version { - $debconf_settings += "aegir${version}-provision aegir/drush_version string ${drush_version}" + $debconf_settings = $debconf_settings + ["aegir${version}-provision aegir/drush_version string ${drush_version}"] } file { '/etc/dpkg/aegir.response': ensure => 'file',