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

Commit 1de0bc7

Browse files
committed
Merge pull request #154 from linc01n/stash_version/4.6.0
Update bitbucket to 4.6.0 and backup client to 3.2.0
2 parents 0940004 + 96e708b commit 1de0bc7

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ install_type | Stash install type - "standalone" only for now | String | standal
5454
url_base | URL base for Stash install | String | http://www.atlassian.com/software/stash/downloads/binary/atlassian-stash
5555
url | URL for Stash install | String | auto-detected (see attributes/default.rb)
5656
user | user to run Stash | String | stash
57-
version | Stash version to install | String | 4.5.2
57+
version | Stash version to install | String | 4.6.0
5858

5959
### Stash Backup Attributes (Shared)
6060

@@ -78,7 +78,7 @@ Attribute | Description | Type | Default
7878
checksum | SHA256 checksum for Stash Backup Client install | String | auto-detected (see attributes/default.rb)
7979
install_path | location to install Stash Backup Client | String | /opt/atlassian/stash-backup-client
8080
url_base | URL base for Stash Backup Client install | String | http://downloads.atlassian.com/software/stash/downloads/stash-backup-distribution
81-
version | Stash Backup Client version to install | String | 3.1.0
81+
version | Stash Backup Client version to install | String | 3.2.0
8282

8383
### Stash DIY Backup Attributes
8484
Documentation: [Using Stash DIY Backup](https://confluence.atlassian.com/display/STASH/Using+Stash+DIY+Backup)

attributes/default.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
set['build-essential']['compile_time'] = true
22

3-
default['stash']['version'] = '4.5.2'
3+
default['stash']['version'] = '4.6.0'
44
default['stash']['product'] = Chef::Version.new(node['stash']['version']) >= Chef::Version.new('4.0.0') ? 'bitbucket' : 'stash'
55

66
default['stash']['home_path'] = if Dir.exist?('/var/atlassian/application-data/stash')
@@ -155,6 +155,7 @@
155155
when '4.4.2' then '050e31d88da4cfd6715834fc5a48ec8977f461f0fac7899c602a75e251952be4'
156156
when '4.5.1' then 'eb93ede7c4bcaded79540f555062d9f1e79ab0da1615feca1e679cd7094eecd5'
157157
when '4.5.2' then 'cb3ee49ec20cd2f496dfbf0b8542a24c8db720226e3d80510b9fb4921968f89d'
158+
when '4.6.0' then '7dd309b5d17be41e3e2406276e14436136f9fd810655ceed6e08a72556e644aa'
158159
end
159160

160161
# Data bag where credentials and other sensitive data could be stored (optional)
@@ -196,7 +197,7 @@
196197
default['stash']['backup']['cron']['weekday'] = '*'
197198

198199
default['stash']['backup_client']['install_path'] = node['stash']['install_path']
199-
default['stash']['backup_client']['version'] = '3.1.0'
200+
default['stash']['backup_client']['version'] = '3.2.0'
200201
stash_backup_client_version = Chef::Version.new(node['stash']['backup_client']['version'])
201202

202203
default['stash']['backup_client']['url_base'] =
@@ -240,6 +241,7 @@
240241
when '2.0.2' then 'c008bfdac59b45d8ce98ec0625e69316b3a5c51ccefa18363322df687d2c78c4'
241242
when '3.0.0' then '1a4dcea8fa5df919b9c92341b1a3b92aed5892022e0f94733540d1ebb88653df'
242243
when '3.1.0' then '7d586c65f6f0173c064e5d6508c380192c4a9ac3fc2314fbc3fce2e8f6b10daf'
244+
when '3.2.0' then 'e306e5d0b1f7bc36124ef2877df608b9c1fa2fb7e88d5252fc7dba680962b882'
243245
end
244246

245247
default['stash']['backup_diy']['install_path'] = "#{node['stash']['install_path']}/stash-diy-backup"

libraries/stash.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ def merge_stash_settings
99
@settings_from_data_bag ||= settings_from_data_bag
1010
settings = Chef::Mixin::DeepMerge.deep_merge(
1111
@settings_from_data_bag,
12-
node['stash'].to_hash)
12+
node['stash'].to_hash
13+
)
1314

1415
settings['database']['port'] ||=
1516
case settings['database']['type']

0 commit comments

Comments
 (0)