diff options
author | Don Brewer <dbrewer@dbrewer-host.usersys.redhat.com> | 2008-04-24 11:04:37 -0400 |
---|---|---|
committer | Don Brewer <dbrewer@dbrewer-host.usersys.redhat.com> | 2008-04-24 11:04:37 -0400 |
commit | 95f9398cb4cd1e531eaef21066ae02bb03ab0af1 (patch) | |
tree | ed5b82504bc4f9f98e8fa547143afd49a6459401 | |
parent | 0a2452847f3e961a1329801ed709c6769567f3ee (diff) | |
download | puppet-mysql-95f9398cb4cd1e531eaef21066ae02bb03ab0af1.tar.gz puppet-mysql-95f9398cb4cd1e531eaef21066ae02bb03ab0af1.tar.xz puppet-mysql-95f9398cb4cd1e531eaef21066ae02bb03ab0af1.zip |
Fixed the mysql grant unless clause, there was a syntax error in the mysql statement
-rw-r--r-- | manifests/init.pp | 4 |
1 files 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 |