Basic cookbook for upgrading linux hosts. Check for updates and then perform an upgrade. Flag available to only run once, the first time.
Chef 12 and below
Debian(6.x+), Ubuntu(10.04+) CentOS(6.x+), RedHat, Fedora(20+)
Debian 6.x and above Ubuntu 10.04 and above CenOS 6.x and above Fedora 20
0.2.0 - Add Windows Hosts
No additional cookboks are required.
#Attributes
| Key | Type | Description | Default |
|---|---|---|---|
| ["hostupgrade"]["update_system"] | Boolean | Update repository information | true |
| ["hostupgrade"]["upgrade_system"] | Boolean | Perform upgrades to OS | true |
| ["hostupgrade"]["first_time_only"] | Boolean | Only Perform Updates & Upgrades on First-Run | true |
# Recipe Usage
Perform host update/upgrade. Include hostupgrade::upgrade in your node's run_list:
{
"name":"my_node",
"run_list": [
"recipe[hostupgrade::upgrade]"
]
}# 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.