freighthop 0.0.6 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Puppetfile +1 -0
- data/Puppetfile.lock +3 -0
- data/Vagrantfile +1 -1
- data/bin/fh +2 -78
- data/lib/freighthop/cli/help.rb +69 -0
- data/lib/freighthop/cli/ssh.rb +46 -0
- data/lib/freighthop/cli/vagrant.rb +26 -0
- data/lib/freighthop/cli.rb +40 -0
- data/lib/freighthop/config.rb +4 -0
- data/lib/freighthop/vagrant_env.rb +24 -0
- data/lib/freighthop/version.rb +1 -1
- data/lib/freighthop.rb +7 -4
- data/local_modules/freighthop/manifests/database/mysql.pp +20 -0
- data/local_modules/freighthop/manifests/database/postgres.pp +6 -6
- data/local_modules/freighthop/manifests/database.pp +6 -8
- data/local_modules/freighthop/manifests/init.pp +1 -8
- data/local_modules/freighthop/manifests/params.pp +0 -3
- data/modules/apt/CHANGELOG +12 -2
- data/modules/apt/Gemfile +6 -5
- data/modules/apt/Gemfile.lock +40 -5
- data/modules/apt/Modulefile +1 -1
- data/modules/apt/README.md +2 -1
- data/modules/apt/Rakefile +1 -0
- data/modules/apt/manifests/init.pp +4 -1
- data/modules/apt/manifests/ppa.pp +1 -1
- data/modules/apt/manifests/update.pp +1 -0
- data/modules/apt/metadata.json +21 -13
- data/modules/apt/spec/defines/ppa_spec.rb +3 -3
- data/modules/apt/spec/defines/source_spec.rb +2 -2
- data/modules/apt/spec/spec_helper_system.rb +30 -0
- data/modules/apt/spec/system/apt_builddep_spec.rb +38 -0
- data/modules/apt/spec/system/apt_key_spec.rb +53 -0
- data/modules/apt/spec/system/apt_ppa_spec.rb +59 -0
- data/modules/apt/spec/system/apt_source_spec.rb +51 -0
- data/modules/apt/spec/system/basic_spec.rb +10 -0
- data/modules/apt/spec/system/class_spec.rb +20 -0
- data/modules/apt/templates/source.list.erb +2 -2
- data/modules/freighthop/manifests/database/mysql.pp +20 -0
- data/modules/freighthop/manifests/database/postgres.pp +6 -6
- data/modules/freighthop/manifests/database.pp +6 -8
- data/modules/freighthop/manifests/init.pp +1 -8
- data/modules/freighthop/manifests/params.pp +0 -3
- data/modules/mysql/CHANGELOG +403 -0
- data/modules/mysql/Gemfile +24 -0
- data/modules/mysql/Gemfile.lock +129 -0
- data/modules/mysql/LICENSE +201 -0
- data/modules/mysql/Modulefile +9 -0
- data/modules/mysql/README.md +492 -0
- data/modules/mysql/Rakefile +2 -0
- data/modules/mysql/TODO +8 -0
- data/modules/mysql/files/mysqltuner.pl +966 -0
- data/modules/mysql/lib/puppet/parser/functions/mysql_deepmerge.rb +52 -0
- data/modules/mysql/lib/puppet/parser/functions/mysql_password.rb +15 -0
- data/modules/mysql/lib/puppet/parser/functions/mysql_strip_hash.rb +21 -0
- data/modules/mysql/lib/puppet/provider/database/mysql.rb +52 -0
- data/modules/mysql/lib/puppet/provider/database_grant/mysql.rb +210 -0
- data/modules/mysql/lib/puppet/provider/database_user/mysql.rb +76 -0
- data/modules/mysql/lib/puppet/provider/mysql.rb +67 -0
- data/modules/mysql/lib/puppet/provider/mysql_database/mysql.rb +68 -0
- data/modules/mysql/lib/puppet/provider/mysql_grant/mysql.rb +115 -0
- data/modules/mysql/lib/puppet/provider/mysql_user/mysql.rb +115 -0
- data/modules/mysql/lib/puppet/type/database.rb +21 -0
- data/modules/mysql/lib/puppet/type/database_grant.rb +79 -0
- data/modules/mysql/lib/puppet/type/database_user.rb +31 -0
- data/modules/mysql/lib/puppet/type/mysql_database.rb +22 -0
- data/modules/mysql/lib/puppet/type/mysql_grant.rb +72 -0
- data/modules/mysql/lib/puppet/type/mysql_user.rb +45 -0
- data/modules/mysql/manifests/backup.pp +31 -0
- data/modules/mysql/manifests/bindings/java.pp +10 -0
- data/modules/mysql/manifests/bindings/perl.pp +10 -0
- data/modules/mysql/manifests/bindings/php.pp +10 -0
- data/modules/mysql/manifests/bindings/python.pp +10 -0
- data/modules/mysql/manifests/bindings/ruby.pp +10 -0
- data/modules/mysql/manifests/bindings.pp +33 -0
- data/modules/mysql/manifests/client/install.pp +8 -0
- data/modules/mysql/manifests/client.pp +27 -0
- data/modules/mysql/manifests/db.pp +59 -0
- data/modules/mysql/manifests/init.pp +100 -0
- data/modules/mysql/manifests/params.pp +230 -0
- data/modules/mysql/manifests/server/account_security.pp +22 -0
- data/modules/mysql/manifests/server/backup.pp +56 -0
- data/modules/mysql/manifests/server/config.pp +31 -0
- data/modules/mysql/manifests/server/install.pp +9 -0
- data/modules/mysql/manifests/server/monitor.pp +24 -0
- data/modules/mysql/manifests/server/mysqltuner.pp +9 -0
- data/modules/mysql/manifests/server/providers.pp +8 -0
- data/modules/mysql/manifests/server/root_password.pp +21 -0
- data/modules/mysql/manifests/server/service.pp +19 -0
- data/modules/mysql/manifests/server.pp +69 -0
- data/modules/mysql/metadata.json +289 -0
- data/modules/mysql/spec/classes/mysql_bindings_spec.rb +58 -0
- data/modules/mysql/spec/classes/mysql_client_spec.rb +16 -0
- data/modules/mysql/spec/classes/mysql_server_account_security_spec.rb +41 -0
- data/modules/mysql/spec/classes/mysql_server_backup_spec.rb +112 -0
- data/modules/mysql/spec/classes/mysql_server_monitor_spec.rb +31 -0
- data/modules/mysql/spec/classes/mysql_server_mysqltuner_spec.rb +5 -0
- data/modules/mysql/spec/classes/mysql_server_spec.rb +162 -0
- data/modules/mysql/spec/defines/mysql_db_spec.rb +51 -0
- data/modules/mysql/spec/spec.opts +6 -0
- data/modules/mysql/spec/spec_helper.rb +5 -0
- data/modules/mysql/spec/spec_helper_system.rb +28 -0
- data/modules/mysql/spec/system/mysql_account_delete_spec.rb +35 -0
- data/modules/mysql/spec/system/mysql_backup_spec.rb +77 -0
- data/modules/mysql/spec/system/mysql_bindings_spec.rb +90 -0
- data/modules/mysql/spec/system/mysql_db_spec.rb +61 -0
- data/modules/mysql/spec/system/mysql_server_monitor_spec.rb +30 -0
- data/modules/mysql/spec/system/mysql_server_root_password_spec.rb +71 -0
- data/modules/mysql/spec/system/mysql_server_spec.rb +85 -0
- data/modules/mysql/spec/system/types/mysql_grant_spec.rb +314 -0
- data/modules/mysql/spec/system/types/mysql_user_spec.rb +35 -0
- data/modules/mysql/spec/unit/mysql_password_spec.rb +27 -0
- data/modules/mysql/spec/unit/puppet/functions/mysql_deepmerge_spec.rb +77 -0
- data/modules/mysql/spec/unit/puppet/provider/database/mysql_spec.rb +86 -0
- data/modules/mysql/spec/unit/puppet/provider/database_grant/mysql_spec.rb +95 -0
- data/modules/mysql/spec/unit/puppet/provider/database_user/mysql_spec.rb +119 -0
- data/modules/mysql/spec/unit/puppet/provider/mysql_database/mysql_spec.rb +118 -0
- data/modules/mysql/spec/unit/puppet/provider/mysql_user/mysql_spec.rb +130 -0
- data/modules/mysql/spec/unit/puppet/type/mysql_database_spec.rb +29 -0
- data/modules/mysql/spec/unit/puppet/type/mysql_user_spec.rb +30 -0
- data/modules/mysql/templates/my.cnf.erb +17 -0
- data/modules/mysql/templates/my.cnf.pass.erb +7 -0
- data/modules/mysql/templates/my.conf.cnf.erb +17 -0
- data/modules/mysql/templates/mysqlbackup.sh.erb +57 -0
- data/modules/mysql/tests/backup.pp +8 -0
- data/modules/mysql/tests/bindings.pp +3 -0
- data/modules/mysql/tests/init.pp +1 -0
- data/modules/mysql/tests/java.pp +1 -0
- data/modules/mysql/tests/mysql_database.pp +12 -0
- data/modules/mysql/tests/mysql_grant.pp +5 -0
- data/modules/mysql/tests/mysql_user.pp +23 -0
- data/modules/mysql/tests/perl.pp +1 -0
- data/modules/mysql/tests/python.pp +1 -0
- data/modules/mysql/tests/ruby.pp +1 -0
- data/modules/mysql/tests/server/account_security.pp +4 -0
- data/modules/mysql/tests/server/config.pp +11 -0
- data/modules/mysql/tests/server.pp +3 -0
- data/modules/postgresql/Changelog +191 -0
- data/modules/postgresql/Gemfile +1 -0
- data/modules/postgresql/Gemfile.lock +9 -0
- data/modules/postgresql/LICENSE +198 -12
- data/modules/postgresql/Modulefile +2 -2
- data/modules/postgresql/NOTICE +14 -0
- data/modules/postgresql/README.md +435 -184
- data/modules/postgresql/files/validate_postgresql_connection.sh +31 -0
- data/modules/postgresql/lib/puppet/provider/postgresql_conf/parsed.rb +37 -0
- data/modules/postgresql/lib/puppet/provider/postgresql_psql/ruby.rb +4 -0
- data/modules/postgresql/lib/puppet/type/postgresql_conf.rb +31 -0
- data/modules/postgresql/lib/puppet/type/postgresql_psql.rb +4 -0
- data/modules/postgresql/manifests/client.pp +17 -16
- data/modules/postgresql/manifests/globals.pp +95 -0
- data/modules/postgresql/manifests/lib/devel.pp +15 -0
- data/modules/postgresql/manifests/lib/java.pp +15 -0
- data/modules/postgresql/manifests/lib/python.pp +13 -0
- data/modules/postgresql/manifests/params.pp +127 -222
- data/modules/postgresql/manifests/repo/apt_postgresql_org.pp +30 -0
- data/modules/postgresql/manifests/repo/yum_postgresql_org.pp +38 -0
- data/modules/postgresql/manifests/repo.pp +22 -0
- data/modules/postgresql/manifests/server/config.pp +113 -0
- data/modules/postgresql/manifests/server/config_entry.pp +43 -0
- data/modules/postgresql/manifests/server/contrib.pp +27 -0
- data/modules/postgresql/manifests/server/database.pp +75 -0
- data/modules/postgresql/manifests/server/database_grant.pp +18 -0
- data/modules/postgresql/manifests/server/db.pp +36 -0
- data/modules/postgresql/manifests/server/firewall.pp +21 -0
- data/modules/postgresql/manifests/server/grant.pp +81 -0
- data/modules/postgresql/manifests/server/initdb.pp +52 -0
- data/modules/postgresql/manifests/server/install.pp +49 -0
- data/modules/postgresql/manifests/server/passwd.pp +34 -0
- data/modules/postgresql/manifests/server/pg_hba_rule.pp +54 -0
- data/modules/postgresql/manifests/server/plperl.pp +27 -0
- data/modules/postgresql/manifests/server/reload.pp +15 -0
- data/modules/postgresql/manifests/{role.pp → server/role.pp} +19 -33
- data/modules/postgresql/manifests/server/service.pp +40 -0
- data/modules/postgresql/manifests/{table_grant.pp → server/table_grant.pp} +4 -4
- data/modules/postgresql/manifests/server/tablespace.pp +42 -0
- data/modules/postgresql/manifests/server.pp +61 -83
- data/modules/postgresql/manifests/validate_db_connection.pp +49 -50
- data/modules/postgresql/metadata.json +123 -73
- data/modules/postgresql/spec/spec_helper_system.rb +13 -1
- data/modules/postgresql/spec/system/client_spec.rb +22 -0
- data/modules/postgresql/spec/system/common_patterns_spec.rb +53 -0
- data/modules/postgresql/spec/system/contrib_spec.rb +33 -0
- data/modules/postgresql/spec/system/lib/devel_spec.rb +22 -0
- data/modules/postgresql/spec/system/lib/java_spec.rb +25 -0
- data/modules/postgresql/spec/system/lib/python_spec.rb +24 -0
- data/modules/postgresql/spec/system/postgresql_psql_spec.rb +51 -0
- data/modules/postgresql/spec/system/server/config_entry_spec.rb +32 -0
- data/modules/postgresql/spec/system/server/database_grant_spec.rb +54 -0
- data/modules/postgresql/spec/system/server/database_spec.rb +35 -0
- data/modules/postgresql/spec/system/server/db_spec.rb +143 -0
- data/modules/postgresql/spec/system/server/grant_spec.rb +55 -0
- data/modules/postgresql/spec/system/server/pg_hba_rule_spec.rb +85 -0
- data/modules/postgresql/spec/system/server/plperl_spec.rb +29 -0
- data/modules/postgresql/spec/system/server/role_spec.rb +103 -0
- data/modules/postgresql/spec/system/server/table_grant_spec.rb +72 -0
- data/modules/postgresql/spec/system/server/tablespace_spec.rb +74 -0
- data/modules/postgresql/spec/system/server_spec.rb +217 -0
- data/modules/postgresql/spec/system/validate_db_connection_spec.rb +91 -0
- data/modules/postgresql/spec/unit/classes/client_spec.rb +27 -2
- data/modules/postgresql/spec/unit/classes/globals_spec.rb +28 -0
- data/modules/postgresql/spec/unit/classes/lib/devel_spec.rb +12 -0
- data/modules/postgresql/spec/unit/classes/{postgresql_java_spec.rb → lib/java_spec.rb} +9 -19
- data/modules/postgresql/spec/unit/classes/lib/python_spec.rb +31 -0
- data/modules/postgresql/spec/unit/classes/params_spec.rb +2 -1
- data/modules/postgresql/spec/unit/classes/repo_spec.rb +17 -0
- data/modules/postgresql/spec/unit/classes/server/contrib_spec.rb +42 -0
- data/modules/postgresql/spec/unit/classes/server/initdb_spec.rb +28 -0
- data/modules/postgresql/spec/unit/classes/server/plperl_spec.rb +45 -0
- data/modules/postgresql/spec/unit/classes/server_spec.rb +83 -2
- data/modules/postgresql/spec/unit/defines/server/config_entry_spec.rb +23 -0
- data/modules/postgresql/spec/unit/defines/server/database_grant_spec.rb +26 -0
- data/modules/postgresql/spec/unit/defines/server/database_spec.rb +16 -0
- data/modules/postgresql/spec/unit/defines/server/db_spec.rb +28 -0
- data/modules/postgresql/spec/unit/defines/{database_grant_spec.rb → server/grant_spec.rb} +7 -4
- data/modules/postgresql/spec/unit/defines/{pg_hba_rule_spec.rb → server/pg_hba_rule_spec.rb} +59 -2
- data/modules/postgresql/spec/unit/defines/server/role_spec.rb +23 -0
- data/modules/postgresql/spec/unit/defines/server/table_grant_spec.rb +27 -0
- data/modules/postgresql/spec/unit/defines/server/tablespace_spec.rb +23 -0
- data/modules/postgresql/spec/unit/defines/validate_db_connection_spec.rb +22 -9
- data/modules/postgresql/spec/unit/provider/postgresql_conf/parsed_spec.rb +112 -0
- data/modules/postgresql/spec/unit/puppet/provider/postgresql_psql/ruby_spec.rb +29 -0
- data/modules/postgresql/spec/unit/puppet/type/postgresql_psql_spec.rb +1 -0
- data/modules/postgresql/spec/unit/type/postgresql_conf_spec.rb +50 -0
- metadata +177 -53
- data/modules/postgresql/examples/init.pp +0 -1
- data/modules/postgresql/examples/official-postgresql-repos.pp +0 -19
- data/modules/postgresql/examples/postgresql_database.pp +0 -22
- data/modules/postgresql/examples/postgresql_db.pp +0 -30
- data/modules/postgresql/examples/postgresql_grant.pp +0 -14
- data/modules/postgresql/examples/postgresql_pg_hba_rule.pp +0 -18
- data/modules/postgresql/examples/postgresql_pgconf_extras.pp +0 -19
- data/modules/postgresql/examples/postgresql_tablespace.pp +0 -73
- data/modules/postgresql/examples/postgresql_user.pp +0 -28
- data/modules/postgresql/examples/server.pp +0 -10
- data/modules/postgresql/lib/facter/postgres_default_version.rb +0 -69
- data/modules/postgresql/manifests/config/afterservice.pp +0 -47
- data/modules/postgresql/manifests/config/beforeservice.pp +0 -171
- data/modules/postgresql/manifests/config.pp +0 -74
- data/modules/postgresql/manifests/contrib.pp +0 -29
- data/modules/postgresql/manifests/database.pp +0 -85
- data/modules/postgresql/manifests/database_grant.pp +0 -35
- data/modules/postgresql/manifests/database_user.pp +0 -60
- data/modules/postgresql/manifests/db.pp +0 -77
- data/modules/postgresql/manifests/devel.pp +0 -27
- data/modules/postgresql/manifests/grant.pp +0 -77
- data/modules/postgresql/manifests/init.pp +0 -145
- data/modules/postgresql/manifests/initdb.pp +0 -52
- data/modules/postgresql/manifests/java.pp +0 -29
- data/modules/postgresql/manifests/package_source/apt_postgresql_org.pp +0 -21
- data/modules/postgresql/manifests/package_source/yum_postgresql_org.pp +0 -30
- data/modules/postgresql/manifests/pg_hba.pp +0 -19
- data/modules/postgresql/manifests/pg_hba_rule.pp +0 -41
- data/modules/postgresql/manifests/plperl.pp +0 -24
- data/modules/postgresql/manifests/psql.pp +0 -56
- data/modules/postgresql/manifests/python.pp +0 -18
- data/modules/postgresql/manifests/tablespace.pp +0 -59
- data/modules/postgresql/spec/system/install_spec.rb +0 -707
- data/modules/postgresql/spec/system/non_defaults_spec.rb +0 -114
- data/modules/postgresql/spec/unit/classes/contrib_spec.rb +0 -11
- data/modules/postgresql/spec/unit/classes/devel_spec.rb +0 -11
- data/modules/postgresql/spec/unit/classes/init_spec.rb +0 -71
- data/modules/postgresql/spec/unit/classes/postgresql_python_spec.rb +0 -53
- data/modules/postgresql/spec/unit/defines/database_spec.rb +0 -14
- data/modules/postgresql/spec/unit/defines/database_user_spec.rb +0 -19
- data/modules/postgresql/spec/unit/defines/db_spec.rb +0 -20
- data/modules/postgresql/spec/unit/defines/pg_hba_spec.rb +0 -20
- data/modules/postgresql/spec/unit/defines/psql_spec.rb +0 -20
- data/modules/postgresql/spec/unit/defines/role_spec.rb +0 -14
- data/modules/postgresql/spec/unit/defines/tablespace_spec.rb +0 -19
- data/modules/postgresql/spec/unit/facts/postgres_default_version_spec.rb +0 -14
@@ -0,0 +1,403 @@
|
|
1
|
+
2013-11-13 - Version 2.1.0
|
2
|
+
|
3
|
+
Summary:
|
4
|
+
|
5
|
+
The most important changes in 2.1.0 are improvements to the my.cnf creation,
|
6
|
+
as well as providers. Setting options to = true strips them to be just the
|
7
|
+
key name itself, which is required for some options.
|
8
|
+
|
9
|
+
The provider updates fix a number of bugs, from lowercase privileges to
|
10
|
+
deprecation warnings.
|
11
|
+
|
12
|
+
Last, the new hiera integration functionality should make it easier to
|
13
|
+
externalize all your grantts, users, and, databases. Another great set of
|
14
|
+
community submissions helped to make this release.
|
15
|
+
|
16
|
+
Features:
|
17
|
+
- Some options can not take a argument. Gets rid of the '= true' when an
|
18
|
+
option is set to true.
|
19
|
+
- Easier hiera integration: Add hash parameters to mysql::server to allow
|
20
|
+
specifying grants, users, and databases.
|
21
|
+
|
22
|
+
Fixes:
|
23
|
+
- Fix an issue with lowercase privileges in mysql_grant{} causing them to be reapplied needlessly.
|
24
|
+
- Changed defaults-file to defaults-extra-file in providers.
|
25
|
+
- Ensure /root/.my.cnf is 0600 and root owned.
|
26
|
+
- database_user deprecation warning was incorrect.
|
27
|
+
- Add anchor pattern for client.pp
|
28
|
+
- Documentation improvements.
|
29
|
+
- Various test fixes.
|
30
|
+
|
31
|
+
2013-10-21 - Version 2.0.1
|
32
|
+
|
33
|
+
Summary:
|
34
|
+
|
35
|
+
This is a bugfix release to handle an issue where unsorted mysql_grant{}
|
36
|
+
privileges could cause Puppet to incorrectly reapply the permissions on
|
37
|
+
each run.
|
38
|
+
|
39
|
+
Fixes:
|
40
|
+
- Mysql_grant now sorts privileges in the type and provider for comparision.
|
41
|
+
- Comment and test tweak for PE3.1.
|
42
|
+
|
43
|
+
2013-10-14 - Version 2.0.0
|
44
|
+
|
45
|
+
Summary:
|
46
|
+
|
47
|
+
(Previously detailed in the changelog for 2.0.0-rc1)
|
48
|
+
|
49
|
+
This module has been completely refactored and works significantly different.
|
50
|
+
The changes are broad and touch almost every piece of the module.
|
51
|
+
|
52
|
+
See the README.md for full details of all changes and syntax.
|
53
|
+
Please remain on 1.0.0 if you don't have time to fully test this in dev.
|
54
|
+
|
55
|
+
* mysql::server, mysql::client, and mysql::bindings are the primary interface
|
56
|
+
classes.
|
57
|
+
* mysql::server takes an `options_override` parameter to set my.cnf options,
|
58
|
+
with the hash format: { 'section' => { 'thing' => 'value' }}
|
59
|
+
* mysql attempts backwards compatibility by forwarding all parameters to
|
60
|
+
mysql::server.
|
61
|
+
|
62
|
+
2013-10-09 - Version 2.0.0-rc5
|
63
|
+
|
64
|
+
Summary:
|
65
|
+
|
66
|
+
Hopefully the final rc! Further fixes to mysql_grant (stripping out the
|
67
|
+
cleverness so we match a much wider range of input.)
|
68
|
+
|
69
|
+
Fixes:
|
70
|
+
- Make mysql_grant accept '.*'@'.*' in terms of input for user@host.
|
71
|
+
|
72
|
+
2013-10-09 - Version 2.0.0-rc4
|
73
|
+
|
74
|
+
Summary:
|
75
|
+
|
76
|
+
Bugfixes to mysql_grant and mysql_user form the bulk of this rc, as well as
|
77
|
+
ensuring that values in the override_options hash that contain a value of ''
|
78
|
+
are created as just "key" in the conf rather than "key =" or "key = false".
|
79
|
+
|
80
|
+
Fixes:
|
81
|
+
- Improve mysql_grant to work with IPv6 addresses (both long and short).
|
82
|
+
- Ensure @host users work as well as user@host users.
|
83
|
+
- Updated my.cnf template to support items with no values.
|
84
|
+
|
85
|
+
2013-10-07 - Version 2.0.0-rc3
|
86
|
+
|
87
|
+
Summary:
|
88
|
+
|
89
|
+
Fix mysql::server::monitor's use of mysql_user{}.
|
90
|
+
|
91
|
+
Fixes:
|
92
|
+
- Fix myql::server::monitor's use of mysql_user{} to grant the proper
|
93
|
+
permissions. Add specs as well. (Thanks to treydock!)
|
94
|
+
|
95
|
+
2013-10-03 - Version 2.0.0-rc2
|
96
|
+
|
97
|
+
Summary:
|
98
|
+
|
99
|
+
Bugfixes
|
100
|
+
|
101
|
+
Fixes:
|
102
|
+
- Fix a duplicate parameter in mysql::server
|
103
|
+
|
104
|
+
2013-10-03 - Version 2.0.0-rc1
|
105
|
+
|
106
|
+
Summary:
|
107
|
+
|
108
|
+
This module has been completely refactored and works significantly different.
|
109
|
+
The changes are broad and touch almost every piece of the module.
|
110
|
+
|
111
|
+
See the README.md for full details of all changes and syntax.
|
112
|
+
Please remain on 1.0.0 if you don't have time to fully test this in dev.
|
113
|
+
|
114
|
+
* mysql::server, mysql::client, and mysql::bindings are the primary interface
|
115
|
+
classes.
|
116
|
+
* mysql::server takes an `options_override` parameter to set my.cnf options,
|
117
|
+
with the hash format: { 'section' => { 'thing' => 'value' }}
|
118
|
+
* mysql attempts backwards compatibility by forwarding all parameters to
|
119
|
+
mysql::server.
|
120
|
+
|
121
|
+
2013-09-23 - Version 1.0.0
|
122
|
+
|
123
|
+
Summary:
|
124
|
+
|
125
|
+
This release introduces a number of new type/providers, to eventually
|
126
|
+
replace the database_ ones. The module has been converted to call the
|
127
|
+
new providers rather than the previous ones as they have a number of
|
128
|
+
fixes, additional options, and work with puppet resource.
|
129
|
+
|
130
|
+
This 1.0.0 release precedes a large refactoring that will be released
|
131
|
+
almost immediately after as 2.0.0.
|
132
|
+
|
133
|
+
Features:
|
134
|
+
- Added mysql_grant, mysql_database, and mysql_user.
|
135
|
+
- Add `mysql::bindings` class and refactor all other bindings to be contained underneath mysql::bindings:: namespace.
|
136
|
+
- Added support to back up specified databases only with 'mysqlbackup' parameter.
|
137
|
+
- Add option to mysql::backup to set the backup script to perform a mysqldump on each database to its own file
|
138
|
+
|
139
|
+
Bugfixes:
|
140
|
+
- Update my.cnf.pass.erb to allow custom socket support
|
141
|
+
- Add environment variable for .my.cnf in mysql::db.
|
142
|
+
- Add HOME environment variable for .my.cnf to mysqladmin command when
|
143
|
+
(re)setting root password
|
144
|
+
|
145
|
+
2013-07-15 - Version 0.9.0
|
146
|
+
Features:
|
147
|
+
- Add `mysql::backup::backuprotate` parameter
|
148
|
+
- Add `mysql::backup::delete_before_dump` parameter
|
149
|
+
- Add `max_user_connections` attribute to `database_user` type
|
150
|
+
|
151
|
+
Bugfixes:
|
152
|
+
- Add client package dependency for `mysql::db`
|
153
|
+
- Remove duplicate `expire_logs_days` and `max_binlog_size` settings
|
154
|
+
- Make root's `.my.cnf` file path dynamic
|
155
|
+
- Update pidfile path for Suse variants
|
156
|
+
- Fixes for lint
|
157
|
+
|
158
|
+
2013-07-05 - Version 0.8.1
|
159
|
+
Bugfixes:
|
160
|
+
- Fix a typo in the Fedora 19 support.
|
161
|
+
|
162
|
+
2013-07-01 - Version 0.8.0
|
163
|
+
Features:
|
164
|
+
- mysql::perl class to install perl-DBD-mysql.
|
165
|
+
- minor improvements to the providers to improve reliability
|
166
|
+
- Install the MariaDB packages on Fedora 19 instead of MySQL.
|
167
|
+
- Add new `mysql` class parameters:
|
168
|
+
- `max_connections`: The maximum number of allowed connections.
|
169
|
+
- `manage_config_file`: Opt out of puppetized control of my.cnf.
|
170
|
+
- `ft_min_word_len`: Fine tune the full text search.
|
171
|
+
- `ft_max_word_len`: Fine tune the full text search.
|
172
|
+
- Add new `mysql` class performance tuning parameters:
|
173
|
+
- `key_buffer`
|
174
|
+
- `thread_stack`
|
175
|
+
- `thread_cache_size`
|
176
|
+
- `myisam-recover`
|
177
|
+
- `query_cache_limit`
|
178
|
+
- `query_cache_size`
|
179
|
+
- `max_connections`
|
180
|
+
- `tmp_table_size`
|
181
|
+
- `table_open_cache`
|
182
|
+
- `long_query_time`
|
183
|
+
- Add new `mysql` class replication parameters:
|
184
|
+
- `server_id`
|
185
|
+
- `sql_log_bin`
|
186
|
+
- `log_bin`
|
187
|
+
- `max_binlog_size`
|
188
|
+
- `binlog_do_db`
|
189
|
+
- `expire_logs_days`
|
190
|
+
- `log_bin_trust_function_creators`
|
191
|
+
- `replicate_ignore_table`
|
192
|
+
- `replicate_wild_do_table`
|
193
|
+
- `replicate_wild_ignore_table`
|
194
|
+
- `expire_logs_days`
|
195
|
+
- `max_binlog_size`
|
196
|
+
|
197
|
+
Bugfixes:
|
198
|
+
- No longer restart MySQL when /root/.my.cnf changes.
|
199
|
+
- Ensure mysql::config runs before any mysql::db defines.
|
200
|
+
|
201
|
+
2013-06-26 - Version 0.7.1
|
202
|
+
Bugfixes:
|
203
|
+
- Single-quote password for special characters
|
204
|
+
- Update travis testing for puppet 3.2.x and missing Bundler gems
|
205
|
+
|
206
|
+
2013-06-25 - Version 0.7.0
|
207
|
+
This is a maintenance release for community bugfixes and exposing
|
208
|
+
configuration variables.
|
209
|
+
|
210
|
+
* Add new `mysql` class parameters:
|
211
|
+
- `basedir`: The base directory mysql uses
|
212
|
+
- `bind_address`: The IP mysql binds to
|
213
|
+
- `client_package_name`: The name of the mysql client package
|
214
|
+
- `config_file`: The location of the server config file
|
215
|
+
- `config_template`: The template to use to generate my.cnf
|
216
|
+
- `datadir`: The directory MySQL's datafiles are stored
|
217
|
+
- `default_engine`: The default engine to use for tables
|
218
|
+
- `etc_root_password`: Whether or not to add the mysql root password to
|
219
|
+
/etc/my.cnf
|
220
|
+
- `java_package_name`: The name of the java package containing the java
|
221
|
+
connector
|
222
|
+
- `log_error`: Where to log errors
|
223
|
+
- `manage_service`: Boolean dictating if mysql::server should manage the
|
224
|
+
service
|
225
|
+
- `max_allowed_packet`: Maximum network packet size mysqld will accept
|
226
|
+
- `old_root_password`: Previous root user password
|
227
|
+
- `php_package_name`: The name of the phpmysql package to install
|
228
|
+
- `pidfile`: The location mysql will expect the pidfile to be
|
229
|
+
- `port`: The port mysql listens on
|
230
|
+
- `purge_conf_dir`: Value fed to recurse and purge parameters of the
|
231
|
+
/etc/mysql/conf.d resource
|
232
|
+
- `python_package_name`: The name of the python mysql package to install
|
233
|
+
- `restart`: Whether to restart mysqld
|
234
|
+
- `root_group`: Use specified group for root-owned files
|
235
|
+
- `root_password`: The root MySQL password to use
|
236
|
+
- `ruby_package_name`: The name of the ruby mysql package to install
|
237
|
+
- `ruby_package_provider`: The installation suite to use when installing the
|
238
|
+
ruby package
|
239
|
+
- `server_package_name`: The name of the server package to install
|
240
|
+
- `service_name`: The name of the service to start
|
241
|
+
- `service_provider`: The name of the service provider
|
242
|
+
- `socket`: The location of the MySQL server socket file
|
243
|
+
- `ssl_ca`: The location of the SSL CA Cert
|
244
|
+
- `ssl_cert`: The location of the SSL Certificate to use
|
245
|
+
- `ssl_key`: The SSL key to use
|
246
|
+
- `ssl`: Whether or not to enable ssl
|
247
|
+
- `tmpdir`: The directory MySQL's tmpfiles are stored
|
248
|
+
* Deprecate `mysql::package_name` parameter in favor of
|
249
|
+
`mysql::client_package_name`
|
250
|
+
* Fix local variable template deprecation
|
251
|
+
* Fix dependency ordering in `mysql::db`
|
252
|
+
* Fix ANSI quoting in queries
|
253
|
+
* Fix travis support (but still messy)
|
254
|
+
* Fix typos
|
255
|
+
|
256
|
+
2013-01-11 - Version 0.6.1
|
257
|
+
* Fix providers when /root/.my.cnf is absent
|
258
|
+
|
259
|
+
2013-01-09 - Version 0.6.0
|
260
|
+
* Add `mysql::server::config` define for specific config directives
|
261
|
+
* Add `mysql::php` class for php support
|
262
|
+
* Add `backupcompress` parameter to `mysql::backup`
|
263
|
+
* Add `restart` parameter to `mysql::config`
|
264
|
+
* Add `purge_conf_dir` parameter to `mysql::config`
|
265
|
+
* Add `manage_service` parameter to `mysql::server`
|
266
|
+
* Add syslog logging support via the `log_error` parameter
|
267
|
+
* Add initial SuSE support
|
268
|
+
* Fix remove non-localhost root user when fqdn != hostname
|
269
|
+
* Fix dependency in `mysql::server::monitor`
|
270
|
+
* Fix .my.cnf path for root user and root password
|
271
|
+
* Fix ipv6 support for users
|
272
|
+
* Fix / update various spec tests
|
273
|
+
* Fix typos
|
274
|
+
* Fix lint warnings
|
275
|
+
|
276
|
+
2012-08-23 - Version 0.5.0
|
277
|
+
* Add puppetlabs/stdlib as requirement
|
278
|
+
* Add validation for mysql privs in provider
|
279
|
+
* Add `pidfile` parameter to mysql::config
|
280
|
+
* Add `ensure` parameter to mysql::db
|
281
|
+
* Add Amazon linux support
|
282
|
+
* Change `bind_address` parameter to be optional in my.cnf template
|
283
|
+
* Fix quoting root passwords
|
284
|
+
|
285
|
+
2012-07-24 - Version 0.4.0
|
286
|
+
* Fix various bugs regarding database names
|
287
|
+
* FreeBSD support
|
288
|
+
* Allow specifying the storage engine
|
289
|
+
* Add a backup class
|
290
|
+
* Add a security class to purge default accounts
|
291
|
+
|
292
|
+
2012-05-03 - Version 0.3.0
|
293
|
+
* #14218 Query the database for available privileges
|
294
|
+
* Add mysql::java class for java connector installation
|
295
|
+
* Use correct error log location on different distros
|
296
|
+
* Fix set_mysql_rootpw to properly depend on my.cnf
|
297
|
+
|
298
|
+
2012-04-11 - Version 0.2.0
|
299
|
+
|
300
|
+
2012-03-19 - William Van Hevelingen <blkperl@cat.pdx.edu>
|
301
|
+
* (#13203) Add ssl support (f7e0ea5)
|
302
|
+
|
303
|
+
2012-03-18 - Nan Liu <nan@puppetlabs.com>
|
304
|
+
* Travis ci before script needs success exit code. (0ea463b)
|
305
|
+
|
306
|
+
2012-03-18 - Nan Liu <nan@puppetlabs.com>
|
307
|
+
* Fix Puppet 2.6 compilation issues. (9ebbbc4)
|
308
|
+
|
309
|
+
2012-03-16 - Nan Liu <nan@puppetlabs.com>
|
310
|
+
* Add travis.ci for testing multiple puppet versions. (33c72ef)
|
311
|
+
|
312
|
+
2012-03-15 - William Van Hevelingen <blkperl@cat.pdx.edu>
|
313
|
+
* (#13163) Datadir should be configurable (f353fc6)
|
314
|
+
|
315
|
+
2012-03-16 - Nan Liu <nan@puppetlabs.com>
|
316
|
+
* Document create_resources dependency. (558a59c)
|
317
|
+
|
318
|
+
2012-03-16 - Nan Liu <nan@puppetlabs.com>
|
319
|
+
* Fix spec test issues related to error message. (eff79b5)
|
320
|
+
|
321
|
+
2012-03-16 - Nan Liu <nan@puppetlabs.com>
|
322
|
+
* Fix mysql service on Ubuntu. (72da2c5)
|
323
|
+
|
324
|
+
2012-03-16 - Dan Bode <dan@puppetlabs.com>
|
325
|
+
* Add more spec test coverage (55e399d)
|
326
|
+
|
327
|
+
2012-03-16 - Nan Liu <nan@puppetlabs.com>
|
328
|
+
* (#11963) Fix spec test due to path changes. (1700349)
|
329
|
+
|
330
|
+
2012-03-07 - François Charlier <fcharlier@ploup.net>
|
331
|
+
* Add a test to check path for 'mysqld-restart' (b14c7d1)
|
332
|
+
|
333
|
+
2012-03-07 - François Charlier <fcharlier@ploup.net>
|
334
|
+
* Fix path for 'mysqld-restart' (1a9ae6b)
|
335
|
+
|
336
|
+
2012-03-15 - Dan Bode <dan@puppetlabs.com>
|
337
|
+
* Add rspec-puppet tests for mysql::config (907331a)
|
338
|
+
|
339
|
+
2012-03-15 - Dan Bode <dan@puppetlabs.com>
|
340
|
+
* Moved class dependency between sever and config to server (da62ad6)
|
341
|
+
|
342
|
+
2012-03-14 - Dan Bode <dan@puppetlabs.com>
|
343
|
+
* Notify mysql restart from set_mysql_rootpw exec (0832a2c)
|
344
|
+
|
345
|
+
2012-03-15 - Nan Liu <nan@puppetlabs.com>
|
346
|
+
* Add documentation related to osfamily fact. (8265d28)
|
347
|
+
|
348
|
+
2012-03-14 - Dan Bode <dan@puppetlabs.com>
|
349
|
+
* Mention osfamily value in failure message (e472d3b)
|
350
|
+
|
351
|
+
2012-03-14 - Dan Bode <dan@puppetlabs.com>
|
352
|
+
* Fix bug when querying for all database users (015490c)
|
353
|
+
|
354
|
+
2012-02-09 - Nan Liu <nan@puppetlabs.com>
|
355
|
+
* Major refactor of mysql module. (b1f90fd)
|
356
|
+
|
357
|
+
2012-01-11 - Justin Ellison <justin.ellison@buckle.com>
|
358
|
+
* Ruby and Python's MySQL libraries are named differently on different distros. (1e926b4)
|
359
|
+
|
360
|
+
2012-01-11 - Justin Ellison <justin.ellison@buckle.com>
|
361
|
+
* Per @ghoneycutt, we should fail explicitly and explain why. (09af083)
|
362
|
+
|
363
|
+
2012-01-11 - Justin Ellison <justin.ellison@buckle.com>
|
364
|
+
* Removing duplicate declaration (7513d03)
|
365
|
+
|
366
|
+
2012-01-10 - Justin Ellison <justin.ellison@buckle.com>
|
367
|
+
* Use socket value from params class instead of hardcoding. (663e97c)
|
368
|
+
|
369
|
+
2012-01-10 - Justin Ellison <justin.ellison@buckle.com>
|
370
|
+
* Instead of hardcoding the config file target, pull it from mysql::params (031a47d)
|
371
|
+
|
372
|
+
2012-01-10 - Justin Ellison <justin.ellison@buckle.com>
|
373
|
+
* Moved $socket to within the case to toggle between distros. Added a $config_file variable to allow per-distro config file destinations. (360eacd)
|
374
|
+
|
375
|
+
2012-01-10 - Justin Ellison <justin.ellison@buckle.com>
|
376
|
+
* Pretty sure this is a bug, 99% of Linux distros out there won't ever hit the default. (3462e6b)
|
377
|
+
|
378
|
+
2012-02-09 - William Van Hevelingen <blkperl@cat.pdx.edu>
|
379
|
+
* Changed the README to use markdown (3b7dfeb)
|
380
|
+
|
381
|
+
2012-02-04 - Daniel Black <grooverdan@users.sourceforge.net>
|
382
|
+
* (#12412) mysqltuner.pl update (b809e6f)
|
383
|
+
|
384
|
+
2011-11-17 - Matthias Pigulla <mp@webfactory.de>
|
385
|
+
* (#11363) Add two missing privileges to grant: event_priv, trigger_priv (d15c9d1)
|
386
|
+
|
387
|
+
2011-12-20 - Jeff McCune <jeff@puppetlabs.com>
|
388
|
+
* (minor) Fixup typos in Modulefile metadata (a0ed6a1)
|
389
|
+
|
390
|
+
2011-12-19 - Carl Caum <carl@carlcaum.com>
|
391
|
+
* Only notify Exec to import sql if sql is given (0783c74)
|
392
|
+
|
393
|
+
2011-12-19 - Carl Caum <carl@carlcaum.com>
|
394
|
+
* (#11508) Only load sql_scripts on DB creation (e3b9fd9)
|
395
|
+
|
396
|
+
2011-12-13 - Justin Ellison <justin.ellison@buckle.com>
|
397
|
+
* Require not needed due to implicit dependencies (3058feb)
|
398
|
+
|
399
|
+
2011-12-13 - Justin Ellison <justin.ellison@buckle.com>
|
400
|
+
* Bug #11375: puppetlabs-mysql fails on CentOS/RHEL (a557b8d)
|
401
|
+
|
402
|
+
2011-06-03 - Dan Bode <dan@puppetlabs.com> - 0.0.1
|
403
|
+
* initial commit
|
@@ -0,0 +1,24 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
group :development, :test do
|
4
|
+
gem 'mime-types', '<2.0', :require => false
|
5
|
+
gem 'rake', :require => false
|
6
|
+
gem 'rspec-puppet', :require => false
|
7
|
+
gem 'puppetlabs_spec_helper', :require => false
|
8
|
+
gem 'rspec-system', :require => false
|
9
|
+
gem 'rspec-system-puppet', :require => false
|
10
|
+
gem 'rspec-system-serverspec', :require => false
|
11
|
+
gem 'serverspec', :require => false
|
12
|
+
gem 'puppet-lint', :require => false
|
13
|
+
gem 'pry', :require => false
|
14
|
+
gem 'simplecov', :require => false
|
15
|
+
gem 'beaker', :require => false
|
16
|
+
end
|
17
|
+
|
18
|
+
if puppetversion = ENV['PUPPET_GEM_VERSION']
|
19
|
+
gem 'puppet', puppetversion, :require => false
|
20
|
+
else
|
21
|
+
gem 'puppet', :require => false
|
22
|
+
end
|
23
|
+
|
24
|
+
# vim:ft=ruby
|
@@ -0,0 +1,129 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
CFPropertyList (2.2.4)
|
5
|
+
beaker (1.0.0)
|
6
|
+
blimpy
|
7
|
+
fission
|
8
|
+
inifile
|
9
|
+
json
|
10
|
+
net-scp
|
11
|
+
net-ssh
|
12
|
+
nokogiri (= 1.5.10)
|
13
|
+
rbvmomi
|
14
|
+
unf
|
15
|
+
blimpy (0.6.7)
|
16
|
+
fog
|
17
|
+
minitar
|
18
|
+
thor
|
19
|
+
builder (3.2.2)
|
20
|
+
coderay (1.1.0)
|
21
|
+
diff-lcs (1.2.5)
|
22
|
+
docile (1.1.0)
|
23
|
+
excon (0.28.0)
|
24
|
+
facter (1.7.3)
|
25
|
+
fission (0.5.0)
|
26
|
+
CFPropertyList (~> 2.2)
|
27
|
+
fog (1.18.0)
|
28
|
+
builder
|
29
|
+
excon (~> 0.28.0)
|
30
|
+
formatador (~> 0.2.0)
|
31
|
+
mime-types
|
32
|
+
multi_json (~> 1.0)
|
33
|
+
net-scp (~> 1.1)
|
34
|
+
net-ssh (>= 2.1.3)
|
35
|
+
nokogiri (~> 1.5)
|
36
|
+
ruby-hmac
|
37
|
+
formatador (0.2.4)
|
38
|
+
highline (1.6.20)
|
39
|
+
inifile (2.0.2)
|
40
|
+
json (1.8.1)
|
41
|
+
kwalify (0.7.2)
|
42
|
+
lockfile (2.1.0)
|
43
|
+
metaclass (0.0.1)
|
44
|
+
method_source (0.8.2)
|
45
|
+
mime-types (1.25)
|
46
|
+
minitar (0.5.4)
|
47
|
+
mocha (0.14.0)
|
48
|
+
metaclass (~> 0.0.1)
|
49
|
+
multi_json (1.8.2)
|
50
|
+
net-scp (1.1.2)
|
51
|
+
net-ssh (>= 2.6.5)
|
52
|
+
net-ssh (2.7.0)
|
53
|
+
nokogiri (1.5.10)
|
54
|
+
pry (0.9.12.3)
|
55
|
+
coderay (~> 1.0)
|
56
|
+
method_source (~> 0.8)
|
57
|
+
slop (~> 3.4)
|
58
|
+
puppet (2.7.23)
|
59
|
+
facter (~> 1.5)
|
60
|
+
puppet-lint (0.3.2)
|
61
|
+
puppetlabs_spec_helper (0.4.1)
|
62
|
+
mocha (>= 0.10.5)
|
63
|
+
rake
|
64
|
+
rspec (>= 2.9.0)
|
65
|
+
rspec-puppet (>= 0.1.1)
|
66
|
+
rake (10.1.0)
|
67
|
+
rbvmomi (1.6.0)
|
68
|
+
builder
|
69
|
+
nokogiri (>= 1.4.1)
|
70
|
+
trollop
|
71
|
+
rspec (2.14.1)
|
72
|
+
rspec-core (~> 2.14.0)
|
73
|
+
rspec-expectations (~> 2.14.0)
|
74
|
+
rspec-mocks (~> 2.14.0)
|
75
|
+
rspec-core (2.14.7)
|
76
|
+
rspec-expectations (2.14.4)
|
77
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
78
|
+
rspec-mocks (2.14.4)
|
79
|
+
rspec-puppet (0.1.6)
|
80
|
+
rspec
|
81
|
+
rspec-system (2.7.2)
|
82
|
+
kwalify (~> 0.7.2)
|
83
|
+
net-scp (~> 1.1)
|
84
|
+
net-ssh (~> 2.7)
|
85
|
+
nokogiri (~> 1.5.10)
|
86
|
+
rbvmomi (~> 1.6)
|
87
|
+
rspec (~> 2.14)
|
88
|
+
systemu (~> 2.5)
|
89
|
+
rspec-system-puppet (2.2.1)
|
90
|
+
rspec-system (~> 2.0)
|
91
|
+
rspec-system-serverspec (1.0.1)
|
92
|
+
rspec-system (~> 2.0)
|
93
|
+
serverspec (~> 0.0)
|
94
|
+
ruby-hmac (0.4.0)
|
95
|
+
serverspec (0.11.1)
|
96
|
+
highline
|
97
|
+
net-ssh
|
98
|
+
rspec (>= 2.13.0)
|
99
|
+
simplecov (0.8.1)
|
100
|
+
docile (~> 1.1.0)
|
101
|
+
lockfile (>= 2.1.0)
|
102
|
+
multi_json
|
103
|
+
simplecov-html (~> 0.8.0)
|
104
|
+
simplecov-html (0.8.0)
|
105
|
+
slop (3.4.6)
|
106
|
+
systemu (2.5.2)
|
107
|
+
thor (0.18.1)
|
108
|
+
trollop (2.0)
|
109
|
+
unf (0.1.3)
|
110
|
+
unf_ext
|
111
|
+
unf_ext (0.0.6)
|
112
|
+
|
113
|
+
PLATFORMS
|
114
|
+
ruby
|
115
|
+
|
116
|
+
DEPENDENCIES
|
117
|
+
beaker
|
118
|
+
mime-types (< 2.0)
|
119
|
+
pry
|
120
|
+
puppet (~> 2.7.0)
|
121
|
+
puppet-lint
|
122
|
+
puppetlabs_spec_helper
|
123
|
+
rake
|
124
|
+
rspec-puppet
|
125
|
+
rspec-system
|
126
|
+
rspec-system-puppet
|
127
|
+
rspec-system-serverspec
|
128
|
+
serverspec
|
129
|
+
simplecov
|