Skip to content

Commit

Permalink
Merge pull request #67 from georgemihaescu/systemd_timeout
Browse files Browse the repository at this point in the history
moves systemd timeout to variable
  • Loading branch information
bdwyertech authored Apr 2, 2019
2 parents b8df2d7 + 85c4ed4 commit 6045c89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
4 changes: 3 additions & 1 deletion resources/wildfly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -161,7 +163,7 @@
cookbook 'wildfly'
variables(
start_marker: start_marker,
timeout: 60
timeout: new_resource.systemd_timeout
)
action :create
end
Expand Down

0 comments on commit 6045c89

Please sign in to comment.