X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8dad5b405a8015c526e7fd6b64544f25d938c728..67c4970880bf20f42452c57c820b5b8ecaa63862:/roles/katla.rb?ds=inline diff --git a/roles/katla.rb b/roles/katla.rb index 417dc7e60..4753dd832 100644 --- a/roles/katla.rb +++ b/roles/katla.rb @@ -2,8 +2,11 @@ name "katla" description "Master role applied to katla" default_attributes( + :apt => { + :sources => ["postgresql"] + }, :db => { - :cluster => "9.1/main" + :cluster => "9.5/main" }, :devices => { :store_slow => { @@ -50,11 +53,13 @@ default_attributes( :networking => { :interfaces => { :internal_ipv4 => { - :interface => "eth0", + :interface => "bond0", :role => :internal, :family => :inet, - :address => "146.179.159.173", - :hwaddress => "00:25:90:94:91:00" + :address => "10.0.32.40", + :bond => { + :slaves => %w[eth0 eth1] + } } } }, @@ -69,6 +74,13 @@ default_attributes( } }, :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 => { @@ -77,10 +89,9 @@ default_attributes( } } } -); +) run_list( - "role[ic]", - "role[db-master]", - "role[db-backup]" + "role[bytemark]", + "role[db-slave]" )