Hi Dan,

sorry I have to correct myself. I don't know why I did not have it
working before or why I didnt get it, but now it seems to work:

As far as I understand _all_ the providers/types/facts/functions in
the  $modulepath/<module>/lib/ directories of _all_ modules are
loaded, ndepended whether the modules are used or not. Therefore it
does work with the module named 'custom', so the name is irrelevant.

Only one open question remains: in which order are the
$modulepath/<module>/lib/ directories loaded? If I imagine having
identically called files in different modules? Which one will be the
winner? Is is load alphanumerically sorted?

Thanks anyway and bye,
Frederik

On Mon, Feb 15, 2010 at 5:48 AM, Dan Bode <[email protected]> wrote:
> Hi Frederik,
>
> On Fri, Feb 12, 2010 at 4:13 AM, Frederik Wagner <[email protected]>
> wrote:
>>
>> Hi again,
>>
>> reading the documentation about custom function distribution
>> <http://reductivelabs.com/trac/puppet/wiki/PluginsInModules>, I don't
>> understand the following:
>>
>> Normally custom per module facts, types, providers and functions are
>> distributed to the puppet hosts when they are in a the modules lib/
>> directory, like
>> /etc/puppet/modules/<modulename>/lib/{facter,puppet}.
>>
>> This is also true form custom general facts, types and providers when
>> they are a 'custom'-module directory: /etc/puppet/modules/custom/lib/.
>> But this does not hold for general custom functions!
>
> what is this assumption based on?
>
>>
>> Now my question is:
>> Why are general functions _not_ distributed by this mechanism, when I
>> put hem in /etc/puppet/modules/custom/lib/puppet/parser/functions/,
>
> they are distributed, 'custom' here is just the name of the module.
>
>>
>> but per module functions are?
>> Is there a way to distribute these functions?
>>
>>
>> Thanks and bye,
>> Frederik
>>
>> --
>> 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.
>>
>
> --
> 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.
>

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