Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class apache::version {
case $::osfamily {
'RedHat': {
if $::operatingsystem == "Fedora" && $::operatingsystemrelease >= 18 {
apache_version = 2.4
} else {
apache_version = 2.2
}
}
'Debian': {
if $::operatingsystem == 'Ubuntu' and $::operatingsystemrelease >= 13.10 {
apache_version = 2.4
}
else {
apache_version = 2.2
}
}
'FreeBSD': {
apache_version = 2.2
}
default: {
fail("Class['apache::version']: Unsupported osfamily: ${::osfamily}")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.