]> git.openstreetmap.org Git - chef.git/blob - roles/odin.rb
Configure swap rate and timeout for rock caches
[chef.git] / roles / odin.rb
1 name "odin"
2 description "Master role applied to odin"
3
4 default_attributes(
5   :networking => {
6     :interfaces => {
7       :external_ipv4 => {
8         :interface => "bond0",
9         :role => :external,
10         :family => :inet,
11         :address => "130.225.254.123",
12         :prefix => "23",
13         :gateway => "130.225.254.97",
14         :bond => {
15           :mode => "802.3ad",
16           :miimon => "100",
17           :xmithashpolicy => "layer3+4",
18           :lacprate => "fast",
19           :slaves => %w[eno1 eno2]
20         }
21       },
22       :external_ipv6 => {
23         :interface => "bond0",
24         :role => :external,
25         :family => :inet6,
26         :address => "2001:878:346::123",
27         :prefix => "64",
28         :gateway => "2001:878:346::97"
29       }
30     }
31   },
32   :squid => {
33     :version => "3",
34     :cache_mem => "14000 MB",
35     :cache_dir => "rock /store/squid/rock-01 128000 swap-timeout=500 max-swap-rate=150 slot-size=4096 max-size=262144"
36   },
37   :tilecache => {
38     :tile_parent => "aalborg.render.openstreetmap.org",
39     :tile_siblings => [
40       "trogdor.openstreetmap.org",
41       "katie.openstreetmap.org",
42       "konqi.openstreetmap.org",
43       "ridgeback.openstreetmap.org",
44       "gorynych.openstreetmap.org"
45     ]
46   }
47 )
48
49 run_list(
50   "role[dotsrc]",
51   "role[tilecache]"
52 )