]> git.openstreetmap.org Git - chef.git/blob - roles/viserion.rb
Use a common set of default resolvers, defaulting to cloudflare
[chef.git] / roles / viserion.rb
1 name "viserion"
2 description "Master role applied to viserion"
3
4 default_attributes(
5   :accounts => {
6     :users => {
7       :anovak => { :status => :administrator }
8     }
9   },
10   :hardware => {
11     :shm_size => "36g"
12   },
13   :location => "Pula, Croatia",
14   :munin => {
15     :allow => ["193.198.233.210"]
16   },
17   :networking => {
18     :interfaces => {
19       :external_ipv4 => {
20         :interface => "eth0",
21         :role => :external,
22         :family => :inet,
23         :address => "193.198.233.211",
24         :prefix => "29",
25         :gateway => "193.198.233.209"
26       },
27       :external_ipv6 => {
28         :interface => "eth0",
29         :role => :external,
30         :family => :inet6,
31         :address => "2001:b68:4cff:3::3",
32         :prefix => "64",
33         :gateway => "2001:b68:4cff:3::1"
34       }
35     }
36   },
37   :squid => {
38     :version => 4,
39     :cache_mem => "32768 MB",
40     :cache_dir => [
41       "rock /store/squid/rock-4096 20000 swap-timeout=200 slot-size=4096 max-size=3996",
42       "rock /store/squid/rock-8192 25000 swap-timeout=200 slot-size=8192 min-size=3997 max-size=8092",
43       "rock /store/squid/rock-16384 35000 swap-timeout=200 slot-size=16384 min-size=8093 max-size=16284",
44       "rock /store/squid/rock-32768 45000 swap-timeout=200 slot-size=32768 min-size=16285 max-size=262144"
45     ]
46   },
47   :tilecache => {
48     :tile_parent => "pula.render.openstreetmap.org"
49   }
50 )
51
52 run_list(
53   "role[carnet]",
54   "role[tilecache]"
55 )