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

The yum-pgdg cookbook has been deprecated

Author provided reason for deprecation:

The yum-pgdg cookbook has been deprecated and is no longer being maintained by its authors. Use of the yum-pgdg cookbook is no longer recommended.

RSS

yum-pgdg (11) Versions 0.2.2

Installs and configures the PGDG yum repo

Policyfile
Berkshelf
Knife
cookbook 'yum-pgdg', '= 0.2.2', :supermarket
cookbook 'yum-pgdg', '= 0.2.2'
knife supermarket install yum-pgdg
knife supermarket download yum-pgdg
README
Dependencies
Quality -%

yum-pgdg Cookbook

The yum-pgdg cookbook takes over management of the default
repositoryids that ship with pgdg. It allows attribute
manipulation of pgdg.

Requirements

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

Attributes

The following attributes are set by default

default['yum']['pgdg']['repositoryid'] = 'pgdg-9.3'
default['yum']['pgdg']['baseurl'] = 'http://yum.pgrpms.org/9.3/fedora/fedora-$releasever-$basearch'
default['yum']['pgdg']['description'] = 'PostgreSQL 9.3'
default['yum']['pgdg']['enabled'] = true
default['yum']['pgdg']['gpgcheck'] = true
default['yum']['pgdg']['gpgkey'] = 'http://yum.postgresql.org/RPM-GPG-KEY-PGDG'

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 'pgdg-9.3' do
    mirrorlist 'http://yum.pgrpms.org/9.3/fedora/fedora-$releasever-$basearch'
    description 'PostgreSQL 9.3'
    enabled true
    gpgcheck true
    gpgkey 'http://yum.postgresql.org/RPM-GPG-KEY-PGDG'
  end

Usage Example

To disable the pgdg repository through a Role or Environment definition

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

More Examples

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

node.default['yum']['pgdg']['enabled'] = true
node.default['yum']['pgdg']['mirrorlist'] = nil
node.default['yum']['pgdg']['baseurl'] = 'https://internal.example.com/pgdg/9.3/fedora-19-x86_64'
node.default['yum']['pgdg']['sslverify'] = false

include_recipe 'yum-pgdg'

License & Authors

Copyright:: 2011-2013 Opscode, 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.

Dependent cookbooks

yum ~> 3.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found