23rd
Puppet: ERROR 400 on SERVER: Must pass ‘param-name’ to Class[‘class-name’]
I’m currently playing with puppet doing some changes to my modules to support Archlinux, at this time I did several changes to my git module, Initially the implementation was something like this:
And then, it became something like this:
In the end I added some new parameters to my git class, and changed my nodes.pp file accordingly:
For some crazy reason, the puppet agent was throwing me the following error:
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Must pass user to Class[Git] at /etc/puppet/modules/git/manifests/init.pp:1 on node vagrantup.dev
Which was pretty annoying, given that I was passing all the parameters that the module was asking for. After two hours of trying in and out, reading documentation, doing magic incantations, etc. I decided to do this to my nodes.pp manifest file:
That miraculously solved the problem, Class inclusion order is important, even if the documentation doesn’t say so. This is as in puppet 2.7.3
