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

yum-nodesource (2) Versions 1.0.1

Installs/Configures yum-nodesource

Policyfile
Berkshelf
Knife
cookbook 'yum-nodesource', '~> 1.0.1', :supermarket
cookbook 'yum-nodesource', '~> 1.0.1'
knife supermarket install yum-nodesource
knife supermarket download yum-nodesource
README
Dependencies
Changelog
Quality 33%

yum-nodesource Cookbook

iThe yum-nodesource cookbook takes over management of the default repository
ids shipped with nodesource-release. It allows attribute manipulation of
nodesource_4x, nodesource_5x and nodesource_6x.

Requirements

Platforms

  • RHEL/CentOS and derivatives

Chef

  • Chef 12.5+

Cookbooks

  • yum version 3.2.0 or higher

Attributes

The following attributes are set by default

default['yum']['nodesource_4x']['repositoryid'] = 'nodesource_4x'
default['yum']['nodesource_4x']['gpgkey'] = 'https://rpm.nodesource.com/pub/el/NODESOURCE-GPG-SIGNING-KEY-EL'
default['yum']['nodesource_4x']['description'] = 'Nodesource NodeJS 4.x RPM Repository'
default['yum']['nodesource_4x']['failovermethod'] = 'priority'
default['yum']['nodesource_4x']['gpgcheck'] = true
default['yum']['nodesource_4x']['enabled'] = true
default['yum']['nodesource_4x']['base_url'] = 'https://rpm.nodesource.com/pub_4.x/el/6/x86_64/'
default['yum']['nodesource_5x']['repositoryid'] = 'nodesource_5x'
default['yum']['nodesource_5x']['gpgkey'] = 'https://rpm.nodesource.com/pub/el/NODESOURCE-GPG-SIGNING-KEY-EL'
default['yum']['nodesource_5x']['description'] = 'Nodesource NodeJS 5.x RPM Repository'
default['yum']['nodesource_5x']['failovermethod'] = 'priority'
default['yum']['nodesource_5x']['gpgcheck'] = true
default['yum']['nodesource_5x']['enabled'] = true
default['yum']['nodesource_5x']['base_url'] = 'https://rpm.nodesource.com/pub_5.x/el/6/x86_64/'
default['yum']['nodesource_5x']['repositoryid'] = 'nodesource_6x'
default['yum']['nodesource_5x']['gpgkey'] = 'https://rpm.nodesource.com/pub/el/NODESOURCE-GPG-SIGNING-KEY-EL'
default['yum']['nodesource_5x']['description'] = 'Nodesource NodeJS 6.x RPM Repository'
default['yum']['nodesource_5x']['failovermethod'] = 'priority'
default['yum']['nodesource_5x']['gpgcheck'] = true
default['yum']['nodesource_5x']['enabled'] = true
default['yum']['nodesource_5x']['base_url'] = 'https://rpm.nodesource.com/pub_6.x/el/6/x86_64/'
default['yum']['nodesource_5x']['repositoryid'] = 'nodesource_8x'
default['yum']['nodesource_5x']['gpgkey'] = 'https://rpm.nodesource.com/pub/el/NODESOURCE-GPG-SIGNING-KEY-EL'
default['yum']['nodesource_5x']['description'] = 'Nodesource NodeJS 8.x RPM Repository'
default['yum']['nodesource_5x']['failovermethod'] = 'priority'
default['yum']['nodesource_5x']['gpgcheck'] = true
default['yum']['nodesource_5x']['enabled'] = true
default['yum']['nodesource_5x']['base_url'] = 'https://rpm.nodesource.com/pub_8.x/el/6/x86_64/'
default['yum']['nodesource_5x']['repositoryid'] = 'nodesource_10x'
default['yum']['nodesource_5x']['gpgkey'] = 'https://rpm.nodesource.com/pub/el/NODESOURCE-GPG-SIGNING-KEY-EL'
default['yum']['nodesource_5x']['description'] = 'Nodesource NodeJS 10.x RPM Repository'
default['yum']['nodesource_5x']['failovermethod'] = 'priority'
default['yum']['nodesource_5x']['gpgcheck'] = true
default['yum']['nodesource_5x']['enabled'] = true
default['yum']['nodesource_5x']['base_url'] = 'https://rpm.nodesource.com/pub_10.x/el/6/x86_64/'
default['yum']['nodesource_5x']['repositoryid'] = 'nodesource_11x'
default['yum']['nodesource_5x']['gpgkey'] = 'https://rpm.nodesource.com/pub/el/NODESOURCE-GPG-SIGNING-KEY-EL'
default['yum']['nodesource_5x']['description'] = 'Nodesource NodeJS 11.x RPM Repository'
default['yum']['nodesource_5x']['failovermethod'] = 'priority'
default['yum']['nodesource_5x']['gpgcheck'] = true
default['yum']['nodesource_5x']['enabled'] = true
default['yum']['nodesource_5x']['base_url'] = 'https://rpm.nodesource.com/pub_11.x/el/6/x86_64/'

