aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-09-26 16:12:07 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-09-26 16:12:07 -0300
commitfbbad9b7395ad44b356000c097ad66f10b479675 (patch)
tree3ad7cd1f67fa3d17f0d08e39b8bee8e431540faa
parenta86af621ca7ce84c4ba25475eec353eb0def4814 (diff)
downloadpuppet-nodo-fbbad9b7395ad44b356000c097ad66f10b479675.tar.gz
puppet-nodo-fbbad9b7395ad44b356000c097ad66f10b479675.tar.bz2
Create backup resources
-rw-r--r--manifests/role/web.pp2
-rw-r--r--manifests/subsystem/backup.pp4
2 files changed, 5 insertions, 1 deletions
diff --git a/manifests/role/web.pp b/manifests/role/web.pp
index 3c0355f..4cd1719 100644
--- a/manifests/role/web.pp
+++ b/manifests/role/web.pp
@@ -23,8 +23,8 @@ class nodo::role::web inherits nodo::base::virtual {
include nodo::utils::web
# Put your custom sites and users here
+ include websites
require ::site_users::virtual
- require ::site_websites
# Reprepro configuration
$reprepro = hiera('nodo::web::reprepro', false)
diff --git a/manifests/subsystem/backup.pp b/manifests/subsystem/backup.pp
index 2efa24a..b85dc0f 100644
--- a/manifests/subsystem/backup.pp
+++ b/manifests/subsystem/backup.pp
@@ -23,4 +23,8 @@ class nodo::subsystem::backup {
}
default: { }
}
+
+ # Setup rsync instances
+ $rsync = hiera('backup::rsync', {})
+ create_resources('backup::rsync', $rsync)
}