Stateful HA at multiple sites using workflows, general-templates and service-templates