Commit graph

112 commits

Author SHA1 Message Date
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
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
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
Dan Bode
0832a2c1d2 Notify mysql restart from set_mysql_rootpw exec
Since the set_mysql_rootpw exec is only created
when the password is being managed, having the mysql
resource (which always exists) reference it leads
to an error when the mysql root password is not being
managed.

This commit resolves the issue by having the set
mysql rootpw exec notify the mysql restart if it
changes.
2012-03-14 23:12:12 -07:00
Nan Liu
8265d28c66 Add documentation related to osfamily fact.
In the refacter, osfamily requires facter 1.6.1+ so the readme is
updated with more information related to this change.
2012-03-15 01:11:11 -05:00
Dan Bode
e472d3b48d Mention osfamily value in failure message
This commit displays the detected osfamily that
is not supported by this module.

It was previously unclear to users seeing the failure
what the value of osfamily was that was causing the
failure.
2012-03-14 23:07:02 -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
Dan Bode
82d0ae59cf Merge pull request #41 from nanliu/tb/update
Refactor mysql module.
2012-03-14 22:19:02 -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
Justin Ellison
1e926b4516 Ruby and Python's MySQL libraries are named differently on different
distros.
2012-02-28 10:34:19 -08:00
Justin Ellison
09af083e3c Per @ghoneycutt, we should fail explicitly and explain why. 2012-02-28 10:34:19 -08:00
Justin Ellison
7513d0308c Removing duplicate declaration 2012-02-28 10:34:19 -08:00
Justin Ellison
663e97ca2f Use socket value from params class instead of hardcoding. 2012-02-28 10:34:19 -08:00
Justin Ellison
031a47dfad Instead of hardcoding the config file target, pull it from mysql::params 2012-02-28 10:34:19 -08:00
Justin Ellison
360eacd4e0 Moved $socket to within the case to toggle between distros. Added
a $config_file variable to allow per-distro config file destinations.
2012-02-28 10:34:19 -08:00
Justin Ellison
3462e6bf13 Pretty sure this is a bug, 99% of Linux distros out there won't
ever hit the default.

Moving the variables to just after the case statement will set
them, removing the default part of the case will cause this class
to fail on unsupported distros.
2012-02-28 10:34:19 -08:00
Ryan Coleman
0fe69a29ab Merge pull request #40 from blkperl/change_readme_to_markdown
Changed the README to use markdown
+1000
2012-02-23 14:15:05 -08:00