- From: Pete Cheslock <
- Subject: [chef] Re: Question about Windows File Permissions and templates notifying resources
- Date: Tue, 16 Oct 2012 17:51:05 -0400
Wondering how to handle a situation regarding updating perms on a template using the "rights" attribute.
Assume I have a basic subscription to take action when a template changes.
When using the windows "rights" attrib to set the permissions correctly - it will set them each time chef runs, which means each run my resource gets executed.
When you specify rights, they are considered a complete description of all explicit rights on a file: all existing explicit rights will be removed and the new ones added. (Inherited rights will remain on the file).
Given the design of windows file permissions - how could someone setup a template to set the right file permissions on windows, but only notify if the template changes - not notify when the file permissions are set. Seems like one option could be to subscribe a file resource to set the permissions when the template is created or changed - but seems unnecessary if that can be handled in the template resource.
Didn't know if there was a better way - or if the template/notification resource should not be doing what it's doing.
- [chef] Re: Question about Windows File Permissions and templates notifying resources, Pete Cheslock, 10/16/2012
Archive powered by MHonArc 2.6.16.