Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

prevent cluster init / create_main_cluster? #140

Description

@rmoriz

When installing the postgresql server package, a new cluster will automatically be created (Debian 7 + postgresql.org packages). This prevents this cookbook from executing the resouces specified in postgresql::data_directory.

This also makes https://github.com/phlipper/chef-postgresql/blob/master/attributes/default.rb#L38 useless, e.g. you can't customize the process like enabling the checksum feature which is only configurable at cluster initialization time.

I'm not sure how to solve this, maybe setting create_main_cluster=false in /etc/postgresql-common/createcluster.conf will prevent the package script to init a default cluster. I've seen this in the "official" Dockerfile and also in this chef recipe

Skipping this would allow the already existing recipe postgresql::data_directory to do the job and also respect the custom attributes.

What do you think?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions