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

RSS

freebsd (38) Versions 2.0.7

Handles FreeBSD ports setup

Policyfile
Berkshelf
Knife
cookbook 'freebsd', '= 2.0.7', :supermarket
cookbook 'freebsd', '= 2.0.7'
knife supermarket install freebsd
knife supermarket download freebsd
README
Dependencies
Changelog
Quality 50%

freebsd Cookbook

Cookbook Version
CI State
OpenCollective
OpenCollective
License

Sets up ports and pkgng on FreeBSD systems

Maintainers

This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you’d like to know more please visit sous-chefs.org or come chat with us on the Chef Community Slack in #sous-chefs.

Requirements

Platforms

  • FreeBSD

Chef

  • Chef 15.3+

Cookbooks

  • none

Attributes

Attribute Default Description
node['freebsd']['compiletime_portsnap'] false Execute portsnap resources at compile time

Supported Versions

This cookbook will support stable and release versions of the FreeBSD Platform. More information on this subject can be found at issue23.

Usage

freebsd::portsnap

This recipe ensures the Ports Collection collection is fully up to date.

This recipe should appear first in the run list of FreeBSD nodes to ensure that the package cache is up to date before managing any package resources with Chef.

Resources

port_options

Provides an easy way to set port options from within a cookbook.

It can be used in two different ways:

  • template-based: specifying a source will write it to the correct destination with no change;
  • options hash: if a options hash is passed instead, it will be merged on top of default and current options, and the result will be written back.

Note that the options hash take simple options names as keys and a boolean as value; when saving to file, this is converted to the format that FreeBSD ports expect:

Option Key Name Option Value Options File
APACHE true WITH_APACHE=true
APACHE false WITHOUT_APACHE=true

Actions

Action Description Default
create create the port options file according to the given options Yes

Properties

Property Description
name The name of the port whose options file you want to manipulate;
source if the property is set, it will be used to look up a template, which will then be saved as a port options file
options a hash with the option name as the key, and a boolean as value.

Examples

# freebsd-php5-options will be written out as /var/db/ports/php5/options
freebsd_port_options 'php5' do
  source 'freebsd-php5-options.erb'
  action :create
end

# Default options will be read from /usr/ports/lang/php5;
# current options from /var/db/ports/php5/options (if exists);
# the APACHE options will be set to true, the others will be unchanged
freebsd_port_options 'php5' do
  options 'APACHE' => true
  action :create
end

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers!

https://opencollective.com/sous-chefs#backers

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

https://opencollective.com/sous-chefs/sponsor/0/website
https://opencollective.com/sous-chefs/sponsor/1/website
https://opencollective.com/sous-chefs/sponsor/2/website
https://opencollective.com/sous-chefs/sponsor/3/website
https://opencollective.com/sous-chefs/sponsor/4/website
https://opencollective.com/sous-chefs/sponsor/5/website
https://opencollective.com/sous-chefs/sponsor/6/website
https://opencollective.com/sous-chefs/sponsor/7/website

freebsd cookbook CHANGELOG

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

2.0.7 - 2023-07-10

2.0.6 - 2023-06-08

Standardise files with files in sous-chefs/repo-management

2.0.5 - 2023-05-16

2.0.4 - 2023-05-03

2.0.3 - 2023-04-01

2.0.2 - 2023-03-02

  • Standardise files with files in sous-chefs/repo-management

2.0.1 - 2023-02-14

  • Standardise files with files in sous-chefs/repo-management

2.0.0 - 2022-08-19

  • Enable unified_mode for Chef 17 compatibility
  • Require Chef 15.3+
  • Remove delivery folder

1.1.2 - 2021-08-30

  • Standardise files with files in sous-chefs/repo-management

1.1.1 - 2021-06-01

  • Standardise files with files in sous-chefs/repo-management

1.1.0 - 2021-02-04

  • Sous Chefs Adoption
  • Standardise files with files in sous-chefs/repo-management
  • Cookstyle fixes
  • Add GH Action testing via VirtualBox on MacOS
  • Fix issue with port_options not working

1.0.2 (2017-04-26)

  • Test with delivery local mode
  • Remove the coverage report from chefspec
  • Update the license string in the metadata
  • Switch to Inspec and test on freebsd 11 not 9.3

1.0.1 (2016-12-14)

  • use portsnap interactive for freebsd >= 10 not just 10

1.0.0 (2016-09-15)

  • Testing updates
  • Require Chef 12.1+

v0.6.0 (2016-04-02)

  • The parent directory is now created in the ports_options provider

v0.5.2 (2016-04-01)

  • Resolved 'No resource, method, or local variable named path' error
  • Updated testing dependencies

v0.5.1 (2016-01-08)

  • Improved the description in the readme
  • Fixed a failed spec
  • Resolved rubocop warnings

v0.5.0 (2015-12-13)

  • Only execute the cookbooks when running on FreeBSD so they can be safely included in base roles where they might run on Linux or Windows hosts

v0.4.0 (2015-10-20)

  • Added a new option to execute the portsnap resources at compile time: node['freebsd']['compiletime_portsnap']
  • Updated the supported FreeBSD releases to match those supported by the Chef Client (9/10 only)
  • Significantly expanded Chefspec testing
  • Added source_url and issues_url to the metadata
  • Updated the gitignore file
  • Test on the latest Freebsd boxes in Test Kitchen
  • Added chefignore file
  • Added Chef standard rubocop config
  • Updated Travis CI testing to use the ChefDK for up to date deps
  • Updated Gemfile with the latest testing deps
  • Updated testing and contributing docs
  • Added maintainers.md and maintainers.toml files
  • Added travis and cookbook version badges to the readme
  • Resolved Rubocop warnings

v0.3.0 (2014-10-30)

  • Removing package provider monkey patch
  • Dropping FreeBSD 8.2 support

v0.2.1 (2014-10-23)

  • Don't install PKGNG on 9 if it already exists

v0.2.0 (2014-10-22)

  • Add a recipe to install and configure PKGNG
  • Level up ChefSpec and ServerSpec coverage

v0.1.10 (2014-10-06)

  • Update method used for non-interactive portsnap on FreeBSD 10

v0.1.9 (2014-08-02)

  • Updating to support both 11.12.8 and 11.4.2

v0.1.8 (2014-08-02)

  • Reverting changes made in v0.1.6

v0.1.6 (2014-08-01)

  • Update provider to match Chef-Client 11.14.2 changes

v0.1.2 (2014-04-09)

  • [COOK-4454] Added FreeBSD 10 to test harness

v0.1.2 (2014-02-25)

[COOK-3933] - Add a recipe for ensuring the Ports Collection is up-to-date

v0.1.0

  • [COOK-2568]: FreeBSD cookbook throws Error in runtime

v0.0.6

  • [COOK-1605] - freebsd_port_options always notifies

v0.0.4

  • [COOK-1430] - resolve foodcritic warnings; LWRP now defines default action

v0.0.2

  • [COOK-1084] - fix older version building from ports

v0.0.1

  • [COOK-1074] - initial release

Collaborator Number Metric
            

2.0.7 passed this metric

Contributing File Metric
            

2.0.7 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Cookstyle Metric
            

2.0.7 passed this metric

No Binaries Metric
            

2.0.7 passed this metric

Testing File Metric
            

2.0.7 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

2.0.7 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number