]> git.openstreetmap.org Git - chef.git/blob - roles/foundation.rb
Add some IPv4 nameservers for norbert
[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"]
12   },
13   :elasticsearch => {
14     :version => "5.x",
15     :cluster => {
16       :name => "foundation"
17     }
18   },
19   :memcached => {
20     :memory_limit => 400,
21     :chunk_growth_factor => 1.05,
22     :min_item_size => 5
23   },
24   :mysql => {
25     :settings => {
26       :mysqld => {
27         :innodb_buffer_pool_size => "512M",
28         :key_buffer_size => "64M",
29         :max_connections => "200",
30         :query_cache_size => "48M",
31         :query_cache_type => "1",
32         :sort_buffer_size => "8M",
33         :tmp_table_size => "48M"
34       }
35     }
36   }
37 )
38
39 run_list(
40   "role[crm]",
41   "role[elasticsearch]",
42   "recipe[foundation::wiki]",
43   "recipe[foundation::board]",
44   "recipe[foundation::dwg]",
45   "recipe[foundation::owg]"
46 )