You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
Hi All,
as I understood a Deferred function is invoked as the first part of enforcing a catalog.
I have a deferred function which depends on the results of a certain resource. So I have to make sure the resource is applied before the deferred function is executed.
Unfortunately a require function doesn't solve this.
How do I accomplish that?
regards,
Vincent Lamers
Henrik Lindberg
unread,
Jul 7, 2020, 11:06:57 AM7/7/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
You cannot do this with Deferred functions. All deferred functions are
evaluated in undefined order before the catalog is applied. Resources
are applied after this.
You can view it as an extension of the compilation of the catalog - only
deferred and taking place on the agent side.
If you cannot solve this with exec resources you may need to implement
your own resource type.