:hot_standby_feedback => "on",
:standby_mode => "on",
:primary_conninfo => {
- :host => "katla.ic.openstreetmap.org",
+ :host => "katla.bm.openstreetmap.org",
:port => "5432",
:user => "replication",
:passwords => { :bag => "db", :item => "passwords" }
},
- :restore_command => "/usr/bin/rsync katla.ic.openstreetmap.org::archive/%f %p"
+ :restore_command => "/usr/bin/rsync katla.bm.openstreetmap.org::archive/%f %p"
}
}
}
:host => "ironbelly.openstreetmap.org",
:port => "1195"
}
+ },
+ :aws2bm => {
+ :port => "1195",
+ :mode => "client",
+ :peer => {
+ :host => "grisu.openstreetmap.org",
+ :port => "1195"
+ }
}
}
},
default_attributes(
:networking => {
:interfaces => {
+ :internal_ipv4 => {
+ :interface => "bond0",
+ :role => :internal,
+ :family => :inet,
+ :address => "10.0.32.20",
+ :bond => {
+ :slaves => %w(em1 em2)
+ }
+ },
:external_ipv4 => {
- :interface => "em1",
+ :interface => "bond0.214",
:role => :external,
:family => :inet,
- :address => "193.63.75.108",
- :hwaddress => "d8:d3:85:5d:87:a0"
+ :address => "89.16.162.20"
},
:external_ipv6 => {
- :interface => "em1",
+ :interface => "bond0.214",
:role => :external,
:family => :inet6,
- :address => "2001:630:12:500:dad3:85ff:fe5d:87a0"
+ :address => "2001:41c9:2:d6::20"
+ }
+ }
+ },
+ :openvpn => {
+ :address => "10.0.16.5",
+ :tunnels => {
+ :aws2bm => {
+ :port => "1194",
+ :mode => "server",
+ :peer => {
+ :host => "ironbelly.openstreetmap.org"
+ }
},
- :internal_ipv4 => {
- :interface => "em2",
- :role => :internal,
- :family => :inet,
- :address => "146.179.159.168",
- :hwaddress => "d8:d3:85:5d:87:a1"
+ :ic2bm => {
+ :port => "1195",
+ :mode => "server",
+ :peer => {
+ :host => "fafnir.openstreetmap.org"
+ }
}
}
}
)
run_list(
- "role[ic]",
+ "role[bytemark]",
"role[hp-dl180-g6]",
"role[gateway]",
"role[web-storage]",
- "role[planet]"
+ "role[planet]",
+ "recipe[openvpn]"
)
:peer => {
:host => "fafnir.openstreetmap.org"
}
+ },
+ :ic2bm => {
+ :port => "1196",
+ :mode => "client",
+ :peer => {
+ :host => "grisu.openstreetmap.org",
+ :port => "1194"
+ }
}
}
},
: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)
+ }
}
}
},
}
},
: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 => {
)
run_list(
- "role[ic]",
+ "role[bytemark]",
"role[db-master]",
"role[db-backup]"
)
},
:web => {
:status => "database_readonly",
- :database_host => "db-slave",
- :readonly_database_host => "db-slave"
+ :database_host => "ramoth.ic.openstreetmap.org",
+ :readonly_database_host => "ramoth.ic.openstreetmap.org"
}
)