18 lines
457 B
Ruby
18 lines
457 B
Ruby
#
|
|
# Cookbook Name:: kosmos-base
|
|
# Recipe:: journald_conf
|
|
#
|
|
|
|
template "/etc/systemd/journald.conf" do
|
|
source "journald.conf.erb"
|
|
variables system_max_use: "256M",
|
|
max_retention_sec: "7d"
|
|
# Restarting journald is required
|
|
notifies :run, "execute[systemctl restart systemd-journald.service]", :delayed
|
|
end
|
|
|
|
execute "systemctl restart systemd-journald.service" do
|
|
command "systemctl restart systemd-journald.service"
|
|
action :nothing
|
|
end
|