From 95f9398cb4cd1e531eaef21066ae02bb03ab0af1 Mon Sep 17 00:00:00 2001 From: Don Brewer Date: Thu, 24 Apr 2008 11:04:37 -0400 Subject: Fixed the mysql grant unless clause, there was a syntax error in the mysql statement --- manifests/init.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 6528595..f70e6bd 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -171,13 +171,13 @@ define mysql::datasource($rootpw, $ds_name, $ds_owner, $ds_owner_pwd, $ds_user, exec { "create grants $ds_name": command => "$mysql_root_cmd -e \"GRANT ALL PRIVILEGES ON *.* TO '$ds_owner'@'%' IDENTIFIED BY '$ds_owner_pwd' WITH GRANT OPTION;\"", - unless => "/usr/bin/mysql --host $ipaddress --user=$ds_owner -password=$ds_owner_pwd -e '\s'", + unless => "/usr/bin/mysql --host=$ipaddress --user=$ds_owner --password=$ds_owner_pwd -e '\s'", require => [Service["mysql"], Exec["mysql root password init"]], } exec { "create grants $ds_user": command => "$mysql_root_cmd -e \"GRANT SELECT,INSERT,UPDATE,DELETE ON $ds_name.* TO '$ds_user'@'%' IDENTIFIED BY '$ds_user_pwd';\"", - unless => "/usr/bin/mysql --host $ipaddress --user=$ds_user -password=$ds_user_pwd -e '\s'", + unless => "/usr/bin/mysql --host=$ipaddress --user=$ds_user --password=$ds_user_pwd -e '\s'", require => [Service["mysql"], Exec["mysql root password init"]], } # Only create the schema is a template directory was specified -- cgit