cookbook 'hostupgrade', '~> 0.1.3'
hostupgrade (3) Versions 0.1.3 Follow4
Updates and Upgrades Host
cookbook 'hostupgrade', '~> 0.1.3', :supermarket
knife supermarket install hostupgrade
knife supermarket download hostupgrade
HOSTUPGRADE Cookbook
<br />
Basic cookbook for upgrading linux hosts. Check for updates and then perform an upgrade. Flag available to only run once, the first time.
Supported Chef Versions
Chef 12 and below
Supported Platforms
Debian(6.x+), Ubuntu(10.04+)
CentOS(6.x+), RedHat, Fedora(20+)Tested Against
Debian 6.x and above
Ubuntu 10.04 and above
CenOS 6.x and above
Fedora 20Planned Improvements
0.2.0 - Add Windows Hosts
No additional cookboks are required.
<br />
<br />
<br />
Attributes
hostupgrade::default
<br />
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>["hostupgrade"]["update_system"]</tt></td>
<td>Boolean</td>
<td>Update repository information</td>
<td><tt>true</tt></td>
</tr>
<tr>
<td><tt>["hostupgrade"]["upgrade_system"]</tt></td>
<td>Boolean</td>
<td>Perform upgrades to OS</td>
<td><tt>true</tt></td>
</tr>
<tr>
<td><tt>["hostupgrade"]["first_time_only"]</tt></td>
<td>Boolean</td>
<td>Only Perform Updates & Upgrades on First-Run</td>
<td><tt>true</tt></td>
</tr>
</table>
<br />
<br />
<br />
Recipe Usage
php-fpm::upgrade (required)
Perform host update/upgrade. Include hostupgrade::upgrade
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[hostupgrade::upgrade]" ] }
<br />
<br />
<br />
License and Authors
Authors: Brian Stajkowski
Copyright 2014 Brian Stajkowski
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.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
hostupgrade CHANGELOG
0.1.3
- stajkowski - Support for Chef-Solo. What I have done instead was to touch a file in /tmp as a flag for the first run only, this will only happen for chef-solo instead of saving the node attributes to chef-server.
0.1.2
- stajkowski - Fix run update and upgrade to operate the same with first-run.
0.1.1
- stajkowski - Initial release.
Collaborator Number Metric
0.1.3 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.3 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
0.1.3 failed this metric
FC064: Ensure issues_url is set in metadata: hostupgrade/metadata.rb:1
FC065: Ensure source_url is set in metadata: hostupgrade/metadata.rb:1
FC066: Ensure chef_version is set in metadata: hostupgrade/metadata.rb:1
FC069: Ensure standardized license defined in metadata: hostupgrade/metadata.rb:1
FC070: Ensure supports metadata defines valid platforms: hostupgrade/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: hostupgrade/metadata.rb:1
FC075: Cookbook uses node.save to save partial node data to the chef-server mid-run: hostupgrade/recipes/upgrade.rb:50
FC075: Cookbook uses node.save to save partial node data to the chef-server mid-run: hostupgrade/recipes/upgrade.rb:82
FC104: Use the :run action in ruby_block instead of :create: hostupgrade/recipes/upgrade.rb:39
FC104: Use the :run action in ruby_block instead of :create: hostupgrade/recipes/upgrade.rb:71
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.3 passed this metric
Testing File Metric
0.1.3 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
0.1.3 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
0.1.3 failed this metric
0.1.3 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
0.1.3 failed this metric
FC064: Ensure issues_url is set in metadata: hostupgrade/metadata.rb:1
FC065: Ensure source_url is set in metadata: hostupgrade/metadata.rb:1
FC066: Ensure chef_version is set in metadata: hostupgrade/metadata.rb:1
FC069: Ensure standardized license defined in metadata: hostupgrade/metadata.rb:1
FC070: Ensure supports metadata defines valid platforms: hostupgrade/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: hostupgrade/metadata.rb:1
FC075: Cookbook uses node.save to save partial node data to the chef-server mid-run: hostupgrade/recipes/upgrade.rb:50
FC075: Cookbook uses node.save to save partial node data to the chef-server mid-run: hostupgrade/recipes/upgrade.rb:82
FC104: Use the :run action in ruby_block instead of :create: hostupgrade/recipes/upgrade.rb:39
FC104: Use the :run action in ruby_block instead of :create: hostupgrade/recipes/upgrade.rb:71
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.3 passed this metric
Testing File Metric
0.1.3 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
0.1.3 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
0.1.3 failed this metric
FC065: Ensure source_url is set in metadata: hostupgrade/metadata.rb:1
FC066: Ensure chef_version is set in metadata: hostupgrade/metadata.rb:1
FC069: Ensure standardized license defined in metadata: hostupgrade/metadata.rb:1
FC070: Ensure supports metadata defines valid platforms: hostupgrade/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: hostupgrade/metadata.rb:1
FC075: Cookbook uses node.save to save partial node data to the chef-server mid-run: hostupgrade/recipes/upgrade.rb:50
FC075: Cookbook uses node.save to save partial node data to the chef-server mid-run: hostupgrade/recipes/upgrade.rb:82
FC104: Use the :run action in ruby_block instead of :create: hostupgrade/recipes/upgrade.rb:39
FC104: Use the :run action in ruby_block instead of :create: hostupgrade/recipes/upgrade.rb:71
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.3 passed this metric
Testing File Metric
0.1.3 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
0.1.3 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
0.1.3 failed this metric
0.1.3 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