Issue #3656 has been updated by Todd Zullinger.
Status changed from Closed to Re-opened
Is it safe to assume that if I see this error, that this bug is not fixed?
I've tested 2.6.0rc2 on CentOS 5 and Fedora 10 systems and I get this for
numerous places in my manifests -- manifests that have worked fine with 0.24
and 0.25.
E.g.:
err: Could not run Puppet configuration client: Parameter require failed: No
title provided and {"exported"=>false, "title"=>"rpmfusion-free",
"tags"=>["yumrepo", "rpmfusion-free"], "type"=>"Yumrepo"} is not a valid
resource reference
err: Could not run Puppet configuration client: Parameter require failed: No
title provided and {"exported"=>false, "title"=>"Certmaster::Config",
"tags"=>["class", "certmaster::config", "certmaster", "config"],
"type"=>"Class"} is not a valid resource reference
The trigger seems to be requiring a list. Something like this:
<pre>
# cat manifests/site.pp modules/test/manifests/init.pp
# manifests/site.pp
node default {
include test::baz
}
# modules/test/manifests/init.pp
class test::foo {
yumrepo { 'test-foo':
enabled => 0,
gpgcheck => 0,
descr => 'Test Foo Repo',
baseurl => 'file:///tmp/foo',
}
}
class test::bar {
yumrepo { 'test-bar':
enabled => 0,
gpgcheck => 0,
descr => 'Test Bar Repo',
baseurl => 'file:///tmp/bar',
}
}
class test::baz {
yumrepo { 'test-baz':
enabled => 0,
gpgcheck => 0,
descr => 'Test Baz Repo',
baseurl => 'file:///tmp/baz',
require => [Yumrepo['test-foo'], Yumrepo['test-bar']],
}
}
# puppet agent -tv --noop
info: Automatically imported test::baz from test
info: Caching catalog for c54-64-test.example.net
err: Could not run Puppet configuration client: Parameter require failed: No
title provided and {"exported"=>false, "title"=>"test-foo", "tags"=>["yumrepo",
"test-foo"], "type"=>"Yumrepo"} is not a valid resource reference
</pre>
Using "require => Yumrepo['test-foo', 'test-bar']" causes this as well.
----------------------------------------
Bug #3656: require statements fail with an error
http://projects.puppetlabs.com/issues/3656
Author: Jesse Wolfe
Status: Re-opened
Priority: High
Assigned to:
Category: serialization
Target version: 2.6.0
Affected version: development
Keywords:
Branch: http://github.com/jes5199/puppet/tree/ticket/master/3656
beata_ reports:
when using this puppet code:
class aide {
package {
"aide":
ensure => installed;
}
exec {
"/usr/sbin/aide --init":
user => root,
creates => "/var/lib/aide/aide.db.new.gz",
timeout => "-1",
require => Package["aide"];
}
}
This error appears:
err: Could not run Puppet configuration client: Parameter require failed: No
title provided and {"exported"=>false, "title"=>"aide", "tags"=>["package",
"aide"], "type"=>"Package"} is not a valid resource reference
--
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.