Commit graph

13 commits

Author SHA1 Message Date
Rodrigo Menezes
f0f9e76db7 Default types hacks not needed.
Default types hacks not needed.
2012-05-22 16:50:46 -07:00
Dan Bode
05f7807fc0 Merge pull request #71 from runningman/security
Fixed regex of database user.
2012-05-06 23:56:01 -07:00
Michael Arnold
eaf9ee50f6 Fixed regex of database user.
The incorrect regex did not all for the anonymous mysql users to be
removed via the mysql::server::account_security class.  The regex is now
increased to cover for @localhost and @%.
2012-05-06 23:17:49 -07:00
Branan Purvine-Riley
6a81a2f687 (#14316) make privileges case-insensitive 2012-05-04 10:04:46 -07:00
Branan Purvine-Riley
4485dbb95f Remove the global *_PRIVS variables 2012-05-01 17:00:46 -07:00
Dan Bode
015490c787 Fix bug when querying for all database users
This commit fixes an issue in self.instances of
database_user where none of the users were actually
being detected.

There was a accidental '\' in front of the '.' which 
means that it will only consider users that have
one or more '.' in front of the '@'.

This commit removes the '\' so that all users are
returned that have one or more characters in from
of an '@'.
2012-03-14 23:05:20 -07:00
Nan Liu
b1f90fd1d2 Major refactor of mysql module.
This is a major change to the module and would be released as a new
version.

* Add self.instances to database and database_user for puppet resource.
* Update database provider to use flush method.
* Update module to conform to puppet-lint recommendations.
* Cleanup some unecessary logic in mysql::db define type.
* Move mysql_restart to config class.
* Use class to class dependency instead of resource dependency.
* Change appropriate rspec-puppet tests.
* Add fixtures directory to simplify testing.
* Update raketask and spec_helper to reflect fixture changes.
* Update mysql_password function to support validation.
* Move client installation to a separate class.
* Update documentation and readme.
2012-03-13 15:19:53 -07:00
Matthias Pigulla
d15c9d1621 (#11363) Add two missing privileges to grant: event_priv, trigger_priv
These were missing from the list of allowed privileges:

* event_priv
* trigger_priv

No rspec changes, as we don't even have basic coverage on these providers and
its a minor change so should be low risk.
2011-12-30 16:33:21 +00:00
Christian G. Warden
0292456f76 (#11184) Allow wildcards in account host names
Allow wildcard in the host part of MySQL accounts:

http://dev.mysql.com/doc/refman/5.0/en/grant.html#grant-accounts-passwords

For the examples, Add a database_user test that contains a wildcard in the host
name part.

Also in the examples, pass root_password to mysql::server in config_hash.
2011-12-05 23:39:47 +00:00
Matthias Pigulla
b0ff433860 Fix (#10882) by making all commands optional. 2011-11-16 16:49:31 +01:00
Dan Bode
4774c63435 Database should set charset on create.
Previously, the charset of the database was not
being set on create, causing puppet to have to
potentially run twice to update it.
2011-06-16 21:57:06 -07:00
Dan Bode
f65e49e2ce added more input validation for db user. 2011-05-26 18:10:30 -07:00
Dan Bode
d28f0e0327 adding first commit for mysql. 2011-05-24 23:22:43 -07:00