example42 / puppet-mysql

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

Add support for Revoke privileges #36

Closed lieutdan13 closed 10 years ago

lieutdan13 commented 11 years ago

Not sure if this should be a part of mysql::grant or its own class/define. This would definitely be a useful feature.

alvagante commented 11 years ago

I would create a mysql::revoke define, if you want to make one, eventually taking mysql::grant as reference, you're welcomed.

lermit commented 10 years ago

Hi @lieutdan13 ,

The issue #52 add an ensure parameters to the mysql::grant.

You can revoke a grant like that

  mysql::grant { 'example42_db':
    ensure                  => 'absent',
    mysql_password => 'passwd42',
    mysql_user          => 'user42',
  }

Regards