Skip to content

Commit

Permalink
Fix clash in logrotate configuration for cloud-init
Browse files Browse the repository at this point in the history
On Ubuntu systems, delete the default logrotate config for cloud-init.

Ubuntu started shipping a default logrotate configuration for the
cloud-init log files, which clashed with the one provided by
ParallelCluster.

Signed-off-by: Jacopo De Amicis <[email protected]>
  • Loading branch information
jdeamicis committed May 29, 2024
1 parent 1ce77f1 commit 7297c02
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@

return if node['cluster']['log_rotation_enabled'] != 'true'

if platform?('ubuntu')
# Ubuntu recently pushed a default logrotate configuration for cloud-init that clashes with the ParallelCluster one.
file '/etc/logrotate.d/cloud-init' do
action :delete
end
end

# TODO: move the logrotate configuration of the various services to the corresponding recipes/cookbooks.

case node['cluster']['node_type']
Expand Down

0 comments on commit 7297c02

Please sign in to comment.