-
Notifications
You must be signed in to change notification settings - Fork 18
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
Ensure resource ordering & Debian fix #27
base: master
Are you sure you want to change the base?
Conversation
ensure => installed, | ||
require => $package_require, | ||
ensure => installed, | ||
before => $package_require, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reverses the ordering. On a RedHat box, it would say install package before setting up the repo, which is obviously a bad thing to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, you're right. Sorry, I've overlooked that.
owner => $user, | ||
group => $group, | ||
mode => '0640', | ||
require => Anchor['pgbouncer::begin'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just require the package, instead of tying this to an anchor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that would be definitely better. Fixed in 1e64fd0.
This PR fixes resource ordering during first installation. First we need to install
pgbouncer
package, then we can ensure file ownership (user account might not exist before).Second commit changes defaults for Debian, where pgbouncer files are owned by
postgres
user.