Created
July 7, 2011 16:33
-
-
Save andycodes00/1069920 to your computer and use it in GitHub Desktop.
Is there any way to specify the run stage for a puppet class I wish to include in several other classes?
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
Question: | |
Is there a way to make myclass run before my other | |
classes without defining explicit relationships? | |
================================================== | |
site.pp: | |
stage{ 'first': } | |
Stage['first'] -> Stage['main'] | |
-------------------------------------------------- | |
myclass/manifests/init.pp: | |
class myclass { | |
define something_useful {} | |
} | |
--------------------------------------------------- | |
A/manifests/init.pp: | |
class A { | |
include myclass | |
} | |
--------------------------------------------------- | |
B/manifests/init.pp: | |
class B { | |
include myclass | |
} | |
--------------------------------------------------- | |
C/manifests/init.pp: | |
class C { | |
include myclass | |
} | |
--------------------------------------------------- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment