example42 / puppet-mysql

Mysql Puppet Module
http://www.example42.com
Other
16 stars 38 forks source link

Add support to run grants on a remote mysql host #43

Closed lieutdan13 closed 10 years ago

lieutdan13 commented 10 years ago

I've come across the issue where I'm using Amazon RDS as a mysql host. RDS doesn't provide a shell, so puppet cannot be installed on it. How would you go about adding this feature?

alvagante commented 10 years ago

I think we can add 3 more options to manage remote_host, user and password. By default the grant replies on .my.cnf so these extra params would keep this default behaviour but, if defined, they can be used to remote user creation. Given the not so smart current parama names, I would use for these ones something like: remote_host, remote_user, remote_password (but if you've better names they're welcomed) .

It should not be a too difficult to make...