[COOK-2646] Refactor logrotate_app definition for readability
[COOK-2646] Parameterize template_mode, template_owner, and temlate_group
[COOK-2646] Fix invalid check for options