k-ta-yamada / postgres-ha

itamae: PostgreSQL High availability configuration by pgpool-II with watchdog.
0 stars 1 forks source link

create $PGDATA directory #32

Closed k-ta-yamada closed 7 years ago

k-ta-yamada commented 7 years ago
directory "#{PGDATA}" do
  owner     'postgres'
  group     'postgres'
  mode      '600'
end

before https://github.com/k-ta-yamada/postgres-ha/blob/master/cookbooks/postgresql/initdb.rb#L16

execute "rm -rf #{PGDATA}*"