Skip to content

Instantly share code, notes, and snippets.

@rodjek
Created September 16, 2012 20:47
Show Gist options
  • Save rodjek/3734337 to your computer and use it in GitHub Desktop.
Save rodjek/3734337 to your computer and use it in GitHub Desktop.
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