Skip to content
Snippets Groups Projects
Unverified Commit 66c2d133 authored by Niels Abspoel's avatar Niels Abspoel Committed by GitHub
Browse files

Merge pull request #209 from noelmcloughlin/fixes

don't fail on missing apparmor dict
parents 86e2408a a7145a59
Branches
No related tags found
No related merge requests found
{% from tpldir ~ "/map.jinja" import mysql with context %} {% from tpldir ~ "/map.jinja" import mysql with context %}
{%- if "apparmor" in mysql.config %}
mysqld-apparmor-allow: mysqld-apparmor-allow:
file.append: file.append:
- name: {{ mysql.config.apparmor.dir }}/{{ mysql.config.apparmor.file }} - name: {{ mysql.config.apparmor.dir }}/{{ mysql.config.apparmor.file }}
...@@ -8,3 +10,5 @@ mysqld-apparmor-allow: ...@@ -8,3 +10,5 @@ mysqld-apparmor-allow:
- text: - text:
- '{{ mysql.config.sections.mysqld.datadir }}/ r,' - '{{ mysql.config.sections.mysqld.datadir }}/ r,'
- '{{ mysql.config.sections.mysqld.datadir }}/** rwk,' - '{{ mysql.config.sections.mysqld.datadir }}/** rwk,'
{%- endif %}
...@@ -47,6 +47,23 @@ mysql: ...@@ -47,6 +47,23 @@ mysql:
grants: grants:
- 'all privileges' - 'all privileges'
# Manage config
config:
file: ~/.my.cnf
sections:
client:
port: 33306
socket: /var/lib/mysql-socket/mysql.sock
mysqld_safe:
plugin-dir: '~/mysql/plugins'
mysqld:
user: myself
port: 33306
datadir: ~/mysql/datadir
apparmor:
dir: /etc/apparmor.d/local
file: usr.sbin.mysqld
# Manage databases # Manage databases
database: database:
# Simple definition using default charset and collate # Simple definition using default charset and collate
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment