#if $getVar('chef_validation_file', '') == ""
    #set chef_validation_file = '/etc/chef-server/chef-validator.pem'
#end if
#set f = $open($chef_validation_file)
cat << EOL > /etc/chef/validation.pem
#echo $f.read()
EOL
#silent $f.close()