Issue #10546 has been updated by Daniel Pittman.
micah - wrote: > Facter returns what I expect: the hostname. > This is not an issue with 2.6, which I have been using for some time with the > same version of facter. OK. The specific code should be looking at three values; can I see the actual values of `facter fqdn`, `facter hostname`, and `facter domain` please? To hit the code path above requires that `fqdn` is absent, and that one of `hostname` or `domain` is also absent, which seems odd. ---------------------------------------- Bug #10546: Failed to parse template apache/munin-stats: Could not find value for 'hostname' https://projects.puppetlabs.com/issues/10546 Author: micah - Status: Needs More Information Priority: Normal Assignee: Category: templates Target version: Affected Puppet version: 2.7.6 Keywords: Branch: I tried to upgrade my puppetmaster and one node to 2.7.6, but when I ran it, I got this error: <pre> err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template apache/munin-stats: Could not find value for 'hostname' at 7:/etc/puppet/modules/apache/templates/munin-stats at /etc/puppet/modules/apache/manifests/init.pp:90 on node </pre> The template is simple: <pre> # create a virtual host which provides statistics for munin ExtendedStatus on # hide this a little bit from "normal" accesses Listen <%= real_munin_stats_port %> NameVirtualHost *:<%= real_munin_stats_port %> <VirtualHost *:<%= real_munin_stats_port %>> ServerName <%= hostname %> <Directory /> Order deny,allow Deny from all </Directory> <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from <%= ipaddress %> Allow from 127.0.0.1 </Location> ErrorLog /var/log/apache2/munin-error.log CustomLog /var/log/apache2/munin-access.log combined </VirtualHost> </pre> and the facter fact 'hostname' is available on the system: <pre> eider# facter hostname eider </pre> I'm sorry if this is a duplicate of another issue, I searched around but could not find anything obviously the same. -- 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.
