e.atroshkin@gmail.com
2008-Apr-01 12:42 UTC
[Puppet Users] Custom function doesn''t work when using multiple environments
Hi all.
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
--~--~---------~--~----~------------~-------~--~----~
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-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Luke Kanies
2008-Apr-01 15:06 UTC
[Puppet Users] Re: Custom function doesn''t work when using multiple environments
On Apr 1, 2008, at 7:42 AM, e.atroshkin@gmail.com wrote:> > 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.Hrm, crap. Not only are you right, but this won''t actually be a trivial fix. Please file this as a bug. -- The time to repair the roof is when the sun is shining. -- John F. Kennedy --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
e.atroshkin@gmail.com
2008-Apr-02 06:16 UTC
[Puppet Users] Re: Custom function doesn''t work when using multiple environments
> Hrm, crap. Not only are you right, but this won''t actually be a > trivial fix. > > Please file this as a bug. >Ticket #1175 --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---