]> git.openstreetmap.org Git - chef.git/blob - roles/shenron.rb
Add additional resolvers for cmok
[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   :apt => {
21     :sources => ["brightbox-ruby-ng"]
22   },
23   :hardware => {
24     :modules => [
25       "it87"
26     ]
27   },
28   :openvpn => {
29     :address => "10.0.16.3",
30     :tunnels => {
31       :shenron2ucl => {
32         :port => "1194",
33         :mode => "server",
34         :peer => {
35           :host => "ridley.openstreetmap.org"
36         }
37       }
38     }
39   }
40 )
41
42 override_attributes(
43   :networking => {
44     :interfaces => {
45       :external_ipv4 => {
46         :interface => "eth0",
47         :role => :external,
48         :family => :inet,
49         :address => "212.110.172.32",
50         :prefix => "26",
51         :gateway => "212.110.172.1"
52       },
53       :external_ipv6 => {
54         :interface => "eth0",
55         :role => :external,
56         :family => :inet6,
57         :address => "2001:41c9:1:400::32",
58         :prefix => "64",
59         :gateway => "fe80::1"
60       }
61     }
62   }
63 )
64
65 run_list(
66   "role[bytemark]",
67   "role[mail]",
68   "role[lists]",
69   "role[git]",
70   "role[subversion]",
71   "role[trac]",
72   "role[osqa]",
73   "role[irc]",
74   "role[dns]",
75   "role[geodns]",
76   "role[chef-repository]",
77   "recipe[blogs]",
78   "recipe[openvpn]"
79 )