cookbook 'pg_repack', '~> 0.1.1', :supermarket
pg_repack (2) Versions 0.1.1 Follow1
Installs/Configures pg_repack
cookbook 'pg_repack', '~> 0.1.1'
knife supermarket install pg_repack
knife supermarket download pg_repack
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
database >= 0.0.0 |
postgresql >= 0.0.0 |
build-essential >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.1.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.1 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
0.1.1 failed this metric
FC021: Resource condition in provider may not behave as expected: pg_repack/providers/install.rb:26
FC021: Resource condition in provider may not behave as expected: pg_repack/providers/install.rb:41
FC064: Ensure issues_url is set in metadata: pg_repack/metadata.rb:1
FC065: Ensure source_url is set in metadata: pg_repack/metadata.rb:1
FC066: Ensure chef_version is set in metadata: pg_repack/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: pg_repack/metadata.rb:1
FC069: Ensure standardized license defined in metadata: pg_repack/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: pg_repack/recipes/install.rb:21
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.1 passed this metric
Publish Metric
0.1.1 passed this metric
Supported Platforms Metric
0.1.1 failed this metric
pg_repack should declare what platform(s) it supports.
Testing File Metric
0.1.1 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
0.1.1 passed this metric
0.1.1 failed this metric
0.1.1 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
0.1.1 failed this metric
FC021: Resource condition in provider may not behave as expected: pg_repack/providers/install.rb:26
FC021: Resource condition in provider may not behave as expected: pg_repack/providers/install.rb:41
FC064: Ensure issues_url is set in metadata: pg_repack/metadata.rb:1
FC065: Ensure source_url is set in metadata: pg_repack/metadata.rb:1
FC066: Ensure chef_version is set in metadata: pg_repack/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: pg_repack/metadata.rb:1
FC069: Ensure standardized license defined in metadata: pg_repack/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: pg_repack/recipes/install.rb:21
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.1 passed this metric
Publish Metric
0.1.1 passed this metric
Supported Platforms Metric
0.1.1 failed this metric
pg_repack should declare what platform(s) it supports.
Testing File Metric
0.1.1 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
0.1.1 passed this metric
0.1.1 failed this metric
FC021: Resource condition in provider may not behave as expected: pg_repack/providers/install.rb:41
FC064: Ensure issues_url is set in metadata: pg_repack/metadata.rb:1
FC065: Ensure source_url is set in metadata: pg_repack/metadata.rb:1
FC066: Ensure chef_version is set in metadata: pg_repack/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: pg_repack/metadata.rb:1
FC069: Ensure standardized license defined in metadata: pg_repack/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: pg_repack/recipes/install.rb:21
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.1 passed this metric
Publish Metric
0.1.1 passed this metric
Supported Platforms Metric
0.1.1 failed this metric
pg_repack should declare what platform(s) it supports.
Testing File Metric
0.1.1 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
0.1.1 passed this metric
0.1.1 passed this metric
0.1.1 failed this metric
pg_repack should declare what platform(s) it supports.
Testing File Metric
0.1.1 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
0.1.1 passed this metric
0.1.1 failed this metric
0.1.1 passed this metric