]> git.openstreetmap.org Git - chef.git/blob - roles/shenron.rb
800ba219faad4356ca4d285d5daeec1ef791572c
[chef.git] / roles / shenron.rb
1 name "shenron"
2 description "Master role applied to shenron"
3
4 default_attributes(
5   :accounts => {
6     :users => {
7       :bretth => {
8         :status => :user,
9         :shell => "/usr/bin/git-shell"
10       }
11     }
12   },
13   :apache => {
14     :mpm => "event",
15     :event => {
16       :min_spare_threads => 50,
17       :max_spare_threads => 150
18     }
19   },
20   :hardware => {
21     :modules => [
22       "it87"
23     ]
24   },
25   :openvpn => {
26     :address => "10.0.16.3",
27     :tunnels => {
28       :shenron2ucl => {
29         :port => "1194",
30         :mode => "server",
31         :peer => {
32           :host => "ridley.openstreetmap.org"
33         }
34       }
35     }
36   }
37 )
38
39 override_attributes(
40   :networking => {
41     :interfaces => {
42       :external_ipv4 => {
43         :interface => "eth0",
44         :role => :external,
45         :family => :inet,
46         :address => "212.110.172.32",
47         :prefix => "26",
48         :gateway => "212.110.172.1"
49       },
50       :external_ipv6 => {
51         :interface => "eth0",
52         :role => :external,
53         :family => :inet6,
54         :address => "2001:41c9:1:400::32",
55         :prefix => "64",
56         :gateway => "fe80::1"
57       }
58     }
59   }
60 )
61
62 run_list(
63   "role[bytemark]",
64   "role[mail]",
65   "role[lists]",
66   "role[git]",
67   "role[subversion]",
68   "role[trac]",
69   "role[osqa]",
70   "role[irc]",
71   "role[dns]",
72   "role[geodns]",
73   "role[chef-repository]",
74   "recipe[blogs]",
75   "recipe[openvpn]"
76 )