On Tuesday, June 19, 2012 4:30:38 AM UTC-5, Ioannis wrote:
[...]
Stages generate cycles.
>
Yes, stages are prone to that.
Your solution tells me it cannot find the pre class:
>
No, *your application* of Ken's example tells you that.
Tue Jun 19 05:20:23 -0400 2012 Puppet (err): Failed to apply catalog: Could
> not find dependency Class[Fw::Pre] for Firewall[100 accept http
> connections] at
>
> It definitely does not like:
>
> Firewall {
> notify => Exec["persist-firewall"],
> before => Class["my_soe::fwpost"],
> require => Class["my_soe::fwpre"],
> }
>
> Ken's example is not a drop-in solution. It works in appropriate context;
especially, it requires your node declaration or ENC to declare the needed
classes in an appropriate order. Alternatively -- perhaps easier -- you
could wrap parts of it in a class that provides the needed ordering.
Better yet, study the example to understand what it's doing, why it works
when it does work, and what's needed to make it work.
We may be able to help you more concretely if you present your own
manifests.
John
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/1-6XzB2ulvgJ.
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.