Skip to content
Snippets Groups Projects
Commit 7e02af4b authored by Thomas Bellman's avatar Thomas Bellman
Browse files

Include the x509certs class when needed.

The named_vhost.conf.erb template file references variables in the
x509certs class when the 'certname' parameter of apache::named_vhost
is specified.  We need to include the class to make sure the variables
are available.

The variable references happened to work anyway in many practical
cases, where the user used the x509certs module in other ways, but
it isn't right to depend on that.
parent 6ecb738f
Branches
No related tags found
No related merge requests found
......@@ -58,6 +58,9 @@ define apache::named_vhost($urls,
case $ensure
{
'present': {
if $certname {
include x509certs
}
apache::include_file {
"vhost-${name}":
content => template('apache/named_vhost.conf.erb'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment