Automate repmgrd configuration

This is being done in !1733 (merged)