Issue #10546 has been updated by Espen  Tagestad.

I got the same problem, on FreeBSD 8.2-RELEASE running puppet-2.7.6:

dimuweb-test# pcons (alias for /usr/local/sbin/puppetd --server 
puppet.kulturit.no --rundir /var/run/puppet --vardir /var/puppet --onetime 
--verbose --report --pluginsync --no-daemonize)
info: Retrieving plugin
info: Loading facts in get_installed_ports
info: Loading facts in parent
info: Loading facts in get_installed_ports
info: Loading facts in parent
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed 
to parse template dimuweb31/httpd-vhosts.conf/MASTER.erb: Could not find value 
for 'hostname' at 
31:/usr/local/etc/puppet/templates/dimuweb31/httpd-vhosts.conf/MASTER.erb at 
/usr/local/etc/puppet/modules/dimuweb31/manifests/init.pp:32 on node 
dimuweb-test.mid.no
info: Not using expired catalog for dimuweb-test.mid.no from cache; expired at 
Wed Nov 09 15:09:51 +0100 2011
notice: Using cached catalog
err: Could not retrieve catalog; skipping run
dimuweb-test# 

On the server:
Nov  9 15:43:24 puppet puppet-master[12460]: Host is missing hostname and/or 
domain: dimuweb-test.mid.no
Nov  9 15:43:24 puppet puppet-master[12460]: Failed to parse template 
dimuweb31/httpd-vhosts.conf/MASTER.erb: Could not find value for 'hostname' at 
31:/usr/local/etc/puppet/templates/dimuweb31/httpd-vhosts.conf/MASTER.erb at 
/usr/local/etc/puppet/modules/dimuweb31/manifests/init.pp:32 on node 
dimuweb-test.mid.no
Nov  9 15:43:24 puppet puppet-master[12460]: Failed to parse template 
dimuweb31/httpd-vhosts.conf/MASTER.erb: Could not find value for 'hostname' at 
31:/usr/local/etc/puppet/templates/dimuweb31/httpd-vhosts.conf/MASTER.erb at 
/usr/local/etc/puppet/modules/dimuweb31/manifests/init.pp:32 on node 
dimuweb-test.mid.no


Its something about the hostname, but it is indeed fqdn as the log states 
itself.

Thanks for any advice.
----------------------------------------
Bug #10546: Failed to parse template apache/munin-stats: Could not find value 
for 'hostname' 
https://projects.puppetlabs.com/issues/10546

Author: micah -
Status: Unreviewed
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.

Reply via email to