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.

32 lines
458B

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