Skip to content

chef-cookbooks/pkgutil

Repository files navigation

pkgutil Cookbook

Build Status Cookbook Version

Requirements

  • Chef 12.15+

Recipes

opencsw

Configures the local the local pkgutil installation to point at the Open Community Software Project (OpenCSW) package repository. The optional cryptographic verification will also be enabled for the repository.

Resources

package

This cookbook provides a package provider which will install/remove packages using pkgutil. This becomes the default provider for package if your platform is solaris2.

Examples

package 'vim' do
  action :install
end

package 'vim' do
  provider Chef::Provider::Package::Pkgutil
end

pkgutil_repository

This resource provides an easy way to manage pkgutil repositories. Default action is :add which enables the repository. Use :remove to disable a repository.

The pkgutil_repository resource has the following attributes:

Attribute Description
mirror mirror to use for downloads (defaults to http://mirror.opencsw.org/opencsw)
channel also called 'directories', see https://mirror.opencsw.org/opencsw/ for more
verification verify the catalog and each package using PGP
gpg_homedir path to the gpg directory (defaults to /var/opt/csw/pki)
pkgadd_options additional options to use for underlying pkgadd commands
allow_noncsw support non-CSW packages

This resource will also ensure pkgutil and any required public keys are installed!

Testing

You can run the tests in this cookbook using Rake:

rake integration              # Run Test Kitchen integration tests
rake spec                     # Run ChefSpec examples
rake style                    # Run all style checks
rake style:chef               # Lint Chef cookbooks
rake style:ruby               # Run Ruby style checks
rake style:ruby:auto_correct  # Auto-correct RuboCop offenses
rake travis:ci                # Run tests on Travis

License & Authors

Copyright 2012-2014, Chef Software, Inc. (<[email protected]>)

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.