onddo/postfixadmin-cookbook

View on GitHub
CHANGELOG.md

Summary

Maintainability
Test Coverage
# Change Log
All notable changes to the `postfixadmin` cookbook will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
### Fixed
- Avoid clonning map files path directory resource with postfix-full.

## [3.0.0] - 2017-03-11
### Added
- Add `:active` and `:default_aliases` properties to domain resource.
- Add `:delete` action to resources.
- metadata: Add `chef_version`.
- Mark credentials as sensitive.

### Changed
- Update to install PostfixAdmin `3`.
- Use `chef_nginx` cookbook instead of the old `nginx`.
- Update some cookbook versions:
  - `mysql` from `6` to `8`.
  - `ark` from `0.9` to `2.2`.
  - `database` from `4` to `6`.
  - `php` from `1.5` to `2`.
  - `postgresql` from `3.4` to `6`.
  - `ssl_certificate` from `1.1` to `2`.
- Some LWRPs simplified: avoid making a DB connection.
- Use `Integer` instead of `Fixnum`.
- Fix all RuboCop and foodcritic offenses.
- Replace old LWRPs with Custom Resources.
- Update `openssl` cookbook password generation logic.
- Remove DB library completely, only use HTTP connections in the resources.
- Move libraries to `PostfixadminCookbook` namespace.
- CHANGELOG: Follow "Keep a CHANGELOG".

