Possible to add 'refreshonly' functionality to a custom type/provider?

asked 2016-09-09 05:03:58 -0600

landerson61 gravatar image

Hi,

Is there any way in Puppet to add functionality to a custom type/provider similar to the 'refreshonly' parameter of the Exec type?

I have a custom resource type that I only wish to be executed when notified by another resource.

Thanks

edit retag flag offensive close merge delete

Comments

Short answer: Yes, I guess. Just look into the source how Puppet itself implemented the Exec resource type.

Kai Burghardt gravatar imageKai Burghardt ( 2016-09-09 08:46:12 -0600 )edit