X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/2a3be76929b0a86a7cf206c3aef5151dfa2c2e5d..HEAD:/roles/katla.rb diff --git a/roles/katla.rb b/roles/katla.rb deleted file mode 100644 index 4753dd832..000000000 --- a/roles/katla.rb +++ /dev/null @@ -1,97 +0,0 @@ -name "katla" -description "Master role applied to katla" - -default_attributes( - :apt => { - :sources => ["postgresql"] - }, - :db => { - :cluster => "9.5/main" - }, - :devices => { - :store_slow => { - :comment => "RAID array mounted on /store/arrays/slow", - :type => "block", - :bus => "scsi", - :serial => "3600605b005a0609019290f178be8de77", - :attrs => { - "queue/scheduler" => "deadline", - "queue/nr_requests" => "975", - "queue/rq_affinity" => "2" - } - }, - :store_fast => { - :comment => "RAID array mounted on /store/arrays/fast", - :type => "block", - :bus => "scsi", - :serial => "3600605b005a0726019d062ae23b426fd", - :attrs => { - "queue/scheduler" => "deadline", - "queue/nr_requests" => "975", - "queue/rq_affinity" => "2" - } - }, - :store_ssd_1 => { - :comment => "First disk of RAID array mounted on /store/arrays/ssd", - :type => "block", - :bus => "ata", - :serial => "INTEL_SSDSC2BA400G3_BTTV3141041E400HGN", - :attrs => { - "queue/scheduler" => "noop" - } - }, - :store_ssd_2 => { - :comment => "Second disk of RAID array mounted on /store/arrays/ssd", - :type => "block", - :bus => "ata", - :serial => "INTEL_SSDSC2BA400G3_BTTV3141044Q400HGN", - :attrs => { - "queue/scheduler" => "noop" - } - } - }, - :networking => { - :interfaces => { - :internal_ipv4 => { - :interface => "bond0", - :role => :internal, - :family => :inet, - :address => "10.0.32.40", - :bond => { - :slaves => %w[eth0 eth1] - } - } - } - }, - :postgresql => { - :settings => { - :defaults => { - :shared_buffers => "64GB", - :work_mem => "64MB", - :maintenance_work_mem => "1GB", - :effective_cache_size => "180GB" - } - } - }, - :sysctl => { - :ipv6_autoconf => { - :comment => "Disable IPv6 auto-configuration on internal interface", - :parameters => { - "net.ipv6.conf.bond0.autoconf" => "0", - "net.ipv6.conf.bond0.accept_ra" => "0" - } - }, - :postgres => { - :comment => "Increase shared memory for postgres", - :parameters => { - "kernel.shmmax" => 66 * 1024 * 1024 * 1024, - "kernel.shmall" => 66 * 1024 * 1024 * 1024 / 4096 - } - } - } -) - -run_list( - "role[bytemark]", - "role[db-slave]" -)