summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-26 14:29:22 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-26 14:29:22 -0200
commite7baecde3407485b28fa44646db3a77c6e407ef9 (patch)
treef7ec532638a08e546adcf3a9fd0ad78817dfe528
parent2197f6dbf418ff0314660fb13a3f9486fb221f76 (diff)
downloadpuppet-apache-e7baecde3407485b28fa44646db3a77c6e407ef9.tar.gz
puppet-apache-e7baecde3407485b28fa44646db3a77c6e407ef9.tar.bz2
Getting hosting domain from hiera
-rw-r--r--manifests/site.pp5
1 files changed, 1 insertions, 4 deletions
diff --git a/manifests/site.pp b/manifests/site.pp
index 42a4abb..d686518 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -14,10 +14,7 @@ define apache::site($ensure = present, $docroot = false, $redirect = false,
default => "$filename",
}
- $hosting_domain = $base_domain ? {
- '' => $domain,
- default => $base_domain,
- }
+ $hosting_domain = hiera('apache::site::domain', $::domain)
$user = $mpm_user ? {
'' => regsubst($title, '\.', '_', 'G'),