customzied type: trigger owner&mode change when ensure present

asked 2016-09-01 21:21:27 -0600

woosley gravatar image

updated 2016-09-01 21:22:00 -0600

I am writing a puppet module to download artifacts from nexus repo, it also support changing ownership and also changing file permission.

When puppet find the file mode/owner is not in sync, it will update automatically, but how can I trigger this modification after I ensure the file present"? Currently I am calling a function manually in create method, sample code is here, it there any elegant way of doing this?

edit retag flag offensive close merge delete