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 #57 from bflad/46_documentation
Browse files Browse the repository at this point in the history
Documentation surrounding properties versus now deprecated plugins
  • Loading branch information
bflad committed Jan 24, 2015
2 parents 7869c57 + 72be331 commit 91ba364
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
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

0 comments on commit 91ba364

Please sign in to comment.