Issue #4314 has been reported by Thorsten Biel.
----------------------------------------
Bug #4314: Dashes in definition names no longer allowed?
http://projects.puppetlabs.com/issues/4314
Author: Thorsten Biel
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version:
Affected version: 2.6.0
Keywords:
Branch:
Following output from a client running Puppet 0.25.5, connecting to a master
running 2.6.0:
<pre>
# puppetd --test
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Duplicate definition: Apache::Apache-webmon[default] is already defined in file
/etc/puppet/modules/apache/manifests/setup_apache2_instance.pp at line 361;
cannot redefine at
/etc/puppet/modules/apache/manifests/setup_apache2_instance.pp:368 on node
usateppndb01
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
</pre>
The corresponding excerpt from the manifest:
<pre>
# set up monitoring using munin and webmon
#
# TODO: Munin can handle multiple Apaches per plugin, so this should
# be re-worked to set up Munin once for all Apache instances on
# a server
#
apache::apache-munin { "${apache2instancename}":
apache2instancename => "${apache2instancename}",
projectname => "${projectname}"
}
# webmon should be cleanly set up with separate configs and cron
# jobs per instance - easier to clean up afterwards
#
apache::apache-webmon { "${apache2instancename}":
apache2instancename => "${apache2instancename}",
projectname => "${projectname}"
}
</pre>
When I change the definition names to remove the dash (i.e.
apache::apache-munin becomes apache::munin, same with apache::apache-webmon)
the error disappears.
The above definitions used to work on a 0.25.4 master. I can't find any mention
of
syntax changes regarding definitions in the release notes, please advise.
--
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.