Also, ensure that # repmgr is only added to pg_hba.conf if repmgr is adding anything else. Currently it might get added if repmgr is enabled, but with no trusted addresses, and this currently triggers an unnecessary restart. Will check as part of #2714 (closed)