mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 17:50:27 +00:00
Don't fail on missing mysql.config.apparmor
This commit is contained in:
parent
78b00b6dca
commit
c7945aabac
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
{% from tpldir ~ "/map.jinja" import mysql with context %}
|
||||
|
||||
{%- if "apparmor" in mysql.config %}
|
||||
|
||||
mysqld-apparmor-allow:
|
||||
file.append:
|
||||
- name: {{ mysql.config.apparmor.dir }}/{{ mysql.config.apparmor.file }}
|
||||
|
@ -8,3 +10,5 @@ mysqld-apparmor-allow:
|
|||
- text:
|
||||
- '{{ mysql.config.sections.mysqld.datadir }}/ r,'
|
||||
- '{{ mysql.config.sections.mysqld.datadir }}/** rwk,'
|
||||
|
||||
{%- endif %}
|
||||
|
|
Loading…
Add table
Reference in a new issue