WIP Prepare postgres for migration by replication
This commit is contained in:
15
site-cookbooks/kosmos_postgresql/recipes/replica_logical.rb
Normal file
15
site-cookbooks/kosmos_postgresql/recipes/replica_logical.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
#
|
||||
# Cookbook:: kosmos_postgresql
|
||||
# Recipe:: replica_logical
|
||||
#
|
||||
|
||||
postgresql_custom_server postgresql_version do
|
||||
role "replica_logical"
|
||||
end
|
||||
|
||||
# primary = postgresql_primary
|
||||
#
|
||||
# if primary.nil?
|
||||
# Chef::Log.warn("No PostgreSQL primary node found. Skipping replication setup.")
|
||||
# return
|
||||
# end
|
||||
Reference in New Issue
Block a user