Issue #2686 has been updated by Markus Roberts.
I'll try to trace it down (it appears to be a namespace conflict, one of the
things rails is famous for).
Copied from the Puppet Users list:
<pre>
class samba::server {
case $operatingsystem {
centos: {
$sambadir = '/etc/samba'
package { 'samba':
ensure => installed,
}
service { 'smb':
ensure => running,
hasrestart => true,
hasstatus => true,
enable => true
}
}
}
remotefile { "${sambadir}/smb.conf":
source => 'samba/smb.conf',
mode => 0444,
notify => Service[smb],
}
}
</pre>
<pre>
class geoserver::server {
file {'/var/lib/geoserver':
ensure => directory,
mode => 0775,
owner => tomcat,
group => tomcat
}
file {'/var/lib/geoserver/gwc-conf':
ensure => directory,
mode => 0775,
owner => tomcat,
group => tomcat,
require => File['/var/lib/geoserver'],
}
# cache location
file {'/var/lib/geoserver/gwc':
ensure => '/var/tmp/gwc',
require => [File['/var/tmp/gwc'],File['/var/lib/geoserver']],
}
file {'/var/tmp/gwc':
ensure => directory,
mode => 0775,
owner => tomcat,
group => tomcat
}
}
</pre>
* ActiveRecord 2.3.4 gives the same results
* Quoting smb does not change the behavior
* Puppet 0.24.x does not show the problem, even with AR >= 2.3.3
I think I understand what's going on, but if I haven't posted a diagnosis by
the time you read this, could you provide the debuging line you used (e.g.,
what that output means) and possibly a stack trace (if nothing else, add a
"puts callers" where you stuck your diagnostic line).
Thanks
----------------------------------------
Bug #2686: metaparameters cause failures with ActiveRecord >= 2.3.3
http://projects.reductivelabs.com/issues/2686
Author: Darrell Fuhriman
Status: Accepted
Priority: Normal
Assigned to: Markus Roberts
Category: plumbing
Target version: 0.25.1
Affected version: 0.25.1rc1
Keywords:
Branch:
In testing for the update to 0.25.x, I ran across a problem where the following
error was generated on metaparameters:
@err: Could not run Puppet configuration client: Parameter notify failed: No
title provided and title '{"title"=>"smb", "type"=>"Service",
"builtin_type"=>nil}' is not a valid resource reference@
(see posting from me on puppet-users).
i stuck some debugging code in Puppet::Resource::Reference#initialize
When it works, it gives:
@argtype: "Service[smb]", argtitle: , class: String, is_a? false@
On AR >=2.3.3, I get something like:
@argtype: {"title"=>"/home/projectdx/projectdx-pdxrails", "type"=>"File",
"builtin_type"=>nil}, argtitle: , class: Hash, is_a? false@
This seems to be the case regardless of whether or not storedconfig is set to
true.
--
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://reductivelabs.com/redmine/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
-~----------~----~----~----~------~----~------~--~---