<commit_before>name "ic"
description "Role applied to all servers at Imperial College"

default_attributes(
  :accounts => {
    :users => {
      :icladmin => { :status => :user }
    }
  },
  :networking => {
    :nameservers => ["8.8.8.8", "172.16.58.3"],
    :roles => {
      :internal => {
        :inet => {
          :prefix => "27",
          :gateway => "172.16.58.3"
        }
      },
      :external => {
        :zone => "ic",
        :inet => {
          :prefix => "27",
          :gateway => "172.16.31.10"
        },
        :inet6 => {
          :prefix => "64",
          :gateway => "fe80::5:73ff:fea0:1"
        }
      }
    }
  },
  :web => {
    :backends => %w(rails1 rails2 rails3),
    :fileserver => "ironbelly",
    :readonly_database_host => "ramoth.ic.openstreetmap.org"
  }
)

override_attributes(
  :networking => {
    :search => ["ic.openstreetmap.org", "openstreetmap.org"]
  },
  :ntp => {
    :servers => ["0.uk.pool.ntp.org", "1.uk.pool.ntp.org", "europe.pool.ntp.org"]
  }
)

run_list(
  "role[gb]"
)
<commit_msg>Switch load to katla temporarily to reboot ramoth<commit_after>name "ic"
description "Role applied to all servers at Imperial College"

default_attributes(
  :accounts => {
    :users => {
      :icladmin => { :status => :user }
    }
  },
  :networking => {
    :nameservers => ["8.8.8.8", "172.16.58.3"],
    :roles => {
      :internal => {
        :inet => {
          :prefix => "27",
          :gateway => "172.16.58.3"
        }
      },
      :external => {
        :zone => "ic",
        :inet => {
          :prefix => "27",
          :gateway => "172.16.31.10"
        },
        :inet6 => {
          :prefix => "64",
          :gateway => "fe80::5:73ff:fea0:1"
        }
      }
    }
  },
  :web => {
    :backends => %w(rails1 rails2 rails3),
    :fileserver => "ironbelly",
    :readonly_database_host => "katla.bm.openstreetmap.org"
  }
)

override_attributes(
  :networking => {
    :search => ["ic.openstreetmap.org", "openstreetmap.org"]
  },
  :ntp => {
    :servers => ["0.uk.pool.ntp.org", "1.uk.pool.ntp.org", "europe.pool.ntp.org"]
  }
)

run_list(
  "role[gb]"
)

{'fraction_non_alphanumeric': 0.20158656089594026, 'fraction_numerical': 0.04479701353243117, 'mean_word_length': 1.9613259668508287, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, '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': '5577377', 'n_tokens_mistral': 865, 'n_tokens_neox': 813, 'n_words': 131}