Page MenuHomeDevCentral

No OneTemporary

diff --git a/roles/dbserver-mysql/grc/init.sls b/roles/dbserver-mysql/grc/init.sls
index c230710..ca7a814 100644
--- a/roles/dbserver-mysql/grc/init.sls
+++ b/roles/dbserver-mysql/grc/init.sls
@@ -1,36 +1,37 @@
# -------------------------------------------------------------
# Salt — Database server — MySQL
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Credit: Jaime Crespo (@Jynus)
# Created: 2017-11-09
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{% from "map.jinja" import dirs with context %}
# -------------------------------------------------------------
# Coloration grc configuration file for MySQL client
#
# “ This is more than pure aesthetics- DBAs are looking at this output
# for long hours, a bit of color (disabled by default) will make
# their life easier.
#
# Enable with:
# mysql --pager='grcat /etc/mysql/grcat.config | less -RSFXin'
#
# ” -- Jaime Crespo
#
# Note it's deployed instead in share dir to be able to `grc mysql`.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{ dirs.share }}/grc/conf.mysql:
file.managed:
- source: salt://roles/dbserver-mysql/grc/files/grcat.config
+ - makedirs: True
{{ dirs.etc }}/grc.conf:
file.append:
- text: |
# MySQL mysql command
(^|[/\w\.]+/)mysql\s?
conf.mysql

File Metadata

Mime Type
text/x-diff
Expires
Mon, Nov 25, 07:41 (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259751
Default Alt Text
(1 KB)

Event Timeline