feat: migrate pupeptdb sql to patroni (#318)
- change puppetdb::sql to using the patroni profile - change puppetdb::api to use new patroni cluster - remove references to puppetlabs-puppetdb managed database - update consul rules to enable sessions Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/318
This commit was merged in pull request #318.
This commit is contained in:
@@ -84,14 +84,10 @@ class profiles::sql::patroni (
|
||||
],
|
||||
}
|
||||
|
||||
$connect_settings = {
|
||||
|
||||
}
|
||||
|
||||
# only apply changes to DBs/Users/Grants on master
|
||||
if ! $facts['psql_is_slave'] {
|
||||
# collect exported resources
|
||||
$tag = "${facts['country']}-${facts['region']}-${facts['environment']}"
|
||||
$tag = "${cluster_name}-${facts['country']}-${facts['region']}-${facts['environment']}"
|
||||
Profiles::Sql::Postgres::Db <<| tag == $tag |>> {}
|
||||
Profiles::Sql::Postgres::User <<| tag == $tag |>> {}
|
||||
Profiles::Sql::Postgres::Grant <<| tag == $tag |>> {}
|
||||
|
||||
Reference in New Issue
Block a user