Re: [Puppet Users] Module organization: file serving

2011-08-30 Thread Arnau Bria
On Tue, 30 Aug 2011 09:44:59 -0400
Nan Liu wrote:

Hi Nan,

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

thanks. now it's clear. What I request is impossible.

> Any reason, you intend to give the agent
> access to the manifests directory instead of using the files
> directory?

No, I simply thought that could be easy to manage files if they are
stored under each subdirectory. Anyway, I'll create a similar
manifests tree under 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"

Yep, that's how we current work.

Thanks for your reply.
 
> Thanks,
> Nan
Cheers,
Arnau

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



Re: [Puppet Users] Module organization: file serving

2011-08-30 Thread Nan Liu
On Tue, Aug 30, 2011 at 5:47 AM, Arnau Bria  wrote:
> On Mon, 29 Aug 2011 10:04:42 -0700
> Nigel Kersten wrote:
>
>> On Mon, Aug 29, 2011 at 8:23 AM, Arnau Bria  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 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.



Re: [Puppet Users] Module organization: file serving

2011-08-30 Thread Arnau Bria
On Mon, 29 Aug 2011 10:04:42 -0700
Nigel Kersten wrote:

> On Mon, Aug 29, 2011 at 8:23 AM, Arnau Bria  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?

Cheers,
Arnau

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



Re: [Puppet Users] Module organization: file serving

2011-08-29 Thread Nigel Kersten
On Mon, Aug 29, 2011 at 8:23 AM, Arnau Bria  wrote:

> Hi all,
>
> Puppet's module organization looks like:
>
> MODULE_PATH
> |-module_name
>|-files
>|-manifests
>|-foo.pp
>|-bar
>|-bar.pp
>
>
> And module autoloading will find bar.pp if I define it as
>
> module_name::bar::bar
>
> 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




>
> I don't find find refenreces to such behaviour at
> http://docs.puppetlabs.com/guides/modules.html ... and my test don't
> work.
>
> TIA,
> Arnau
>
> --
> 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.
>
>


-- 
Nigel Kersten
Product Manager, Puppet Labs

*Join us for **PuppetConf *

Sept 22/23 Portland, Oregon, USA.
*
*

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



[Puppet Users] Module organization: file serving

2011-08-29 Thread Arnau Bria
Hi all,

Puppet's module organization looks like:

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


And module autoloading will find bar.pp if I define it as

module_name::bar::bar

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?

I don't find find refenreces to such behaviour at
http://docs.puppetlabs.com/guides/modules.html ... and my test don't
work.

TIA,
Arnau

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