]> gitweb.fluxo.info Git - puppet-database.git/commitdiff
Make mysql_database depend on set_mysql_rootpw
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 19 May 2016 15:57:20 +0000 (12:57 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 19 May 2016 15:57:20 +0000 (12:57 -0300)
manifests/instance.pp

index 2523e285745deafe40b6cdd694032d842e9cb4bf..ba80285744a209fadc9dabc4aa6abab166b4a734 100644 (file)
@@ -8,7 +8,7 @@ define database::instance(
 
   mysql_database { "${name}":
     ensure  => $ensure,
-    require => Service['mysql'],
+    require => [ Service['mysql'], Exec['set_mysql_rootpw'] ],
   }
 
   mysql_user { "${name}@%":