diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-04-13 13:57:39 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-04-13 13:57:39 -0300 |
commit | 8450cbff111d6a5895849581cbf05780909ab120 (patch) | |
tree | 91565871fc58fe51dea5e7840051b78c0a37467a | |
parent | 9e545e563a6a905ce3ac2dffbf120661944bef94 (diff) | |
download | puppet-nodo-8450cbff111d6a5895849581cbf05780909ab120.tar.gz puppet-nodo-8450cbff111d6a5895849581cbf05780909ab120.tar.bz2 |
Check if websites class exists
-rw-r--r-- | manifests/role/web.pp | 6 |
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' |