Issue #14337 has been reported by Walter Heck.
----------------------------------------
Refactor #14337: Error message when trying to realise virtual resources where
none exist
https://projects.puppetlabs.com/issues/14337
Author: Walter Heck
Status: Unreviewed
Priority: Normal
Assignee:
Category: error reporting
Target version:
Affected Puppet version: 2.7.14
Keywords:
Branch:
I was trying to use the puppetlabs-puppet module when I hit a problem with a
very cryptic error message:
<pre>info: Caching catalog for tribily-stage01.local
err: Failed to apply catalog: Parameter notify failed: No title provided and
"undef" is not a valid resource reference</pre>
Not even a 'puppet agent -tvd' run would give any clue as to what happened. I
ended up disabling and running code over and over to find the culprit.
Somewhere in that module, it is blindly assumed that in the else part of an if
statement, some resources needed to be realised. Problem is: they were not
declared virtual to begin with. Here's the offending statement:
<pre> if ! defined(Concat[$puppet_conf]) {
concat { $puppet_conf:
mode => '0644',
owner => 'puppet',
group => 'puppet',
require => $service_require,
notify => $service_notify,
}
}
else {
Concat<| title == $puppet_conf |> {
require => $service_require,
owner => 'puppet',
group => 'puppet',
notify +> $service_notify,
}
}</pre>
I think it would be beneficial for many if that error message was improved on :)
--
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.