Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #46 from ramonskie/master
Browse files Browse the repository at this point in the history
the ability to set all property values instead of only the plugins
  • Loading branch information
bflad committed Jan 24, 2015
2 parents f2728a2 + 0971fd8 commit 7869c57
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@
default['stash']['jvm']['support_args'] = ''

default['stash']['plugin'] = {}
default['stash']['properties'] = {}

default['stash']['ssh']['hostname'] = node['fqdn']
default['stash']['ssh']['port'] = '7999'
Expand Down
5 changes: 3 additions & 2 deletions recipes/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
owner node['stash']['user']
mode '0644'
variables(
:database => settings['database'],
:plugin => settings['plugin']
:database => settings['database'],
:plugin => settings['plugin'],
:properties => settings['properties']
)
notifies :restart, 'service[stash]', :delayed
end
6 changes: 6 additions & 0 deletions templates/default/stash-config.properties.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ jdbc.password=<%= @database['password'] %>
plugin.<%= key %>=<%= value %>
<% end -%>
<% end -%>

<% if @properties -%>
<% @properties.each do |key, value| -%>
<%= key %>=<%= value %>
<% end -%>
<% end -%>

0 comments on commit 7869c57

Please sign in to comment.