anchor.diff:  echo $PUPPET_PID > /var/log/$TAG/puppet.pid
   sleep 5
   
  -wget "$MERLIN_API_ENDPOINT/api/i/$ID/puppet_signcert&access_token=$ACCESS_TOKEN" -O /var/log/$TAG/signkey.log
  +api_request signcert "$MERLIN_API_ENDPOINT/api/i/$INSTANCE_ID/puppet_signcert?access_token=$ACCESS_TOKEN"
   
   # We will wait a maximum of ten minutes for puppet to finish, then we assume
  -# something is amiss
  +# something is amiss (this section probably needs some work)
   
   TIMEOUT=600
   count=0
  
positive.code: 
  if [ -d "proc/$PUPPET_PID" ];
  then
      wget "$MERLIN_API_ENDPOINT/api/i/$ID/intervene&access_token=$ACCESS_TOKEN&condition=puppetlongrunning" 
  else
      wget "$MERLIN_API_ENDPOINT/api/i/$ID/complete&access_token=$ACCESS_TOKEN"
  fi
  
  echo "Provisioning complete!"
  
  
negative.code: # Now, make an augeas file that will update our fstab appropriately.
  cat <<EOF /etc/$TAG/fstab.augeas.<%= vol.volume_id %>
  defvar fstab /files/etc/fstab
  set \$fstab/01/spec $<%= vol_id %>_DEVICE
  set \$fstab/01/file <%= vol.mount_point %>
  set \$fstab/01/vfstype $<%= vol_id %>_FS
  set \$fstab/01/opt[0] defaults
  set \$fstab/01/dump 0
  set \$fstab/01/passno 0
  save
  EOF
  
  # Hopefully update fstab with our shiny new augeas file.
  augtool < /etc/$TAG/fstab.augeas.<%= vol.volume_id %> 1>&2 2> /var/log/$TAG/augeas.log
  
  # Lastly, mount the volume.
  mount <%= vol.mount_point %>
  <% else %>
  echo "Not dealing with volume <%= vol.attachment_device %>, mount point <%= vol.mount_point %> - flagged as root device"
  <% end %>
  