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

RSS

yum-docker (3) Versions 0.2.0

Installs/Configures yum Docker Vendor-Specific Repository

Berkshelf/Librarian
Policyfile
Knife
cookbook 'yum-docker', '= 0.2.0'
cookbook 'yum-docker', '= 0.2.0', :supermarket
knife cookbook site install yum-docker
knife cookbook site download yum-docker
README
Dependencies
Changelog
Quality 100%

yum-docker Cookbook

Build Status Chef Cookbook

Installs/Configures yum Docker Vendor-Specific Repositories.

This cookbook installs & configures yum Docker repositories per https://get.docker.com/.

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-docker::default

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

Per https://get.docker.com/, there are currently three repositories for Docker: main, testing & experimental. Main is the stable repository. Testing is for test builds (ie. release candidates). Experimental is for experimental builds.

  • ['yum-docker']['supported-families']

    • Type: Hash
    • Description:

    Platform support for this cookbook and the Docker repository. Designed to be a private attribute however it can be overridden in the case Docker 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 a Docker 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 platform family of the OS. The secondary hash key is the major version of the OS. If the hash value evaluates to true, the platform family/version is considered supported. - Default:

    {
      fedora: {
        '20' => true,
        '21' => true,
        '22' => true
      },
      rhel: {
        '6' => true,
        '7' => true
      }
    }
    
  • Docker Main Repo

    • ['yum-docker']['repos']['docker-main-repo']['managed']
    • Type: Boolean
    • Description: Does this cookbook manage the install of the Docker Main Repo?
    • Default: true
    • ['yum-docker']['repos']['docker-main-repo']['repositoryid']
    • Type: String
    • Description: Unique Name for Docker Main Repo
    • Default: docker-main-repo
    • ['yum-docker']['repos']['docker-main-repo']['description']
    • Type: String
    • Description: Description of Docker Main Repo
    • Default: Docker main Repository
    • ['yum-docker']['repos']['docker-main-repo']['baseurl']
    • Type: String
    • Description: URL of Docker Main Repo
    • Default: https://yum.dockerproject.org/repo/main/#{docker_dist}/#{node['platform_version'].to_i}
    • ['yum-docker']['repos']['docker-main-repo']['enabled']
    • Type: Boolean
    • Description: Whether or not the Docker Main Repo is enabled?
    • Default: true
    • ['yum-docker']['repos']['docker-main-repo']['gpgcheck']
    • Type: Boolean
    • Description: Whether or not Docker Main Repo should perform GPG check of packages?
    • Default: true
    • ['yum-docker']['repos']['docker-main-repo']['gpgkey']
    • Type: String
    • Description: GPG Key of Docker Stable Repo
    • Default: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Docker
  • Docker Testing Repo

    • ['yum-docker']['repos']['docker-testing-repo']['managed']
    • Type: Boolean
    • Description: Does this cookbook manage the install of the Docker Testing Repo?
    • Default: false
    • ['yum-docker']['repos']['docker-testing-repo']['repositoryid']
    • Type: String
    • Description: Unique Name for Docker Testing Repo
    • Default: docker-testing-repo
    • ['yum-docker']['repos']['docker-testing-repo']['description']
    • Type: String
    • Description: Description of Docker Testing Repo
    • Default: Docker testing Repository
    • ['yum-docker']['repos']['docker-testing-repo']['baseurl']
    • Type: String
    • Description: URL of Docker Testing Repo
    • Default: https://yum.dockerproject.org/repo/testing/#{docker_dist}/#{node['platform_version'].to_i}
    • ['yum-docker']['repos']['docker-testing-repo']['enabled']
    • Type: Boolean
    • Description: Whether or not the Docker Testing Repo is enabled?
    • Default: true
    • ['yum-docker']['repos']['docker-testing-repo']['gpgcheck']
    • Type: Boolean
    • Description: Whether or not Docker Testing Repo should perform GPG check of packages?
    • Default: true
    • ['yum-docker']['repos']['docker-testing-repo']['gpgkey']
    • Type: String
    • Description: GPG Key of Docker Testing Repo
    • Default: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Docker
  • Docker Experimental Repo

    • ['yum-docker']['repos']['docker-experimental-repo']['managed']
    • Type: Boolean
    • Description: Does this cookbook manage the install of the Docker Experimental Repo?
    • Default: false
    • ['yum-docker']['repos']['docker-experimental-repo']['repositoryid']
    • Type: String
    • Description: Unique Name for Docker Experimental Repo
    • Default: docker-experimental-repo
    • ['yum-docker']['repos']['docker-experimental-repo']['description']
    • Type: String
    • Description: Description of Docker Experimental Repo
    • Default: Docker experimental Repository
    • ['yum-docker']['repos']['docker-experimental-repo']['baseurl']
    • Type: String
    • Description: URL of Docker Experimental Repo
    • Default: https://yum.dockerproject.org/repo/experimental/#{docker_dist}/#{node['platform_version'].to_i}
    • ['yum-docker']['repos']['docker-experimental-repo']['enabled']
    • Type: Boolean
    • Description: Whether or not the Docker Experimental Repo is enabled?
    • Default: true
    • ['yum-docker']['repos']['docker-experimental-repo']['gpgcheck']
    • Type: Boolean
    • Description: Whether or not Docker Experimental Repo should perform GPG check of packages?
    • Default: true
    • ['yum-docker']['repos']['docker-experimental-repo']['gpgkey']
    • Type: String
    • Description: GPG Key of Docker Experimental Repo
    • Default: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Docker

Usage

yum-docker::default

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

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

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-docker CHANGELOG

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

0.2.0

  • Sean OMeara (sean@chef.io)
    • fix Chef 13 deprecation warnings

0.1.0

Foodcritic Metric
            

0.2.0 passed this metric