postgresql icon indicating copy to clipboard operation
postgresql copied to clipboard

Skip YUM repository configuration in postgres_install resource

Open djessich opened this issue 3 years ago • 0 comments

:ghost: Brief Description

postgresql_install resource documentation states, that options such as repo_pgdg allows the creation of YUM PGDG repository. In fact, this option (and similar) only disable the appropriate repository. When set to false, the repository is still created.

:pancakes: Cookbook version

11.0.0+

:woman_cook: Chef-Infra Version

17+

:tophat: Platform details

Bug is independent from platform.

Steps To Reproduce

postgresql_install 'default' do
  version 11
  repo_pgdg false
  repo_pgdg_common false
  repo_pgdg_source false
  repo_pgdg_updates_testing false
  repo_pgdg_source_updates_testing false
end

:police_car: Expected behavior

Options like repo_pgdg do NOT disable the appropriate YUM repositories, but also prevent their configuration as documented.

:heavy_plus_sign: Additional context

An alternative implementation option that make sense could be to alias these options to enable_repo_pgdg, enable_repo_pgdg_common, ... and add a property setup_repos (or any other desired name) that prevents creation repositories. This allows the developer full control over repository configuration.

djessich avatar Jan 22 '23 10:01 djessich