anchor.diff:  chef_dir=/etc/chef
   converge=/usr/local/bin/converge
   role=<%= @chef_role %>
  +environment=<%= @chef_environment %>
   origin=<%= @git_origin %>
   branch=<%= @git_branch %>
   git_key='<%= @git_key_contents %>'
  
positive.code: 
  
  configure_chef() {
    echo "saving current branch ($branch) and role ($role)"
    echo "$branch" > $branchfile
    chmod 644 $branchfile
  
    echo "$role" > $rolefile
    chmod 644 $rolefile
  
    echo "configuring chef solo..."
    cat<<EOF > ${chef_dir}/solo.rb
  
negative.code: #some derived vars
  repo_dir=${chef_dir}/src
  keyfile=${chef_dir}/git_key
  envfile=${chef_dir}/environment
  rolefile=${chef_dir}/role
  branchfile=${chef_dir}/branch
  git_wrapper=${chef_dir}/git_wrapper
  