Commit graph

18 commits

Author SHA1 Message Date
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
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
Derek Higgins
9ff99ba336 set platform dependent error logfile location 2012-04-12 00:06:35 +00: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
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
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
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
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
Christian G. Warden
92660497a2 (#11185) Fully qualify $operatingsystem
Fully qualify $operatingsystem from root scope as $::operatingsystem. This
should help remove the warnings in Puppet 2.7.x.
2011-12-05 23:34:53 +00:00
Gary Larizza
6b98633cc8 Add client package variable
The mysql client package is different on CentOS. This commit adds
a parameter for the mysql client package and defaults to a variable
in the mysql::params class.
2011-06-16 15:34:04 -07:00
Dan Bode
344d644d5c Added documentation and license to module. 2011-05-31 20:47:19 -07:00
Dan Bode
0b5cc21348 cleaned up style a little:
- updated mysql::ruby to use params value for
  package_name
- updated server to use params value for service
  and package
- clarified some param names to make them more
  consistent
2011-05-26 18:11:24 -07:00
Dan Bode
d28f0e0327 adding first commit for mysql. 2011-05-24 23:22:43 -07:00