On Thursday, February 26, 2015 at 10:02:59 AM UTC-6, Salty Old Cowdawg 
wrote:
>
> Puppet::Type.newtype(:bannerfile) do
>   newparam(:name)do
>   end
>   newparam(:bannertext)do
>   end
>
>   newparam(:bannertext2)do
>   end
>
> end
>
> but a name variable is being defined and I'm still seeing the issue.
>
>

Be certain to restart the master every time you change your type.  Once the 
master loads a version of your type, it cannot unload it or replace it.

Additionally, it's a bit strange that your type has only parameters, and no 
properties.  Your 'bannertext' and 'bannertext2' sound likely to be more 
appropriate as properties -- that is, they sound like they correspond to 
specific measurable, changeable aspects of the things a 'Bannerfile' 
models.  If so, then you should declare them with 'newproperty' instead of 
'newparam', and getters and setters for them should be implemented by your 
provider(s).  As far as I know, however, that should not factor in to the 
error message you reported previously.


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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/4f4450bc-00aa-4108-81de-77f6fb19aba2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to