From 0a2452847f3e961a1329801ed709c6769567f3ee Mon Sep 17 00:00:00 2001 From: calfonso Date: Wed, 16 Apr 2008 15:16:26 -0400 Subject: Fixing grant exec name uniqueness --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index e4386b0..6528595 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -175,7 +175,7 @@ define mysql::datasource($rootpw, $ds_name, $ds_owner, $ds_owner_pwd, $ds_user, require => [Service["mysql"], Exec["mysql root password init"]], } - exec { "create grants $ds_owner": + 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'", require => [Service["mysql"], Exec["mysql root password init"]], -- cgit