cookbook 'pkgutil', '~> 3.0.0'
pkgutil (7) Versions 3.0.0 Follow5
Manages Solaris pkgutil packages
cookbook 'pkgutil', '~> 3.0.0', :supermarket
knife supermarket install pkgutil
knife supermarket download pkgutil
pkgutil Cookbook
Requirements
- Chef 12.7+
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
- Author: Martha Greenberg (marthag@wix.com)
- Author: Yvonne Lam (yvonne@chef.io)
- Author: Seth Chisamore (schisamo@chef.io)
Copyright 2012-2014, 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.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
pkgutil Cookbook CHANGELOG
This file is used to list changes made in each version of the pkgutil cookbook.
3.0.0 (2017-11-01)
- Test with Local Delivery instead of Rake
- Update Apache license string in metadata
- Convert repository to a custom resource which requires Chef 12.7+
- Load current resource in a Chef 13 compatible way
- Updated providers to Chef 13 compatible syntax
2.1.0 (2017-01-18)
- Fix - handle "+" in package name
- Update Github PR template
2.0.0 (2016-09-16)
- Enable use_inline_resources
- Testing framework updates
- Format readme and remove release engineering blurb
- Require Chef 12.1
v1.0.0 (2016-04-27)
- Converted the pkgutil_package into a true package provider that runs as the default on Solaris systems
- Added Chefspec tests
- Added Test Kitchen testing
- Add rubocop config and resolved warnings
- Added Gemfile with test deps
- Fixed Readme badges
- Added a chefignore file
- Added testing and contributing docs
- Added this changelog
- Added license file and license information in the readme
- Added name to the metadata
- Added source_url and issues_url to the metadata
- Added maintainers files and rake task to generate the markdown
- Fixed typos in the readme
- Added a .foodcritic file to disable FC048 and FC001
- Updated Travis CI config to test with Chef DK
Collaborator Number Metric
3.0.0 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
3.0.0 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
3.0.0 failed this metric
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): pkgutil/resources/repository.rb: 1
Chef/Modernize/DefinesChefSpecMatchers: ChefSpec matchers are now auto generated by ChefSpec 7.1+ and do not need to be defined in a cookbook (https://docs.chef.io/workstation/cookstyle/chef_modernize_defineschefspecmatchers): pkgutil/libraries/matchers.rb: 1
Chef/Modernize/FoodcriticComments: Remove legacy code comments that disable Foodcritic rules (https://docs.chef.io/workstation/cookstyle/chef_modernize_foodcriticcomments): pkgutil/resources/repository.rb: 56
Chef/Modernize/FoodcriticComments: Remove legacy code comments that disable Foodcritic rules (https://docs.chef.io/workstation/cookstyle/chef_modernize_foodcriticcomments): pkgutil/resources/repository.rb: 75
Run with Cookstyle Version 7.32.1 with cops Chef/Deprecations,Chef/Correctness,Chef/Sharing,Chef/RedundantCode,Chef/Modernize,Chef/Security,InSpec/Deprecations
No Binaries Metric
3.0.0 passed this metric
Testing File Metric
3.0.0 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
3.0.0 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
3.0.0 failed this metric
3.0.0 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
3.0.0 failed this metric
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): pkgutil/resources/repository.rb: 1
Chef/Modernize/DefinesChefSpecMatchers: ChefSpec matchers are now auto generated by ChefSpec 7.1+ and do not need to be defined in a cookbook (https://docs.chef.io/workstation/cookstyle/chef_modernize_defineschefspecmatchers): pkgutil/libraries/matchers.rb: 1
Chef/Modernize/FoodcriticComments: Remove legacy code comments that disable Foodcritic rules (https://docs.chef.io/workstation/cookstyle/chef_modernize_foodcriticcomments): pkgutil/resources/repository.rb: 56
Chef/Modernize/FoodcriticComments: Remove legacy code comments that disable Foodcritic rules (https://docs.chef.io/workstation/cookstyle/chef_modernize_foodcriticcomments): pkgutil/resources/repository.rb: 75
Run with Cookstyle Version 7.32.1 with cops Chef/Deprecations,Chef/Correctness,Chef/Sharing,Chef/RedundantCode,Chef/Modernize,Chef/Security,InSpec/Deprecations
No Binaries Metric
3.0.0 passed this metric
Testing File Metric
3.0.0 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
3.0.0 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
3.0.0 failed this metric
Chef/Modernize/DefinesChefSpecMatchers: ChefSpec matchers are now auto generated by ChefSpec 7.1+ and do not need to be defined in a cookbook (https://docs.chef.io/workstation/cookstyle/chef_modernize_defineschefspecmatchers): pkgutil/libraries/matchers.rb: 1
Chef/Modernize/FoodcriticComments: Remove legacy code comments that disable Foodcritic rules (https://docs.chef.io/workstation/cookstyle/chef_modernize_foodcriticcomments): pkgutil/resources/repository.rb: 56
Chef/Modernize/FoodcriticComments: Remove legacy code comments that disable Foodcritic rules (https://docs.chef.io/workstation/cookstyle/chef_modernize_foodcriticcomments): pkgutil/resources/repository.rb: 75
Run with Cookstyle Version 7.32.1 with cops Chef/Deprecations,Chef/Correctness,Chef/Sharing,Chef/RedundantCode,Chef/Modernize,Chef/Security,InSpec/Deprecations
3.0.0 passed this metric
Testing File Metric
3.0.0 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
3.0.0 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
3.0.0 failed this metric
3.0.0 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