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

Documentation surrounding properties versus now deprecated plugins #57

Merged
merged 1 commit into from
Jan 24, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,15 @@ maximum_permgen | JVM maximum PermGen memory | String | 256m
java_opts | additional JAVA_OPTS to be passed to Stash JVM during startup | String | ""
support_args | additional JAVA_OPTS recommended by Atlassian support for Stash JVM during startup | String | ""

### Stash Plugin Attributes
### Stash Property Attributes

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
_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_

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.

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

### Stash SSH Attributes ###

Expand Down
1 change: 1 addition & 0 deletions recipes/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
mode '0644'
variables(
:database => settings['database'],
# DEPRECATED: use properties instead
:plugin => settings['plugin'],
:properties => settings['properties']
)
Expand Down
1 change: 1 addition & 0 deletions templates/default/stash-config.properties.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jdbc.url=jdbc:sqlserver://<%= @database['host'] %>:<%= @database['port'] %>;data
jdbc.user=<%= @database['user'] %>
jdbc.password=<%= @database['password'] %>

# DEPRECATED: use properties instead
<% if @plugin -%>
<% @plugin.each do |key, value| -%>
plugin.<%= key %>=<%= value %>
Expand Down