Re: [Puppet Users] Relationship for a called function?

8 views
Skip to first unread message

Nan Liu

unread,
Nov 20, 2012, 12:56:03 PM11/20/12
to puppet...@googlegroups.com
On Tue, Nov 20, 2012 at 1:28 AM, KomodoDave <dave....@ocado.com> wrote:
If you define a custom function in lib/puppet/parser/functions can it be executed with a before or require relationship applied?

Without this I don't understand the logic behind when it will be called, considering relationships make the literal ordering of code in a manifest irrelevant to a degree.


Neither, functions are executed during catalog compilation on the master. Resources in the catalog are applied in the order of their relationship on the client. The first rule in the documentation applies here:


HTH,

Nan 
Reply all
Reply to author
Forward
0 new messages