Created
September 16, 2012 20:47
-
-
Save rodjek/3734337 to your computer and use it in GitHub Desktop.
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($template = 'foo.erb') { | |
file { '/tmp/foo': | |
source => $template, | |
} | |
} | |
# Use generic template | |
class { 'foo': } | |
# Override the template | |
class { 'foo': | |
template => "foo.${hostname}.erb", | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment