diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-25 16:13:50 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-25 16:13:50 -0200 |
commit | 2e50ad7e639d376d2d1a9a8e5b58d251095b77f0 (patch) | |
tree | be8750ea9df47d0aef77bd9695002ba7ac4d29a7 | |
parent | f8b8ff0593bc441da35bd61a929f6391d9d81076 (diff) | |
download | puppet-mysql-2e50ad7e639d376d2d1a9a8e5b58d251095b77f0.tar.gz puppet-mysql-2e50ad7e639d376d2d1a9a8e5b58d251095b77f0.tar.bz2 |
Minor change
-rw-r--r-- | manifests/server.pp | 8 |
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'], |