Created
September 5, 2013 21:41
-
-
Save jeffmccune/6456591 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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