cookbook 'chef-updater', '~> 2.1.0'
chef-updater (8) Versions 2.1.0 Follow3
Application cookbook which provides a custom resource for updating Chef Client.
cookbook 'chef-updater', '~> 2.1.0', :supermarket
knife supermarket install chef-updater
knife supermarket download chef-updater
chef-updater cookbook
Application cookbook which provides a simple recipe for updating
the Chef Client package on an instance.
This cookbook supports updating a minimum Chef version of 12.1.0 and
above. The inspiration for this cookbook comes from the
Omnibus Updater cookbook which specifically targets the Omnitruck
API for obtaining Chef client artifacts. Unfortunately those of us in
the enterprise likely already have our own mechanisms for distributing
packages, and most of the time they integrate very well with the
operating system's package manager.
Platforms
This cookbook is tested and used in production on the following
platforms:
- RHEL 5/6/7
- CentOS 5/6/7
- Ubuntu 12.04/14.04
- Windows 2008r2/2012r2
- AIX 7.1
- Solaris 11.2
Basic Usage
Because of how this cookbook short-circuits the Chef convergence it
cannot be run at the compile phase of the run. It should be included
as early as possible in a node's expanded run-list in order to stop a
near-immediately when the client is upgraded.
Resource/Provider
The default recipe passes in some tuning attributes to the
resource/provider. These attributes should only be tweaked if you
understand what you're doing. It is important to note that by default
the package_source is nil. This means that the system package
provider will attempt to grab it from a potential package repository
(if configured).
Additionally, the package_version should be the semantic version of the
Chef Client that you would like the node to be upgraded to. In the background
a helper transforms this into the version necessary for the platform that
the provider is operating on (e.g. 12.4.0-1.el5).
Property | Type | Description | Default |
---|---|---|---|
package_name | String | Name of package to be upgraded. | 'chef' |
package_version | String | Version of the package to be upgraded. | '12.9.38' |
package_source | [String, NilClass] | Remote URL of where package resides. | nil |
Dependent cookbooks
poise ~> 2.6 |
chef-sugar >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Change Log
Unreleased
Merged pull requests:
- Add windows provider for chef_updater resource. #6 (johnbellone)
- Get the windows portion to correctly uninstall the old version #5 (jjustice6)
v1.1.2 (2016-02-03)
Merged pull requests:
v1.1.1 (2015-11-20)
v1.1.0 (2015-11-20)
v1.0.2 (2015-10-27)
Merged pull requests:
* This Change Log was automatically generated by github_changelog_generator
Collaborator Number Metric
2.1.0 passed this metric
Contributing File Metric
2.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
2.1.0 failed this metric
FC109: Use platform-specific package resources instead of provider property: chef-updater/libraries/chef_updater.rb:176
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
2.1.0 passed this metric
Testing File Metric
2.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.1.0 passed this metric
2.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
2.1.0 failed this metric
FC109: Use platform-specific package resources instead of provider property: chef-updater/libraries/chef_updater.rb:176
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
2.1.0 passed this metric
Testing File Metric
2.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.1.0 failed this metric
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
2.1.0 passed this metric
Testing File Metric
2.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.1.0 failed this metric
2.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number