Issue #1175 has been updated by Luke Kanies. Assigned to changed from Rein Henrichs to Markus Roberts Branch set to luke/tickets/master/1175-functions_in_environments
I've pushed an incomplete version of this. My code moves all of the scope functions into modules, but doesn't successfully support environments - Markus will fix that. The problem is that we have no real way of knowing which environment a given function is for; this problem also needs to be solved for the internal dsl work. ---------------------------------------- Bug #1175: Custom function doesn't work when using multiple environments http://projects.puppetlabs.com/issues/1175 Author: eugene - Status: Accepted Priority: High Assigned to: Markus Roberts Category: language Target version: Rowlf Patch: None Affected version: 0.22.1 Keywords: Branch: luke/tickets/master/1175-functions_in_environments Environments settings in @puppet.conf@: client: <pre> [main] environment = production </pre> server: <pre> [main] environments = production,development [production] manifest = /usr/local/etc/puppet/manifests/production/site.pp modulepath = /usr/local/etc/puppet/modules/production </pre> 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/functi...@. I get the following error running puppet client: <pre> err: Could not retrieve catalog: Unknown function .... at /usr/local/etc/puppet/modules/production/postfix/manifests/init.pp:60 on node ..... </pre> If I disable using this function in @postfix/manifests/init.pp@ module works. If I use setup without environments with configuration: <pre> [main] manifest = /usr/local/etc/puppet/manifests/site.pp modulepath = /usr/local/etc/puppet/modules </pre> 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 have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" 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-bugs?hl=en.
