Greetings, I'm doing some experimentation with stages and can't quite
figure out how to leverage stages when calling a defined type from
within a node definition. For example if I have a class defined
class hosts {
define entry ($val) {
# set some stuff in etc hosts
}
}
node mynode {
class { "hosts": stage = os }
hosts::entry {
val => "foo"
}
}
The only way to scope hosts::entry into the os stage (that I know of)
is to create a wrapper class which includes the class which I want to
scope in and calls the defined type. Then adding the wrapper class to
the stage I want. Any other way to do this?
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.