anchor.diff:  # * pushes the node identity into the first-boot.json
   # * installs the chef-client service and kicks off the first run of chef
   
  +set -e
  +
   <%= (@config[:verbosity].to_i > 1 ? 'set -v' : '') %>
   
  -mkdir -p /tmp/knife-bootstrap ; chmod 700 /tmp/knife-bootstrap 
  +mkdir -p /tmp/knife-bootstrap
  +chmod 700 /tmp/knife-bootstrap 
   cd /tmp/knife-bootstrap
   
   <%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%>
  
positive.code: chmod +x  /etc/sv/chef-client/log/run /etc/sv/chef-client/run
  ln -nfs /usr/bin/sv /etc/init.d/chef-client
  
  service chef-client stop ; true
  
  <%- if (@config[:bootstrap_runs_chef_client].to_s == 'true') || (@chef_config.knife[:bootstrap_runs_chef_client].to_s == 'true') %>
  echo -e "`date` \n\n**** \n**** First run of chef:\n****\n"
  
negative.code: service chef-client start
  
  echo -e "`date` \n\n**** \n**** Cluster Chef client bootstrap complete\n****\n"
  ' || echo "Chef bootstrap failed!"
  