<commit_before>packages = %w|build-essential mailutils mosh vim ntp|

packages.each do |p|
  package p
end


if node[:hostname]
  file '/etc/hostname' do
    content node[:hostname]
  end
end<commit_msg>properly update hostname from server_base<commit_after>packages = %w|build-essential mailutils mosh vim ntp|

packages.each do |p|
  package p
end


if node[:set_hostname]
  puts node[:set_hostname]

  file '/etc/hostname' do
    content node[:set_hostname]
    notifies :run, 'execute[set hostname]', :immediately
  end

  execute 'set hostname' do
    command 'hostname --file /etc/hostname'
    action :nothing
  end
end
{'fraction_non_alphanumeric': 0.09904153354632587, 'fraction_numerical': 0.0, 'mean_word_length': 4.097560975609756, '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': '7136840', 'n_tokens_mistral': 214, 'n_tokens_neox': 214, 'n_words': 63}