Skip to content

Instantly share code, notes, and snippets.

@robinbowes
Last active August 29, 2015 14:25
Show Gist options
  • Save robinbowes/641abe6a26a5b004a173 to your computer and use it in GitHub Desktop.
Save robinbowes/641abe6a26a5b004a173 to your computer and use it in GitHub Desktop.
"Must pass start_service to Class[Foo::Service]
class foo(
$start_service = undef
) {
class{'::foo::service':
start_service => $start_service,
}
}
class foo::service(
$start_service,
) {
service{'foo':
ensure => $start_service
}
}
class foo::service(
$start_service,
) {
$real_start_service = $start_service ? {
'UNSET' => undef,
default => $start_service,
}
service{'foo':
ensure => $real_start_service
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment