X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3a4b1c2078cd515e93a5f1bf8967f380fbd1646f..4a9b4158ddba295ec94e90365399562ef60453e5:/roles/katla.rb diff --git a/roles/katla.rb b/roles/katla.rb index 674dd854e..93145eaf6 100644 --- a/roles/katla.rb +++ b/roles/katla.rb @@ -2,6 +2,9 @@ name "katla" description "Master role applied to katla" default_attributes( + :apt => { + :sources => ["postgresql"] + }, :db => { :cluster => "9.1/main" }, @@ -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 => { @@ -80,7 +92,7 @@ default_attributes( ) run_list( - "role[ic]", + "role[bytemark]", "role[db-master]", "role[db-backup]" )