]> git.openstreetmap.org Git - chef.git/blob - roles/faffy.rb
jakelong, nepomuk: Decrease scheduler queue depth to improve latency
[chef.git] / roles / faffy.rb
1 name "faffy"
2 description "Master role applied to faffy"
3
4 default_attributes(
5   :networking => {
6     :interfaces => {
7       :internal_ipv4 => {
8         :interface => "eth0",
9         :role => :internal,
10         :family => :inet,
11         :address => "10.0.0.7"
12       },
13       :external_ipv4 => {
14         :interface => "eth1",
15         :role => :external,
16         :family => :inet,
17         :address => "128.40.168.108"
18       }
19     }
20   },
21   :rsyncd => {
22     :modules => {
23       :agri_imagery => {
24         :comment => "AGRI Imagery Archive",
25         :path => "/mnt/md0/agri",
26         :read_only => true,
27         :write_only => false,
28         :list => true,
29         :uid => "nobody",
30         :gid => "nogroup",
31         :transfer_logging => false,
32         :exclude => [ ".*" ],
33         :max_connections => 10,
34         :ignore_errors => true,
35         :ignore_nonreadable => true,
36         :timeout => 3600,
37         :refuse_options => [ "checksum" ]
38       },
39       :agri_extra => {
40         :comment => "AGRI Extras Archive",
41         :path => "/var/www/agri.openstreetmap.org/download",
42         :read_only => true,
43         :write_only => false,
44         :list => true,
45         :uid => "nobody",
46         :gid => "nogroup",
47         :transfer_logging => false,
48         :exclude => [ ".*" ],
49         :max_connections => 10,
50         :ignore_errors => true,
51         :ignore_nonreadable => true,
52         :timeout => 3600,
53         :refuse_options => [ "checksum" ]
54       }
55     }
56   }
57 )
58
59 run_list(
60   "role[ucl-internal]",
61   "recipe[rsyncd]"
62 )