Use httpd::vhost $content parameter

Use the new $content parameter of httpd::vhost instead of $template.
This way, the template gets rendered within the scope where it assumes
its variables are, and doesn't need to use the scope object which
doesn't work within a defined type. This will ensure the template keeps
working on puppet 4.

Depends-On: https://review.openstack.org/570824
Change-Id: Iaa31189ace6140327af034fd8209211077d7c552
This commit is contained in:
Colleen Murphy 2018-05-28 15:39:36 -07:00
parent caf7b56fa4
commit 019af0637a
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ define mailman::site (
port => 80,
docroot => '/var/www/',
priority => '50',
template => 'mailman/mailman_multihost.vhost.erb',
content => template('mailman/mailman_multihost.vhost.erb'),
}
file { "/etc/init.d/mailman-${name}":