diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-26 14:29:22 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-26 14:29:22 -0200 |
commit | e7baecde3407485b28fa44646db3a77c6e407ef9 (patch) | |
tree | f7ec532638a08e546adcf3a9fd0ad78817dfe528 | |
parent | 2197f6dbf418ff0314660fb13a3f9486fb221f76 (diff) | |
download | puppet-apache-e7baecde3407485b28fa44646db3a77c6e407ef9.tar.gz puppet-apache-e7baecde3407485b28fa44646db3a77c6e407ef9.tar.bz2 |
Getting hosting domain from hiera
-rw-r--r-- | manifests/site.pp | 5 |
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'), |