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

Commit 7869c57

Browse files
committed
Merge pull request #46 from ramonskie/master
the ability to set all property values instead of only the plugins
2 parents f2728a2 + 0971fd8 commit 7869c57

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

attributes/default.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@
175175
default['stash']['jvm']['support_args'] = ''
176176

177177
default['stash']['plugin'] = {}
178+
default['stash']['properties'] = {}
178179

179180
default['stash']['ssh']['hostname'] = node['fqdn']
180181
default['stash']['ssh']['port'] = '7999'

recipes/configuration.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121
owner node['stash']['user']
2222
mode '0644'
2323
variables(
24-
:database => settings['database'],
25-
:plugin => settings['plugin']
24+
:database => settings['database'],
25+
:plugin => settings['plugin'],
26+
:properties => settings['properties']
2627
)
2728
notifies :restart, 'service[stash]', :delayed
2829
end

templates/default/stash-config.properties.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,9 @@ jdbc.password=<%= @database['password'] %>
2727
plugin.<%= key %>=<%= value %>
2828
<% end -%>
2929
<% end -%>
30+
31+
<% if @properties -%>
32+
<% @properties.each do |key, value| -%>
33+
<%= key %>=<%= value %>
34+
<% end -%>
35+
<% end -%>

0 commit comments

Comments
 (0)