]> git.openstreetmap.org Git - chef.git/blob - roles/foundation.rb
Run i18n:js:export rake task on web site updates
[chef.git] / roles / foundation.rb
1 name "foundation"
2 description "Role applied to all OSMF servers"
3
4 default_attributes(
5   :apache => {
6     :mpm => "prefork",
7     :timeout => 60,
8     :keepalive => false
9   },
10   :apt => {
11     :sources => ["passenger", "brightbox-ruby-ng"]
12   },
13   :elasticsearch => {
14     :version => "5.x",
15     :cluster => {
16       :name => "foundation"
17     },
18     :script => {
19       :disable_dynamic => false
20     }
21   },
22   :memcached => {
23     :memory_limit => 400,
24     :chunk_growth_factor => 1.05,
25     :min_item_size => 5
26   },
27   :mysql => {
28     :settings => {
29       :mysqld => {
30         :innodb_buffer_pool_size => "512M",
31         :key_buffer_size => "64M",
32         :max_connections => "200",
33         :query_cache_size => "48M",
34         :query_cache_type => "1",
35         :sort_buffer_size => "8M",
36         :tmp_table_size => "48M"
37       }
38     }
39   }
40 )
41
42 run_list(
43   "role[crm]",
44   "role[elasticsearch]",
45   "recipe[foundation::wiki]",
46   "recipe[foundation::board]",
47   "recipe[foundation::dwg]",
48   "recipe[foundation::owg]"
49 )