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