A Chef cookbook to install a C compiler and build tools.
To install a C compiler:
include_recipe 'poise-build-essential'
Or to install using a resource and at compile time:
poise_build_essential 'build_essential' do
action :nothing
end.run_action(:install)
poise-build-essential::default
– Install a C compiler and build tools.
node['poise-build-essential']['action']
– Action to use. One of install, upgrade, or remove. (default: install)node['poise-build-essential']['allow_unsupported_platform']
– Whether or not to raise an error on unsupported platforms. (default: false)
The poise_build_essential
resource installs a C compiler and build tools.
poise_build_essential 'build_essential' do
allow_unsupported_platform true
end
:install
– Install a C compiler. (default):upgrade
– Install a C compiler usingpackage action :ugprade
rules.:remove
– Remove a C compiler.
allow_unsupported_platform
– Whether or not to raise an error on unsupported platforms. (default: false)
Development sponsored by SAP.
The Poise test server infrastructure is sponsored by Rackspace.
Some code copyright 2008-2017, Chef Software, Inc. Used under the terms of the Apache License, Version 2.0.
Copyright 2017, Noah Kantrowitz
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.