]> git.openstreetmap.org Git - chef.git/blob - roles/ironbelly.rb
Drop populated_places from tile data sources
[chef.git] / roles / ironbelly.rb
1 name "ironbelly"
2 description "Master role applied to ironbelly"
3
4 default_attributes(
5   :apt => {
6     :sources => ["ubuntugis-unstable"]
7   },
8   :elasticsearch => {
9     :cluster => {
10       :routing => {
11         :allocation => {
12           :disk => {
13             :watermark => {
14               :low => "95%",
15               :high => "98%"
16             }
17           }
18         }
19       }
20     },
21     :path => {
22       :data => "/store/elasticsearch"
23     }
24   },
25   :git => {
26     :allowed_nodes => "*:*",
27     :user => "chefrepo",
28     :group => "chefrepo",
29     :backup => "chef-git"
30   },
31   :networking => {
32     :interfaces => {
33       :internal_ipv4 => {
34         :interface => "eth0",
35         :role => :internal,
36         :family => :inet,
37         :address => "146.179.159.177"
38       },
39       :external_ipv4 => {
40         :interface => "eth1",
41         :role => :external,
42         :family => :inet,
43         :address => "193.63.75.107"
44       },
45       :external_ipv6 => {
46         :interface => "eth1",
47         :role => :external,
48         :family => :inet6,
49         :address => "2001:630:12:500:225:90ff:fec4:f6ef"
50       }
51     }
52   },
53   :openvpn => {
54     :address => "10.0.16.2",
55     :tunnels => {
56       :ic2ucl => {
57         :port => "1194",
58         :mode => "server",
59         :peer => {
60           :host => "ridley.openstreetmap.org"
61         }
62       }
63     }
64   },
65   :rsyncd => {
66     :modules => {
67       :hosts => {
68         :comment => "Host data",
69         :path => "/home/hosts",
70         :read_only => true,
71         :write_only => false,
72         :list => false,
73         :uid => "tomh",
74         :gid => "tomh",
75         :transfer_logging => false,
76         :hosts_allow => [
77           "212.110.172.32",                      # shenron
78           "2001:41c9:1:400::32",                 # shenron
79           "212.159.112.221"                      # grant
80         ]
81       },
82       :logs => {
83         :comment => "Log files",
84         :path => "/store/logs",
85         :read_only => false,
86         :write_only => true,
87         :list => false,
88         :uid => "www-data",
89         :gid => "www-data",
90         :transfer_logging => false,
91         :hosts_allow => [
92           "128.40.168.0/24",      # ucl external (wates)
93           "128.40.45.192/27",     # ucl external (wolfson)
94           "146.179.159.160/27",   # ic internal
95           "193.63.75.96/27",      # ic external
96           "2001:630:12:500::/64", # ic external
97           "127.0.0.0/8",          # localhost
98           "::1"                   # localhost
99         ],
100         :nodes_allow => "roles:tilecache"
101       }
102     }
103   }
104 )
105
106 run_list(
107   "role[ic]",
108   "role[gateway]",
109   "role[chef-server]",
110   "role[chef-repository]",
111   "role[web-storage]",
112   "role[supybot]",
113   "role[backup]",
114   "role[stats]",
115   "role[planet]",
116   "role[planetdump]",
117   "role[logstash]",
118   "recipe[rsyncd]",
119   "recipe[openvpn]",
120   "recipe[git::server]",
121   "recipe[tilelog]",
122   "recipe[serverinfo]"
123 )