Patches to make resource agents use nodename instead of hostname and minimise use of crm_* commands