anchor.diff:  echo $PUPPET_PID > /var/log/$TAG/puppet.pid
   sleep 5
   
  -wget "https://$MERLIN_API_ENDPOINT/api/i/$ID/sign_key&access_token=$ACCESS_TOKEN" -O /var/log/$TAG/signkey.log
  +wget "$MERLIN_API_ENDPOINT/api/i/$ID/puppet_signkey&access_token=$ACCESS_TOKEN" -O /var/log/$TAG/signkey.log
   
   # We will wait a maximum of ten minutes for puppet to finish, then we assume
   # something is amiss
  
positive.code: 
  if [ -d "proc/$PUPPET_PID" ];
  then
      wget "https://$MERLIN_API_ENDPOINT/api/i/$ID/intervene&access_token=$ACCESS_TOKEN&condition=puppetlongrunning" 
  else
      wget "https://$MERLIN_API_ENDPOINT/api/i/$ID/complete&access_token=$ACCESS_TOKEN"
  fi
  
  echo "Provisioning complete!"
  
negative.code: hostname -F /etc/hostname
  
  # Introduce ourselves to Merlin, or notify it that we're alive
  wget "$MERLIN_API_ENDPOINT/api/i/$ID/hello?hostname=$HOSTNAME&access_token=$ACCESS_TOKEN" -O /var/log/$TAG/hello.log
  
  # Ask Merlin to attach any additional storage that has been provisioned
  wget "$MERLIN_API_ENDPOINT/api/i/$ID/attach_storage&access_token=$ACCESS_TOKEN" -O /var/log/$TAG/attachstorage.log
  
  echo "Processing volume configuration..."
  <% for vol in volumes %>
  