All Projects → chef-boneyard → Build Essential

chef-boneyard / Build Essential

Licence: apache-2.0
Development repository for build-essential Chef Cookbook

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Build Essential

Sudo
Development repository for sudo cookbook
Stars: ✭ 113 (-4.24%)
Mutual labels:  chef, cookbook
Activemq
Development repository for activemq Chef Cookbook
Stars: ✭ 19 (-83.9%)
Mutual labels:  chef, cookbook
audit
Audit Cookbook for Chef Compliance
Stars: ✭ 58 (-50.85%)
Mutual labels:  chef, cookbook
Cookstyle
A linting tool that helps you to write better Chef Infra cookbooks by detecting and automatically correcting style, syntax, and logic mistakes in your code.
Stars: ✭ 95 (-19.49%)
Mutual labels:  chef, cookbook
Chef Vault
chef-vault cookbook
Stars: ✭ 63 (-46.61%)
Mutual labels:  chef, cookbook
aix
Resources for AIX hosts
Stars: ✭ 22 (-81.36%)
Mutual labels:  chef, cookbook
sudo
Development repository for sudo cookbook
Stars: ✭ 119 (+0.85%)
Mutual labels:  chef, cookbook
mysql tuning-cookbook
Chef cookbook to create MySQL configuraiton files better suited for your system.
Stars: ✭ 23 (-80.51%)
Mutual labels:  chef, cookbook
Runit
Development repository for the Chef Runit Cookbook
Stars: ✭ 101 (-14.41%)
Mutual labels:  chef, cookbook
Lvm
Development repository for lvm Chef cookbook
Stars: ✭ 51 (-56.78%)
Mutual labels:  chef, cookbook
Yum
Development repository for yum cookbook
Stars: ✭ 96 (-18.64%)
Mutual labels:  chef, cookbook
Ark
Development repository for Chef Cookbook ark
Stars: ✭ 103 (-12.71%)
Mutual labels:  chef, cookbook
chef client updater
Chef Cookbook to update the chef client on nodes
Stars: ✭ 51 (-56.78%)
Mutual labels:  chef, cookbook
chef-ulimit
This is a simple chef cookbook that provides a defintion for managing user_ulimit settings.
Stars: ✭ 43 (-63.56%)
Mutual labels:  chef, cookbook
push-jobs-cookbook
Development repository for Chef Cookbook push-jobs
Stars: ✭ 21 (-82.2%)
Mutual labels:  chef, cookbook
heartbeat
Development repository for Chef Cookbook heartbeat
Stars: ✭ 13 (-88.98%)
Mutual labels:  chef, cookbook
chef-ingredient
Primitives for managing Chef products and packages
Stars: ✭ 43 (-63.56%)
Mutual labels:  chef, cookbook
chef-client
Development repository for Chef Client cookbook
Stars: ✭ 181 (+53.39%)
Mutual labels:  chef, cookbook
Bluepill
Development repository for bluepill Chef Cookbook
Stars: ✭ 35 (-70.34%)
Mutual labels:  chef, cookbook
Ssh known hosts
Development repository for Chef Cookbook ssh_known_hosts
Stars: ✭ 73 (-38.14%)
Mutual labels:  chef, cookbook

build-essential Cookbook

Cookbook Version Build Status

Installs packages required for compiling C software from source. Use this cookbook if you wish to compile C programs, or install RubyGems with native extensions. Contains a resource, 'build_essential', as as well as a default recipe that simply calls that same resource.

Deprecation

The functionality of this cookbook is now built into Chef 14+ in the build_essential resource. This cookbook is no longer being maintained and all future changes will be done directly in the chef-client. We highly recommend you update your chef-client to the latest release and if possible migrate to using the build_essential resources instead of the recipe in this cookbook.

Requirements

Platforms

  • Debian/Ubuntu
  • RHEL/CentOS/Scientific/Amazon/Oracle
  • openSUSE / SUSE Enterprise Linux
  • SmartOS
  • Fedora
  • Mac OS X 10.9+
  • FreeBSD

Chef

  • Chef 12.7+

Cookbooks

  • seven_zip
  • mingw

Note for Debian platform family: On Debian platform-family systems, it is recommended that apt-get update be run, to ensure that the package cache is updated. It's not in the scope of this cookbook to do that, as it can create a duplicate resource. We recommend using the apt cookbook to do this.

Attributes

Attribute Default Description
node['build-essential']['compile_time'] false Execute resources at compile time
node['build-essential']['msys2']['path'] #{ENV['SYSTEMDRIVE']\\msys2 Destination for msys2 build tool chain (Windows only)

Usage

Recipe Usage

The recipe simply calls the build_essential resource, but it ideal for adding to roles or node run lists.

Include the build-essential recipe in your run list:

knife node run_list add NODE "recipe[build-essential::default]"

or add the build-essential recipe as a dependency and include it from inside another cookbook:

include_recipe 'build-essential::default'

Gems with C extensions

For RubyGems that include native C extensions you wish to use with Chef, you should do the following.

  • Set the compile_time attribute to true in your wrapper cookbook or role:

     # Wrapper attribute
     default['build-essential']['compile_time'] = true
    
     # Role
     default_attributes(
       'build-essential' => {
         'compile_time' => true
       }
     )
    
  • Ensure that the C libraries, which include files and other assorted "dev"

    type packages, are installed in the compile phase after the build-essential

    recipe is executed. For example:

     include_recipe 'build-essential::default'
    
     package('mypackage-devel') { action :nothing }.run_action(:install)
    
  • Use the chef_gem resource in your recipe to install the gem with the native

    extension:

     chef_gem 'gem-with-native-extension'
    

Resource Usage

The cookbook includes a resource 'build_essential' that can be included in your cookbook to install the necessary build-essential packages

Simple package installation during the client run:

build_essential 'some name you choose'

Package installation during the compile phase:

build_essential 'some name you choose' do
  compile_time false
end

Maintainers

This cookbook is maintained by Chef's Community Cookbook Engineering team. Our goal is to improve cookbook quality and to aid the community in contributing to cookbooks. To learn more about our team, process, and design goals see our team documentation. To learn more about contributing to cookbooks like this see our contributing documentation, or if you have general questions about this cookbook come chat with us in #cookbok-engineering on the Chef Community Slack

License

Copyright: 2009-2016, Chef Software, Inc.

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].