made easier to read/follow, added correct logic to rerun chef on ha controller 1