Merge "Make prescript template RHEL-7 aware"

This commit is contained in:
Jenkins
2014-05-19 09:27:09 +00:00
committed by Gerrit Code Review

View File

@@ -1,18 +1,20 @@
include firewall
if $::operatingsystem != "Fedora" {
package{ 'openstack-selinux':
ensure => present,
}
$el_releases = ["RedHat", "CentOS"]
# We don't have openstack-selinux package for Fedora and yet for RHEL-7
if $::operatingsystem != "Fedora" and ($::operatingsystem in $el_releases and $::operatingsystemrelease < 7) {
package{ 'openstack-selinux':
ensure => present,
}
}
$info = "The RDO kernel that includes network namespace (netns) support has been installed on host $::ipaddress."
if $::operatingsystem == 'RedHat' {
$warning = " This is a community supplied kernel and is not officially supported by Red Hat. Installing this kernel on RHEL systems may impact your ability to get support from Red Hat."
} else {
$warning = ""
}
# For older RHEL-6 releases kernel/iptools does not support netns
if $::operatingsystem in $el_releases and $::operatingsystemrelease < 7 {
$info = "The RDO kernel that includes network namespace (netns) support has been installed on host $::ipaddress."
$warning = " This is a community supplied kernel and is not officially supported by Red Hat. Installing this kernel on RHEL systems may impact your ability to get support from Red Hat."
class { 'packstack::netns':
class { 'packstack::netns':
warning => "${info}${warning}"
}
}