File tree 3 files changed +10
-42
lines changed
3 files changed +10
-42
lines changed Original file line number Diff line number Diff line change @@ -513,7 +513,6 @@ class { 'mysql::server::backup':
513
513
514
514
* [ ` mysql::server ` ] ( #mysqlserver ) : Installs and configures MySQL.
515
515
* [ ` mysql::server::monitor ` ] ( #mysqlservermonitor ) : Sets up a monitoring user.
516
- * [ ` mysql::server::mysqltuner ` ] ( #mysqlservermysqltuner ) : Installs MySQL tuner script.
517
516
* [ ` mysql::server::backup ` ] ( #mysqlserverbackup ) : Sets up MySQL backups via cron.
518
517
* [ ` mysql::bindings ` ] ( #mysqlbindings ) : Installs various MySQL language bindings.
519
518
* [ ` mysql::client ` ] ( #mysqlclient ) : Installs MySQL client (for non-servers).
Original file line number Diff line number Diff line change
1
+ # Example to be copied to your profile module. Replace class name with a
2
+ # profile class such as profile::mysqltuner.
3
+ #
1
4
# @summary
2
5
# Manage the MySQLTuner package.
3
6
#
10
13
# @param tuner_location
11
14
# Destination for the mysqltuner package.
12
15
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' ,
17
20
) {
18
21
if $source {
19
22
$_source = $source
20
23
} else {
21
24
$_source = " https://github.com/major/MySQLTuner-perl/raw/${version} /mysqltuner.pl"
22
25
}
26
+
23
27
file { $tuner_location:
24
28
ensure => $ensure ,
29
+ owner => ' root' ,
30
+ group => ' root' ,
25
31
mode => ' 0550' ,
26
32
source => $_source,
27
33
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments