File tree 4 files changed +5
-14
lines changed
4 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 485
485
}
486
486
487
487
# # Additional graceful failures
488
- if $facts [' os' ][' family' ] == ' RedHat' and $facts [' os' ][' release' ][' major' ] == ' 4 ' and $facts [' os' ][' name' ] != ' Amazon' {
489
- fail(" Unsupported platform: puppetlabs-${module_name} only supports RedHat 6 .0 and beyond." )
488
+ if $facts [' os' ][' family' ] == ' RedHat' and $facts [' os' ][' release' ][' major' ] < ' 7 ' and $facts [' os' ][' name' ] != ' Amazon' {
489
+ fail(" Unsupported platform: puppetlabs-${module_name} only supports RedHat 7 .0 and beyond." )
490
490
}
491
491
}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class { 'mysql::server': root_password => 'password' }
40
40
/RedHat/: {
41
41
# RHEL/CentOS 5 is no longer supported by Percona, but older versions
42
42
# of the repository are still available.
43
- if versioncmp($facts['os']['release']['major'], '6 ') >= 0 {
43
+ if versioncmp($facts['os']['release']['major'], '7 ') >= 0 {
44
44
$percona_url = 'http://repo.percona.com/yum/percona-release-latest.noarch.rpm'
45
45
$epel_url = "https://download.fedoraproject.org/pub/epel/epel-release-latest-${facts['os']['release']['major']}.noarch.rpm"
46
46
} else {
Original file line number Diff line number Diff line change 9
9
case os [ :family ]
10
10
when 'redhat'
11
11
case os [ :release ] . to_i
12
- when 5
13
- plugin = nil # Plugins not supported on mysql on RHEL 5
14
- when 6
15
- plugin = 'example'
16
- plugin_lib = 'ha_example.so'
17
12
when 7
18
13
plugin = 'pam'
19
14
plugin_lib = 'auth_pam.so'
Original file line number Diff line number Diff line change @@ -40,10 +40,8 @@ class { 'mysql::server': }
40
40
package = if facts [ :os ] [ 'family' ] == 'RedHat'
41
41
if Puppet ::Util ::Package . versioncmp ( facts [ :os ] [ 'release' ] [ 'major' ] , '8' ) >= 0
42
42
'percona-xtrabackup-24'
43
- elsif Puppet ::Util ::Package . versioncmp ( facts [ :os ] [ 'release' ] [ 'major' ] , '7' ) >= 0
44
- 'percona-xtrabackup'
45
43
else
46
- 'percona-xtrabackup-20 '
44
+ 'percona-xtrabackup'
47
45
end
48
46
elsif facts [ :os ] [ 'name' ] == 'Debian'
49
47
'percona-xtrabackup-24'
@@ -195,10 +193,8 @@ class { 'mysql::server': }
195
193
package = if facts [ :os ] [ 'family' ] == 'RedHat'
196
194
if Puppet ::Util ::Package . versioncmp ( facts [ :os ] [ 'release' ] [ 'major' ] , '8' ) >= 0
197
195
'percona-xtrabackup-24'
198
- elsif Puppet ::Util ::Package . versioncmp ( facts [ :os ] [ 'release' ] [ 'major' ] , '7' ) >= 0
199
- 'percona-xtrabackup'
200
196
else
201
- 'percona-xtrabackup-20 '
197
+ 'percona-xtrabackup'
202
198
end
203
199
elsif facts [ :os ] [ 'name' ] == 'Debian'
204
200
'percona-xtrabackup-24'
You can’t perform that action at this time.
0 commit comments