anchor.diff:    ${MKDIR} -p $(${DIRNAME} ${CLUSTER_CONFIG})
     CONFIG_NODES=""
     <% ips.each_index do |idx| %>
  -  CONFIG_NODES="${CONFIG_NODES},{rabbit@node<%= idx %>,disc}"
  +  CONFIG_NODES="${CONFIG_NODES},{rabbit@<%= Digest::MD5.hexdigest(ips[idx]) %>,disc}"
     <% end %>
     CONFIG_NODES=$(printf "${CONFIG_NODES}" | ${SED} -e 's/^,//')
     CONFIG_VERSION=$("${DATE}" +%s)
     # configure the gospel (seed) node. Other nodes will discover cluster members
     # through it.
  -  CONFIG='[{gospel,{node,rabbit@node0}},{nodes,['"${CONFIG_NODES}"']},{version,'"${CONFIG_VERSION}"'}].'
  +  CONFIG='[{gospel,{node,rabbit@<%= Digest::MD5.hexdigest(ips.first) %>}},{nodes,['"${CONFIG_NODES}"']},{version,'"${CONFIG_VERSION}"'}].'
     printf "${CONFIG}\n" > ${DIR}/cluster
     ${CHOWN} ${USER}:${USER} ${DIR}/cluster
     ${CP} ${DIR}/cluster ${CLUSTER_CONFIG}
  
positive.code:   end
  end
  
  index = Array(ips).index(job_ip)
  require 'digest'
  cookie = p('rabbitmq-server.cookie', Digest::MD5.hexdigest(ips.join))
  
  # TLS versions with a '.' character should include single quotes
  
negative.code:   fi
    ${SED} "/${PREFIX}/,/${SUFFIX}/d" < ${DIR}/env.backup > ${DIR}/env
    printf "${PREFIX}\n${NODENAME}\n${CONFIG}\n${SERVER_START_ARGS}\n${SUFFIX}\n" >> ${DIR}/env
  
    # set custom RabbitMQ db / plugin directory not specifying the node name
    printf "RABBITMQ_MNESIA_DIR=${RABBITMQ_MNESIA_DIR}\n" >> ${DIR}/env
    printf "RABBITMQ_PLUGINS_EXPAND_DIR=${RABBITMQ_PLUGINS_EXPAND_DIR}\n" >> ${DIR}/env
  