Skip to content

Instantly share code, notes, and snippets.

@wcooley
Created November 15, 2012 19:38
Show Gist options
  • Save wcooley/4080734 to your computer and use it in GitHub Desktop.
Save wcooley/4080734 to your computer and use it in GitHub Desktop.
puppet specialization
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