2009/3/25 Craig Dunn <[email protected]>
>
> Hi All....
>
> I've got this configuration to manage bind, I want the exec to be run
> whenever anything under /var/named or the file /etc/named.conf gets
> updated....
>
> file { "/etc/named.conf":
> owner => root,
> group => root,
> mode => 0644,
> require => Package["bind"],
> source => "puppet:///dnsauth/etc/named.conf",
> }
> file { "/var/named":
> owner => named,
> group => named,
> mode => 0644,
> require => File["/etc/named.root.hints"],
> source => "puppet:///dnsauth/var/named",
> recurse => true,
> force => true,
> ignore => ".svn",
> purge => true,
> }
>
I'd try to change the /var/named to this:-
file { "/var/named":
ensure => directory,
notify => Exec["/etc/init.d/named reload"],
owner => named,
group => named,
mode => 0644,
require => File["/etc/named.root.hints"],
source => "puppet:///dnsauth/var/named",
recurse => true,
force => true,
ignore => ".svn",
purge => true,
}
and remove the subscribes from the Exec
HTH
Gary
--
Gary Law
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---