Hi every one !
This topic has already been discussed plenty of times I suppose but I'm
really new to ruby and Puppet DSL..
I'm trying to simply *add a new param* to an existing (and working) type
but I can't get it working...
So on the master, I have updated these two files :
/etc/puppet/modules/myModule/lib/puppet/*type/newType.rb*
/etc/puppet/modules/myModule/lib/puppet*/provider/newType/provider.rb*
newType.erb
--------------------
...
newparam(:paramName) do
desc "Some description"
end
...
Provider.rb
-----------------
Using with
resource[:paramName]
I have also updated the files from the master :
/var/lib/puppet/lib/puppet/type
/var/lib/puppet/lib/puppet/provider/type/
And then use my new parameter :
newType {'name':
...
paramName => 'value',
...
}
But when the agent is running on my server, the new type and provider files
are uploaded and I get :
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Invalid parameter paramName at /etc/puppet/environments/....pp:180 on node
....
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
I have already read the official documentation about custom types and
custom providers but I don't understand the probleme.
Thanks in advance for your help.
X
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-dev/-/IER4R1tNtdcJ.
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-dev?hl=en.