<commit_before>name "fafnir"
description "Master role applied to fafnir"

default_attributes(
  :bind => {
    :clients => "equinix-dub"
  },
  :dhcpd => {
    :first_address => "10.0.79.1",
    :last_address => "10.0.79.254"
  },
  :exim => {
    :routes => {
      :openstreetmap => {
        :comment => "openstreetmap.org",
        :domains => ["openstreetmap.org"],
        :host => ["shenron.openstreetmap.org"]
      }
    }
  },
  :networking => {
    :interfaces => {
      :internal_ipv4 => {
        :interface => "bond0",
        :role => :internal,
        :family => :inet,
        :address => "10.0.64.2",
        :bond => {
          :mode => "802.3ad",
          :lacprate => "fast",
          :xmithashpolicy => "layer3+4",
          :slaves => %w[eno1 eno2 eno3 eno4 eno49 eno50]
        }
      },
      :external_ipv4 => {
        :interface => "bond0.101",
        :role => :external,
        :family => :inet,
        :address => "172.16.31.10"
      },
      :external_ipv6 => {
        :interface => "bond0.101",
        :role => :external,
        :family => :inet6,
        :address => "fdf8:f53e:61e4::18"
      }
    }
  },
  :prometheus => {
    :snmp => {
      "pdu1" => { :address => "10.0.64.100", :modules => %w[apcups], :labels => { "site" => "dublin" } },
      "pdu2" => { :address => "10.0.64.101", :modules => %w[apcups], :labels => { "site" => "dublin" } },
      "switch1" => { :address => "184.104.226.97", :modules => %w[if_mib juniper_ex4300], :labels => { "site" => "dublin" } }
    },
    :metrics => {
      :uplink_interface => {
        :help => "Site uplink interface name",
        :labels => { :site => "dublin", :name => "ae50" }
      }
    }
  }
)

run_list(
  "role[equinix-dub]",
  "role[hp-g9]",
  "role[gateway]",
  "role[mail]",
  "recipe[dhcpd]"
)
<commit_msg>Correct smarthost name for fafnir<commit_after>name "fafnir"
description "Master role applied to fafnir"

default_attributes(
  :bind => {
    :clients => "equinix-dub"
  },
  :dhcpd => {
    :first_address => "10.0.79.1",
    :last_address => "10.0.79.254"
  },
  :exim => {
    :smarthost_name => "fafnir.openstreetmap.org",
    :routes => {
      :openstreetmap => {
        :comment => "openstreetmap.org",
        :domains => ["openstreetmap.org"],
        :host => ["shenron.openstreetmap.org"]
      }
    }
  },
  :networking => {
    :interfaces => {
      :internal_ipv4 => {
        :interface => "bond0",
        :role => :internal,
        :family => :inet,
        :address => "10.0.64.2",
        :bond => {
          :mode => "802.3ad",
          :lacprate => "fast",
          :xmithashpolicy => "layer3+4",
          :slaves => %w[eno1 eno2 eno3 eno4 eno49 eno50]
        }
      },
      :external_ipv4 => {
        :interface => "bond0.101",
        :role => :external,
        :family => :inet,
        :address => "172.16.31.10"
      },
      :external_ipv6 => {
        :interface => "bond0.101",
        :role => :external,
        :family => :inet6,
        :address => "fdf8:f53e:61e4::18"
      }
    }
  },
  :prometheus => {
    :snmp => {
      "pdu1" => { :address => "10.0.64.100", :modules => %w[apcups], :labels => { "site" => "dublin" } },
      "pdu2" => { :address => "10.0.64.101", :modules => %w[apcups], :labels => { "site" => "dublin" } },
      "switch1" => { :address => "192.168.3.11", :modules => %w[if_mib juniper_ex4300], :labels => { "site" => "dublin" } }
    },
    :metrics => {
      :uplink_interface => {
        :help => "Site uplink interface name",
        :labels => { :site => "dublin", :name => "ae50" }
      }
    }
  }
)

run_list(
  "role[equinix-dub]",
  "role[hp-g9]",
  "role[gateway]",
  "role[mail]",
  "recipe[dhcpd]"
)

{'fraction_non_alphanumeric': 0.21330460544034474, 'fraction_numerical': 0.05386479935362241, 'mean_word_length': 2.095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 116, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 14, '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': '3573640', 'n_tokens_mistral': 1547, 'n_tokens_neox': 1434, 'n_words': 234}