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

default_attributes(
  :accounts => {
    :users => {
      :icladmin => { :status => :user }
    }
  },
  :networking => {
    :nameservers => ["146.179.159.177"],
    :roles => {
      :internal => {
        :inet => {
          :prefix => "27",
          :gateway => "146.179.159.177"
        }
      },
      :external => {
        :zone => "ic",
        :inet => {
          :prefix => "27",
          :gateway => "193.63.75.97"
        },
        :inet6 => {
          :prefix => "64",
          :gateway => "fe80::5:73ff:fea0:1"
        }
      }
    }
  },
  :sysfs => {
    :cpufreq_ondemand_low => {
      :comment => "Tune the ondemand CPU frequency governor for reduced scaling",
      :parameters => {
        "devices/system/cpu/cpufreq/ondemand/up_threshold" => "95",
        "devices/system/cpu/cpufreq/ondemand/sampling_down_factor" => "1"
      }
    }
  }
)

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]"
)

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

default_attributes(
  :accounts => {
    :users => {
      :icladmin => { :status => :user }
    }
  },
  :networking => {
    :nameservers => ["146.179.159.177"],
    :roles => {
      :internal => {
        :inet => {
          :prefix => "27",
          :gateway => "146.179.159.177"
        }
      },
      :external => {
        :zone => "ic",
        :inet => {
          :prefix => "27",
          :gateway => "193.63.75.97"
        },
        :inet6 => {
          :prefix => "64",
          :gateway => "fe80::5:73ff:fea0:1"
        }
      }
    }
  }
)

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]"
)

Revert "Reduce CPU up scaling for IC systems due to cooling pressure"
Revert "Reduce CPU up scaling for IC systems due to cooling pressure"

This reverts commit 90503ef133f53d9f2d45dea515904965e85222ce.
