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

Ensure resource ordering & Debian fix #27

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

deric
Copy link

@deric deric commented Sep 20, 2016

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.

ensure => installed,
require => $package_require,
ensure => installed,
before => $package_require,
Copy link
Contributor

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.

Copy link
Author

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'],
Copy link
Contributor

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?

Copy link
Author

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.

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

Successfully merging this pull request may close these issues.

2 participants