Recipes

  • default - Uses the 4x repository

  • 4x - Installs the NodeJS 4x repository, eg:

  yum_repository 'nodesource_4x' do
    base_url 'https://rpm.nodesource.com/pub_4.x/el/6/x86_64/'
    description 'Nodesource NodeJS 4.x RPM Repository'
    enabled true
    gpgcheck true
  end
  • 5x - Installs the NodeJS 5x repository, eg:
  yum_repository 'nodesource_5x' do
    base_url 'https://rpm.nodesource.com/pub_5.x/el/6/x86_64/'
    description 'Nodesource NodeJS 5.x RPM Repository'
    enabled true
    gpgcheck true
  end
  • 6x - Installs the NodeJS 6x repository, eg:
  yum_repository 'nodesource_6x' do
    base_url 'https://rpm.nodesource.com/pub_6.x/el/6/x86_64/'
    description 'Nodesource NodeJS 6.x RPM Repository'
    enabled true
    gpgcheck true
  end
  • 8x - Installs the NodeJS 8x repository, eg:
  yum_repository 'nodesource_8x' do
    base_url 'https://rpm.nodesource.com/pub_8.x/el/6/x86_64/'
    description 'Nodesource NodeJS 8.x RPM Repository'
    enabled true
    gpgcheck true
  end
  • 10x - Installs the NodeJS 10x repository, eg:
  yum_repository 'nodesource_10x' do
    base_url 'https://rpm.nodesource.com/pub_10.x/el/6/x86_64/'
    description 'Nodesource NodeJS 10.x RPM Repository'
    enabled true
    gpgcheck true
  end
  • 11x - Installs the NodeJS 11x repository, eg:
  yum_repository 'nodesource_11x' do
    base_url 'https://rpm.nodesource.com/pub_11.x/el/6/x86_64/'
    description 'Nodesource NodeJS 11.x RPM Repository'
    enabled true
    gpgcheck true
  end

Usage Example

To disable the nodesource 4x repository through a Role or Environment definition

default_attributes(
  :yum => {
    :nodesource_4x => {
      :enabled => {
        false
       }
     }
   }
 )

More Examples

Point the nodesource_4x repositories at an internally hosted server.

node.default['yum']['nodesource_4x']['enabled'] = true
node.default['yum']['nodesource_4x']['mirrorlist'] = nil
node.default['yum']['nodesource_4x']['baseurl'] = 'https://internal.example.com/rpm/nodesource_4x/'
node.default['yum']['nodesource_4x']['sslverify'] = false

include_recipe 'yum-nodesource::4x'

License and Author
==================

- Author:: Hugo Cisneiros ()

Copyright 2019, Movile

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

yum >= 3.2

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

yum-nodesource CHANGELOG

This file is used to list changes made in each version of the yum-nodesource cookbook.

1.0.1

  • Added nodesource 8.x, 10.x and 11.x repositories.

1.0.0

  • Release to the public

0.1.0

  • Initial release of yum-nodesource

Collaborator Number Metric
            

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

Foodcritic Metric
            

1.0.1 passed this metric

No Binaries Metric
            

1.0.1 passed this metric

Testing File Metric
            

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