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