From 85c4ed4c9792f1b1925e4deb62f165d10e91f227 Mon Sep 17 00:00:00 2001 From: mihaescu Date: Thu, 28 Mar 2019 13:10:29 +0200 Subject: [PATCH] moves systemd timeout to variable --- attributes/default.rb | 3 +++ resources/wildfly.rb | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/attributes/default.rb b/attributes/default.rb index 39c058e..16a145a 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -38,3 +38,6 @@ # => Init Script Timeouts (Seconds) default['wildfly']['initd']['startup_wait'] = '60' default['wildfly']['initd']['shutdown_wait'] = '60' + +# => SystemD Script Timeouts (Seconds) +default['wildfly']['systemd']['timeout'] = '60' diff --git a/resources/wildfly.rb b/resources/wildfly.rb index 02aa7c1..76eedf9 100755 --- a/resources/wildfly.rb +++ b/resources/wildfly.rb @@ -53,6 +53,8 @@ offset = offset ? offset.split('=')[1] : '0' (offset.to_i + port.to_i).to_s } +# => Timeout passed through to SystemD +property :systemd_timeout, String, default: wildfly['systemd']['timeout'] # # => Define the Default Resource Action @@ -161,7 +163,7 @@ cookbook 'wildfly' variables( start_marker: start_marker, - timeout: 60 + timeout: new_resource.systemd_timeout ) action :create end