aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp2
-rw-r--r--manifests/subsystems/database.pp3
2 files changed, 3 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 1be18ba..716d0ab 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -3,7 +3,7 @@
#
# Stage definitions
-stage { 'nodo_setup': before => Stage['main'] }
+stage { 'nodo_setup': before => Stage['main'] }
stage { 'nodo_ready': require => Stage['main'] }
# Import required modules
diff --git a/manifests/subsystems/database.pp b/manifests/subsystems/database.pp
index e52f5ba..87e5162 100644
--- a/manifests/subsystems/database.pp
+++ b/manifests/subsystems/database.pp
@@ -4,7 +4,8 @@ class database {
# Database definitions
define instance($password, $ensure = 'present', $privileges = 'all') {
mysql_database { "$name":
- ensure => $ensure,
+ ensure => $ensure,
+ require => Service['mysql'],
}
mysql_user { "$name@%":