]> gitweb.fluxo.info Git - puppet-apache.git/commitdiff
Getting hosting domain from hiera
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 26 Jan 2013 16:29:22 +0000 (14:29 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 26 Jan 2013 16:29:22 +0000 (14:29 -0200)
manifests/site.pp

index 42a4abbc7d6c6f3dee63cd5c3b124fc441fa8063..d686518494d4736551cf7ca48f0c3d86466f47ff 100644 (file)
@@ -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'),