]> gitweb.fluxo.info Git - puppet-mysql.git/commitdiff
Minor change
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 25 Jan 2013 18:13:50 +0000 (16:13 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 25 Jan 2013 18:13:50 +0000 (16:13 -0200)
manifests/server.pp

index 31df96394bd3caa6432827a0a82fd57ea9ef6892..3d0310a1b466029cfa2038a88c07935e22fdfa22 100644 (file)
@@ -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'],