From 4b29efc3eb5a66d62b38483f7f97caf2e82cd77b Mon Sep 17 00:00:00 2001 From: "a.chong" Date: Wed, 10 Apr 2024 18:25:51 +0200 Subject: [PATCH] Add etc/logback directory * Nexus creates it when it starts but it doesn't exist before * Create it before applying the template Change-Id: I905c0671886c20f50ba6220d26fed30756070624 --- resources/default.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/default.rb b/resources/default.rb index 0ce2ccd..fb34a91 100644 --- a/resources/default.rb +++ b/resources/default.rb @@ -109,6 +109,12 @@ notifies :run, "ruby_block[#{blocker}]", :delayed end + directory ::File.join(new_resource.data, 'etc', 'logback') do + mode '0755' + owner new_resource.nexus3_user + group new_resource.nexus3_group + end + template ::File.join(new_resource.data, 'etc', 'logback', 'logback.xml') do source new_resource.logback_variables['source'] cookbook new_resource.logback_variables['cookbook']