<commit_before># Chef Server Core
chef_ingredient 'chef-server' do
  version node['test']['chef-server-core']['version']
  config <<-EOS
api_fqdn "#{node['fqdn']}"
ip_version "ipv6"
notification_email "#{node['chef_admin']}"
nginx["ssl_protocols"] = "TLSv1 TLSv1.1 TLSv1.2"
EOS
  action :install
end

file '/tmp/chef-server-core.firstrun' do
  content 'ilovechef\n'
  action :create
end

ingredient_config 'chef-server' do
  notifies :reconfigure, 'chef_ingredient[chef-server]'
end

# Management Console - using the compat shim resource
chef_server_ingredient 'manage' do
  config <<-EOS
disable_sign_up true
support_email_address "#{node['chef_admin']}"
EOS
  action :install
end

file '/tmp/opscode-manage.firstrun' do
  content 'ilovechef\n'<commit_msg>Fix failing tests due to lack of accept_license<commit_after># Chef Server Core
chef_ingredient 'chef-server' do
  version node['test']['chef-server-core']['version']
  config <<-EOS
api_fqdn "#{node['fqdn']}"
ip_version "ipv6"
notification_email "#{node['chef_admin']}"
nginx["ssl_protocols"] = "TLSv1 TLSv1.1 TLSv1.2"
EOS
  action :install
end

file '/tmp/chef-server-core.firstrun' do
  content 'ilovechef\n'
  action :create
end

ingredient_config 'chef-server' do
  notifies :reconfigure, 'chef_ingredient[chef-server]'
end

# Management Console - using the compat shim resource
chef_server_ingredient 'manage' do
  config <<-EOS
disable_sign_up true
support_email_address "#{node['chef_admin']}"
EOS
  action :install
  accept_license true
end

file '/tmp/opscode-manage.firstrun' do
  content 'ilovechef\n'
{'fraction_non_alphanumeric': 0.1286624203821656, 'fraction_numerical': 0.007643312101910828, 'mean_word_length': 5.771551724137931, 'pattern_counts': {'":': 0, '<': 11, '<?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': '3823539', 'n_tokens_mistral': 598, 'n_tokens_neox': 587, 'n_words': 138}