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

prebuilt_postgresql (1) Versions 1.0.0

Installs prebuilt PostgreSQL

Berkshelf
Policyfile
Knife
cookbook 'prebuilt_postgresql', '~> 1.0.0'
cookbook 'prebuilt_postgresql', '~> 1.0.0', :supermarket
knife cookbook site install prebuilt_postgresql
knife cookbook site download prebuilt_postgresql
README
Dependencies
Quality 50%

Description

This cookbook installs prebuilt PostgreSQL client or server.

Installation steps are as follows.<br/> https://www.postgresql.org/download/linux/redhat/

Supported PostgreSQL version

  • PostgreSQL 9.6

Requirements

Platform

  • CentOS 7

Chef

  • Chef 14.1 or later

Recipes & Attributes

Recipes

Recipe Description
prebuilt_postgresql Same as the "prebuilt_postgresql::client"
prebuilt_postgresql::client Installs PostgreSQL client
prebuilt_postgresql::server Installs PostgreSQL server and initializes the database

Attributes

Attribute Type Default value Description
node['prebuilt_postgresql']['version'] String "9.6.9" PostgreSQL client or server version
node['prebuilt_postgresql']['server']['encoding'] String "UTF8" Database default encoding
node['prebuilt_postgresql']['server']['locale'] String "C" Database default locale

Usage

Integrates with Vagrant (Omnibus & Berkshelf plugins are required)

chef-repo/Berksfile

source "https://supermarket.chef.io"

cookbook "prebuilt_postgresql"

Vagrantfile

Vagrant.configure("2") do |config|
  config.omnibus.chef_version = "14.1.12"
  config.berkshelf.berksfile_path = "chef-repo/Berksfile"
  config.vm.provision :chef_solo do |chef|
    chef.add_recipe "prebuilt_postgresql::client"
    chef.add_recipe "prebuilt_postgresql::server"
    chef.json = {
      "prebuilt_postgresql": {
        "version": "9.6.9"
      }
    }
  end
end

Integrates with your cookbook

Berksfile

source "https://supermarket.chef.io"

cookbook "prebuilt_postgresql"

metadata

Refer to the recipes in your role file,

roles/database.json

{
  "name": "database",
  "description": "PostgreSQL database server",
  "chef_type": "role",
  "json_class": "Chef::Role",
  "default_attributes": {
    "prebuilt_postgresql": {
      "version": "9.6.9"
    }
  },
  "override_attributes": {
  },
  "run_list": [
    "recipe[prebuilt_postgresql::client]"
    "recipe[prebuilt_postgresql::server]"
  ]
}

Or include the recipes in your recipe file.

recipes/default.rb

include_recipe "prebuilt_postgresql::client"
include_recipe "prebuilt_postgresql::server"

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

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

1.0.0 failed this metric

FC064: Ensure issues_url is set in metadata: prebuilt_postgresql/metadata.rb:1
Run with Foodcritic Version 14.0.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

1.0.0 passed this metric

Publish Metric
            

1.0.0 passed this metric

Supported Platforms Metric
            

1.0.0 passed this metric

Testing File Metric
            

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

1.0.0 passed this metric