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