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-remi-chef (38) Versions 0.1.1

Installs and configures the Remi's yum repository

Policyfile
Berkshelf
Knife
cookbook 'yum-remi-chef', '= 0.1.1', :supermarket
cookbook 'yum-remi-chef', '= 0.1.1'
knife supermarket install yum-remi-chef
knife supermarket download yum-remi-chef
README
Dependencies
Changelog
Quality 0%

yum-remi Cookbook

The yum-remi cookbook takes over management of the repositoryids of
the remi repository . It allows
attribute manipulation of remi, remi-php55, remi-php56, and
remi-test repositories.

Requirements

  • Chef 11 or higher
  • yum cookbook version 3.0.0 or higher

Platform Support

The following platforms have been tested with Test Kitchen:

|-----------+------+------------+------------|
|           | remi | remi-php55 | remi-php56 |
|-----------+------+------------+------------|
| centos-5  | X    | X          | X          |
|-----------+------+------------+------------|
| centos-6  | X    | X          | X          |
|-----------+------+------------+------------|
| centos-7  | X    | X          | X          |
|-----------+------+------------+------------|
| redhat-7  | X    | X          | X          |
|-----------+------+------------+------------|
| fedora-20 | X    |            | X          |
|-----------+------+------------+------------|
| fedora-21 | X    |            |            |
|-----------+------+------------+------------|

Amazon Linux is not supported by the Remi repository. Amazon
maintains their own PHP packages natively, as php53, php54, php55, and
php56.

Attributes

The following attributes are set by default

default['yum']['remi']['repositoryid'] = 'remi'
default['yum']['remi']['baseurl'] = 'http://rpms.famillecollet.com/enterprise/5/remi/$basearch/'
default['yum']['remi']['description'] = 'Les RPM de remi pour Enterprise Linux 5 - $basearch'
default['yum']['remi']['enabled'] = true
default['yum']['remi']['gpgcheck'] = true
default['yum']['remi']['gpgkey'] = 'http://rpms.famillecollet.com/RPM-GPG-KEY-remi'
default['yum']['remi-php55']['repositoryid'] = 'remi-php55'
default['yum']['remi-php55']['baseurl'] = 'http://rpms.famillecollet.com/enterprise/5/php55/$basearch/'
default['yum']['remi-php55']['description'] = 'Les RPM de remi de PHP 5.5 pour Enterprise Linux 5 - $basearch'
default['yum']['remi-php55']['enabled'] = true
default['yum']['remi-php55']['gpgcheck'] = true
default['yum']['remi-php55']['gpgkey'] = 'http://rpms.famillecollet.com/RPM-GPG-KEY-remi'
default['yum']['remi-php55']['repositoryid'] = 'remi-php56'
default['yum']['remi-php55']['baseurl'] = 'http://rpms.famillecollet.com/enterprise/5/php56/$basearch/'
default['yum']['remi-php55']['description'] = 'Les RPM de remi de PHP 5.6 pour Enterprise Linux 5 - $basearch'
default['yum']['remi-php55']['enabled'] = true
default['yum']['remi-php55']['gpgcheck'] = true
default['yum']['remi-php55']['gpgkey'] = 'http://rpms.famillecollet.com/RPM-GPG-KEY-remi'

Recipes

  • default - Walks through node attributes and feeds a yum_resource parameters. The following is an example a resource generated by the recipe during compilation.
  yum_repository 'remi' do
    baseurl 'http://rpms.famillecollet.com/enterprise/6/remi/$basearch/'
    description 'Les RPM de remi pour Enterprise Linux 6 - $basearch'
    enabled true
    gpgcheck true
    gpgkey 'http://rpms.famillecollet.com/RPM-GPG-KEY-remi'
  end

Usage Example

To disable the remi repository through a Role or Environment definition

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

More Examples

Point the base and updates repositories at an internally hosted server.

node.default['yum']['remi']['enabled'] = true
node.default['yum']['remi']['mirrorlist'] = nil
node.default['yum']['remi']['baseurl'] = 'https://internal.example.com/enterprise/5/remi/$basearch/'
node.default['yum']['remi']['sslverify'] = false

include_recipe 'yum-remi'

License & Authors

Copyright:: 2015 Chef Software, Inc.

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.

yum-remi Cookbook CHANGELOG

v0.1.1

Fixing up some tests

v0.1.0

initial release

Foodcritic Metric
            

0.1.1 failed this metric

FC031: Cookbook without metadata file: /tmp/cook/77385ba5194cf5c65bbc1c3a/yum-remi-chef/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/77385ba5194cf5c65bbc1c3a/yum-remi-chef/metadata.rb:1