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

RSS

omnibus (97) Versions 2.7.1

Prepares a machine to be an Omnibus builder.

Berkshelf/Librarian
Policyfile
Knife
cookbook 'omnibus', '= 2.7.1'
cookbook 'omnibus', '= 2.7.1', :supermarket
knife cookbook site install omnibus
knife cookbook site download omnibus
README
Dependencies
Changelog
Quality

omnibus Cookbook

Cookbook Version

Prepares a machine to be an Omnibus builder.

This project is managed by the CHEF Release Engineering team. For more information on the Release Engineering team's contribution, triage, and release process, please consult the CHEF Release Engineering OSS Management Guide.

Requirements

This cookbook requires Chef 11.0.0+.

For a full list of supported platforms and external cookbook requirements, please see the metadata.rb file at the root of the cookbook.

Recipes

The default recipe is the main entrypoint for the cookbook and does the following:

  • Ensures all required Omnibus-related directories are created and owned by the build user.
  • Ensures a sane build tool-chain is installed and configured (using the build-essential cookbook)
  • Ensures git is installed (using the git cookbook)
  • Includes a platform-specific recipe to apply additional tweaks as appropriate.

All other recipes should be treated as "private" and are not meant to be used individually. They only exist to support the default recipe.

Attributes

Attribute Default Description
build_user omnibus The user to perform the Omnibus build
install_dir /opt/omnibus The directory to install Omnibus
cache_dir /var/cache/omnibus The cache directory for Omnibus

Resources

omnibus_build

This resource is used to execute a build of an Omnibus project.

Attributes

Attribute Default Description
project_name The name of the Omnibus project to build
project_dir The directory to install Omnibus
install_dir /opt/<PROJECT> The installation of the project being built
omnibus_base_dir Windows: 'C:/omnibus-ruby' *nix: '/var/cache/omnibus' The cache directory for Omnibus
log_level :internal Log level used during the build. Valid values include: :internal, :debug, :info, :warn, :error, :fatal
config_file <PROJECT_DIR>/omnibus.rb Omnibus configuration file used for the build.
config_overrides {} Overrides for one or more Omnibus config options
expire_cache false Indiciates the Omnibus cache (including git cache) should be wiped before building.
build_user node['omnibus']['build_user'] The user to execute the Omnibus build as.
environment {} Environment variables to set in the underlying build process.

Example Usage

omnibus_build 'harmony' do
  project\_dir 'https://github.com/chef/omnibus-harmony.git'
  log_level :internal
  config_override(
    append_timestamp: true
  )
end

Usage

Include the omnibus::default recipe in your node's run list and override the cookbook's default attributes as desired. At the very least you will want to override node['omnibus']['install_dir'] to match the installation directory of your Omnibus project.

Testing

You can run the tests in this cookbook using Rake:

rake integration  # Run Test Kitchen integration tests
rake style        # Run all style checks
rake style:chef   # Lint Chef cookbooks
rake style:ruby   # Run Ruby style checks
rake travis:ci    # Run tests on Travis

License & Authors

Copyright 2012-2015, Chef Software, Inc. (<legal@chef.io>)

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.

omnibus Cookbook CHANGELOG

This file is used to list changes made in each version of the omnibus cookbook.

v2.7.0(2015-10-02)

Feature

  • Added omnibus_build resource

v2.6.13 (2015-09-04)

Bug fixes

  • File::ALT_SEPARATOR can be nil

Improvements

  • Stop creating symlinks in /usr/bin - We can use load-omnibus-toolchain.sh to set the PATH correctly
  • Use bash built by this cookbook for login shell

v2.6.12 (2015-08-25)

Improvements

  • Ship our own version of cacerts

v2.6.11 (2015-08-19)

Improvements

  • Fix all rubocop errors

v2.6.10 (2015-08-19)

Bug fixes

  • Fix fakeroot recipe to remove obsolete resource attributes

v2.6.9 (2015-07-03)

Bug fixes

  • Remove omnibus-toolchain checksums

Improvements

  • Add recipe to install the windows sdk
  • DRY up omnibus-toolchain installation logic

v2.6.8 (2015-06-22)

Bug fixes

  • Install glibc-static on non-Power platforms running el-6 or higher

Improvements

  • Add path for 7-zip
  • Added logic for installing variants of the omnibus toolchain

v2.6.7 (2015-06-03)

Bug fixes

  • Update Perl path in FreeBSD git configure args

v2.6.6 (2015-06-03)

Bug fixes

  • Install a known working version of Bundler

v2.6.5 (2015-06-01)

Improvements

  • [ruby-windows] install a cacerts bundle that works with the S3 root cert

v2.6.4 (2015-05-01)

Improvements

  • Updates to support RHEL/Ubuntu ppc64/le

v2.6.3 (2015-04-15)

Improvements

  • Install the omnibus toolchain package if supported
  • Don’t compile tools that ship in the omnibus-toolchain package
  • Update to the latest TK with first-class Windows support!
  • Add Solaris support to the .kitchen.yml
  • Use ChefDK for all Travis testing
  • Fix all Rubocop 0.28.0 style errors

v2.6.2 (2015-03-27)

Improvements

  • Ensure all platforms have a sane .gitconfig
  • Properly set Git’s CA bundle on Solaris 10

v2.6.1 (2015-03-23)

Improvements

  • Add patch support to ruby_install resource
  • Apply patch to Ruby source on Solaris 11 - this allows us to install Ruby 2.1.x.

v2.6.0 (2015-03-19)

Improvements

  • Install glibc-static on EL6+
  • Updated Solaris 10 build toolchain