### Removed
- Drop Ruby `< 2.2` support.
- Drop Chef `< 12.5` support.
- Drop PostfixAdmin `2` installation support.
- Remove old `nginx` cookbook usage.
- Metadata: Remove grouping ([RFC-85](https://github.com/chef/chef-rfc/blob/8d47f1d0afa5a2313ed2010e0eda318edc28ba47/rfc085-remove-unused-metadata.md)).
- README: Remove documentation about locale (old).

### Fixed
- Always restart apache: improve Debian/Ubuntu support.
- Fix `postgresql_database_user[postfixadmin]` resource duplication.
- Fix Ubuntu `16.04` support.
- Fix `apache2` cookbook version `3.2` compatibility (issues [#9](https://github.com/zuazo/postfixadmin-cookbook/issues/9) and [#10](https://github.com/zuazo/postfixadmin-cookbook/issues/10), thanks [Mauro Destro](https://github.com/maurodx) and [Eric Blevins](https://github.com/e100) for reporting).
- Fix Chef `13` deprecation warnings.
- CHANGELOG: Fix capitals.

## [2.1.0] - 2015-08-21
### Added
- Add `node['postfixadmin']['database']['manage']` attribute.
- metadata: Add `source_url` and `issues_url`.
- Generate URL dynamically using the version value.
- Add Debian `8` and Ubuntu `15.04` support.

### Fixed
- Fix *session_start* error on CentOS.
- Fix `postfixadmin_admin#password`: it is not an encrypted attribute ([issue #6](https://github.com/zuazo/postfixadmin-cookbook/issues/6), thanks [Eric Blevins](https://github.com/e100) for reporting).

### Changed
- Update RuboCop to `0.33.0`.
- Update chef links to use *chef.io* domain.
- Update contact information and links after migration.
- README:
  - Use markdown tables.
  - Put the cookbook name in the title.

## [2.0.0] - 2015-05-09
### Changed
- Update the cookbook and the dependencies (**breaking change**):
- Update `mysql` cookbook to version `6`.
- Update `database` cookbook to version `4`.
- Update resources to use `mysql2` gem.
- Improve nginx support:
  - Restart nginx and php-fpm on first run for LWRP to work properly.
  - Fix php-fpm support on Ubuntu `10`.
- Update RuboCop to `0.30.1`.

### Upgrading from a `1.x.y` Cookbook Release
- **Note:*** Please do this with caution. Make a full backup before upgrading.

If you want to upgrade the cookbook [ersion from a `1.x` release, you should change the MySQL data directory path to the old one] - or migrate the database by hand:

```ruby
node.default['postfixadmin']['mysql']['data_dir'] = '/var/lib/mysql'
# [...]
include_recipe 'postfixadmin'
```

## [1.4.2] - 2015-05-07
### Fixed
- Mailbox resource: Fix name attribute to be a string.

## [1.4.1] - 2015-05-06
### Fixed
- Monkey patch the `MysqlClient#version` method missing error.

## [1.4.0] - 2015-02-13
- Fix disabling nginx default site.
- Remove `ssl_ca` param from `web_app` template.
- Include specific helpers instead of `"database::#{type}"` (issue [#5](https://github.com/zuazo/postfixadmin-cookbook/pull/5), thanks [Bernhard Weisshuhn (a.k.a. bernhorst)](https://github.com/bkw)).
  - Fixes `database` cookbook version `4` support.
- Run Unit tests against Chef `11` and `12`.
- Gemfile: Update RuboCop to `0.29.0`.

## [1.3.0] - 2015-01-05
- Add nginx support.
- Update `ssl_certificate` cookbook to `1.1.0`, adds chained certificate support.
- metadata: use pessimistic operator for cookbook versions, fixes database version bug.
- Bugfix: include OpenSSL functions in the `::postgresql` recipe.
- Berksfile: Use ark stable version for tests.
- Unit Tests: Update to use `ChefSpec::ServerRunner`.
- Fix Serverspec integration tests.
- travis.yml: Use the new build env.
- Gemfile:
  - Use foodcritic and RuboCop fixed versions.
  - Update to RuboCop `0.28.0`.
  - Update vagrant-wrapper to `2`.
- README:
  - Move the test matchers documentation to the README.
  - Add TOC.
  - *s/Attribute/Parameter/* for resources.
- TODO: add mysql cookbook update task.

## [1.2.0] - 2014-11-09
- ChefSpec matchers: added helper methods to locate LWRP resources.
- `PostfixAdmin::DB`: allow `db` instance attribute to be readable.
- Fix providers and map files password decryption with encrypted attributes enabled.
- Fix new RuboCop offense.
- Tests integrated with `should_not` gem.
- Update tests to work with Serverspec 2, includes Gemfile.
- Berksfile, Rakefile and Guarfile, generic templates copied.
- Enable ChefSpec coverage.
- TODO.md: Add some tasks.
- Homogenize license headers.

## [1.1.0] - 2014-10-03
- Added depends `mysql` cookbook `~> 5.0`.
- Include PHP recipe to fix Fedora support.
- Added LICENSE file.
- travis.yml: exclude some groups from bundle install.
- Gemfile:
  - Replaced `vagrant` git by `vagrant-wrapper`.
  - Berkshelf updated to `3.1`.
- Rakefile: require kitchen inside integration task.
- Guardfile added.
- Vagrantfile updated to work properly and documented in TESTING.
- PostgreSQL support improved and documented.
- Added Serverspec tests.
- Set `PATH` for bats integration tests to avoid `$LSOF` monkey-patch.
- Some integration tests improved.

## [1.0.1] - 2014-09-14
- Do not include `mysql::server` recipe.
- Added MySQL attributes documentation.
- PostgreSQL password generation moved to `recipe::postgresql`.
- README: generated password documentation fixed.
- Added Fedora and Amazon Linux support.

## [1.0.0] - 2014-09-14
- Fixed Apache `2.4` support.
- FC001: Use strings in preference to symbols to access node attributes.
- FC023: Prefer conditional attributes.
- kitchen.yml: updated, some syntax improvements, added apt to the run list.
- kitchen.yml: added hostname and forwarded ports.
- Added .kitchen.cloud.yml file.
- *test/kitchen/cookbooks* directory moved to *test/cookbooks*.
- Gemfile updated and improved.
- Added a TODO file.
- Integrated with `ssl_certificate` cookbook and some related improvements:
  - **Update Warning**: This update will cause the self-signed certificate to be regenerated.
  - Added `server_aliases` attribute.
  - Added `headers` attribute.
  - Fixed SSL support in CentOS.
  - Both 80 and 443 ports remain enabled with SSL.
  - **Update Warning**: Log files path changed from *postfix_access.log* and *postfix_ssl_access.log* to *postfix-access.log* and *postfix-ssl-access.log* (the same applies applies to error logs).
  - Replaced `return`s in providers by `next`s.
  - Fixed apache restart for LWRPs.
- `web_app-postfixadmin-reload` resource for LWRPs after VirtualHost creation.
- All RuboCop offenses fixed, Rakefile added.
  - Library methods changed from `camelCase` to `snake_case`.
  - `exists?` library methods renamed to `exist?`.
  - Replaced `Chef::Application.fatal` by exceptions: avoids daemon exit.
  - Fixed map-files integration tests.
- `PostfixAdmin::MySQL` refactored: removed code duplication and logger configured.
- `PostfixAdmin::PHP` code duplication removed.
- Added PostgreSQL support (based on [@anveo's work](https://github.com/anveo/postfixadmin-cookbook/commits/postgresql-support), thanks!), including:
  - `PostfixAdmin::MySQL` library renamed to `PostfixAdmin::DB`.
  - PostfixAdmin HTML error parsing improved.
  - Required packages installation refactored using attributes.
  - Fixed *config.local.php* group value without apache.
- All integration tests fixed to pass.
- Added listening port attribute:
  - **Update Warning**: Only one port will be enabled by default at the same time (no more non-SSL + SSL combo).
- Added ChefSpec matchers.
- Added ChefSpec tests.
- Added travis.yml and multiple badges.
- README: updated a paragraph about database support.
- README: separated into multiple files and some titles fixed.
- `recipes::apache`: fixed disabling `web_app[postfixadmin-ssl]`.
- Integrated with `encrypted_attributes` cookbook:
  - FC007: Ensure recipe dependencies are reflected in cookbook metadata.
  - attributes: disable `encrypt_attributes` by default.
- Create MySQL database only for localhost.

## [0.2.0] - 2014-05-24
- Default PostfixAdmin version updated to `2.3.7`.
- `server_name` attribute *calculated*.
- README: Added requirements links.
- README: Added Cookbook Badge.
- README: some `alias_domain` titles fixed.
- Added `postfixadmin_alias_domain` LWRP.
- Added Ser[erspec tests (issue [#4](https://github.com/zuazo/postfixadmin-cookbook/pull/4), thanks [MATSUI Shinsuke] - poppen)](https://github.com/poppen).
- Separate recipe for apache (issue [#4](https://github.com/zuazo/postfixadmin-cookbook/pull/4), thanks [MATSUI Shinsuke (poppen)](https://github.com/poppen)).
- Gemfile: switch to using the new [ersion of vagrant (issue [#4](https://github.com/zuazo/postfixadmin-cookbook/pull/4), thanks [MATSUI Shinsuke] - poppen)](https://github.com/poppen).
- kitchen.yml: updated to latest format.

## [0.1.3] - 2014-03-16
- A[oid nil package resource name for pkg_php_mbstring] - issues [#2](https://github.com/zuazo/postfixadmin-cookbook/pull/2) and [#3](https://github.com/zuazo/postfixadmin-cookbook/pull/3), thanks [chrludwig](https://github.com/chrludwig).

## [0.1.2] - 2013-11-17
- Fixed compatibility issues with Chef 11.8 (issue [#1](https://github.com/zuazo/postfixadmin-cookbook/pull/1), thanks [mikelococo](https://github.com/mikelococo) for reporting).
- LWRPs fixed to notify only when an action is executed.

## [0.1.1] - 2013-10-28
- metadata: provides without square brackets to avoid [CHEF-3976](https://tickets.chef.io/browse/CHEF-3976)

## 0.1.0 - 2013-06-11
- Initial release of `postfixadmin`

[Unreleased]: https://github.com/zuazo/postfixadmin-cookbook/compare/3.0.0...HEAD
[3.0.0]: https://github.com/zuazo/postfixadmin-cookbook/compare/2.1.0...3.0.0
[2.1.0]: https://github.com/zuazo/postfixadmin-cookbook/compare/2.0.0...2.1.0
[2.0.0]: https://github.com/zuazo/postfixadmin-cookbook/compare/1.4.2...2.0.0
[1.4.2]: https://github.com/zuazo/postfixadmin-cookbook/compare/1.4.1...1.4.2
[1.4.1]: https://github.com/zuazo/postfixadmin-cookbook/compare/1.4.0...1.4.1
[1.4.0]: https://github.com/zuazo/postfixadmin-cookbook/compare/1.3.0...1.4.0
[1.3.0]: https://github.com/zuazo/postfixadmin-cookbook/compare/1.2.0...1.3.0
[1.2.0]: https://github.com/zuazo/postfixadmin-cookbook/compare/1.1.0...1.2.0
[1.1.0]: https://github.com/zuazo/postfixadmin-cookbook/compare/1.0.1...1.1.0
[1.0.1]: https://github.com/zuazo/postfixadmin-cookbook/compare/1.0.0...1.0.1
[1.0.0]: https://github.com/zuazo/postfixadmin-cookbook/compare/0.2.0...1.0.0
[0.2.0]: https://github.com/zuazo/postfixadmin-cookbook/compare/0.1.3...0.2.0
[0.1.3]: https://github.com/zuazo/postfixadmin-cookbook/compare/0.1.2...0.1.3
[0.1.2]: https://github.com/zuazo/postfixadmin-cookbook/compare/0.1.1...0.1.2
[0.1.1]: https://github.com/zuazo/postfixadmin-cookbook/compare/0.1.0...0.1.1