<commit_before>cert = ssl_certificate 'drone' do
  common_name 'target.com'
  source 'chef-vault'
  bag node['drone']['vault']['bag']
  key_item 'certs'
  key_item_key 'key'
  cert_item 'certs'
  cert_item_key 'cert'
end

# Install/Configure nginx
include_recipe 'nginx::default'

# Override their template with our own
resources("template[#{node['nginx']['dir']}/sites-available/default]").cookbook 'drone'
resources("template[#{node['nginx']['dir']}/sites-available/default]").source 'nginx-default-site.erb'
resources("template[#{node['nginx']['dir']}/sites-available/default]").variables(
  cert: cert
)<commit_msg>Update cookbook for nginx to chef_nginx<commit_after>cert = ssl_certificate 'drone' do
  common_name 'target.com'
  source 'chef-vault'
  bag node['drone']['vault']['bag']
  key_item 'certs'
  key_item_key 'key'
  cert_item 'certs'
  cert_item_key 'cert'
end

# Install/Configure nginx
include_recipe 'chef_nginx::default'

# Override their template with our own
resources("template[#{node['nginx']['dir']}/sites-available/default]").cookbook 'drone'
resources("template[#{node['nginx']['dir']}/sites-available/default]").source 'nginx-default-site.erb'
resources("template[#{node['nginx']['dir']}/sites-available/default]").variables(
  cert: cert
)
{'fraction_non_alphanumeric': 0.1765169424743893, 'fraction_numerical': 0.0, 'mean_word_length': 7.141025641025641, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5241103', 'n_tokens_mistral': 449, 'n_tokens_neox': 444, 'n_words': 77}