saltstack-formulas / postgres-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
77 stars 283 forks source link

Are custom data directories supported? #239

Closed AndreiPashkin closed 5 years ago

AndreiPashkin commented 5 years ago

Is it possible to specify custom data directory using the formula? Currently I get "cluster configuration already exists" error when postgres:data_dir is provided.

noelmcloughlin commented 5 years ago

Hi @AndreiPashkin there are few ways forward.

  1. Run postgres.server.remove before postgres state
  2. Set postgres:data_dir to unique value: postgres:data_dir: /var/lib/mydir/mydata

If both are not working then there is either bug or pillar data is wrong.