Skip to content

Commit 0daf5e8

Browse files
committed
Fix clash in logrotate configuration for cloud-init
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]>
1 parent c387499 commit 0daf5e8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cookbooks/aws-parallelcluster-platform/recipes/config/log_rotation.rb

+7
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414

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

17+
if platform?('ubuntu')
18+
# Ubuntu recently pushed a default logrotate configuration for cloud-init that clashes with the ParallelCluster one.
19+
file '/etc/logrotate.d/cloud-init' do
20+
action :delete
21+
end
22+
end
23+
1724
# TODO: move the logrotate configuration of the various services to the corresponding recipes/cookbooks.
1825

1926
case node['cluster']['node_type']

0 commit comments

Comments
 (0)