Commit 36a7209e authored by Mihai Petracovici's avatar Mihai Petracovici
Browse files

Fix Rspec and test kitchen tests

parent 1839f1be
......@@ -15,8 +15,7 @@ module RsyslogCookbook
def declare_rsyslog_service
service_provider = 'ubuntu' == node['platform'] ? find_provider : nil
service 'rsyslog' do
service_name node['rsyslog']['service_name']
service node['rsyslog']['service_name'] do
supports :restart => true, :status => true
action [:enable, :start]
provider service_provider
......
require 'fileutils'
unless Dir.exist?("#{node['rsyslog']['config_prefix']}/rsyslog.d")
FileUtils.mkdir("#{node['rsyslog']['config_prefix']}/rsyslog.d")
end
FileUtils.touch("#{node['rsyslog']['config_prefix']}/rsyslog.d/remote.conf")
include_recipe 'rsyslog::server'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment