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().
This commit is contained in:
Kienan Stewart 2017-03-24 18:22:57 -04:00
parent cde365501c
commit 0bd5a15637
1 changed files with 4 additions and 4 deletions

View File

@ -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',