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