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