<commit_before>require 'rubygems'
require 'ohai'
o = Ohai::System.new

# Disable the Ohai password module which explodes on a Single-Sign-On-joined system
Ohai::Config[:disabled_plugins] = [ "passwd" ]

o.all_plugins(['hostname','ipaddress'])

log_level                :info
log_location             STDOUT
node_name                o[:fqdn]
client_key               "/home/vagrant/chef-bcpc/.chef/#{o[:<KEY>"
validation_client_name   'chef-validator'
validation_key           '/etc/chef-server/chef-validator.pem'
chef_server_url          'https://<%= node[:bcpc][:bootstrap][:server] %>'
syntax_check_cache_path  '/home/vagrant/chef-bcpc/.chef/syntax_check_cache'
cookbook_path            '/home/vagrant/chef-bcpc/cookbooks'

<% if node[:bcpc][:bootstrap][:proxy] != nil -%>
no_proxy_array = ["localhost", o[:ipaddress], o[:hostname], o[:fqdn], "<%= node[:bcpc][:bootstrap][:server] %>", "<%= node[:bcpc][:bootstrap][:server] %>"]
no_proxy_array.insert("*#{o[:domain]}") unless o[:domain].nil?
no_proxy_string = no_proxy_array.uniq * ","

ENV['http_proxy'] = "<%= node[:bcpc][:bootstrap][:proxy] %>"
ENV['https_proxy'] = "<%= node[:bcpc][:bootstrap][:proxy].sub!('http','https') %>"
ENV['no_proxy'] = no_proxy_string
http_proxy ENV['http_proxy']
https_proxy ENV['https_proxy']
no_proxy no_proxy_string<commit_msg>Correct cookbook path for vendoring<commit_after>require 'rubygems'
require 'ohai'
o = Ohai::System.new

# Disable the Ohai password module which explodes on a Single-Sign-On-joined system
Ohai::Config[:disabled_plugins] = [ "passwd" ]

o.all_plugins(['hostname','ipaddress'])

log_level                :info
log_location             STDOUT
node_name                o[:fqdn]
client_key               "/home/vagrant/chef-bcpc/.chef/#{o[:<KEY>"
validation_client_name   'chef-validator'
validation_key           '/etc/chef-server/chef-validator.pem'
chef_server_url          'https://<%= node[:bcpc][:bootstrap][:server] %>'
syntax_check_cache_path  '/home/vagrant/chef-bcpc/.chef/syntax_check_cache'
cookbook_path            '/home/vagrant/chef-bcpc/vendor/cookbooks'

<% if node[:bcpc][:bootstrap][:proxy] != nil -%>
no_proxy_array = ["localhost", o[:ipaddress], o[:hostname], o[:fqdn], "<%= node[:bcpc][:bootstrap][:server] %>", "<%= node[:bcpc][:bootstrap][:server] %>"]
no_proxy_array.insert("*#{o[:domain]}") unless o[:domain].nil?
no_proxy_string = no_proxy_array.uniq * ","

ENV['http_proxy'] = "<%= node[:bcpc][:bootstrap][:proxy] %>"
ENV['https_proxy'] = "<%= node[:bcpc][:bootstrap][:proxy].sub!('http','https') %>"
ENV['no_proxy'] = no_proxy_string
http_proxy ENV['http_proxy']
https_proxy ENV['https_proxy']
no_proxy no_proxy_string
{'fraction_non_alphanumeric': 0.1915694392171622, 'fraction_numerical': 0.0, 'mean_word_length': 4.933035714285714, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 2, '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': '7548910', 'n_tokens_mistral': 958, 'n_tokens_neox': 942, 'n_words': 135}