Hello,

I found the cause of this.

But this is a little bit strange to not specify this in custom types
documentation.

This is listed in FAQ:
http://reductivelabs.com/trac/puppet/wiki/FrequentlyAskedQuestions#err-could-not-retrieve-catalog-invalid-parameter-foo-for-type-bar

Thank you.
--
Maxim Ianoglo


On Feb 27, 11:48 pm, ".Nox" <[email protected]> wrote:
> Hello,
>
> I am playing with custom types and providers development and got a
> issue.
> While 
> reading:http://reductivelabs.com/trac/puppet/wiki/Development/PracticalTypeshttp://reductivelabs.com/trac/puppet/wiki/Development/CompleteResourc...http://www.kartar.net/2010/02/puppet-types-and-providers-are-easy/http://www.kartar.net/2010/02/puppet-parsedfile-types-and-providers/
>
> I created an test type:
> ==============================================
> module Puppet
>     newtype(:mytest) do
>         newparam(:name)
>         newparam(:file)
> #        newparam(:line)
>     end
> end
> ==============================================
>
> And provider:
> ==============================================
> Puppet::Type.type(:mytest).provide(:mytest) do
>     desc "Test"
>
> end
> ==============================================
>
> In site.pp added
> ==============================================
> class test
> {
>     mytest { "wp":
>         name => "wp",
>         file => "test",
>
>    }}
>
> node 'server'
> {
>     include test}
>
> ==============================================
>
> And I am getting this error:
> err: Could not retrieve catalog from remote server: Error 400 on
> SERVER: Invalid parameter 'file' for type 'Mytest' at /etc/puppet/
> manifests/site.pp:16 on node server
>
> Dow anyone know why this happens ?
>
> As per documentation this should work ( if I understood it right )
>
> Thank you.
> --
> Maxim Ianoglo

-- 
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.

Reply via email to