Page MenuHomeDevCentral

init.sls
No OneTemporary

init.sls

# -------------------------------------------------------------
# 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 aestetics- 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 }}/conf.mysql:
file.managed:
- source: salt://roles/dbserver-mysql/grc/files/grcat.config
{{ dirs.etc }}/grc.conf:
file.append:
- text: |
# MySQL mysql command
(^|[/\w\.]+/)mysql\s?
conf.mysql

File Metadata

Mime Type
text/plain
Expires
Fri, Feb 28, 21:45 (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2437025
Default Alt Text
init.sls (1 KB)

Event Timeline