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

server::database_grant: Always set default user/group and expose port as parameter #1493

Merged
merged 1 commit into from Aug 31, 2023

Conversation

bastelfreak
Copy link
Collaborator

This enables us to make it configureable. When a user doesn't specify it, the defaults will be passed, without breaking existing behaviour.

Copy link
Collaborator

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One idea that gets lost here is that with connect_settings you could set defaults for a remote server. I think that makes it backwards incompatible.

@bastelfreak
Copy link
Collaborator Author

@ekohl It's already broken because the defined resource postgresql::server::grant has a port param with a default value and won't use $connect_settings anyways.

@bastelfreak
Copy link
Collaborator Author

@ekohl I could reverse the logic and always use $connect_settings when it's not empty?

Copy link
Collaborator

@SimonHoenscheid SimonHoenscheid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the already broken conditions this LGTM

This enables us to make it configureable. When a user doesn't specify
it, the defaults will be passed, without breaking existing behaviour.
@bastelfreak bastelfreak changed the title server::database_grant: Always set default user/group/port server::database_grant: Always set default user/group and expose port as parameter Aug 31, 2023
@bastelfreak
Copy link
Collaborator Author

I made the port optional, so this should be fine now

@SimonHoenscheid SimonHoenscheid merged commit 6cc35d0 into puppetlabs:main Aug 31, 2023
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants