Dear Puppet,

I wish to run an Exec when a puppet define is removed. The define puts
a file in /tmp/foobar/${name}. When the define is no longer there, the
purge does an ensure => removed, and the file gets deleted. I've also
been able to make this work with Tidy[] instead of purge.

eg:
        file { '/tmp/foobar/':
                ensure => directory,            # make sure this is a directory
                recurse => true,                # recursively manage directory
                purge => true,                  # purge all unmanaged files
                force => true,                  # also purge subdirs and links
                owner => root, group => nobody, mode => 600, backup => false,
        }

The problem:
including a notify => Exec['whatever'] does not work. Either this is a
bug, and/or perhaps someone could suggest a workaround.

Much appreciated,
James

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