<commit_before>***
Chef-Client - <%= node.name %>
Hostname: <%= node['cloud'] ? node['cloud']['public_hostname'] : node['fqdn'] %>
<% if ! Chef::Config[:solo] -%>
Chef Server: <%= Chef::Config[:chef_server_url] %>
<% end -%>
<% if node.chef_environment != '_default' -%>
Environment: <%= node.chef_environment %>
<% end -%>

Roles:
<% node['roles'].each do |role| -%>
  <%= role %>
<% end -%>
<% if node['tags'] && !node['tags'].empty? -%>

Tags:
<% node['tags'].each do |tag| -%>
  <%= tag %>
<% end -%>
<% end -%>
***

<%= node['motd-tail']['additional_text'] %><commit_msg>Show policy group/name when using policyfiles<commit_after>***
Chef-Client - <%= node.name %>
Hostname: <%= node['cloud'] ? node['cloud']['public_hostname'] : node['fqdn'] %>
<% if ! Chef::Config[:solo] -%>
Chef Server: <%= Chef::Config[:chef_server_url] %>
<% end -%>
<% if Chef::Config[:use_policyfile] -%>
Policy Group: <%= node.policy_group %>
Policy Name: <%= node.policy_name %>
<% else -%>
<% if node.chef_environment != '_default' -%>
Environment: <%= node.chef_environment %>
<% end -%>

Roles:
<% node['roles'].each do |role| -%>
  <%= role %>
<% end -%>
<% end -%>
<% if node['tags'] && !node['tags'].empty? -%>

Tags:
<% node['tags'].each do |tag| -%>
  <%= tag %>
<% end -%>
<% end -%>
***

<%= node['motd-tail']['additional_text'] %>
{'fraction_non_alphanumeric': 0.28798185941043086, 'fraction_numerical': 0.0, 'mean_word_length': 4.610169491525424, 'pattern_counts': {'":': 0, '<': 42, '<?xml version=': 0, '>': 42, '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': '340724', 'n_tokens_mistral': 571, 'n_tokens_neox': 501, 'n_words': 87}