Saltstack Official Syslog-NG Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

34 行
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