Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable logging #150

Merged
merged 5 commits into from
Mar 20, 2017
Merged

Enable logging #150

merged 5 commits into from
Mar 20, 2017

Conversation

erinn
Copy link
Contributor

@erinn erinn commented Mar 17, 2017

This enables logging by default in this recipe, not sure why it wasn't by default, I mean why bother configuring all this logging if you don't want to use it? Also adds the password and user to the mysql commands and marks the execute as sensitive.

@@ -14,20 +14,25 @@
audit_plugin_options['server_audit_syslog_priority'] = \
node['mariadb']['audit_plugin']['server_audit_syslog_priority']

audit_plugin_options['enable'] = '#server_audit_logging = ON'
audit_plugin_options['server_audit_logging'] = 'ON'

This comment was marked as outdated.

This comment was marked as outdated.

@@ -44,6 +49,7 @@
node['mariadb']['audit_plugin']['server_audit_syslog_facility'] + '\';' \
'SET GLOBAL server_audit_syslog_priority=\'' + \
node['mariadb']['audit_plugin']['server_audit_syslog_priority'] + '\';"' \
'SET GLOBAL server_audit_logging=\'ON\';' \

This comment was marked as outdated.

@shoekstra
Copy link
Contributor

The tests need some fixing before this can be merged.

Some plugins tests are only passing because execute block is not being ran:

  * execute[configure_mariadb_audit_plugin] action nothing (skipped due to action :nothing)

@shoekstra shoekstra merged commit 67b8ad8 into sous-chefs:master Mar 20, 2017
@shoekstra
Copy link
Contributor

Included in v1.3.0 release on supermarket. Thanks!

@lock
Copy link

lock bot commented Jul 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants