Skip to content

Instantly share code, notes, and snippets.

@jeffmccune
Created September 5, 2013 21:41
Show Gist options
  • Save jeffmccune/6456591 to your computer and use it in GitHub Desktop.
Save jeffmccune/6456591 to your computer and use it in GitHub Desktop.
class site::motd($template = 'site/motd') {
notify { 'motd': message => "template is $template" }
}
class goal {
notify { "site::motd::template":
message => "::site::motd::template is ${::site::motd::template} (should be ${::node_template})"
}
}
class container {
include('site::motd')
}
node default {
$node_template = 'site/motd.jeff'
class { 'container': }
-> class { 'goal':}
class { 'site::motd': template => $node_template }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment