Skip to content

Instantly share code, notes, and snippets.

@stbenjam
Created January 14, 2014 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stbenjam/8420033 to your computer and use it in GitHub Desktop.
Save stbenjam/8420033 to your computer and use it in GitHub Desktop.
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