I'm trying to write a custom type for puppet that manages iptables
(I'm leaving the details of *how* I'm managing the iptables config out
of this for now).  I think I have everything I basically need to
implement this except for how to handle the "notify" metaparameter.  I
want iptables to restart if the config has changed at all.  I also wan
to be able to "require" my new type from a file resource.  This is
what I want it to look like:

iptables { "dhcp_server" :  notify => Service["iptables"] }

file { "/etc/sysconfig/iptables-config" :
    owner => "root",
    group => "root",
    mode => 664,
    require => Iptables["dhcp_server"]
}

service { "iptables" :
    ensure => running,
    enable => true,
    start => "/etc/init.d/iptables start",
    restart => "/etc/init.d/iptables restart",
    status => "/etc/init.d/iptables status",
    require => File["/etc/sysconfig/iptables-config"]
}


In summary:

How do I handle the "notify" metaparameter?  I must have to return a
":file_changed" event or some-such?
Do I have to do anything so that this line will work: require =>
Iptables["dhcp_server"]?

Are there any examples that already exist that cover these topics?

Thanks for any help you can provide.

-Tom-

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