anchor.diff:  <% end %>
   
   EOF
  -
  
positive.code: # -*- mode: shell-script -*-
  #
  # 01-bach-variables
  # 
  # Print relevant BACH variables and hardware info on login.
  #
  
  <% mfg = node['dmi']['system']['manufacturer']
     product = node['dmi']['system']['product_name']
     gb = (node['memory']['total'].to_f / 1024 / 1024).round
     cores = node[:cpu]['0'][:cores].to_i * node[:cpu][:real] %>
  
  cat << EOF
  
  
negative.code: It is equipped with <%= gb %> GB of RAM and <%= cores %> CPU cores.
  <% end %>
  
  Chef-bach version: <%= chef_bach_version || 'UNKNOWN' %>
  Environment: <%= node.chef_environment %>
  Zabbix URL: https://<%= node[:bcpc][:management][:vip] %>:<%= node[:bcpc][:zabbix][:web_port] %>
  Graphite URL: https://<%= node[:bcpc][:management][:vip] %>:<%= node[:bcpc][:graphite][:web_port] %>
  