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