<commit_before>node_name "pivotal"
chef_server_url "<%= @prefix %>://<%= @vip %>"
chef_server_root "<%= @prefix %>://<%= @vip %>"
no_proxy "<%= node['private_chef']['lb']['vip'] %>"
client_key "/etc/opscode/pivotal.pem"
ssl_verify_mode :verify_none
<commit_msg>Teach pivotal.rb veil and create a temp file for knife opc<commit_after>require "tempfile"
require "veil"

secrets_file = ENV['SECRETS_FILE'] || "/etc/opscode/private-chef-secrets.json"
credentials = Veil::CredentialCollection::ChefSecretsFile.from_file(secrets_file)

key = Tempfile.new("latovip")
key.puts credentials.get("chef-server", "superuser_key")
key.flush
key.close

node_name "pivotal"
chef_server_url "<%= @prefix %>://<%= @vip %>"
chef_server_root "<%= @prefix %>://<%= @vip %>"
no_proxy "<%= node['private_chef']['lb']['vip'] %>"
client_key key.path
ssl_verify_mode :verify_none

{'fraction_non_alphanumeric': 0.20023419203747073, 'fraction_numerical': 0.0, 'mean_word_length': 7.142857142857143, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '422698', 'n_tokens_mistral': 348, 'n_tokens_neox': 327, 'n_words': 54}