Environments settings in puppet.conf:
client:
[main]
environment = production
server:
[main]
environments = production,development
[production]
manifest = /usr/local/etc/puppet/manifests/production/site.pp
modulepath = /usr/local/etc/puppet/modules/production
I have module for postfix configuration with custom function
My postfix module located in /usr/local/etc/puppet/modules/production/postfix and my custom function in /usr/local/etc/puppet/modules/production/postfix/plugins/puppet/parser/functions.
I get the following error running puppet client:
err: Could not retrieve catalog: Unknown function .... at /usr/local/etc/puppet/modules/production/postfix/manifests/init.pp:60 on node .....
If I disable using this function in postfix/manifests/init.pp module works.
If I use setup without environments with configuration:
[main]
manifest = /usr/local/etc/puppet/manifests/site.pp
modulepath = /usr/local/etc/puppet/modules
and place module into /usr/local/etc/puppet/modules/postfix and function into /usr/local/etc/puppet/modules/postfix/plugins/puppet/parser/functions
everything works as expected.
os version: FreeBSD-6.2
puppet version: 0.24.4