Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

The omnibus_updater cookbook has been deprecated

Author provided reason for deprecation:

The omnibus_updater cookbook has been deprecated and is no longer being maintained by its authors. Use of the omnibus_updater cookbook is no longer recommended.

You may find that the chef_client_updater cookbook is a suitable alternative.

RSS

omnibus_updater (23) Versions 1.1.0

Chef omnibus package updater and installer

Policyfile
Berkshelf
Knife
cookbook 'omnibus_updater', '= 1.1.0', :supermarket
cookbook 'omnibus_updater', '= 1.1.0'
knife supermarket install omnibus_updater
knife supermarket download omnibus_updater
README
Dependencies
Changelog
Quality 0%

OmnibusUpdater

Update your omnibus! This cookbook can install the omnibus
Chef package into your system if you are currently running
via gem install, and it can keep your omnibus install up
to date.

Supports

  • redhat
  • centos
  • amazon
  • scientific
  • oracle
  • debian
  • ubuntu
  • mac_os_x
  • solaris
  • windows

Usage

Add the recipe to your run list and specify what version should
be installed on the node:

knife node run_list add recipe[omnibus_updater]

In your role you'll likely want to set the version. It defaults
to nothing, and will install the latest..

override_attributes(
  :omnibus_updater => {
    :version => '11.4.0'
  }
)

It can also uninstall Chef from the system Ruby installation
if you tell it to:

override_attributes(
  :omnibus_updater => {
    :remove_chef_system_gem => true
  }
)

Features

Latest Version

Force installation of the latest version regardless of value stored in version
attribute by setting the force_latest attribute.

Chef Killing

By default the omnibus updater will kill the chef instance by raising an exception.
You can turn this off using the kill_chef_on_upgrade attribute. It is not
recommended to turn this off. Internal chef libraries may change, move, or no
longer exist. The currently running instance can encounter unexpected states because
of this. To prevent this, the updater will attempt to kill the Chef instance so
that it can be restarted in a normal state.

Restart chef-client Service

Use the restart_chef_service attribute to restart chef-client if you have it running as a service.

Prerelease

Prereleases can be installed via the auto-installation using prerelease attribute.

Disable

If you want to disable the updater you can set the disabled
attribute to true. This might be useful if the cookbook is added
to a role but should then be skipped for example on a Chef server.

Prevent Downgrade

If you want to prevent the updater from downgrading chef on a node, you
can set the prevent_downgrade attribute to true. This can be useful
for testing new versions manually. Note that the always_download
attribute takes precedence if set.

Warnings

Windows Support

Windows support is available in versions 1.0.8 and higher; however, we only support Chef Client versions 12.5.1 and below, due to a known bug in 12.6.0. This is reflected in the Windows test suite.

If you would like to wrap this cookbook in order to prevent OmnibusUpdater with version 12.6.0 on Windows, you may do something like the following:

if((node[:chef_packages][:chef][:version] == '12.6.0') && node[:os].downcase.include?('windows'))
Chef::Log.warn 'Omnibus updater cannot upgrade or downgrade a Windows 12.6.0 installation, skipping'
else
include_recipe 'omnibus_updater'
end

Infos

v1.1.0

  • Add Windows support (only Chef client versions 12.5.1 and below).
  • Improve upgrade behavior on Amazon Linux
  • Explicitly require windows testing gems in order to support test-kitchen 1.6.x.

v1.0.6

  • Get rid of warnings about defined constant
  • update Chef download url
  • Updates supported versions
  • require chef/rest
  • use Chef::Mash explicitly
  • Define the Chef::Mash constant if not provided by chef
  • add test suites for ubuntu 14.04 and centos 7

v1.0.4

  • file_cache_path path to store chef-client
  • Avoid deleting chef-server packages if using the same cache dir
  • Only backup the last old chef client file
  • make sure directory exists before trying to write to it

v1.0.2

  • Maintenance updates
  • Support for Fedora
  • omnitrucker solaris update
  • bug fixes

