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