v2.5.5 (2015-03-02)

Bug fixes

  • Package signing on EL7 requires the rpm-sign package.

v2.5.4 (2015-03-01)

Bug fixes

  • Don’t configure SSL_CERT_FILE globally on Windows

v2.5.3 (2015-02-27)

Improvements

  • Solaris 11 support

Bug fixes

  • Ruby install should not modify the PATH on Win systems

v2.5.2 (2015-02-05)

Improvements

  • Update the url for ccache/rsync

v2.5.1 (2014-12-11)

Improvements

  • Create /etc/ssl/cert.pem symlink on FreeBSD

v2.5.0 (2014-12-10)

Improvements

  • Bump Ruby version to 2.1.5

v2.4.18 (2014-12-04)

Bug fixes

  • Ensure FreeBSD Ruby install points at valid root CA cert

v2.4.16 (2014-11-11)

Bug fixes

  • Fix CA bundle location for omnibus env on windows
  • Upgrade Bash to 4.3.30 to fix CVE-2014-6271

v2.4.14 (2014-11-06)

Bug fixes

  • Don’t allow ruby-install to install deps

v2.4.12 (2014-10-24)

Bug fixes

  • Configure BSD Make for backward compat mode
  • Guarantee presence of bzip2 on RHEL

v2.4.10 (2014-10-22)

Bug fixes

  • Ensure HTTPS remotes work in FreeBSD git install

v2.4.8 (2014-10-17)

Bug fixes

  • Reintroduce sign-rpm script

v2.4.6 (2014-10-17)

Bug fixes

  • Install ruby before git to ensure correct ownership of /usr/local/lib on OS X
  • Stop infinitively growing Windows PATH

v2.4.4 (2014-10-15)

Bug fixes

  • Disable DTrace integration when compiling Ruby

v2.4.2 (2014-10-14)

Bug fixes

  • Use fully-qualified names when installing FreeBSD packages

Improvement

  • Add linting support (Foodcritic, Rubocop) to repo
  • Fix ChefSpec 4.1.x deprecation warnings

v2.4.0 (2014-10-07)

Feature

  • FreeBSD 10 support
  • RHEL 7 support
  • Ubuntu 14.04 support

Improvement

  • Update integration tests to ServerSpec 2
  • Remove hard dependency on yum-epel cookbook
  • RPM signing is now managed from Omnibus

v2.3.4 (2014-09-15)

Bug fixes

  • Create environment scripts last.

Improvement

  • Add some additional elements to PATH on Windows systems.
  • Print gcc and make versions in load-omnibus-toolchain.bat.

v2.3.2 (2014-09-05)

Improvement

  • Install fakeroot and rpm-build packages on RHEL-based systems

v2.3.0 (2014-08-08)

Feature

  • SUSE support

Improvement

  • Install fakeroot and devscripts packages on Debian-based systems

v2.2.0 (2014-06-19)

Improvement

  • Fix the idempotency check for chruby
  • Set SELinux to permissive
  • Install rsync
  • Update Chef Sugar to v2.0.0

v2.1.2 (2014-06-12)

Improvement

  • Upgrade to ChefSpec 4
  • Use the maximum number of builders when compiling from source

Bug fixes

  • Check /usr/local/bin/bash when checking if Bash is installed
  • Bump default Ruby version to 2.1.2 to fix readline issues

v2.1.0 (2014-05-20)

Feature

  • Platform-specific scripts to laod omnibus toolchain/environment
  • Deploy sign-rpm script on RHEL platform family

Improvement

  • Add proper support for Windows
  • Add a group for the build user

v2.0.2 (2014-04-07)

  • Fix memory leak in string concatenation

v2.0.0

Improvement

  • Add support for Mac OS X
  • Update Rubocop
  • Update to Berkshelf 3
  • Reduce number of dependencies on community cookbooks
  • Packaged custom ChefSpec matchers
  • Added checksum verifications for installing remote packages
  • Support multiple rubies with ruby-install and chruby
  • Ensure a consistent version of bash everywhere by compiling from source
  • Improved test suite and coverage
  • Use a consistent version of git by compiling from source

Breaking

  • Dropped support for smartos
  • Dropped support for solaris2

v1.2.4

Improvement

  • Pessimistically lock deps to MAJOR.MINOR
  • Update to git cookbook ~> 3.0
  • Switch to using the yum-epel cookbook

v1.2.2

Improvement

  • Change default Ruby to 1.9.3-p484 (addresses [CVE-2013-4164])
  • Refactor recipe to install Ruby on Windows. Main change is using *.7zip package instead of *.msi.
  • Update .kitchen.yml for final 1.0 format.

v1.2.0

Feature

  • Install Ruby using rbenv

Improvement

  • Add serverspec integration test coverage
  • Add Foodcritic and Rubocop linting support
  • Add Travis CI support
  • Add FreeBSD to .kitchen.yml

v1.1.0

Feature

  • Add ccache support for faster builds.

v1.0.10

Bug

  • COOK-3178 - Fix order of git installation on FreeBSD

v1.0.8

  • [COOK-3170] Linking make to gmake breaks the package provider on FreeBSD

v1.0.6

  • [CHEF-3151] Fix regression in /tmp/portsnap call

v1.0.4

  • [CHEF-3151] Don't extract ports every time in omnibus::freebsd

v1.0.2

  • [CHEF-2576] add support for SmartOS
  • [CHEF-4141] Initial Freebsd support for omnibus

v1.0.0

  • Initial release!

Foodcritic Metric
            

2.7.1 passed this metric