Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip YUM repository configuration in postgres_install resource #716

Open
djessich opened this issue Jan 22, 2023 · 0 comments
Open

Skip YUM repository configuration in postgres_install resource #716

djessich opened this issue Jan 22, 2023 · 0 comments

Comments

@djessich
Copy link

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

🥞 Cookbook version

11.0.0+

👩‍🍳 Chef-Infra Version

17+

🎩 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

🚓 Expected behavior

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant