Thanks for the feedback.  My understanding is that the first part of
the path has to be the location for the file server to do the lookup
(as in the /etc/puppet/fileserver.conf file).  Without this the
puppetmaster would not know where to look for the files.  Was this
something that works for you?

My real concern is that the fileserver portion of the puppetmaster
code is not properly handling a modulepath with multiple entries.  Any
ideas where I can verify this?  Thanks.

-eric

On Dec 6, 2:54 pm, jcbollinger <john.bollin...@stjude.org> wrote:
> On Dec 6, 2:54 pm, Eric Snow <es...@verio.net> wrote:
>
>
>
>
>
>
>
>
>
> > Here is the error I get:
>
> > err: //.../File[/root/.bash_profile]: Failed to retrieve current state
> > of resource: Could not retrieve information from source(s)
> > puppet:///modules/bash/bash_profile at ...
>
> > However, the file is there:
>
> > # ll /usr/share/puppet/development/app_modules/bash/files/bash_profile
> > -rw-r--r-- 1 root root 402 Nov 24 05:52 /usr/share/puppet/development/
> > app_modules/bash/files/bash_profile
>
> > Here is my modulepath for my development environment:
>
> > modulepath = /usr/share/puppet/development/app_modules:/usr/share/
> > puppet/development/hosttype_modules:/usr/share/puppet/development/
> > other_modules
>
> > The modulepath is working fine, but I am wondering if it is impacting
> > the lookup for the file serving stuff.  I tried finding where the
> > puppetmaster actually looks for the file but got lost in all the
> > puppet code.  Thanks.
>
> Try changing the URL to this:
>
> puppet:///bash/bash_profile
>
> That is, drop the "modules" part of the path.
>
> You can read that URL as something like: file "bash_profile" from the
> "bash" module, located on the Puppet server from which the current
> catalog was obtained.  File names are relative to the "files"
> subdirectory of the named module, so it looks like you have the file
> itself in the right place.
>
> As Patrick pointed out, the file *and all directories in the path to
> it* do need to be readable by the puppetmaster process, and the
> directories need to be executable by it.
>
> Cheers,
>
> John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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