X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b94d4a76480cb249ffd6f72585fe03da3f7fcf5d..7b18a5954711dd534f484023c1526106ffc95afb:/roles/culebre.rb diff --git a/roles/culebre.rb b/roles/culebre.rb index 80729a770..dd29fe29b 100644 --- a/roles/culebre.rb +++ b/roles/culebre.rb @@ -2,44 +2,69 @@ name "culebre" description "Master role applied to culebre" default_attributes( - :hardware => { - :shm_size => "18g" - }, :networking => { :interfaces => { + :internal_ipv4 => { + :interface => "bond0", + :role => :internal, + :family => :inet, + :address => "10.0.64.9", + :bond => { + :mode => "802.3ad", + :lacprate => "fast", + :xmithashpolicy => "layer3+4", + :slaves => %w[enp68s0f0 enp68s0f1 enp68s0f2 enp68s0f3] + } + }, :external_ipv4 => { - :interface => "ens3", + :interface => "bond0.101", :role => :external, :family => :inet, - :address => "155.210.4.103", - :prefix => "28", - :gateway => "155.210.4.110" + :address => "184.104.226.105" }, - :internal_ipv4 => { - :interface => "ens4", - :role => :internal, - :family => :inet, - :address => "10.148.97.151", - :prefix => "24" + :external_ipv6 => { + :interface => "bond0.101", + :role => :external, + :family => :inet6, + :address => "2001:470:1:b3b::9" + } + } + }, + :postgresql => { + :settings => { + :defaults => { + :shared_buffers => "8GB", + :maintenance_work_mem => "7144MB", + :effective_cache_size => "16GB" } } }, - :squid => { - :version => 4, - :cache_mem => "10240 MB", - :cache_dir => [ - "rock /store/squid/rock-4096 12800 swap-timeout=200 slot-size=4096 max-size=3996", - "rock /store/squid/rock-8192 16000 swap-timeout=200 slot-size=8192 min-size=3997 max-size=8092", - "rock /store/squid/rock-16384 22400 swap-timeout=200 slot-size=16384 min-size=8093 max-size=16284", - "rock /store/squid/rock-32768 22800 swap-timeout=200 slot-size=32768 min-size=16285 max-size=262144" - ] + :sysctl => { + :postgres => { + :comment => "Increase shared memory for postgres", + :parameters => { + "kernel.shmmax" => 9 * 1024 * 1024 * 1024, + "kernel.shmall" => 9 * 1024 * 1024 * 1024 / 4096 + } + } }, - :tilecache => { - :tile_parent => "zaragoza.render.openstreetmap.org" + :tile => { + :database => { + :cluster => "14/main", + :postgis => "3" + }, + :mapnik => "3.1", + :styles => { + :default => { + :tile_directories => [ + { :name => "/store/tiles/default", :min_zoom => 0, :max_zoom => 19 } + ] + } + } } ) run_list( - "role[unizar]", - "role[tilecache]" + "role[equinix-dub]", + "role[tile]" )