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.

12345678910111213141516171819202122232425262728293031
  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