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

Fix data directory handling #517

Merged
merged 1 commit into from
Oct 31, 2014
Merged

Conversation

cmurphy
Copy link
Contributor

@cmurphy cmurphy commented Oct 31, 2014

The change introduced in b781849 added
a complex operation that was not handled correctly for all operating
systems. This fix includes the following corrections:

  • Change the systemd config and reload systemd for datadir changes in
    RHEL 7, and move configuration for this into
    postgresql::server::config since it is managing both the PGDATA and
    PGPORT variables
  • Make sure Debian systems stop the service before changing the datadir
  • Recreate cert links after running initdb in Debian and early ubuntu
  • Change the port in the port spec to avoid selinux issues
  • Turn off selinux in pgdata spec to avoid selinux issues
  • Correct syntax for describing presence of a directory in pgdata spec
  • Move the pgdata spec to the end of the tests so that puppet doesn't
    have to manager purging and recreating the original datadir
  • Update README to describe all caveats of using this parameter

The change introduced in b781849 added
a complex operation that was not handled correctly for all operating
systems. This fix includes the following corrections:

- Change the systemd config and reload systemd for datadir changes in
  RHEL 7, and move configuration for this into
  postgresql::server::config since it is managing both the PGDATA and
  PGPORT variables
- Make sure Debian systems stop the service before changing the datadir
- Recreate cert links after running initdb in Debian and early ubuntu
- Change the port in the port spec to avoid selinux issues
- Turn off selinux in pgdata spec to avoid selinux issues
- Correct syntax for describing presence of a directory in pgdata spec
- Move the pgdata spec to the end of the tests so that puppet doesn't
  have to manager purging and recreating the original datadir
- Update README to describe all caveats of using this parameter
underscorgan pushed a commit that referenced this pull request Oct 31, 2014
Fix data directory handling
@underscorgan underscorgan merged commit 4f4cfb0 into puppetlabs:master Oct 31, 2014
cegeka-jenkins pushed a commit to cegeka/puppet-postgresql that referenced this pull request Oct 23, 2017
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