It's a defined file resource without a source parameter. Here is the syntax:
file { "/opt/management/dns/zones": owner => "root", group => "root", mode => "644", ensure => directory, recurse => true } Then there is a service resource that subscribes to that file: service { "named": enable => true, ensure => running, require => File["/etc/named.conf"], require => File["/opt/dns/management/zones"], require => Package["bind"], subscribe => File["/etc/named.conf"], subscribe => File["/opt/management/dns/zones"] } But the service never restarts when files in that directory change. I would think it's because I'm not sourcing those files, but I'm not sure. On Nov 6, 12:37 pm, "Evan Hisey" <[EMAIL PROTECTED]> wrote: > On Wed, Nov 5, 2008 at 6:19 PM, joe <[EMAIL PROTECTED]> wrote: > > > I'm having a similar issue that that wiki entry does not directly > > address. > > > I'm trying to do a subscribe on a file definition that is a directory. > > > I have ensure => directory and recurse => true. > > > I do not use puppet to source the files (they are on nfs shared to all > > servers that use them). > > > Puppet will not restart a service subscribed to this file definition. > > It does not seem to look at whether the files in the directory have > > changed. > > > How do others make such a scenario work? > > > Thanks > > Is puppet actually managing the directory? Unless puppet manages the > directory it can't know to handle a restart. > > Evan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---