Skip to content

Instantly share code, notes, and snippets.

@andrewbunday
Created July 7, 2011 16:33
Show Gist options
  • Save andrewbunday/1069920 to your computer and use it in GitHub Desktop.
Save andrewbunday/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?
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