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

Enabling Extensive Logging on CentOS 7 Issues #115

Open
benbaez opened this issue Oct 9, 2018 · 0 comments
Open

Enabling Extensive Logging on CentOS 7 Issues #115

benbaez opened this issue Oct 9, 2018 · 0 comments

Comments

@benbaez
Copy link

benbaez commented Oct 9, 2018

I'm following pillar.example and having issues enabling extensive logging. If I remove extensive logging all is ok with rendering.

I noticed line 117 of named.conf.local.jinja seems to expect use_extensive_logging: would be a boolean.


      ID: bind_local_config
Function: file.managed
    Name: /etc/named.conf.local
  Result: False
 Comment: Unable to manage file: Jinja variable 'salt.utils.odict.OrderedDict object' has no attribute 'logging_config'
 Started: 20:23:38.504949
Duration: 139.781 ms
 Changes:

      ID: bind
Function: service.running
    Name: named
  Result: False
 Comment: One or more requisite failed: bind.config.bind_local_config
 Started: 20:23:38.645581
Duration: 0.024 ms
 Changes:

Pillar File
...

config:
tmpl: salt://bind/files/redhat/named.conf
user: root
group: named
mode: 640
enable_logging: true
use_extensive_logging:
channel:
default_log:
file: default
size: '200m'
versions: '10'
print-time: yes
print-category: yes
print-severity: yes
severity: info
queries_log:
file: queries
print-time: yes
print-category: yes
print-severity: yes
severity: info
query-errors_log:
file: query-errors
print-time: yes
print-category: yes
print-severity: yes
severity: dynamic
default_syslog:
print-time: yes
print-category: yes
print-severity: yes
syslog: daemon
severity: info
default_debug:
file: named.run
print-time: yes
print-category: yes
print-severity: yes
severity: info
category:
default:
- default_syslog
- default_debug
- default_log
config:
- default_syslog
- default_debug
- default_log
network:
- default_syslog
- default_debug
- default_log
general:
- default_syslog
- default_debug
- default_log
queries:
- queries_log
query-errors:
- query-errors_log

...

Changed to following:

...

config:
tmpl: salt://bind/files/redhat/named.conf
user: root
group: named
mode: 640
enable_logging: true

...


      ID: bind_local_config
Function: file.managed
    Name: /etc/named.conf.local
  Result: True
 Comment: File /etc/named.conf.local updated
 Started: 20:28:37.335889
Duration: 136.169 ms
 Changes:
          ----------
          diff:
              ---
              +++
              @@ -0,0 +1,19 @@
              +# vim: sts=2 ts=2 sw=2 et ai
              +//
              +// Do any local configuration here
              +//
              +
              +// Consider adding the 1918 zones here, if they are not used in your
              +// organization
              +//include "/etc/bind/zones.rfc1918";
              +
              +
              +
              +
              +logging {
              +  channel "querylog" {
              +    file "/var/named/data/query.log";
              +    print-time yes;
              +  };
              +  category queries { querylog; };
              +};
          group:
              named
          mode:
              0640

      ID: bind
Function: service.running
    Name: named
  Result: True
 Comment: Service reloaded
 Started: 20:28:37.521079
Duration: 116.846 ms
 Changes:
          ----------
          named:
              True

ixs added a commit to bawuenet/bind-formula that referenced this issue May 3, 2019
logging_config was only defined for Debian and xBSD resulting in
rendering errors on other OS families.

This commit fixes saltstack-formulas#115
ixs added a commit to bawuenet/bind-formula that referenced this issue Aug 5, 2024
logging_config was only defined for Debian and xBSD resulting in
rendering errors on other OS families.

This commit fixes saltstack-formulas#115
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant