aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-07-12 22:50:40 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-07-12 22:50:40 -0300
commitd74d9aa2d8c77be131e1c363462cb8211c03caf3 (patch)
tree482ec33eb6e876535aa4b9ea8ea77275347b16b6 /manifests
parent4f1a35e7cfc1d3896b35ec31d74f1b56ac92a798 (diff)
downloadpuppet-nodo-d74d9aa2d8c77be131e1c363462cb8211c03caf3.tar.gz
puppet-nodo-d74d9aa2d8c77be131e1c363462cb8211c03caf3.tar.bz2
Setting up stages to avoid missing dependencies
By having some initial staging to setup databases we might avoid catalog errors like 'Could not find a default provider for mysql_database'.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp4
-rw-r--r--manifests/web.pp11
2 files changed, 11 insertions, 4 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index fc71290..1be18ba 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -2,6 +2,10 @@
# Nodo module.
#
+# Stage definitions
+stage { 'nodo_setup': before => Stage['main'] }
+stage { 'nodo_ready': require => Stage['main'] }
+
# Import required modules
import "common"
import "sshd"
diff --git a/manifests/web.pp b/manifests/web.pp
index caf031a..8583921 100644
--- a/manifests/web.pp
+++ b/manifests/web.pp
@@ -1,9 +1,12 @@
class nodo::web inherits nodo::vserver {
# Class for web nodes
- include websites
- include database
- include users::virtual
- include utils::web
+
+ class {
+ 'websites': stage => nodo_ready;
+ 'database': stage => nodo_setup;
+ 'users::virtual': stage => main;
+ 'utils::web': stage => main;
+ }
# Reprepro configuration
$reprepro_basedir = '/var/reprepro'