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