Should have looked at this more closely before posting... :)

   Obvious Answer after looking at the code: confdir =
Puppet.settings.value('confdir')



On Dec 14, 4:12 pm, nothings_absolute <[email protected]> wrote:
> I will try to make this short... I need to determine what the absolute
> path is to the module base directory from within a function. So far I
> have found that I can use the following to get part of it:
>
>       env = lookupvar('environment').to_sym
>       env_path = Puppet.settings.instance_variable_get(:@values)[env]
> [:modulepath].split(":")
>
> This results in "$confdir/<environment>/modules", but I haven't been
> able to find any way to look up what "$confdir" is. Does anyone know
> of a way to look this up from within a function? It doesn't appear to
> be accessible as a variable using lookupvar.
>
> Thank

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