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