Cleanup codes for CentOS/RHEL7
... since now this modules supports only CentOS8/RHEL8. Change-Id: I3769b2b5c8e2e22e73742d392462fd23a6961af9
This commit is contained in:
parent
82a5587266
commit
742aaf5c31
@ -27,8 +27,7 @@ class ironic::params {
|
|||||||
|
|
||||||
if ($::os_package_type == 'debian') {
|
if ($::os_package_type == 'debian') {
|
||||||
$syslinux_path_custom = '/usr/lib/syslinux'
|
$syslinux_path_custom = '/usr/lib/syslinux'
|
||||||
} elsif ($::os['name'] == 'Fedora') or
|
} elsif ($::os['family'] == 'RedHat'){
|
||||||
($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
|
|
||||||
$syslinux_path_custom = '/tftpboot'
|
$syslinux_path_custom = '/tftpboot'
|
||||||
} else {
|
} else {
|
||||||
$syslinux_path_custom = '/var/lib/tftpboot'
|
$syslinux_path_custom = '/var/lib/tftpboot'
|
||||||
@ -66,11 +65,7 @@ class ironic::params {
|
|||||||
$ipxe_package = 'ipxe-bootimgs'
|
$ipxe_package = 'ipxe-bootimgs'
|
||||||
$syslinux_package = 'syslinux-tftpboot'
|
$syslinux_package = 'syslinux-tftpboot'
|
||||||
$syslinux_path = $syslinux_path_custom
|
$syslinux_path = $syslinux_path_custom
|
||||||
if (Integer.new($::os['release']['major']) > 7) {
|
|
||||||
$syslinux_files = ['pxelinux.0', 'chain.c32', 'ldlinux.c32']
|
$syslinux_files = ['pxelinux.0', 'chain.c32', 'ldlinux.c32']
|
||||||
} else {
|
|
||||||
$syslinux_files = ['pxelinux.0', 'chain.c32']
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
'Debian': {
|
'Debian': {
|
||||||
$common_package_name = 'ironic-common'
|
$common_package_name = 'ironic-common'
|
||||||
|
@ -76,8 +76,7 @@ class ironic::pxe (
|
|||||||
$http_root_real = pick($::ironic::pxe::common::http_root, $http_root)
|
$http_root_real = pick($::ironic::pxe::common::http_root, $http_root)
|
||||||
$http_port_real = pick($::ironic::pxe::common::http_port, $http_port)
|
$http_port_real = pick($::ironic::pxe::common::http_port, $http_port)
|
||||||
|
|
||||||
if ($::os['name'] == 'Fedora') or
|
if $::os['family'] == 'RedHat' {
|
||||||
($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
|
|
||||||
$arch = "-${::os['architecture']}"
|
$arch = "-${::os['architecture']}"
|
||||||
} else {
|
} else {
|
||||||
$arch = ''
|
$arch = ''
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
Compatibility with el7 (RHEL7.x, CentOS7.x and so on) has been removed.
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user