Hi, On 01/07/2012 04:10 AM, bel wrote: > I want it to notify an `exec`. However, the only way I could make this > work is if I make the `exec` in the global scope (i.e., importing in > site.pp). Otherwise, if I define the `exec` resource and do `require => > Exec['persist-iptables']`, when the `iptables::hole` resource is > defined, it cannot find the `exec` resource.
Most surprising. I would have thought that worked, too. I don't think it's good practice anyway. Try putting the exec inside a class (e.g. iptables::persist), include this from your define iptables::hole and require the whole class. Side question: Are you sure this design is sound? Even if the class approach helps, this cannot work: Your 'firewall' resources notify the exec, so they implicitly are before => Exec[...]. They cannot ever require it. As a matter of fact, there is no simple solution that I know of to make puppet run an exec *before* something but only if that something is modified. Still HTH, Felix -- 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.
