The FileServingConfiguration doesn''t even mention
directories. And the reference page doesn''t give an example.
Really, all I want is to fileserve a directory, but with
everything in it retaining its attributes.
When I do this:
file {
"/var/www/html":
ensure => directory,
recurse => true,
owner => "apache",
group => "apache",
mode => "0755",
source => "puppet://192.168.0.171/dist/var/www/html";
}
There are two problems:
1) It doesn''t retain symbolic links. It simply follows the
links to the original file, then fileserves that. I know I
can use the "file" type along with link & target to properly
do symlinks, but ideally, if I''m already serving out the
parent directory, I''d like the symlinks contained therein to
be left intact without having to do another "file" for each
one of them.
2) All the files underneath get owner/group "apache" and
mode 755. I''d like them to stay as they are. If I remove
"recurse", it doesn''t seem to fileserve any files at all,
just the directory (empty).
Sorry if this has been well-covered, I searched the docs and
the archives and couldn''t really find much about it.
johnny
On Jul 31, 2007, at 3:09 PM, johnny wrote:> 1) It doesn''t retain symbolic links. It simply follows the > links to the original file, then fileserves that. I know I > can use the "file" type along with link & target to properly > do symlinks, but ideally, if I''m already serving out the > parent directory, I''d like the symlinks contained therein to > be left intact without having to do another "file" for each > one of them.Unfortunately, you cannot currently serve symlinks.> 2) All the files underneath get owner/group "apache" and > mode 755. I''d like them to stay as they are. If I remove > "recurse", it doesn''t seem to fileserve any files at all, > just the directory (empty).You''d have to remove the owner and mode. You cannot currently only copy files from a remote source, which is probably what you''re trying to do. Is anyone willing to document this on the wiki? -- Always read stuff that will make you look good if you die in the middle of it. -- P. J. O''Rourke --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com