Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to Chef 12.1+ based resources #41

Closed
wants to merge 124 commits into from

Conversation

martinisoft
Copy link
Contributor

This PR is a massive cleanup and re-write of the cookbook in an effort to modernize it for Chef 12 and beyond. It completely strips down the responsibilities of the cookbook and introduces quite a few breaking changes. Most notably the lack of a source based installation method. Source based installs are not Chef's strong suit and thus prone to plenty of error modes making it exceedingly difficult to test and maintain. Just check out the other PR's changing the hard coded values and attempting to add additional features. Here's a summary of what's changed and the TODO before this PR can be officially reviewed and merged:

Changes:

  • Moved test suite to Inspec and away from BATS and ServerSpec
  • Added CentOS and Debian OS to testing and support matrix
  • Moved to Cookstyle for testing and linting via foodcritic and rubocop
  • Removed source install entirely

TODO:

  • pdns_recursor_service resources
  • pdns_authoritative_install resources
  • pdns_authoritative_service resources

This is mostly useful for source installs and the package stuff will get
baked in by platform 👍
Not only are they not documented, but they don't appear to be tested
either.
The first defined action of a resource is the default action so it's
implicit and does not need to be explicit here.
These are replaced by resources now
Also the first 14.04 Ubuntu tests passes.
Somehow I thought this was implied with the cookbook name, but it turns
out this is entirely adjustable
Resource name and provides are very similar, but don't perform the same
function. We need to give unique resource names for each platform, then
go into provides to be specific about the resource it's providing and on
which platform it responds to.
@therobot therobot closed this Mar 20, 2017
@therobot therobot deleted the enhancement/chef_resources branch March 20, 2017 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants