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