I downloaded the latest version of puppet 2.6.0 today, and still can't
get parameterised classes to work. At least, I think it's 2.6.0... the
version number in the RPM spec file says 0.25.5.
This simple example:
/etc/puppet/manifests/nodes/pax/name01.pax.xxx.com.pp:
node 'name01.pax.xxx.com' {
class { amodule::afunc: version => "1.0" }
}
/etc/puppet/modules/amodule/manifests/afunc.pp:
class amodule::afunc ( $version ) {
file { "/tmp/foo": ensure => directory; }
}
This causes the following error to be displayed on the client:
Jul 30 03:48:45 [email protected] puppet-agent[15475]:
Could not retrieve catalog from remote server: Error 400 on SERVER:
Could not parse for environment production: Syntax error at
'amodule::afunc'; expected '}' at
/etc/puppet/manifests/nodes/pax/name01.pax.xxx.com.pp:9 on node
name01.pax.livegamer.com
The line number is wrong... I removed some comments. But, anyway, this
looks more like a problem with the autoloader finding parameterised
classes. James Turnbull is also telling me that this isn't a
parameterised class. I've read the tersely worded example on the
puppet web site several times, and no matter how many times I read it,
what I have sure as heck looks like a parameterised class to me.
Doug.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" 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-users?hl=en.