Unknown function: 'ensure_resource'

293 views
Skip to first unread message

Sajith Kariyawasam

unread,
Jan 6, 2016, 8:23:40 AM1/6/16
to Puppet Geppetto
Hi devs, 

Geppetto is a great tool, I have started using Version: 4.3.1, 

But when I tried to open some of the puppet modules we have been working, it gives me following errors.

Unknown function: 'ensure_resource'
Unknown function: 'size'

I have set the puppet target version to 4.0. But still it didn't work for me,
Any idea?

Thanks,
Sajith

Henrik Lindberg

unread,
Jan 6, 2016, 11:18:01 AM1/6/16
to public-puppet-geppetto...@plane.gmane.org


On 2016-06-01 14:23, Sajith Kariyawasam wrote:
> Hi devs,
>
> Geppetto is a great tool, I have started using Version: 4.3.1,
>
> But when I tried to open some of the puppet modules we have been
> working, it gives me following errors.
>
> Unknown function: 'ensure_resource'
> Unknown function: 'size'
>

Geppetto only knows about the functions that are in puppet core. The
functions that it reports are missing are in some module - I think they
are in standard lib.

There are entries in the FAQ for how to deal with this. The simplest is
to have the stdlib module as a project in your geppetto workspace and
that your module has a declaration that it depends on standard lib.

There are ways to cheat if you like - how to is mentioned in the FAQ (IIRC).

Regards
- henrik

> I have set the puppet target version to *4.0. *But still it didn't work
> for me,
> Any idea?
>
> Thanks,
> Sajith
>
> --
> You received this message because you are subscribed to the Google
> Groups "Puppet Geppetto" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
> puppet-geppetto+unsubscribe-/JYPxA39Uh5...@public.gmane.org
> <mailto:puppet-geppetto+unsubscribe-/JYPxA39Uh5...@public.gmane.org>.
> For more options, visit https://groups.google.com/d/optout.


--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

Sajith Kariyawasam

unread,
Jan 6, 2016, 3:03:06 PM1/6/16
to Puppet Geppetto, public-puppet-geppetto...@plane.gmane.org
Thanks for the reply Henrick. It worked.!
Reply all
Reply to author
Forward
0 new messages