From 2e50ad7e639d376d2d1a9a8e5b58d251095b77f0 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 25 Jan 2013 16:13:50 -0200 Subject: Minor change --- manifests/server.pp | 8 ++++---- 1 file 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'], -- cgit v1.2.3