summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-28 10:43:04 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-28 10:43:04 -0300
commit79ff1cf65fbdd42d8deaf55ae4adf051fd322e18 (patch)
treede14c4856549837de6c6fcd5b6edbc6d737322fc /manifests
parent1dd79cb6521de34aae734038d317bcb4b50ad237 (diff)
downloadpuppet-apache-79ff1cf65fbdd42d8deaf55ae4adf051fd322e18.tar.gz
puppet-apache-79ff1cf65fbdd42d8deaf55ae4adf051fd322e18.tar.bz2
Use aliases param on certbot
Diffstat (limited to 'manifests')
-rw-r--r--manifests/site.pp4
1 files changed, 4 insertions, 0 deletions
diff --git a/manifests/site.pp b/manifests/site.pp
index b939427..24dba9b 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -133,6 +133,10 @@ define apache::site(
certbot::manage { "${name}.${hosting_domain}":
pre_hook => '/usr/sbin/service apache2 reload',
require => Apache::Site::Manage[$name],
+ aliases => $server_alias ? {
+ false => undef,
+ default => $server_alias,
+ },
}
}
}