v1.0.0

  • Breaking change: :always_download is now defaulted to false
  • Add solaris package install support (#37 thanks @jtimberman)
  • Update notifies/subscribes usage to support older Chefs (#38 thanks @spheromak)

v0.2.8

  • Always download the package (thanks @miketheman for swiftly pointing out the issue!)

v0.2.6

  • Work with amazon linux (thanks @thommay)
  • Disable updates on debian 5 (thanks @ianand0204)
  • Only use major version on debian systems (thanks @kvs)
  • Allow prevention of downgrades (thanks @buysse)
  • Add support for restarting chef service after upgrade (thanks @andrewfraley)

v0.2.4

  • Only download omnibus package if version difference detected (#20 #22 #23)
  • Provide attribute for always downloading package even if version matches

v0.2.3

  • Use chef internals for interactions with omnitruck to provide proper proxy support (#19)

v0.2.0

  • Use omnitruck client for url generation for package fetching
  • Use prerelease in favor of allow_release_clients

v0.1.2

  • Fix regression on debian package path construction (thanks ashmere)

v0.1.1

  • Search for proper version suffix if not provided (removes default '-1')
  • Do not allow release clients by default when version search is enabled
  • Push omnibus package installation to the end of run (reduces issue described in #10)
  • Allow updater to be disabled via attribute (thanks Teemu Matilainen)

v0.1.0

  • Fix redhat related versioning issues
  • Remove requirement for '-1' suffix on versions
  • Initial support for automatic latest version install

v0.0.5

  • Add support for Ubuntu 12.10
  • Path fixes for non-64 bit packages (thanks ashmere)

v0.0.4

  • Use new aws bucket by default
  • Update file key building

v0.0.3

  • Path fix for debian omnibus packages (thanks ashmere)

v0.0.2

  • Add robust check when uninstalling chef gem to prevent removal from omnibus

v0.0.1

  • Initial release

Foodcritic Metric
            

1.1.0 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/attributes/default.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/attributes/default.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/attributes/default.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/attributes/default.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/attributes/default.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/attributes/default.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/attributes/default.rb:26
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/attributes/default.rb:27
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/attributes/default.rb:28
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/attributes/default.rb:29
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/attributes/default.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/attributes/default.rb:31
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/attributes/default.rb:32
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/libraries/omnitrucker.rb:65
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/libraries/omnitrucker.rb:67
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/libraries/omnitrucker.rb:69
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/libraries/omnitrucker.rb:70
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/libraries/omnitrucker.rb:71
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/libraries/omnitrucker.rb:72
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/libraries/omnitrucker.rb:73
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/libraries/omnitrucker.rb:74
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/libraries/omnitrucker.rb:75
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/libraries/omnitrucker.rb:80
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/libraries/omnitrucker.rb:81
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/default.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/default.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/default.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/default.rb:31
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/downloader.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/downloader.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/downloader.rb:26
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/downloader.rb:29
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/downloader.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/downloader.rb:36
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/downloader.rb:38
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/downloader.rb:43
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/downloader.rb:46
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/downloader.rb:49
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/downloader.rb:52
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/downloader.rb:54
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/downloader.rb:57
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/downloader.rb:59
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/downloader.rb:63
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:27
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:28
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:39
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:40
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:53
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:69
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:76
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:79
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:81
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:84
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:86
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:91
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/old_package_cleaner.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/old_package_cleaner.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/old_package_cleaner.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/remove_chef_system_gem.rb:27
FC009: Resource attribute not recognised: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:73
FC019: Access node attributes in a consistent manner: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/downloader.rb:50
FC019: Access node attributes in a consistent manner: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:33
FC019: Access node attributes in a consistent manner: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:60
FC019: Access node attributes in a consistent manner: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:78
FC019: Access node attributes in a consistent manner: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:102
FC043: Prefer new notification syntax: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:73
FC043: Prefer new notification syntax: /tmp/cook/6f787ed943c4f9be9b5d4ab6/omnibus_updater/recipes/installer.rb:97