Re: Restricting host access to files

Luke Kanies
Tue, 27 Feb 2007 21:52:41 -0000

On Feb 27, 2007, at 3:50 PM, Trevor Vaughan wrote:

> I suppose that this is a question about fileserver.conf but what
> I''m trying to do is to have something like the following in
> fileserver.conf:
>
> [$hostname]
>     path /var/lib/puppet/files/privatefiles/$hostname.txt
>     allow $hostname
>
> Basically, this would allow access to a file named <hostname>.txt
> for only the host to which it should be delivered.
>
> I''m not entirely sure how you would do this, but it would sure be
> easier than specifying that entry for every host on the network :-P.

See the %h stuff in the fileserver.conf docs:

http://reductivelabs.com/trac/puppet/wiki/FileServingConfiguration

  --
  It''s very hard to predict things . . . Especially the future.
                  -- Prof. Charles Kelemen, Swarthmore CS Dept.
  ---------------------------------------------------------------------
  Luke Kanies | http://reductivelabs.com | http://madstop.com