On Tuesday, October 29, 2013 5:44:07 PM UTC-5, Daniel Sage wrote:
>
> I just realised that there is a typo in my example. But the problem
> remains the same, if I've got the following code in acme_inc::workstation
>
> # install and set up the nfs client
> class {'nfs':
> class => "client",
> domain => "acme.example.com",
> }
>
> then I get the following error
>
> Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
> Could not find class acme_inc::workstation for
> puppet-agent-dev.example.com on node puppet-agent-dev.example.com
>
> The two classes are in the correct position, with acme_inc::workstation
> being /etc/puppet/modules/acme_inc/manifests/workstation.pp and the nfs
> class is in /etc/puppet/modules/nfs/manifests/init.pp
>
>
It is conceivable that Puppet does not like you using 'class' as a
parameter name, since it is a Puppet keyword. If so, then this might work
around the problem:
# install and set up the nfs client
class {'nfs':
'class' => "client",
domain => "acme.example.com",
}
But if that indeed is successful, then you should take it merely as
confirmation of the diagnosis. You should not allow such an issue to
remain in your nfs module. If you do, it will bite you again.
John
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/2596e6b3-5f6c-4a12-b2df-7cdecb092720%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.