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

pris (3) Versions 1.0.0

Installs/Configures opennms-pris

Policyfile
Berkshelf
Knife
cookbook 'pris', '= 1.0.0', :supermarket
cookbook 'pris', '= 1.0.0'
knife supermarket install pris
knife supermarket download pris
README
Dependencies
Quality 17%

Chef Cookbook for OpenNMS PRIS

This cookbook installs OpenNMS PRIS on rhel 6/7 derivatives.

Requirements

  • CentOS 6 or CentOS 7
  • Java 11
  • Chef 13+

Recipes

default: installs PRIS

Attributes

default[:pris][:home] = '/opt/opennms-pris' # installation location
default[:pris][:version] = '2.0.0-b1051' # version to install
default[:pris][:archive] = "opennms-pris-release-#{node[:pris][:version]}.tar.gz" # filename to download
default[:pris][:download_url] = "https://github.com/OpenNMS/opennms-provisioning-integration-server/releases/download/#{node[:pris][:version]}/#{node[:pris][:archive]}" # full download location
default[:pris][:global] = { # options for $PRIS_HOME/global.properties
  driver: 'http',
  host: '0.0.0.0',
  port: 8000,
}

Resources

pris_requisition: creates a directory in $PRIS_HOME/requisitions for the requisition defined by this resource and manages the requisition.properties file according to the properties defined in the resource.

Actions

  • :create: creates or updates an existing requisition
  • :create_if_missing: creates a new requisition if not already present
  • :delete: deletes requisition if it exists

Properties

Name Name? Type Default Description Allowed Values
requisition_name X String The name of the requisition. The resource name is used when null.
source String 'file' The requisition source type. file, http, jdbc, merge, script, xls, ocs.computers, ocs.devices
source_properties Hash {} Additional properties to set prefixed by source..
mapper String 'echo' The type of mapper to use.
mapper_properties Hash {} Additional properties to set prefixed by mapper..
script_file Array [] Values are joined by a comma and set to the property script.file

Usage

Include the default recipe in your run list if you'd like to install PRIS. Use the pris_requisition resource to manage requisitions. See the [recipes in the pris_test](test/fixtures/cookbooks/pris_test/recipes) test fixture cookbook and the corresponding [inspec tests](test/integration) for examples of using each different source type. Note that it is your responsibility to ensure that any external resources (files, etc) referenced by your requisition actually exist.

License & Authors

Copyright: 2015-2023 ConvergeOne Holdings Corp

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

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

1.0.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

1.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
            

1.0.0 failed this metric

Chef/Correctness/ScopedFileExist: Scope file exist to access the correct File class by using ::File.exist? not File.exist?. (https://docs.chef.io/workstation/cookstyle/chef_correctness_scopedfileexist): pris/recipes/default.rb: 42
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): pris/resources/requisition.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): pris/libraries/matchers.rb: 1
Chef/RedundantCode/LongDescriptionMetadata: The long_description metadata.rb method is not used and is unnecessary in cookbooks. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_longdescriptionmetadata): pris/metadata.rb: 6
Chef/RedundantCode/UnnecessaryNameProperty: There is no need to define a property or attribute named :name in a resource as Chef Infra defines this on all resources by default. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_unnecessarynameproperty): pris/resources/requisition.rb: 21
Chef/Sharing/InvalidLicenseString: Cookbook metadata.rb does not use a SPDX compliant license string or "all rights reserved". See https://spdx.org/licenses/ for a complete list of license identifiers. (https://docs.chef.io/workstation/cookstyle/chef_sharing_invalidlicensestring): pris/metadata.rb: 4

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
            

1.0.0 passed this metric

Testing File Metric
            

1.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
            

1.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