]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/mysql/recipes/default.rb
Switch machines in Dublin to use nftables
[chef.git] / cookbooks / mysql / recipes / default.rb
index d0d7b1679230c2448f0d7278c9207913923cf7ea..aad3a7683d2f5833c0ce0bacb5c898bd69016282 100644 (file)
@@ -36,6 +36,19 @@ template "/etc/mysql/mysql.conf.d/zzz-chef.cnf" do
   notifies :restart, "service[mysql]"
 end
 
+service "apparmor" do
+  action :nothing
+end
+
+template "/etc/apparmor.d/local/usr.sbin.mysqld" do
+  source "apparmor.erb"
+  owner "root"
+  group "root"
+  mode "644"
+  notifies :restart, "service[apparmor]"
+  only_if { ::Dir.exist?("/sys/kernel/security/apparmor") }
+end
+
 package "libdbd-mysql-perl"
 package "libcache-cache-perl"