Commit graph

126 commits

Author SHA1 Message Date
Dan Bode
ed62777045 Merge pull request #63 from runningman/security
Added mysql::server::account_security class.
2012-05-04 18:04:11 -07:00
Nan Liu
c2b90348b2 Merge pull request #70 from branan/14221_forge_update
(#14221) Update Modulefile and CHANGELOG for next release
2012-05-04 15:09:42 -07:00
Branan Purvine-Riley
5185cf422c (#14221) Update Modulefile and CHANGELOG for next release 2012-05-04 15:06:50 -07:00
Nan Liu
22f59f0b5d Merge pull request #68 from runningman/wild_host
Allow wildcard host assignment with sql.
2012-05-04 14:52:28 -07:00
Nan Liu
73a07bfbf3 Merge pull request #69 from branan/case_insensitive
(#14316) Make privileges case-insensitive
2012-05-04 14:50:16 -07:00
Branan Purvine-Riley
6a81a2f687 (#14316) make privileges case-insensitive 2012-05-04 10:04:46 -07:00
Michael Arnold
8dc651c0e2 Simplify Exec["${name}-import"]
Show that mysql:db can also import SQL from a file in order to, for
example, initialize a database schema.  Since it requires class
mysql::server, we assume to run all commands as the root mysql user
against the local mysql server.
2012-05-03 23:35:51 -07:00
Dan Bode
3fbb54de6c Merge pull request #65 from branan/14218_query_db_for_permissions
Query the database for possible permissions
2012-05-01 17:14:52 -07:00
Branan Purvine-Riley
29cef3f71a Add initial spec for mysql grant provider 2012-05-01 17:01:47 -07:00
Branan Purvine-Riley
d0a5b1c534 remove $safe_grant
Now that the ruby can query permissions sanely, filtering 'all' is
no longer necessary
2012-05-01 17:01:06 -07:00
Branan Purvine-Riley
4485dbb95f Remove the global *_PRIVS variables 2012-05-01 17:00:46 -07:00
Michael Stahnke
e6b45ebfae Merge pull request #60 from geogdog/patch-1
I noticed the following message whilst provisioning using this module:
2012-04-29 15:24:33 -07:00
Michael Stahnke
f750b39ad5 Merge pull request #61 from runningman/java
Java
2012-04-29 15:24:11 -07:00
Dan Bode
779affeb52 Merge pull request #62 from fcharlier/syntax_error_monitor
Fix typos in mysql::server::monitor class
2012-04-24 12:07:56 -07:00
François Charlier
64f367fbb4 Fix typos in mysql::server::monitor class
* fix the dependency declaration

+ add basic tests
2012-04-24 11:56:01 +02:00
Michael Arnold
7890f79547 Added mysql::server::account_security class.
Secures the MySQL installation by removing the test database and the
default users that are created during the MySQL first-run
(root@${fqdn}, @%, @localhost, etc.).
Includes rspec tests and updated documentation.
2012-04-23 23:41:12 -07:00
Michael Arnold
86eec56118 Added documentation for mysql::java. 2012-04-23 21:48:32 -07:00
Michael Arnold
0743faa6db Added tests to mysql::java. 2012-04-23 21:44:31 -07:00
Michael Arnold
ba4df4dead Added mysql::java class.
Added a small class to install the Java MySQL connector.
2012-04-23 21:24:01 -07:00
Greg Trahair
097879bad3 I noticed the following message whilst provisioning using this module:
notice: /Stage[main]/Mysql::Config/Exec[set_mysql_rootpw]/returns: mysqladmin: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2)

Even though it's not fatal, it's cleaner for Exec['set_mysql_rootpw'] to require File['/etc/mysql/conf.d'].
2012-04-23 13:06:39 +03:00
Dan Bode
12a4410e63 Merge pull request #58 from derekhiggins/set-errorlog
set platform dependent error logfile location
2012-04-11 18:16:39 -07:00
Derek Higgins
9ff99ba336 set platform dependent error logfile location 2012-04-12 00:06:35 +00:00
Jeff McCune
07a8a5fc33 Merge branch 'maint/master/release_0.2.0'
* maint/master/release_0.2.0:
  Update Modulefile CHANGELOG for 0.2.0 release
2012-04-11 16:14:09 -07:00
Jeff McCune
c16a71d96b Update Modulefile CHANGELOG for 0.2.0 release 2012-04-11 16:08:20 -07:00
Dan Bode
0a1d154acc Merge pull request #54 from blkperl/ticket_13203_add_ssl_support
(#13203) Add ssl support
2012-04-09 22:56:10 -07:00
William Van Hevelingen
f7e0ea5893 (#13203) Add ssl support
This commit adds a ssl parameter to the mysql::config class.
Setting ssl to true adds the following parameters to the template.

   ssl_ca             - path to ssl-ca
   ssl_cert           - path to ssl-cert
   ssl_key            - path to ssl-key
2012-03-21 14:48:22 -07:00
Dan Bode
ce606a9525 Merge pull request #53 from nanliu/tb/travis
Add travis.ci to module
2012-03-20 17:31:45 -07:00
Dan Bode
06ac21ab3c Merge pull request #47 from blkperl/ticket_13163_datadir_should_be_configurable
(#13163) Datadir should be configurable
2012-03-18 12:34:04 -07:00
Dan Bode
cd05744374 Merge pull request #52 from nanliu/tb/readme
Document create_resources dependency.
2012-03-18 12:27:38 -07:00
Nan Liu
0ea463b5f0 Travis ci before script needs success exit code.
Update before script so it exits with 0 for Puppet 2.7.
2012-03-18 02:06:03 -05:00
Nan Liu
9ebbbc434d Fix Puppet 2.6 compilation issues.
In Puppet 2.6, negate boolean wasn't handled in resources attribues.
Also hashes values were not accepted in functions. The manifests have
been updated to resolve compilation issues in Puppet 2.6.
2012-03-18 01:56:13 -05:00
Nan Liu
33c72efde1 Add travis.ci for testing multiple puppet versions.
The existing spec tests should be tested on multiple puppet version. The
addition of travis.ci allows us to easily verify all specs are passing
and new manifests did not break backwards compatibility by introducing
new syntax.
2012-03-18 01:35:12 -05:00
William Van Hevelingen
f353fc6a2d (#13163) Datadir should be configurable
Previously datadir was hardcoded to /var/lib/mysql.
This commit makes datadir configurable for MySQL
installations with custom datadir paths.
2012-03-17 20:19:55 -07:00
Dan Bode
b9e6a78816 Merge pull request #51 from nanliu/tb/spec
Fix spec test issues related to error message.
2012-03-17 12:13:14 -07:00
Nan Liu
558a59cda7 Document create_resources dependency. 2012-03-16 23:20:02 -05:00
Nan Liu
eff79b5331 Fix spec test issues related to error message.
The current spec tests was testing for an error message duplicate
declaration instead of duplicate definition. This change was introduced
by puppet issue #11451, so we test for both errors instead.
2012-03-16 22:39:42 -05:00
Dan Bode
c6f1ea71ba Merge pull request #50 from nanliu/tb/13194
Fix mysql service on Ubuntu.
2012-03-16 16:53:28 -07:00
Nan Liu
72da2c5838 Fix mysql service on Ubuntu.
On Ubuntu, mysql should use upstart provider instead of init.d. This
change overrides the init provider until the issue with init provider
can be addressed.
2012-03-16 18:15:12 -05:00
Nan Liu
9627d0126b Merge pull request #49 from bodepd/test_coverage
Add more spec test coverage
2012-03-16 15:16:32 -07:00
Dan Bode
55e399db0d Add more spec test coverage
This commit adds full spec test coverage for
- mysql::python
- mysql
- mysql::ruby
- mysql::server
2012-03-16 14:50:35 -07:00
Dan Bode
9779208b0a Merge pull request #48 from nanliu/tb/11963
(#11963) Fix spec test due to path changes.
2012-03-16 13:52:18 -07:00
Nan Liu
1700349a76 (#11963) Fix spec test due to path changes.
Due to additional path in issue 11963 to mysql-restart, the config class
spec test have been updated to reflect these changes.
2012-03-16 13:52:30 -05:00
Nan Liu
812ba01509 Merge pull request #46 from bodepd/add_rspec_tests_for_config_class
Add rspec tests for config class
2012-03-16 11:25:28 -07:00
Dan Bode
a3ce533deb Merge pull request #42 from fcharlier/master
#11963 In the mysql module the Exec[mysqld-restart] should have more in path
2012-03-16 10:59:51 -07:00
François Charlier
b14c7d14d2 Add a test to check path for 'mysqld-restart'
And fix a coma error in mysql::config class.

Signed-off-by: François Charlier <fcharlier@ploup.net>
2012-03-16 18:13:16 +01:00
François Charlier
1a9ae6bddf Fix path for 'mysqld-restart'
And log output on failure.

Signed-off-by: François Charlier <fcharlier@ploup.net>
2012-03-16 15:31:42 +01:00
Dan Bode
907331a750 Add rspec-puppet tests for mysql::config 2012-03-15 00:54:33 -07:00
Dan Bode
da62ad66f0 Moved class dependency between sever and config to server
Prevously, the server class declared the config class and
the config class had a relationship to the server class.

This actually meant that the config class could never be declared
by itself b/c it exlicity depended on the server class (which it
could never resolve externally b/c it would result in a redeclaration
of the config class itself.)

This issue actually made it impossible to test the manifest on its
own with rspec-puppet. This commit makes it much easier to write
rspec tests for the config class.
2012-03-15 00:51:35 -07:00
Dan Bode
eac8e8d12d Merge pull request #44 from nanliu/tb/update
Add documentation related to osfamily fact.
2012-03-14 23:22:02 -07:00
Nan Liu
36f9ef408e Merge pull request #45 from bodepd/fix_issues_from_nans_massive_pull_request
Fix issues from nans massive pull request
2012-03-14 23:20:23 -07:00