anchor.diff:  #!/bin/bash
   #
   # assumes that openstack credentails are set in this file
  -source <%= rc_file_path %>
  +source <%= @rc_file_path %>
   
  -<% if image_type == 'cirros' -%>
  +<% if @image_type == 'cirros' -%>
   
   # Grab an image.  Cirros is a nice small Linux that's easy to deploy
   wget --quiet https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img
  
positive.code: nova --no-cache keypair-add --pub_key /tmp/id_rsa.pub key_cirros
  
  
  instance_name='<%= image_type %>_test_vm'
  
  <% if quantum -%>
  
  quantum net-create public --router:external=True
  quantum subnet-create --allocation-pool start=172.16.2.128,end=172.16.2.150 public 172.16.2.0/24
  
negative.code: quantum security-group-rule-create --protocol icmp --direction ingress default
  quantum security-group-rule-create --protocol tcp --port-range-min 22 \
    --port-range-max 22 --direction ingress default
  sleep <%= @sleep_time %>
  ssh $login_user@$floating_ip -i /tmp/id_rsa -o StrictHostKeyChecking=no hostname
  <% end %>
  exit 0
  