Skip to content

Commit 2e8b98e

Browse files
committed
Deprecate mysql::server::mysqltuner and show it as an example
1 parent 1fb7245 commit 2e8b98e

File tree

3 files changed

+10
-42
lines changed

3 files changed

+10
-42
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,6 @@ class { 'mysql::server::backup':
513513

514514
* [`mysql::server`](#mysqlserver): Installs and configures MySQL.
515515
* [`mysql::server::monitor`](#mysqlservermonitor): Sets up a monitoring user.
516-
* [`mysql::server::mysqltuner`](#mysqlservermysqltuner): Installs MySQL tuner script.
517516
* [`mysql::server::backup`](#mysqlserverbackup): Sets up MySQL backups via cron.
518517
* [`mysql::bindings`](#mysqlbindings): Installs various MySQL language bindings.
519518
* [`mysql::client`](#mysqlclient): Installs MySQL client (for non-servers).

manifests/server/mysqltuner.pp renamed to examples/mysqltuner.pp

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Example to be copied to your profile module. Replace class name with a
2+
# profile class such as profile::mysqltuner.
3+
#
14
# @summary
25
# Manage the MySQLTuner package.
36
#
@@ -10,18 +13,21 @@
1013
# @param tuner_location
1114
# Destination for the mysqltuner package.
1215
class mysql::server::mysqltuner (
13-
$ensure = 'present',
14-
$version = 'v1.3.0',
15-
$source = undef,
16-
$tuner_location = '/usr/local/bin/mysqltuner',
16+
String[1] $ensure = 'present',
17+
String[1] $version = 'v1.3.0',
18+
Optional[String[1]] $source = undef,
19+
Stdlib::Absolutepath $tuner_location = '/usr/local/bin/mysqltuner',
1720
) {
1821
if $source {
1922
$_source = $source
2023
} else {
2124
$_source = "https://github.com/major/MySQLTuner-perl/raw/${version}/mysqltuner.pl"
2225
}
26+
2327
file { $tuner_location:
2428
ensure => $ensure,
29+
owner => 'root',
30+
group => 'root',
2531
mode => '0550',
2632
source => $_source,
2733
}

spec/classes/mysql_server_mysqltuner_spec.rb

-37
This file was deleted.

0 commit comments

Comments
 (0)