]> git.openstreetmap.org Git - chef.git/blob - roles/ridley.rb
Spin up memcached on the web frontends
[chef.git] / roles / ridley.rb
1 name "ridley"
2 description "Master role applied to ridley"
3
4 default_attributes(
5   :apache => {
6     :mpm => "event",
7     :event => {
8       :min_spare_threads => 50,
9       :max_spare_threads => 150,
10       :listen_cores_buckets_ratio => 4
11     }
12   },
13   :bind => {
14     :clients => "ucl"
15   },
16   :dhcpd => {
17     :first_address => "10.0.15.1",
18     :last_address => "10.0.15.254"
19   },
20   :networking => {
21     :interfaces => {
22       :external_ipv4 => {
23         :interface => "eth0.2800",
24         :role => :external,
25         :family => :inet,
26         :address => "193.60.236.19"
27       },
28       :internal_ipv4 => {
29         :interface => "eth0.2801",
30         :role => :internal,
31         :family => :inet,
32         :address => "10.0.0.3"
33       }
34     }
35   },
36   :openvpn => {
37     :address => "10.0.16.1",
38     :tunnels => {
39       :ic2ucl => {
40         :port => "1194",
41         :mode => "client",
42         :peer => {
43           :host => "ironbelly.openstreetmap.org",
44           :port => "1194"
45         }
46       },
47       :shenron2ucl => {
48         :port => "1195",
49         :mode => "client",
50         :peer => {
51           :host => "shenron.openstreetmap.org",
52           :port => "1194"
53         }
54       },
55       :ucl2bm => {
56         :port => "1196",
57         :mode => "client",
58         :peer => {
59           :host => "grisu.openstreetmap.org",
60           :port => "1196"
61         }
62       },
63       :firefishy => {
64         :port => "1197",
65         :mode => "client",
66         :peer => {
67           :host => "home.firefishy.com",
68           :port => "1194",
69           :address => "10.0.16.201"
70         }
71       }
72     }
73   }
74 )
75
76 run_list(
77   "role[ucl]",
78   "role[hp-dl360-g6]",
79   "role[gateway]",
80   "role[foundation]",
81   "role[stateofthemap]",
82   "role[switch2osm]",
83   "role[blog]",
84   "role[otrs]",
85   "role[donate]",
86   "recipe[hot]",
87   "recipe[dmca]",
88   "recipe[dhcpd]",
89   "recipe[openvpn]"
90 )