push rules are much too sharply adjusted
it is currently not possible to push normal files that have sql in their name for example:
The following errors were detected in collectd/files/mysql.conf
The file name "collectd/files/mysql.conf" failed checks against the pattern \bsql|sql\b
The following errors were detected in collectd/files/openvpn.conf
The file name "collectd/files/openvpn.conf" failed checks against the pattern \.?env
The following errors were detected in collectd/openvpn.sls
The file name "collectd/openvpn.sls" failed checks against the pattern \.?env
The following errors were detected in collectd/postgresql.sls
The file name "collectd/postgresql.sls" failed checks against the pattern \bsql|sql\b
Furthermore there is also an openvpn.conf
file - it has env
in its name and it is not possible to push it. It takes a lot to make sure you don't push secrets, but I can't quite figure out why I can't commit collectd plugin names?
There is nothing in theses files for example:
cat collectd/postgresql.sls
{% from "collectd/map.jinja" import collectd with context %}
include:
- collectd
{{ collectd.plugindirconfig }}/postgresql.conf:
file.managed:
- source: salt://collectd/files/postgresql.conf
- user: root
- group: root
- mode: 644
- template: jinja
- watch_in:
- service: collectd-service
- defaults:
databases: {{ salt['pillar.get']('collectd:plugins:postgresql:databases') }}
cat collectd/openvpn.sls
{% from "collectd/map.jinja" import collectd_settings with context %}
include:
- collectd
{{ collectd_settings.plugindirconfig }}/openvpn.conf:
file.managed:
- source: salt://collectd/files/openvpn.conf
- user: {{ collectd_settings.user }}
- group: {{ collectd_settings.group }}
- mode: 644
- template: jinja
- watch_in:
- service: collectd-service
Edited by NicoleSch