Saltstack Official Syslog-NG Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021222324252627282930313233
  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