aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-11-30 19:41:06 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-11-30 19:41:06 -0200
commit816fdc312f4ddc123511ce64bade1313a01eefd5 (patch)
treeb4b12e5299b33aa15d4e3009765f6b96ee44bf5f /manifests
parentc7b4ac8d74d27c385dc34986131239a0df3c66a7 (diff)
downloadpuppet-nodo-816fdc312f4ddc123511ce64bade1313a01eefd5.tar.gz
puppet-nodo-816fdc312f4ddc123511ce64bade1313a01eefd5.tar.bz2
Adding reprepro::cron::disabled
Diffstat (limited to 'manifests')
-rw-r--r--manifests/web.pp15
1 files changed, 12 insertions, 3 deletions
diff --git a/manifests/web.pp b/manifests/web.pp
index b9d7bc2..3f41e79 100644
--- a/manifests/web.pp
+++ b/manifests/web.pp
@@ -1,13 +1,22 @@
class nodo::web inherits nodo::vserver {
# Class for web nodes
- $reprepro_basedir = '/var/reprepro'
-
include git-daemon
include websites
include database
include users::virtual
include utils::web
- include reprepro::cron
+
+ # Reprepro configuration
+ $reprepro_basedir = '/var/reprepro'
+
+ case $reprepro {
+ 'enabled': {
+ include reprepro::cron
+ }
+ default: {
+ include reprepro::cron::disabled
+ }
+ }
backupninja::svn { "svn":
src => "/var/svn",