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