Saltstack Official Syslog-NG Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 line
485B

  1. # frozen_string_literal: true
  2. control 'SyslogNG configuration' do
  3. title 'should match desired lines'
  4. str =
  5. '
  6. source s_src {
  7. internal();
  8. };
  9. destination d_syslog {
  10. file("/var/log/syslog");
  11. };
  12. filter f_syslog3 {
  13. not level(debug);
  14. };
  15. log {
  16. source(s_src);
  17. filter(f_syslog3);
  18. destination(d_syslog);
  19. };
  20. '
  21. describe file('/etc/syslog-ng/syslog-ng.conf') do
  22. it { should exist }
  23. # Custom config from pillar
  24. its('content') { should include str }
  25. end
  26. end