Skip to content

Instantly share code, notes, and snippets.

@stack72
Created July 14, 2014 20:41
Show Gist options
  • Save stack72/9d216e0251bab3bb8956 to your computer and use it in GitHub Desktop.
Save stack72/9d216e0251bab3bb8956 to your computer and use it in GitHub Desktop.
class powershell::params {
case downcase($::osfamily) {
'windows': {
case $::kernelmajversion {
'6.0': {
case $architecture {
'x64': {
}
'x86': {
}
default: {
fail("${::osfamily} ${::operatingsystem} ${::architecture} not supported")
}
}
}
'6.1': {
case $architecture {
'x64': {
}
'x86': {
}
default: {-
fail("${::osfamily} ${::operatingsystem} ${::architecture} not supported")
}
}
'6.3': {
case $architecture {
'x64': {
}
'x86': {
}
default: {
fail("${::osfamily} ${::operatingsystem} ${::architecture} not supported")
}
}
}
default: {
fail("${::osfamily} ${::operatingsystem} not supported")
}
}
}
default: {
fail("${::osfamily} not supported")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment