-
Notifications
You must be signed in to change notification settings - Fork 794
Remove EOL platforms Debian 8 and Ubuntu 14.04 #1406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,28 +123,24 @@ | |
'Suse': { | ||
case $::operatingsystem { | ||
'OpenSuSE': { | ||
if versioncmp( $::operatingsystemmajrelease, '12' ) >= 0 { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 12 is the smallest version we support (we support 12 and 15) so no need for the comparison. |
||
$client_package_name = 'mariadb-client' | ||
$server_package_name = 'mariadb' | ||
# First service start fails if this is set. Runs fine without | ||
# it being set, in any case. Leaving it as-is for the mysql. | ||
$basedir = undef | ||
} else { | ||
$client_package_name = 'mysql-community-server-client' | ||
$server_package_name = 'mysql-community-server' | ||
$basedir = '/usr' | ||
} | ||
$socket = '/var/run/mysql/mysql.sock' | ||
$log_error = '/var/log/mysql/mysqld.log' | ||
$pidfile = '/var/run/mysql/mysqld.pid' | ||
$ruby_package_name = 'rubygem-mysql' | ||
$client_package_name = 'mariadb-client' | ||
$server_package_name = 'mariadb' | ||
# First service start fails if this is set. Runs fine without | ||
# it being set, in any case. Leaving it as-is for the mysql. | ||
$basedir = undef | ||
} | ||
'SLES','SLED': { | ||
if versioncmp($::operatingsystemrelease, '12') >= 0 { | ||
$client_package_name = 'mariadb-client' | ||
$server_package_name = 'mariadb' | ||
$basedir = undef | ||
} else { | ||
$client_package_name = 'mysql-client' | ||
$server_package_name = 'mysql' | ||
$basedir = '/usr' | ||
} | ||
$socket = '/run/mysql/mysql.sock' | ||
$log_error = '/var/log/mysqld.log' | ||
$pidfile = '/var/lib/mysql/mysqld.pid' | ||
$ruby_package_name = 'ruby-mysql' | ||
$client_package_name = 'mariadb-client' | ||
$server_package_name = 'mariadb' | ||
$basedir = undef | ||
} | ||
default: { | ||
fail("Unsupported platform: puppetlabs-${module_name} currently doesn\'t support ${::operatingsystem}.") | ||
|
@@ -153,31 +149,13 @@ | |
$config_file = '/etc/my.cnf' | ||
$includedir = '/etc/my.cnf.d' | ||
$datadir = '/var/lib/mysql' | ||
$log_error = $::operatingsystem ? { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Already a conditional above, so removing this pattern and adding to the correct block above. |
||
/OpenSuSE/ => '/var/log/mysql/mysqld.log', | ||
/(SLES|SLED)/ => '/var/log/mysqld.log', | ||
} | ||
$pidfile = $::operatingsystem ? { | ||
/OpenSuSE/ => '/var/run/mysql/mysqld.pid', | ||
/(SLES|SLED)/ => '/var/lib/mysql/mysqld.pid', | ||
} | ||
$root_group = 'root' | ||
$mysql_group = 'mysql' | ||
$mycnf_owner = undef | ||
$mycnf_group = undef | ||
$server_service_name = 'mysql' | ||
$xtrabackup_package_name_override = 'xtrabackup' | ||
|
||
if $::operatingsystem =~ /(SLES|SLED)/ { | ||
if versioncmp( $::operatingsystemmajrelease, '12' ) >= 0 { | ||
$socket = '/run/mysql/mysql.sock' | ||
} else { | ||
$socket = '/var/lib/mysql/mysql.sock' | ||
} | ||
} else { | ||
$socket = '/var/run/mysql/mysql.sock' | ||
} | ||
|
||
$ssl_ca = '/etc/mysql/cacert.pem' | ||
$ssl_cert = '/etc/mysql/server-cert.pem' | ||
$ssl_key = '/etc/mysql/server-key.pem' | ||
|
@@ -188,18 +166,14 @@ | |
$perl_package_name = 'perl-DBD-mysql' | ||
$php_package_name = 'apache2-mod_php53' | ||
$python_package_name = 'python-mysql' | ||
$ruby_package_name = $::operatingsystem ? { | ||
/OpenSuSE/ => 'rubygem-mysql', | ||
/(SLES|SLED)/ => 'ruby-mysql', | ||
} | ||
$client_dev_package_name = 'libmysqlclient-devel' | ||
$daemon_dev_package_name = 'mysql-devel' | ||
} | ||
|
||
'Debian': { | ||
if $::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '9') >= 0 { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We support Debian 9 and 10 so all Debian is at least version 9 :) |
||
if $::operatingsystem == 'Debian' { | ||
$provider = 'mariadb' | ||
} else { | ||
} else { # Ubuntu | ||
$provider = 'mysql' | ||
} | ||
if $provider == 'mariadb' { | ||
|
@@ -242,7 +216,7 @@ | |
} | ||
$perl_package_name = 'libdbd-mysql-perl' | ||
if ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '16.04') >= 0) or | ||
($::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '9') >= 0) { | ||
($::operatingsystem == 'Debian') { | ||
$php_package_name = 'php-mysql' | ||
} else { | ||
$php_package_name = 'php5-mysql' | ||
|
@@ -260,10 +234,8 @@ | |
} | ||
|
||
$ruby_package_name = $facts['os']['release']['major'] ? { | ||
'8' => 'ruby-mysql', # jessie | ||
'9' => 'ruby-mysql2', # stretch | ||
'10' => 'ruby-mysql2', # buster | ||
'14.04' => 'ruby-mysql', # trusty | ||
'16.04' => 'ruby-mysql', # xenial | ||
'18.04' => 'ruby-mysql2', # bionic | ||
'20.04' => 'ruby-mysql2', # focal | ||
|
@@ -487,13 +459,7 @@ | |
|
||
case $::operatingsystem { | ||
'Ubuntu': { | ||
# lint:ignore:only_variable_string | ||
if versioncmp("${::operatingsystemmajrelease}", '14.10') > 0 { | ||
# lint:endignore | ||
$server_service_provider = 'systemd' | ||
} else { | ||
$server_service_provider = 'upstart' | ||
} | ||
$server_service_provider = 'systemd' | ||
} | ||
'Alpine': { | ||
$server_service_provider = 'rc-service' | ||
|
@@ -579,6 +545,6 @@ | |
|
||
## Additional graceful failures | ||
if $::osfamily == 'RedHat' and $::operatingsystemmajrelease == '4' and $::operatingsystem != 'Amazon' { | ||
fail("Unsupported platform: puppetlabs-${module_name} only supports RedHat 5.0 and beyond.") | ||
fail("Unsupported platform: puppetlabs-${module_name} only supports RedHat 6.0 and beyond.") | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,6 @@ | |
{ | ||
"operatingsystem": "Ubuntu", | ||
"operatingsystemrelease": [ | ||
"14.04", | ||
"16.04", | ||
"18.04" | ||
] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is just style updates I missed on the last pass