]> git.openstreetmap.org Git - chef.git/blob - roles/backup.rb
Fix memory cache limit for naga
[chef.git] / roles / backup.rb
1 name "backup"
2 description "Role applied to backup.openstreetmap.org"
3
4 default_attributes(
5   :rsyncd => {
6     :modules => {
7       :backup => {
8         :comment => "Backups",
9         :path => "/store/backup",
10         :read_only => false,
11         :write_only => true,
12         :list => false,
13         :uid => "osmbackup",
14         :gid => "osmbackup",
15         :transfer_logging => false,
16         :hosts_allow => [
17           "193.60.236.0/24",                     # ucl external
18           "10.0.48.0/20",                        # equinix internal
19           "130.117.76.0/27",                     # equinix external
20           "2001:978:2:2C::172:0/112",            # equinix external
21           "10.0.32.0/20",                        # bytemark internal
22           "89.16.162.16/28",                     # bytemark external
23           "2001:41c9:2:d6::/64",                 # bytemark external
24           "212.110.172.32",                      # shenron
25           "2001:41c9:1:400::32",                 # shenron
26           "140.211.167.104",                     # osuosl
27           "140.211.167.105",                     # osuosl
28           "2605:bc80:3010:700::8cde:a768",       # osuosl
29           "2605:bc80:3010:700::8cde:a769",       # osuosl
30           "127.0.0.0/8",                         # localhost
31           "::1"                                  # localhost
32         ]
33       }
34     }
35   }
36 )
37
38 run_list(
39   "recipe[rsyncd]",
40   "recipe[backup]"
41 )