Commit graph

40 commits

Author SHA1 Message Date
Hunter Haugen
81889c9992 Adding specs for manage_service parameter 2012-10-04 16:27:06 -07:00
Hunter Haugen
d98efe3b7a Merge pull request #113 from janoszen/ipv6
IPv6
2012-09-05 11:01:12 -07:00
Janos Pasztor
e77576d8e7 Added spec for IPv6 changes as requested by upstream 2012-09-05 09:58:42 +02:00
Hunter Haugen
8b9f17348c Update mysql::backup privs for #108 2012-09-04 17:04:26 -07:00
Hunter Haugen
0e4de09934 Merge pull request #93 from Savar/master
new config define and a small bugfix
2012-08-29 11:54:58 -07:00
Simon Effenberg
e47b4d19e7 fixed documentation and added rspec
* fixed a typo in the documentation
* added documentation for parameter +notify_service+
* added rspec test
2012-08-24 08:01:33 +02:00
Hunter Haugen
bfd19998d1 Merge pull request #101 from martasd/manage-db-status
Added an option to specify db status.
2012-08-22 11:30:46 -07:00
Eugene Kirpichov
6869b77541 Parameterized pidfile; critical for successful first restart 2012-08-21 18:32:34 -07:00
Martin Dluhos
04537908a9 Added an option to specify db status. 2012-08-21 15:40:42 -07:00
Michael Arnold
605fa718e1 Escape $root_password during execs.
Some characters used in a password can cause the shell in an exec to do
unexpected things unless the password is enclosed in single quotes.
Updated the rspec tests to deal with the password quoting.
2012-08-09 00:34:09 -07:00
Branan Purvine-Riley
5c4f14e386 Fix negative tests on rspec 2.11 2012-07-23 16:39:37 -07:00
Dan Bode
8b2b29a136 Add enabled parameter to mysql::server
This parameter can be used to specify whether the service
should be running.

It has been implemented to allow installations of mysql::server to
be in passive mode for HA.
2012-06-18 14:09:42 -07:00
Branan Purvine-Riley
62b395fe69 Switch to using the puppetlabs_spec_helper gem for common files 2012-05-31 15:32:36 -07:00
William Van Hevelingen
f572b90f9e (#14330) Add FreeBSD spec tests 2012-05-30 19:12:57 -07:00
William Van Hevelingen
05d7e23fe8 (#14330) Add support for FreeBSD
Note: ssl_ca, ssl_cert, and ssl_key do not have sane
defaults in FreeBSD. Setting ssl to true will require
setting the parameters mentioned above.
2012-05-30 19:12:25 -07:00
Branan Purvine-Riley
703c0bde30 Update the module to the new layout for easier testing and packaging
* Add spec_full, spec_prep, and spec_clean targets
* Rename Gemfile -> .gemfile for less cluttered module packages
* Append fixtuers to modulepath instead of overwriting
* Use a more complete .gitignore
* Remove the recursive symlink
2012-05-24 16:55:22 -07:00
John Chilton
41be95e262 Add spec's to test setting default storage engine. 2012-05-15 12:42:32 -05:00
Dan Bode
360f8d968a Merge pull request #64 from runningman/backup
Added mysql::backup class.
2012-05-10 22:44:52 -07:00
Dan Bode
ed62777045 Merge pull request #63 from runningman/security
Added mysql::server::account_security class.
2012-05-04 18:04:11 -07:00
Branan Purvine-Riley
6a81a2f687 (#14316) make privileges case-insensitive 2012-05-04 10:04:46 -07:00
Michael Arnold
c06f82eef7 Update privilege names to comply with 3fbb54de6c.
Forgot to update the rspec test.
2012-05-03 19:58:25 -07:00
Branan Purvine-Riley
29cef3f71a Add initial spec for mysql grant provider 2012-05-01 17:01:47 -07:00
Michael Stahnke
f750b39ad5 Merge pull request #61 from runningman/java
Java
2012-04-29 15:24:11 -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
4158137278 Added mysql::backup class.
Installs a mysql backup script, cronjob, and priviledged backup user. 
Includes rspec tests and updated documentation.
2012-04-23 22:53:59 -07:00
Michael Arnold
0743faa6db Added tests to mysql::java. 2012-04-23 21:44:31 -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
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
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
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
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
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
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
Dan Bode
907331a750 Add rspec-puppet tests for mysql::config 2012-03-15 00:54:33 -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
Carl Caum
0783c748b7 Only notify Exec to import sql if sql is given
Commit e3b9fd broke the mysql::db defined type by always notifying the
Exec[${name}-import-import] resource even though the resource may not be
declared if the $sql parameter was not given. This commit adds an
in-selector to only notify the Exec resource if the $sql parameter has a
value.  More extensive rspec-puppet tests have been provided to protect
against this in the future.
2011-12-19 20:48:47 -08:00
Carl Caum
e3b9fd90a6 (#11508) Only load sql_scripts on DB creation
Previous to this commit, if the sql parameter was provided to a
declaration of the mysql::db defined type, the defined type would always
load the sql script on every catalog run. This changes the exec that
loads that sql script to be refreshonly unless the enforce_sql parameter
is set to true.
2011-12-19 07:25:35 -08:00