summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/server.pp8
1 files changed, 4 insertions, 4 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index 31df963..3d0310a 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -1,6 +1,10 @@
class mysql::server(
$rootpw = hiera('mysql::server::rootpw', '')
){
+ case $rootpw {
+ '': { fail("You need to define a mysql root password! Please set mysql::server::rootpw config") }
+ }
+
include mysql
package { "mysql-server":
@@ -15,10 +19,6 @@ class mysql::server(
require => Package["mysql-server"],
}
- case $rootpw {
- '': { fail("You need to define a mysql root password! Please set mysql::server::rootpw config") }
- }
-
file { '/usr/local/sbin/setmysqlpass.sh':
content => template('mysql/setmysqlpass.sh.erb'),
require => Service['mysql'],