aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-13 13:57:39 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-13 13:57:39 -0300
commit8450cbff111d6a5895849581cbf05780909ab120 (patch)
tree91565871fc58fe51dea5e7840051b78c0a37467a /manifests
parent9e545e563a6a905ce3ac2dffbf120661944bef94 (diff)
downloadpuppet-nodo-8450cbff111d6a5895849581cbf05780909ab120.tar.gz
puppet-nodo-8450cbff111d6a5895849581cbf05780909ab120.tar.bz2
Check if websites class exists
Diffstat (limited to 'manifests')
-rw-r--r--manifests/role/web.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/role/web.pp b/manifests/role/web.pp
index 7cdd93f..4b58ca9 100644
--- a/manifests/role/web.pp
+++ b/manifests/role/web.pp
@@ -6,11 +6,15 @@ class nodo::role::web inherits nodo::vserver {
}
# Classes for web nodes
- include websites
include database
include users::virtual
include nodo::utils::web
+ # The websites class
+ if defined('websites') {
+ include websites
+ }
+
# Reprepro configuration
$reprepro = hiera('nodo::web::reprepro', false)
$reprepro_basedir = '/var/reprepro'