puppetlabs-stdlib

112 views
Skip to first unread message

Douglas Garstang

unread,
Aug 29, 2012, 12:58:02 PM8/29/12
to Puppet Users
I'm confused about this...

https://github.com/puppetlabs/puppetlabs-stdlib/

I see a lot of functions there that are the same as the ones that come
standard with puppet. If I create a module and dump this stuff in
there, what happens to the existing stuff? How does puppet know which
one to use?

Doug

jcbollinger

unread,
Aug 29, 2012, 2:57:08 PM8/29/12
to puppet...@googlegroups.com

That's odd.  I don't see anything in there that comes standard with Puppet.  Would you care to give some examples?  Maybe I'm just missing the obvious.


John

Douglas Garstang

unread,
Aug 29, 2012, 3:20:19 PM8/29/12
to puppet...@googlegroups.com
Really? From the function reference at:
http://docs.puppetlabs.com/references/latest/function.html

Common ones seem to be create_resources, crit, defined, err,
extlookup, fail, file .... and so on.

Doug.
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/dTHHvPBQFwMJ.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.



--
Regards,

Douglas Garstang
http://www.linkedin.com/in/garstang
Email: doug.g...@gmail.com
Cell: +1-805-340-5627

R.I.Pienaar

unread,
Aug 29, 2012, 3:23:20 PM8/29/12
to puppet...@googlegroups.com


----- Original Message -----
> From: "Douglas Garstang" <doug.g...@gmail.com>
> To: puppet...@googlegroups.com
> Sent: Wednesday, August 29, 2012 8:20:19 PM
> Subject: Re: [Puppet Users] Re: puppetlabs-stdlib
>
> Really? From the function reference at:
> http://docs.puppetlabs.com/references/latest/function.html
>
> Common ones seem to be create_resources, crit, defined, err,
> extlookup, fail, file .... and so on.

none of the ones you mentioned are also in stdlib:

https://github.com/puppetlabs/puppetlabs-stdlib/tree/master/lib/puppet/parser/functions

Krzysztof Wilczynski

unread,
Aug 29, 2012, 3:54:48 PM8/29/12
to puppet...@googlegroups.com
Hi,

For some reason these are in README.markdown, perhaps a copy-paste mistake. Look inside the directory :)

KW

Jeff McCune

unread,
Aug 29, 2012, 4:36:30 PM8/29/12
to puppet...@googlegroups.com
On Wed, Aug 29, 2012 at 12:54 PM, Krzysztof Wilczynski
<krzysztof....@linux.com> wrote:
> Hi,
>
> For some reason these are in README.markdown, perhaps a copy-paste mistake.
> Look inside the directory :)

Ah this was my fault. I thought I filtered out the function
documentation for core functions but I clearly didn't.

-Jeff

jcbollinger

unread,
Aug 29, 2012, 4:58:22 PM8/29/12
to puppet...@googlegroups.com


On Wednesday, August 29, 2012 2:54:48 PM UTC-5, Krzysztof Wilczynski wrote:
Hi,

For some reason these are in README.markdown, perhaps a copy-paste mistake. Look inside the directory :)

Ah, that explains it.  Silly me, I ignored the README and went straight to the actual sources :)


John
 

Jeff McCune

unread,
Aug 30, 2012, 6:00:56 PM8/30/12
to puppet...@googlegroups.com
On Wed, Aug 29, 2012 at 12:20 PM, Douglas Garstang <doug.g...@gmail.com> wrote:
Really? From the function reference at:
http://docs.puppetlabs.com/references/latest/function.html

Common ones seem to be create_resources, crit, defined, err,
extlookup, fail, file .... and so on.

I've fixed up the README, the function list in the doc is accurate for the 3.0.0 release of stdlib.


Hope this helps,
-Jeff

Douglas Garstang

unread,
Aug 30, 2012, 8:41:37 PM8/30/12
to puppet...@googlegroups.com
Cool. thanks for fixing.
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.

Russell Harrison

unread,
Dec 6, 2012, 8:08:42 PM12/6/12
to puppet...@googlegroups.com

Would it be possible to get the 2.x branches of stdlib  updated as well as the forge entry.  They still don't reflect the actual contents of the module.

Thanks!
Russell
Reply all
Reply to author
Forward
0 new messages