On Tue, Aug 30, 2011 at 5:47 AM, Arnau Bria <[email protected]> wrote:
> On Mon, 29 Aug 2011 10:04:42 -0700
> Nigel Kersten wrote:
>
>> On Mon, Aug 29, 2011 at 8:23 AM, Arnau Bria <[email protected]> wrote:
>
> Hi Nigel,
>
> I think my question was not clear:
>
>> > MODULE_PATH
>> > |-module_name
>> >        |-files
>> >        |-manifests
>> >                |-foo.pp
>> >                |-bar
>> >                        |-bar.pp
>> >
>> >
>> > My question is: is there a similar behaviour for file serving? May I
>> > create a file dir under bar directory and serve files from there?
>> >
>>
>> Yes.
>>
>> $module_name/files/foo/bar/baz
>>
>> is
>>
>> puppet:///modules/$module_name/foo/bar/baz
>
> and:
>
> $module_name/manifests/bar/files/baz?
>
> is accessible?

No, files in the manifests directory are not accesible through source
=> puppet:///... The manifests directory is intended to be
inaccessible to the agent since it contains files that should be
compiled on the master. Any reason, you intend to give the agent
access to the manifests directory instead of using the files
directory?

MODULE_PATH
|-module_name
       |-files
               |-bar
                      |-baz
       |-manifests
               |-foo.pp
               |-bar
                       |-bar.pp

So for the agent to retrieve files/bar/baz:
source => "${module_name}/bar/baz"

Thanks,

Nan

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