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

Commit 91ba364

Browse files
committed
Merge pull request #57 from bflad/46_documentation
Documentation surrounding properties versus now deprecated plugins
2 parents 7869c57 + 72be331 commit 91ba364

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,15 @@ maximum_permgen | JVM maximum PermGen memory | String | 256m
109109
java_opts | additional JAVA_OPTS to be passed to Stash JVM during startup | String | ""
110110
support_args | additional JAVA_OPTS recommended by Atlassian support for Stash JVM during startup | String | ""
111111

112-
### Stash Plugin Attributes
112+
### Stash Property Attributes
113113

114-
All of these `node['stash']['plugin']` attributes are overridden by `stash/stash` encrypted data bag (Hosted Chef) or data bag (Chef Solo), if it exists
114+
_The usage of `node['stash']['plugin']` for properties is deprecated in 3.x of the cookbook and may change or be removed in 4.x_
115+
116+
All of these `node['stash']['properties']` attributes are overridden by `stash/stash` encrypted data bag (Hosted Chef) or data bag (Chef Solo), if it exists.
115117

116118
Attribute | Description | Type | Default
117119
----------|-------------|------|--------
118-
`key` | A key/value pair to be inserted into stash-config.properties as plugin.`key`=`value` | - | -
120+
`key` | A key/value pair to be inserted into stash-config.properties as `key`=`value` | Hash | {}
119121

120122
### Stash SSH Attributes ###
121123

recipes/configuration.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
mode '0644'
2323
variables(
2424
:database => settings['database'],
25+
# DEPRECATED: use properties instead
2526
:plugin => settings['plugin'],
2627
:properties => settings['properties']
2728
)

templates/default/stash-config.properties.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jdbc.url=jdbc:sqlserver://<%= @database['host'] %>:<%= @database['port'] %>;data
2222
jdbc.user=<%= @database['user'] %>
2323
jdbc.password=<%= @database['password'] %>
2424

25+
# DEPRECATED: use properties instead
2526
<% if @plugin -%>
2627
<% @plugin.each do |key, value| -%>
2728
plugin.<%= key %>=<%= value %>

0 commit comments

Comments
 (0)