Compare commits
2 Commits
49b636305e
...
a5d09ec6cd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a5d09ec6cd | ||
|
|
ed88ef6580 |
@ -1,17 +0,0 @@
|
||||
#
|
||||
# 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
|
||||
@ -1,6 +0,0 @@
|
||||
[Journal]
|
||||
# Set the maximum size of the journal logs in bytes
|
||||
SystemMaxUse=<%= @system_max_use %>
|
||||
|
||||
# Set the number of days after which logs will be deleted
|
||||
MaxRetentionSec=<%= @max_retention_sec %>
|
||||
Loading…
x
Reference in New Issue
Block a user