Skip to content

Instantly share code, notes, and snippets.

@discreet
Created September 23, 2016 17:20
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 discreet/ce3cd8918175d6ec516c34f98a37d151 to your computer and use it in GitHub Desktop.
Save discreet/ce3cd8918175d6ec516c34f98a37d151 to your computer and use it in GitHub Desktop.
Logic for server type config
class foo {
case $::tier {
'websphere': { include '::foo::websphere' }
'dbora': { include '::foo::dbora' }
'monbot': { include '::foo::monbot' }
'tomcat': { include '::foo::tomcat' }
default: { fail("blah blah blah") }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment