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.
|
- control 'SyslogNG configuration' do
- title 'should match desired lines'
-
- str =
- '''
- source s_src {
- internal();
- };
-
- destination d_syslog {
- file("/var/log/syslog");
- };
-
- filter f_syslog3 {
- not level(debug);
- };
-
- log {
- source(s_src);
- filter(f_syslog3);
- destination(d_syslog);
- };
- '''
-
- describe file('/etc/syslog-ng/syslog-ng.conf') do
- it { should exist }
-
- # Custom config from pillar
- its('content') { should include str }
- end
- end
|