Issue #1663 has been updated by seanmil.

File 0001-Fix-to-only-run-gsub-on-Strings.patch added
Status changed from Closed to Re-opened

The accepted patch doesn't include the protection from symbols in the patch 
from comment #4.  I have re-added that conditional check as a patch on the 
accepted patch.

Pushed in c3bcf981e6e8055a51081d71cca1742a7b16006f to my githib 0.24.x/bug/1663 
branch.

----------------------------------------
Bug #1663: Regression relating to facter fact naming from 0.24.5
http://projects.reductivelabs.com/issues/show/1663

Author: seanmil
Status: Re-opened
Priority: High
Assigned to: jamtur01
Category: plumbing
Target version: 0.24.6
Complexity: Trivial
Affected version: 0.25.0
Keywords: 


On my Xen hosts I have a lot of network interfaces which automatically are 
created to handle the bridged host-to-guest network traffic.  They are of the 
form vif0.0, vif0.1, vif0.2, etc.

When I run facter I get the dynamically generated facts for the interfaces:
macaddress_vif0.0 => FE:FF:FF:FF:FF:FF
macaddress_vif0.1 => FE:FF:FF:FF:FF:FF
macaddress_vif0.2 => FE:FF:FF:FF:FF:FF
macaddress_vif0.3 => FE:FF:FF:FF:FF:FF
macaddress_vif6.0 => FE:FF:FF:FF:FF:FF

I do not reference these facts in any template or manifest.

In 0.24.5 my manifests all compile, Puppet runs, no errors.  When I upgrade the 
Puppetmaster to 0.24.6rc2 I get the following:

# puppetd --test
info: Loading fact system_environment
info: Loading fact selinux
info: Retrieving plugins
info: Retrieving facts
info: Loading fact system_environment
info: Loading fact selinux
err: Could not retrieve catalog: Failed to parse template rclocal/local.erb: 
[EMAIL PROTECTED]' is not allowed as an instance variable name at 
/var/lib/puppet/files/recipies/development/modules/rclocal/manifests/init.pp:18 
on node myhost.mydomain
warning: Not using cache on failed catalog

I believe that local.erb is just the first ERB template it tries to parse.  It 
is a very simple template which only references the operatingsystem fact.  I 
suspect the "." in the fact name is causing the problem.



----------------------------------------
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://reductivelabs.com/redmine/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
-~----------~----~----~----~------~----~------~--~---

Reply via email to