Commit graph

104 commits

Author SHA1 Message Date
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
William Van Hevelingen
3b7dfeb608 Changed the README to use markdown
Switched the README to use markdown instead of plain text
as is standard with other puppetlabs modules
2012-02-09 23:28:43 -08:00
Ralph Luchs
44aa2cfabb Merge pull request #38 from grooverdan/ticket-12414/mysqltuner.pl-update
(#12412) mysqltuner.pl update
2012-02-03 12:17:45 -08:00
Daniel Black
b809e6fd75 (#12412) mysqltuner.pl update
This was an update from the upstream source:
https://github.com/rackerhacker/MySQLTuner-perl/blob/master/mysqltuner.pl
2012-02-04 07:08:08 +11:00
Ken Barber
2f5615688f Merge branch 'ticket/master/11363-missing_privs'
* ticket/master/11363-missing_privs:
  (#11363) Add two missing privileges to grant: event_priv, trigger_priv
2011-12-30 16:37:11 +00: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
Jeff McCune
a0ed6a1483 (minor) Fixup typos in Modulefile metadata
Without this patch there is a typo in the dependency line and Puppet
Labs is concatenated together which is not how I normally see the author
string represented in modules.

Reviewed-by: Josh Cooper
2011-12-20 09:23:58 -08:00
Jeff McCune
f5f9cc5367 Merge branch 'bug/master/db_notify_import_sql_if_given'
* bug/master/db_notify_import_sql_if_given:
  Only notify Exec to import sql if sql is given

Closes #29
2011-12-19 23:45:35 -08: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