Greetings, In discussing file promises it is suggested in the reference, and on this list, that sometimes it is desirable to have separate promises to mind the contents and permissions of a single file. In this way one can be assured of the meaning of a promise kept class. I think I've found a problem with this.
When a file promise deals with just the contents I still see the promise change permissions to a default of 0644. A later promise for permissions must correct this problem. This cycle occurs every run. For example: cf3 -> Destination file /etc/apache2/sites-available/technocrat.conf already exists cf3 -> Object /etc/apache2/sites-available/technocrat.conf had permission 600, changed it to 644 cf3 ?> defining promise result class _etc_apache2_sites_available_technocrat_conf_copy_repaired cf3 -> File /etc/apache2/sites-available/technocrat.conf is an up to date copy of source cf3 ?> defining promise result class _etc_apache2_sites_available_technocrat_conf_copy_kept There is something called preserve for a copy_from body but that deals with the source files. Is there a way to have the copy promise either ignore all permissions or preserve the current target permissions? Sincerely, -- Neil Watson Linux/UNIX Consultant http://watson-wilson.ca _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine