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