Created
November 15, 2012 19:38
-
-
Save wcooley/4080734 to your computer and use it in GitHub Desktop.
puppet specialization
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
module/foo/manifests/init.pp: | |
class foo { | |
file { 'foo': | |
source => 'puppet:///modules/foo/usual-case.conf' | |
} | |
} | |
module/foo/manifests/special.pp: | |
class foo::special inherits foo { | |
File['foo'] { | |
source => 'pupppet:///modules/foo/special-case.conf', | |
} | |
} | |
manifests/site.pp: | |
node basenode { | |
include foo | |
} | |
node special-foo inherits basenode { | |
include foo::special | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment