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-nginx (1) Versions 0.1.0

Installs/Configures yum NGINX Vendor-Specific Repository

Policyfile
Berkshelf
Knife
cookbook 'yum-nginx', '~> 0.1.0', :supermarket
cookbook 'yum-nginx', '~> 0.1.0'
knife supermarket install yum-nginx
knife supermarket download yum-nginx
README
Dependencies
Changelog
Quality 17%

yum-nginx Cookbook

Build Status
Chef Cookbook

Installs/Configures yum NGINX Vendor-Specific Repositories.

This cookbook installs & configures yum NGINX repositories per
http://nginx.org/en/linux_packages.html.

Requirements

  • Chef 11 or higher
  • Ruby 1.9 or higher (preferably from the Chef full-stack installer)
  • Network accessible package repositories
  • yum Cookbook

Attributes

yum-nginx::default

The default recipe is for installing & configuring the yum NGINX repostories.
Any attribute supported by the yum cookbook
is supported by this cookbook and can be used to override attributes in this
cookbook.

Per http://wiki.nginx.org/Install, there are currently two versions of NGINX.
The mainline branch gets new features and bugfixes sooner but might introduce
new bugs as well. Critical bugfixes are backported to the stable branch. In
general, the stable release is recommended, but the mainline release is
typically quite stable as well.

  • ['yum-nginx']['rhel']['supported-versions']

    • Type: Hash
    • Description:

    RHEL platform support for this cookbook and the NGINX repository. Designed
    to be a private attribute however it can be overridden in the case NGINX
    supports additional versions and this cookbook has not been updated yet.

    This check was implemented as a result of the repo could be successfully
    installed yet not be valid for a given platform and an NGINX package could
    be successfully installed as a result of it being available natively on the
    platform it which it was run which results in a false positive for the
    consumer of the cookbook.

    The hash key is the major version of the OS. If the hash value evaluates to
    true, the OS/version is considered supported.
    - Default:

    {
      '5' => true,
      '6' => true,
      '7' => true
    }
    
  • NGINX Stable Repo

    • ['yum-nginx']['repos']['nginx-stable']['managed']
    • Type: Boolean
    • Description: Does this cookbook manage the install of the NGINX Stable Repo?
    • Default: true
    • ['yum-nginx']['repos']['nginx-stable']['repositoryid']
    • Type: String
    • Description: Unique Name for NGINX Stable Repo
    • Default: nginx-stable
    • ['yum-nginx']['repos']['nginx-stable']['description']
    • Type: String
    • Description: Description of NGINX Stable Repo
    • Default: nginx stable repo
    • ['yum-nginx']['repos']['nginx-stable']['baseurl']
    • Type: String
    • Description: URL of NGINX Stable Repo
    • Default: http://nginx.org/packages/#{node['platform']}/#{node['platform_version'].to_i}/$basearch/
    • ['yum-nginx']['repos']['nginx-stable']['gpgcheck']
    • Type: Boolean
    • Description: Whether or not NGINX Stable Repo should perform GPG check of packages?
    • Default: false
    • ['yum-nginx']['repos']['nginx-stable']['sslverify']
    • Type: Boolean
    • Description: Whether or not yum will verify the NGINX Stable Repo SSL host?
    • Default: false
    • ['yum-nginx']['repos']['nginx-stable']['enabled']
    • Type: Boolean
    • Description: Whether or not the NGINX Stable Repo is enabled?
    • Default: true
  • NGINX Stable Source Repo

    • ['yum-nginx']['repos']['nginx-stable-source']['managed']
    • Type: Boolean
    • Description: Does this cookbook manage the install of the NGINX Stable Source Repo?
    • Default: false
    • ['yum-nginx']['repos']['nginx-stable-source']['repositoryid']
    • Type: String
    • Description: Unique Name for NGINX Stable Source Repo
    • Default: nginx-stable-source
    • ['yum-nginx']['repos']['nginx-stable-source']['description']
    • Type: String
    • Description: Description of NGINX Stable Source Repo
    • Default: nginx stable source repo
    • ['yum-nginx']['repos']['nginx-stable-source']['baseurl']
    • Type: String
    • Description: URL of NGINX Stable Source Repo
    • Default: http://nginx.org/packages/#{node['platform']}/#{node['platform_version'].to_i}/SRPMS/
    • ['yum-nginx']['repos']['nginx-stable-source']['gpgcheck']
    • Type: Boolean
    • Description: Whether or not NGINX Stable Source Repo should perform GPG check of packages?
    • Default: false
    • ['yum-nginx']['repos']['nginx-stable-source']['sslverify']
    • Type: Boolean
    • Description: Whether or not yum will verify the NGINX Stable Source Repo SSL host?
    • Default: false
    • ['yum-nginx']['repos']['nginx-stable-source']['enabled']
    • Type: Boolean
    • Description: Whether or not the NGINX Stable Source Repo is enabled?
    • Default: true
  • NGINX Mainline Repo

    • ['yum-nginx']['repos']['nginx-mainline']['managed']
    • Type: Boolean
    • Description: Does this cookbook manage the install of the NGINX Mainline Repo?
    • Default: false
    • ['yum-nginx']['repos']['nginx-mainline']['repositoryid']
    • Type: String
    • Description: Unique Name for NGINX Mainline Repo
    • Default: nginx-mainline
    • ['yum-nginx']['repos']['nginx-mainline']['description']
    • Type: String
    • Description: Description for NGINX Mainline Repo
    • Default: nginx mainline repo
    • ['yum-nginx']['repos']['nginx-mainline']['baseurl']
    • Type: String
    • Description: URL of NGINX Mainline Repo
    • Default: http://nginx.org/packages/mainline/#{node['platform']}/#{node['platform_version'].to_i}/$basearch/
    • ['yum-nginx']['repos']['nginx-mainline']['gpgcheck']
    • Type: Boolean
    • Description: Whether or not NGINX Mainline Repo should perform GPG check of packages?
    • Default: false
    • ['yum-nginx']['repos']['nginx-mainline']['sslverify']
    • Type: Boolean
    • Description: Whether or not yum will verify the NGINX Mainline Repo SSL host?
    • Default: false
    • ['yum-nginx']['repos']['nginx-mainline']['enabled']
    • Type: Boolean
    • Description: Whether or not the NGINX Mainline Repo is enabled?
    • Default: true
  • NGINX Mainline Source Repo

    • ['yum-nginx']['repos']['nginx-mainline-source']['managed']
    • Type: Boolean
    • Description: Does this cookbook manage the install of the NGINX Mainline Source Repo?
    • Default: false
    • ['yum-nginx']['repos']['nginx-mainline-source']['repositoryid']
    • Type: String
    • Description: Unique Name for NGINX Mainline Source Repo
    • Default: nginx-mainline-source
    • ['yum-nginx']['repos']['nginx-mainline-source']['description']
    • Type: String
    • Description: Description of NGINX Mainline Source Repo
    • Default: nginx mainline source repo
    • ['yum-nginx']['repos']['nginx-mainline-source']['baseurl']
    • Type: String
    • Description: URL of NGINX Mainline Source Repo
    • Default: http://nginx.org/packages/mainline/#{node['platform']}/#{node['platform_version'].to_i}/SRPMS/
    • ['yum-nginx']['repos']['nginx-mainline-source']['gpgcheck']
    • Type: Boolean
    • Description: Whether or not NGINX Mainline Source Repo should perform GPG check of packages?
    • Default: false
    • ['yum-nginx']['repos']['nginx-mainline-source']['sslverify']
    • Type: Boolean
    • Description: Whether or not yum will verify the NGINX Mainline Source Repo SSL host?
    • Default: false
    • ['yum-nginx']['repos']['nginx-mainline-source']['enabled']
    • Type: Boolean
    • Description: Whether or not the NGINX Mainline Source Repo is enabled?
    • Default: true

Usage

yum-nginx::default

Just include yum-nginx in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[yum-nginx]"
  ]
}

Contributing

  1. Fork the repository on GitHub
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using GitHub

Development Environment

This repository contains a Vagrantfile which can be used to spin up a
fully configured development environment in Vagrant.

Vagrant requires the following:
- VirtualBox
- Vagrant

The Vagrant environment for this repository is based on:
- st-isidore-de-seville/trusty64-rvm-docker

The Vagrant environment will initialize itself to:
- install required Ruby gems
- run integration testing via kitchen-docker when calling kitchen

The Vagrant environment can be spun up by performing the following commands:

  1. vagrant up
  2. vagrant ssh
  3. cd /vagrant

Authors

License

The MIT License (MIT)

Copyright (c) 2015 St. Isidore de Seville (st.isidore.de.seville@gmail.com)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

yum-nginx CHANGELOG

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

0.1.0

Collaborator Number Metric
            

0.1.0 failed this metric

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

Contributing File Metric
            

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

Foodcritic Metric
            

0.1.0 passed this metric

No Binaries Metric
            

0.1.0 failed this metric

Failure: Cookbook should not contain binaries. Found:
yum-nginx/files/nginx_signing.key

Testing File Metric
            

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

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