2 # Cookbook Name:: mysql
5 # Copyright 2013, OpenStreetMap Foundation
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
20 package "mysql-server"
21 package "mysql-client"
24 action [ :enable, :start ]
25 supports :status => true, :restart => true, :reload => true
28 template "/etc/mysql/conf.d/chef.cnf" do
33 notifies :reload, "service[mysql]"
36 package "libdbd-mysql-perl"
37 package "libcache-cache-perl"
39 munin_plugin "mysql_bin_relay_log" do
43 munin_plugin "mysql_commands" do
47 munin_plugin "mysql_connections" do
51 munin_plugin "mysql_files_tables" do
55 munin_plugin "mysql_innodb_bpool" do
59 munin_plugin "mysql_innodb_bpool_act" do
63 munin_plugin "mysql_innodb_insert_buf" do
67 munin_plugin "mysql_innodb_io" do
71 munin_plugin "mysql_innodb_io_pend" do
75 munin_plugin "mysql_innodb_log" do
79 munin_plugin "mysql_innodb_rows" do
83 munin_plugin "mysql_innodb_semaphores" do
87 munin_plugin "mysql_innodb_tnx" do
91 munin_plugin "mysql_myisam_indexes" do
95 munin_plugin "mysql_network_traffic" do
99 munin_plugin "mysql_qcache" do
103 munin_plugin "mysql_qcache_mem" do
107 munin_plugin "mysql_replication" do
111 munin_plugin "mysql_select_types" do
115 munin_plugin "mysql_slow" do
119 munin_plugin "mysql_sorts" do
123 munin_plugin "mysql_table_locks" do
127 munin_plugin "mysql_tmp_tables" do