blob: d22cd7b700a60ab0e71448a17a5d163c6ee89051 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Puppet::Type.newtype(:stage) do
desc "A resource type for specifying run stages. The actual stage should
be specified on resources::
class { foo: stage => pre }
And you must manually control stage order::
stage { pre: before => Stage[main] }
You automatically get a 'main' stage created, and by default all resources
get inserted into that stage.
You can only set stages on class resources, not normal builtin resources."
newparam :name do
desc "The name of the stage. This will be used as the 'stage' for each resource."
end
end
|