On Jan 28, 4:51 pm, Dan Urist <[email protected]> wrote:
> On Fri, 28 Jan 2011 11:40:38 -0800
>
> Nan Liu <[email protected]> wrote:
> > You can require disable_upstart class as a conditional by operating
> > system and it should be part of your ssh module rather than a separate
> > class.
>
> If I understand correctly, you mean I shouldn't use run stages at all.
> The problem with this approach is that I want to keep my openssh module
> as general as possible, so only do this behavior when running in a
> vserver. I guess I could try to use a custom fact for this, but I'd
> rather not have that logic in the openssh module (I have another module
> that handles configuration specific to vservers, so would prefer to
> keep it there). This seems like a reasonable use case for run stages.

The general rule appears to be that the resources in a given stage may
require or listen to only resources assigned to the same or earlier
stages.  Therefore, if you are going to manager both /etc/init and /
etc/init/ssh.conf then the latter must not appear in an earlier stage
than the former.  That seems logical to me.  Therefore, given stage
"pre" happening before stage "main", if you manage /etc/init/ssh.conf
in stage "pre" then you must also manage /etc/init in stage "pre".


John

-- 
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.

Reply via email to