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

pg_repack (2) Versions 0.1.0

Installs/Configures pg_repack

Berkshelf/Librarian
Policyfile
Knife
cookbook 'pg_repack', '= 0.1.0'
cookbook 'pg_repack', '= 0.1.0', :supermarket
knife cookbook site install pg_repack
knife cookbook site download pg_repack
README
Dependencies
Quality -%

pg_repack cookbook

Installs the pg_repack PostgreSQL extension

Attributes

# Postgres version
# Default: inherited from postgresql cookbook
default['pg_repack']['postgresql']['version'] = '9.2'

# Postgres extension path
# Default: Guessed from postgresql cookbook attribute information
default['pg_repack']['postgresql']['extension_path'] = '/usr/share/postgresql/9.2/extension'

# Use --testing version of pg\_repack (required for 9.3)
# Defaults to true for postgresql-9.3, false for earlier versions
node['pg_repack']['testing'] = false

# Database(s) where pg\_repack will be installed
node['pg_repack']['databases'] = %w{database1 database2}

# Connection information
# Defaults to: { host: '/var/run/postgresql', username: 'postgres' }
node['pg_repack']['connection'] = { host: 'localhost' }

Recipes

default

Runs install and create_extension recipes.

install

Installs pg_repack via pgxn.

create_extension

Creates pg_repack extension in all databases specified in node['pg_repack']['databases'] attribute.

Providers

pg_repack_install

pg_repack_install 'pg_repack'

You can specify some attribute as well (default values are taken from attributes)

pg_repack_install 'pg_repack' do
  dependencies %{packages to install}
  extension_path '/custom/path/to/postgresql/extensions'
  testing true # Install --testing version of pg_repack
end

pg_repack

Creates pg_repack extension for the specified database

pg_repack 'my_database'

You can also specify custom connection information

pg_repack 'my_database' do
  connection host: 'localhost' # Defaults to node['pg_repack']['connection']
end

Author

Author:: Chris Aumann (me@chr4.org)

Dependent cookbooks

postgresql >= 0.0.0
database >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found