Commit graph

161 commits

Author SHA1 Message Date
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
Jeff McCune
4f02a86ca2 Merge pull request #28 from ccaum/feature/master/11508_set_sql_load_refreshonly
(#11508) Only load sql_scripts on DB creation
2011-12-19 18:41:38 -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
Carl Caum
79579125c5 Merge pull request #27 from justintime/conf.d-resource
Bug #11375: puppetlabs-mysql fails on CentOS/RHEL

Reviewed by Carl Caum <carl@puppetlabs.com>
2011-12-14 15:00:54 -08:00
Justin Ellison
3058feb1f3 Require not needed due to implicit dependencies 2011-12-13 18:57:38 -06:00
Justin Ellison
a557b8d7c8 Bug #11375: puppetlabs-mysql fails on CentOS/RHEL 2011-12-13 17:36:56 -06:00
Ken Barber
0b07743237 Merge branch 'ticket/11184-wildcard_hostnames'
* ticket/11184-wildcard_hostnames:
  (#11184) Allow wildcards in account host names
2011-12-05 23:41:10 +00:00
Christian G. Warden
0292456f76 (#11184) Allow wildcards in account host names
Allow wildcard in the host part of MySQL accounts:

http://dev.mysql.com/doc/refman/5.0/en/grant.html#grant-accounts-passwords

For the examples, Add a database_user test that contains a wildcard in the host
name part.

Also in the examples, pass root_password to mysql::server in config_hash.
2011-12-05 23:39:47 +00:00
Ken Barber
f2f773c44f Merge branch 'ticket/11185-fully-qualify'
* ticket/11185-fully-qualify:
  (#11185) Fully qualify $operatingsystem
2011-12-05 23:35:38 +00: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
Ken Barber
c9030cdcd9 Merge pull request #22 from webfactory/optional_commands
Fix (#10882) by making all commands optional.
2011-11-16 07:53:41 -08:00
Matthias Pigulla
b0ff433860 Fix (#10882) by making all commands optional. 2011-11-16 16:49:31 +01:00
Ken Barber
68e4c6af32 Merge pull request #21 from bodepd/config_hash_update
(#10391) Update docs to reflect config_hash.
2011-10-31 11:06:00 -07:00
Ken Barber
7e06236717 Merge pull request #20 from bodepd/manage_conf_dir
(#10390) Manage /etc/mysql directory.
2011-10-31 11:04:08 -07:00
Dan Bode
e1cb227803 (#10391) Update docs to reflect config_hash.
Configuration was moved to config hash param of the mysql::server class.

This was done so that additional parameters can be
added in the future and not have to be added to
both mysql::config and mysql::server as class params

This patch updates the README, docs, and examples to
correctly use the parameter.
2011-10-31 11:01:57 -07:00
Dan Bode
319644cec5 (#10390) Manage /etc/mysql directory.
/etc/mysql/my.cnf was being managed and /etc/mysql was not.
This was causing failures if the directory was not created
by the package.

This commit manages it in case it was not created by the package.
2011-10-31 10:39:08 -07:00
Dan Bode
bc6ed1dfc6 Merge pull request #18 from lsc/patch-1
Edited README via GitHub
2011-08-22 08:38:09 -07:00
Lowe Schmidt
f7e398780c Edited README via GitHub 2011-08-22 22:51:50 +03:00
Dan Bode
29bdca5a76 Merge pull request #17 from bodepd/issue/master/dep_on_cond_resource
Fixed dep issue.
2011-06-24 11:03:12 -07:00
Dan Bode
eb608164e4 Fixed dep issue.
the exec was set to depend on a conditional resource
resulting in possible errors. Reversed the conditional
to be set on the conditonal resource.
2011-06-24 10:28:55 -07:00
Dan Bode
9f77e8a24a Merge pull request #14 from bodepd/issue/master/root_pw_cleanup
Cleaned up implementation for setting root pw
2011-06-24 10:17:46 -07:00
Dan Bode
acef166ed7 Merge pull request #16 from kbarber/issue/master/15_incorrect-resource-names-in-monitor
15 - Fix resource names in monitor.pp
2011-06-24 09:08:57 -07:00
Ken Barber
a1bd55423b 15 - Fix resource names in monitor.pp 2011-06-24 15:05:46 +01:00
Dan Bode
0963d2eb4f Cleaned up implementation for setting root pw
- param of rather or not to set rootpw in
/etc/my.cnf

- fixed bug for rootpw conditional

- config files are only used for managing rootpw
2011-06-23 23:41:38 -07:00
Dan Bode
3a1672c23c Merge pull request #13 from bodepd/issue/master/fixed_root_pw
Fixed bug with updating mysql root pw.
2011-06-23 16:55:25 -07:00
Dan Bode
b93e0f65cb Fixed bug with updating mysql root pw.
root_password was being set to an undefined variable.
2011-06-23 16:45:28 -07:00
Dan Bode
aaffc471c1 Merge pull request #12 from bodepd/feauture/master/expand_config
Created config class and extended params.
2011-06-22 15:39:08 -07:00
Dan Bode
a24881a682 Created config class and extended params.
It makes way more sense to just allow it as a 
class param.

Also added some additional config for setting bind
address and port.

Added management of /etc/mysql/my.cnf

Documented a dependency on create_resources 0.0.1
2011-06-22 11:38:11 -07:00
Dan Bode
dbcdaf98d1 Merge pull request #11 from bodepd/issue/master/set_charset_on_create
Database should set charset on create.
2011-06-17 15:49:34 -07:00
Dan Bode
0f3f58f6ca Merge pull request #9 from glarizza/feature/master/password_ordering
Mysql Module Fixes
2011-06-17 15:49:15 -07:00
Dan Bode
4774c63435 Database should set charset on create.
Previously, the charset of the database was not
being set on create, causing puppet to have to
potentially run twice to update it.
2011-06-16 21:57:06 -07:00
Dan Bode
190fd129fc Merge pull request #10 from glarizza/feature/master/service_path_fix
Feature/master/service path fix
2011-06-16 17:34:10 -07:00
Gary Larizza
bba9589770 Fix service path
Restrict the path for the service binary to '/sbin/:/usr/sbin/'
2011-06-16 16:33:09 -07:00
Dan Bode
273aeb4ad0 Merge pull request #8 from glarizza/feature/master/ruby_mysql_fix
Refactor ruby package provider
2011-06-16 15:37:29 -07:00
Gary Larizza
1d16d45f4e Fix root password ordering issue
This commit fixes an ordering issue for setting the 
mysql root password.
2011-06-16 15:35:16 -07: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
Gary Larizza
c15ef0ad1b Remove path to service binary
This commit removes the path to the service binary (which didn't
work on CentOS) and instead added a path parameter.
2011-06-16 15:32:07 -07:00
Gary Larizza
f4291778cc Refactor ruby package provider
Allow a parameter for the ruby-mysql package provider.  This
will allow you to use providers other than gem.
2011-06-16 14:03:05 -07:00
Jeff McCune
3c1793ac73 Merge pull request #5 from bodepd/feature/master/no_root_debian
Debian should not manage root password
2011-06-16 11:21:25 -07:00
Dan Bode
fb00c75ced Debian should not manage root password
- previously setting the root password failed on 
  Debian b/c a root password was already set
  during package installation
- Debian already installs mysql with a 
   maintainance user capable of performing any
   required database actions.
- this patch splits setting of root password to
  be redhat specific.
- as a consequence, users will not be able to 
  specify a root password on Debian (which 
  needs to be opened as a seperate ticket)
2011-06-16 10:49:15 -07:00
Dan Bode
d6c8c2c3b2 Merge pull request #2 from bodepd/master
corrected spelling of David's last name
2011-06-06 08:46:26 -07:00
Dan Bode
bdc46d1505 Corrected the spelling of David's name (oops!) 2011-06-05 20:05:42 -07:00
Dan Bode
645897d414 Release 0.0.1 2011-06-03 13:38:29 -07:00
Dan Bode
e9b65c49a2 vastly improved READE 2011-06-03 13:37:59 -07:00