Commit graph

161 commits

Author SHA1 Message Date
Dan Bode
3ffa0bd66b Merge pull request #73 from razorsedge/mysqladmin_passwd
Escape $root_password during execs.
2012-08-09 09:26:54 -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
Dan Bode
583e60fe84 Merge pull request #88 from branan/release_0.4.0
Update module for 0.4.0
2012-07-24 13:10:10 -07:00
Branan Purvine-Riley
14b612e26f Update module for 0.4.0 2012-07-24 12:20:03 -07:00
Dan Bode
be493c3a41 Merge pull request #87 from branan/fix_rspec_211
Fix negative tests on rspec 2.11
2012-07-23 16:45:08 -07:00
Branan Purvine-Riley
5c4f14e386 Fix negative tests on rspec 2.11 2012-07-23 16:39:37 -07:00
Branan Purvine-Riley
66c17cd14c Merge pull request #82 from agerlic/escape_database_name
escape database name
2012-07-16 11:19:32 -07:00
Branan Purvine-Riley
514eca4298 Merge pull request #83 from agerlic/add_db_to_database_grant
add missing db param to database_grant
2012-07-02 17:59:49 -07:00
Alexandre Gerlic
de0f749ea5 add missing db param to database_grant 2012-06-21 17:27:39 +02:00
Alexandre Gerlic
2817f362d5 escape database name 2012-06-20 23:58:34 +02:00
Branan Purvine-Riley
920d25d273 Merge pull request #81 from bodepd/enabled_param
Add enabled parameter to mysql::server
2012-06-18 15:48:51 -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
Nan Liu
01fe9e55b7 Merge pull request #79 from branan/use_spechelper_gem
Switch to using the puppetlabs_spec_helper gem for common files
2012-06-08 13:37:57 -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
Nan Liu
d66607d21a Merge pull request #78 from branan/merge_freebsd
Add freebsd support.
2012-05-31 09:18:15 -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
Dan Bode
ece11c57fa Merge pull request #77 from branan/updated_module_layout
Update the module to the new layout for easier testing and packaging
2012-05-25 16:10:53 -07:00
Branan Purvine-Riley
262449068d Add a clean task 2012-05-25 11:09:21 -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
Dan Bode
c1e3bcabf4 Merge pull request #76 from brdude/master
Default types hacks not needed.
2012-05-22 16:59:40 -07:00
Rodrigo Menezes
f0f9e76db7 Default types hacks not needed.
Default types hacks not needed.
2012-05-22 16:50:46 -07:00
Dan Bode
65de49f090 Merge pull request #74 from jmchilton/specify_engine
Allow consumer to specify default storage engine for MySQL server.
2012-05-15 18:07:46 -07:00
John Chilton
41be95e262 Add spec's to test setting default storage engine. 2012-05-15 12:42:32 -05:00
John Chilton
0f0928ae88 Allow specification of storage engine. 2012-05-15 12:37:03 -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
0178347392 Merge pull request #72 from branan/travisci
Update Travis CI config
2012-05-08 10:25:44 -07:00
Branan Purvine-Riley
e3a0703c6c Add mocha to gemfile 2012-05-08 10:10:37 -07:00
Branan Purvine-Riley
02089f4faf Update travis config for our testing targets 2012-05-08 10:10:24 -07:00
Dan Bode
05f7807fc0 Merge pull request #71 from runningman/security
Fixed regex of database user.
2012-05-06 23:56:01 -07:00
Michael Arnold
eaf9ee50f6 Fixed regex of database user.
The incorrect regex did not all for the anonymous mysql users to be
removed via the mysql::server::account_security class.  The regex is now
increased to cover for @localhost and @%.
2012-05-06 23:17:49 -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
Nan Liu
c2b90348b2 Merge pull request #70 from branan/14221_forge_update
(#14221) Update Modulefile and CHANGELOG for next release
2012-05-04 15:09:42 -07:00
Branan Purvine-Riley
5185cf422c (#14221) Update Modulefile and CHANGELOG for next release 2012-05-04 15:06:50 -07:00
Nan Liu
22f59f0b5d Merge pull request #68 from runningman/wild_host
Allow wildcard host assignment with sql.
2012-05-04 14:52:28 -07:00
Nan Liu
73a07bfbf3 Merge pull request #69 from branan/case_insensitive
(#14316) Make privileges case-insensitive
2012-05-04 14:50:16 -07:00
Branan Purvine-Riley
6a81a2f687 (#14316) make privileges case-insensitive 2012-05-04 10:04:46 -07:00
Michael Arnold
8dc651c0e2 Simplify Exec["${name}-import"]
Show that mysql:db can also import SQL from a file in order to, for
example, initialize a database schema.  Since it requires class
mysql::server, we assume to run all commands as the root mysql user
against the local mysql server.
2012-05-03 23:35:51 -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
Michael Arnold
70d14e84d7 Update privilege names to comply with 3fbb54de6c. 2012-05-03 19:54:32 -07:00
Dan Bode
3fbb54de6c Merge pull request #65 from branan/14218_query_db_for_permissions
Query the database for possible permissions
2012-05-01 17:14:52 -07:00
Branan Purvine-Riley
29cef3f71a Add initial spec for mysql grant provider 2012-05-01 17:01:47 -07:00
Branan Purvine-Riley
d0a5b1c534 remove $safe_grant
Now that the ruby can query permissions sanely, filtering 'all' is
no longer necessary
2012-05-01 17:01:06 -07:00
Branan Purvine-Riley
4485dbb95f Remove the global *_PRIVS variables 2012-05-01 17:00:46 -07:00
Michael Arnold
fbee243ff6 Rip out backup class parameter defaults.
No need for setting default values to class parameters and then testing
to confirm they are set to non-default values.  Simply do not give them
values to begin with.
2012-04-30 08:07:46 -07:00
Michael Stahnke
e6b45ebfae Merge pull request #60 from geogdog/patch-1
I noticed the following message whilst provisioning using this module:
2012-04-29 15:24:33 -07:00
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
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