cookbook 'hostupgrade', '= 0.1.2'
hostupgrade (3) Versions 0.1.2 Follow4
Updates and Upgrades Host
cookbook 'hostupgrade', '= 0.1.2', :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.1.2 - 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.2
- stajkowski - Fix run update and upgrade to operate the same with first-run.
0.1.1
- stajkowski - Initial release.
Foodcritic Metric
0.1.2 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/e3f8b10aac0205c01ecc3cb7/hostupgrade/recipes/upgrade.rb:19
FC019: Access node attributes in a consistent manner: /tmp/cook/e3f8b10aac0205c01ecc3cb7/hostupgrade/recipes/upgrade.rb:19
0.1.2 failed this metric
FC019: Access node attributes in a consistent manner: /tmp/cook/e3f8b10aac0205c01ecc3cb7/hostupgrade/recipes/upgrade.rb:19