]> git.openstreetmap.org Git - chef.git/blob - roles/naga.rb
Merge remote-tracking branch 'github/pull/810'
[chef.git] / roles / naga.rb
1 name "naga"
2 description "Master role applied to naga"
3
4 default_attributes(
5   :apache => {
6     :mpm => "event",
7     :event => {
8       :server_limit => 32,
9       :max_request_workers => 800,
10       :threads_per_child => 50,
11       :max_connections_per_child => 100000
12     },
13     :evasive => {
14       :page_count => 400,
15       :site_count => 500
16     }
17   },
18   :elasticsearch => {
19     :version => "7.x",
20     :cluster => {
21       :name => "foundation"
22     }
23   },
24   :memcached => {
25     :memory_limit => 400,
26     :chunk_growth_factor => 1.05,
27     :min_item_size => 5
28   },
29   :mysql => {
30     :settings => {
31       :mysqld => {
32         :innodb_buffer_pool_size => "512M",
33         :key_buffer_size => "64M",
34         :max_connections => "200",
35         :sort_buffer_size => "8M",
36         :tmp_table_size => "48M"
37       }
38     }
39   },
40   :networking => {
41     :interfaces => {
42       :internal => {
43         :inet => {
44           :address => "10.0.64.8"
45         },
46         :bond => {
47           :slaves => %w[eno1 eno2 eno3 eno4 eno49 eno50]
48         }
49       },
50       :henet => {
51         :inet => {
52           :address => "184.104.226.104"
53         },
54         :inet6 => {
55           :address => "2001:470:1:b3b::8"
56         }
57       },
58       :equinix => {
59         :inet => {
60           :address => "87.252.214.104"
61         },
62         :inet6 => {
63           :address => "2001:4d78:fe03:1c::8"
64         }
65       }
66     }
67   }
68 )
69
70 run_list(
71   "role[equinix-dub-public]",
72   "role[hp-g9]",
73   "role[subversion]",
74   "role[trac]",
75   "role[irc]",
76   "role[blogs]",
77   "role[switch2osm]",
78   "role[elasticsearch]",
79   "recipe[foundation::birthday]",
80   "recipe[foundation::board]",
81   "recipe[foundation::dwg]",
82   "recipe[foundation::mastodon]",
83   "recipe[foundation::mwg]",
84   "recipe[foundation::owg]",
85   "recipe[foundation::welcome]",
86   "recipe[foundation::wiki]",
87   "recipe[stateofthemap::container]",
88   "recipe[hot]",
89   "recipe[ideditor]",
90   "recipe[dmca]",
91   "role[otrs]",
92   "role[osqa]"
93 )