Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mysql-formula
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
salt
mysql-formula
Commits
66c2d133
Unverified
Commit
66c2d133
authored
6 years ago
by
Niels Abspoel
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #209 from noelmcloughlin/fixes
don't fail on missing apparmor dict
parents
86e2408a
a7145a59
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
mysql/apparmor.sls
+4
-0
4 additions, 0 deletions
mysql/apparmor.sls
pillar.example
+17
-0
17 additions, 0 deletions
pillar.example
with
21 additions
and
0 deletions
mysql/apparmor.sls
+
4
−
0
View file @
66c2d133
{% 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 %}
This diff is collapsed.
Click to expand it.
pillar.example
+
17
−
0
View file @
66c2d133
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment