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

Commit

Permalink
Initial chef-stash 3.0.0 changes - see CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
bflad committed Oct 8, 2013
1 parent 64ec604 commit f04f949
Show file tree
Hide file tree
Showing 37 changed files with 554 additions and 546 deletions.
14 changes: 12 additions & 2 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,22 @@ platforms:
driver_config:
box: opscode-ubuntu-12.04
box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box
require_chef_omnibus: 11.4.4
require_chef_omnibus: 11.6.0
- name: ubuntu-12.10
driver_config:
box: opscode-ubuntu-12.10
box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.10_provisionerless.box
require_chef_omnibus: 11.6.0
- name: ubuntu-13.04
driver_config:
box: opscode-ubuntu-13.04
box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-13.04_provisionerless.box
require_chef_omnibus: 11.6.0
- name: centos-6.4
driver_config:
box: opscode-centos-6.4
box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_centos-6.4_provisionerless.box
require_chef_omnibus: 11.4.4
require_chef_omnibus: 11.6.0

suites:
- name: default
Expand Down
15 changes: 15 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
AllCops:
Excludes:
- test/**
- vendor/**

AlignParameters:
Enabled: false
Encoding:
Enabled: false
HashSyntax:
Enabled: false
LineLength:
Enabled: false
MethodLength:
Max: 30
11 changes: 5 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
language: ruby
gemfile:
- test/support/Gemfile.ci
rvm:
- 1.9.2
- 1.9.3
before_script:
- bundle exec berks install
script:
- bundle exec rake knife
- bundle exec rake foodcritic
- bundle exec knife cookbook test cookbook -o .
- bundle exec foodcritic -f any .
- bundle exec rubocop
1 change: 1 addition & 0 deletions Berksfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ site :opscode

metadata

cookbook 'apache2', '1.7.0'
cookbook 'mysql_connector', github: 'bflad/chef-mysql_connector'

group :integration do
Expand Down
86 changes: 68 additions & 18 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,71 @@
## 3.0.0 (upcoming)

* split default recipe into separate recipes
* apache2 recipe no longer includes default recipe
* Rename `run_user` attribute to `user`
* Fix default path attributes to match Atlassian recommendations
* `home_path`: /home/stash to /var/atlassian/application-data/stash
* `install_path`: /opt/atlassian-stash to /opt/atlassian/stash
* To upgrade your instance (with the defaults):
* Ensure Chef client won't run (service chef-client stop, etc.)
* service stash stop
* mkdir -p /var/atlassian/application-data
* chown stash:stash /var/atlassian/application-data
* usermod -d /var/atlassian/application-data/stash -m stash
* If you're upgrading Stash: rm -rf /opt/atlassian-stash
* If you're not upgrading Stash: mkdir /opt/atlassian && mv /opt/atlassian-stash /opt/atlassian/stash
* Start Chef client again (service chef-client start, etc.)
* Moved apache2 attributes to default attributes file
## 3.0.0

### 3.0.0 Major Changes

#### Additions

* Cookbook dependency: ark (handling downloads and extracting)
* Recipe: default (installs backup_client recipe -- use backup_client_cron if you'd like it automatically running via cron)
* Attribute: `node['stash']['install_type']` (possible future usage, defaults to standalone)
* Attribute: `node['stash']['service_type']` (possible future usage, defaults to init)

#### Removals

* Recipe: upgrade (ark handles symlinks automatically and use Stash Backup Client for backups)
* Attribute `node['stash']['backup_home']` (use Stash Backup Client instead)
* Attribute `node['stash']['backup_install']` (use Stash Backup Client instead)
* Attribute `node['stash']['home_backup']` (use Stash Backup Client instead)
* Attribute `node['stash']['install_backup']` (use Stash Backup Client instead)

#### Modifications

* apache2 recipe: no longer includes default recipe
* Attribute renamed:
* From: `node['stash']['run_user']`
* To: `node['stash']['user']`
* Reasoning: Consistency with other cookbooks
* Attribute default: `node['stash']['home_path']`
* From: /home/stash
* To: /var/atlassian/application-data/stash
* Reasoning: Match Atlassian recommendations
* See Migrating home_path and install_path section for manual steps to perform cookbook upgrade
* Attribute default: `node['stash']['home_path']`
* From: /opt/atlassian-stash
* To: /opt/atlassian (symlinks /opt/atlassian/stash-X.Y.Z to /opt/atlassian/stash)
* Reasoning: Match Atlassian recommendations
* See Migrating home_path and install_path section for manual steps to perform cookbook upgrade
* Attributes moved:
* From: apache2.rb
* To: default.rb
* default recipe: separate recipes
* configuration
* database
* linux_standalone
* service_init
* tomcat_configuration

#### Migrating home_path and install_path

To switch to new defaults:
* Ensure Chef client won't run (service chef-client stop, etc.)
* service stash stop
* mkdir -p /var/atlassian/application-data
* usermod -d /var/atlassian/application-data/stash -m stash
* mkdir /opt/atlassian
* mv /opt/atlassian-stash /opt/atlassian/stash-X.Y.Z
* ln -s /opt/atlassian/stash-X.Y.Z /opt/atlassian/stash
* Start Chef client again (service chef-client start, etc.)

### 3.0.0 Minor Changes

* Update COMPATIBILITY.md to easier to read format and migrate checksums to default attributes
* Added vagrant-cachier to Vagrantfile
* Added ubuntu1210 and ubuntu1304 to Test Kitchen and Vagrantfile
* Added TESTING.md for documentation about Test Kitchen
* Added Guardfile
* Added .rubocop.yml
* Bump Gemfile.ci to Chef 11.6.0
* Move all licensing statements to LICENSE

## 2.21.0

Expand Down
98 changes: 13 additions & 85 deletions COMPATIBILITY.md
Original file line number Diff line number Diff line change
@@ -1,91 +1,19 @@
## Stash 2.x ##
## chef-stash Compatibility ##

Cookbook Versions: 2.3+
Cookbook compatibility based on platform, installation type (`node['stash']['install_type']`), and Stash version (`node['stash']['version']`)

Tested OSes:
* CentOS 6
* RHEL 6
* Ubuntu 12.04
### Linux Standalone Install ###

### Stash 2.5.0 ###
Cookbook Compatibility

* `node['stash']['version']`: "2.5.0"
* `node['stash']['checksum']`: "75fdae77d0b671eb34737458b2cae6c150a2a487c8e21df4ce820179b04d11d9"
Stash Version | CentOS 6 | RHEL 6 | Ubuntu 12.04
--------------|----------|--------|-------------
1.3.X | 1.0+ | 1.0+ | 1.0+
2.X | 2.3+ | 2.3+ | 2.3+

### Stash 2.4.2 ###
Test Matrix

* `node['stash']['version']`: "2.4.2"
* `node['stash']['checksum']`: "f7152641addb87ad465ea5d1fa10412bdb095ac7229b8e2f033a2e4e5e0df40c"

### Stash 2.4.1 ###

* `node['stash']['version']`: "2.4.1"
* `node['stash']['checksum']`: "9b6347e25738b728cce33dce6eb7171be78fa913665b2065b0c9d1c3df4de9e0"

### Stash 2.4.0 ###

* `node['stash']['version']`: "2.4.0"
* `node['stash']['checksum']`: "f71fd89a5b0364179cd3d50476be8843291fe2629d2a379f6dcc8434ae724a97"

### Stash 2.3.1 ###

* `node['stash']['version']`: "2.3.1"
* `node['stash']['checksum']`: "736580eac07e229b165f83600e2c783b5cd54b775be99aeb4a57dee6715ac626"

### Stash 2.3.0 ###

* `node['stash']['version']`: "2.3.0"
* `node['stash']['checksum']`: "584bde276b4acb079e4c32266352f09fba3ed018ce3ec0984f2c6ebded9067db"

### Stash 2.2.0 ###

* `node['stash']['version']`: "2.2.0"
* `node['stash']['checksum']`: "3e8a461f30dbb6bd31a0d9aa42d639a147a3da2b9c534e7923eccca4169bf052"

### Stash 2.1.1 ###

* `node['stash']['version']`: "2.1.1"
* `node['stash']['checksum']`: "be29bf0c2044466fa0cd60f2f597053967644d92ae354510c4262385d00ad8cd"

### Stash 2.1.0 ###

* `node['stash']['version']`: "2.1.0"
* `node['stash']['checksum']`: "299ae786cdec495f22a0116c2a82bdf2151ecc53507a845568a62269db210205"

### Stash 2.0.3 ###

* `node['stash']['version']`: "2.0.3"
* `node['stash']['checksum']`: "c57e5f3f63ea235180355f393b99db647d3e93112a73f40e8881b64e6b7fb6dd"

### Stash 2.0.2 ###

* `node['stash']['version']`: "2.0.2"
* `node['stash']['checksum']`: "7b28ed244339cd8da237ba82b32a3c3eae8bb890ba5bb4190294ffcd04a88bd4"

### Stash 2.0.1 ###

* `node['stash']['version']`: "2.0.1"
* `node['stash']['checksum']`: "73881542544f99d2602c065da535a8f437c4e3c6d9fde0e7d7cadd5dfa3defcb"

### Stash 2.0.0 ###

* `node['stash']['version']`: "2.0.0"
* `node['stash']['checksum']`: "f943df5262c0cfdf03a087fab08649e83f437300e4f409ac7b542d4da53179fd"

## Stash 1.3.x ##

Cookbook Versions: 1.0+

Tested OSes:
* CentOS 6.3
* RHEL 6.3

### Stash 1.3.1 ###

* `node['stash']['version']`: "1.3.1"
* `node['stash']['checksum']`: "6e9e344fa9f4976afef862f27e1a0f4fae4adc6dad771f3ffbc2cedd5addb243"

### Stash 1.3.0 ###

* `node['stash']['version']`: "1.3.0"
* `node['stash']['checksum']`: "2731997d6e223cb512906183f5c231be602319ce05d2794cdf5b957a1fd06e08"
Stash Version | CentOS 6 | RHEL 6 | Ubuntu 12.04 | Ubuntu 12.10 | Ubuntu 13.04
--------------|----------|--------|--------------|--------------|-------------
1.3.X | 0.1+ | 0.1+ | 1.0+ | - | -
2.X | 2.3+ | 2.3+ | 2.3+ | 3.0+ | 3.0+
21 changes: 17 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
source 'https://rubygems.org'
source "https://rubygems.org"

gem 'berkshelf'
gem 'test-kitchen', git: 'git://github.com/opscode/test-kitchen.git', branch: '1.0'
gem 'kitchen-vagrant', :group => :integration
gem 'berkshelf', '~> 2.0'
gem 'chefspec', '~> 2.0'
gem 'foodcritic', '~> 3.0'
gem 'guard', '~> 2.0'
gem 'guard-kitchen'
gem 'guard-rubocop', '~> 1.0'
gem 'guard-rspec', '~> 3.0'
gem 'rb-inotify', :require => false
gem 'rb-fsevent', :require => false
gem 'rb-fchange', :require => false
gem 'rubocop', '~> 0.14'

group :integration do
gem 'test-kitchen', '~> 1.0.0.beta'
gem 'kitchen-vagrant', '~> 0.11'
end
12 changes: 12 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme

guard 'kitchen' do
watch(%r{test/.+})
watch(%r{^recipes/(.+)\.rb$})
watch(%r{^attributes/(.+)\.rb$})
watch(%r{^files/(.+)})
watch(%r{^templates/(.+)})
watch(%r{^providers/(.+)\.rb})
watch(%r{^resources/(.+)\.rb})
end
14 changes: 14 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Copyright:: 2012-2013 Brian Flad
Copyright:: 2013 Nordstrom, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Loading

0 comments on commit f04f949

Please sign in to comment.