]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
No need for nodo::web::hidden class
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 27 Jan 2013 22:04:45 +0000 (20:04 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 27 Jan 2013 22:04:45 +0000 (20:04 -0200)
manifests/web.pp

index ef5ef7cf609f1b8c8880905afc1cd129402a5be4..5644e3e00de127203349d03875621f61bb3de450 100644 (file)
@@ -1,4 +1,10 @@
 class nodo::web inherits nodo::vserver {
+  # Hidden services
+  $hidden = hiera('nodo::web::hidden', false)
+  if $hidden == true {
+    include onion
+  }
+
   # Classes for web nodes
   include websites
   include database
@@ -41,7 +47,3 @@ class nodo::web inherits nodo::vserver {
     src => "/var/svn",
   }
 }
-
-class nodo::web::hidden inherits nodo::web {
-  include onion
-}