Last active
August 29, 2015 14:25
-
-
Save robinbowes/641abe6a26a5b004a173 to your computer and use it in GitHub Desktop.
"Must pass start_service to Class[Foo::Service]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class foo( | |
$start_service = undef | |
) { | |
class{'::foo::service': | |
start_service => $start_service, | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class foo::service( | |
$start_service, | |
) { | |
service{'foo': | |
ensure => $start_service | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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