Hello all,
I attempted to RTFM on this one but to no avail.
(Also, this may be a repost? Google appeared to eat the first email I sent
several hours ago.)

I am trying to clean out the /etc/lighttpd/sites-enabled directory using
this technique:

http://reductivelabs.com/trac/puppet/wiki/FrequentlyAskedQuestions#i-want-to-manage-a-directory-and-purge-its-contents

This is needed because, let us say, a node goes from running 'myoldsite' to
running 'mynewsite'. If I don't purge the sites-enabled directory, I'll try
to load both lighttpd configs simultaneously, which conflict.

Here's my code:

file {
       ["$conf_dir/ssl", "$conf_dir/conf-include", "$conf_dir/conf-enabled",
"$conf_dir/conf-available"]:
            ensure => directory,
            purge => true,
            recurse => true,
            force => true,
            source => "puppet:///lighttpd/empty",
    }
}

I get errors like this:
err: //lighttpd/File[/etc/lighttpd/conf-enabled]: Failed to generate
additional resources during transaction: None of the provided sources exist
debug: //lighttpd/File[/etc/lighttpd/conf-enabled]/checksum: Initializing
checksum hash
debug: //lighttpd/File[/etc/lighttpd/conf-enabled]: Creating checksum
{mtime}Tue Jun 30 19:46:37 -0700 2009
err: //lighttpd/File[/etc/lighttpd/conf-enabled]: Failed to retrieve current
state of resource: No specified source was found from
puppet:///lighttpd/empty

I need to do the same thing for 'monit', so I tested this in my monit module
as well, with the identical (i.e. errors + doesn't work) results.

The above FAQ link was handed out as recently as May 27th-ish, so if this
technique is deprecated, it hasn't been for long.

And the salient bits:
puppetversion => 0.24.8
rubyversion => 1.8.7
facterversion => 1.5.1

Would appreciate any guidance.

--~--~---------~--~----~------------~-------~--~----~
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 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to