diff options
-rw-r--r-- | manifests/init.pp | 2 |
1 files changed, 1 insertions, 1 deletions
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"]], |