puppet-prod/hieradata/roles/infra/sql/shared.yaml
Ben Vincent 7fcd8bfe7f chore: centralise all yum repo configuration
- add 30+ repository definitions to AlmaLinux/all_releases.yaml with `ensure: absent` defaults
- update all role-specific hieradata files to use `ensure: present` pattern
- remove duplicated repository URL/GPG key configurations from individual roles
- maintains existing functionality while improving maintainability"
2026-01-11 16:22:08 +11:00

53 lines
1.5 KiB
YAML

---
hiera_include:
- profiles::sql::patroni
profiles::packages::include:
python3-devel: {}
libpq5-devel: {}
postgresql-devel: {}
postgresql_config_entries:
max_connections: 300
shared_buffers: '256MB'
profiles::sql::patroni::cluster_name: "patroni-shared-%{facts.environment}"
profiles::sql::patroni::postgres_exporter_enabled: true
profiles::sql::patroni::postgres_exporter_user: postgres_exporter
profiles::sql::patroni::pgsql_version: "17"
patroni::bootstrap_pg_hba:
- 'local all postgres ident'
- 'host all all 0.0.0.0/0 md5'
- 'host gitea gitea 0.0.0.0/0 scram-sha-256'
- 'host replication repl 0.0.0.0/0 md5'
patroni::pgsql_pg_hba:
- 'local all postgres ident'
- 'host all all 0.0.0.0/0 md5'
- 'host gitea gitea 0.0.0.0/0 scram-sha-256'
- 'host replication repl 0.0.0.0/0 md5'
python::manage_dev_package: false
profiles::consul::client::node_rules:
- resource: service
segment: "%{hiera('profiles::sql::patroni::cluster_name')}"
disposition: write
- resource: service_prefix
segment: "%{hiera('profiles::sql::patroni::cluster_name')}"
disposition: write
- resource: key_prefix
segment: "service/%{hiera('profiles::sql::patroni::cluster_name')}"
disposition: write
- resource: session_prefix
segment: ""
disposition: write
- resource: service
segment: postgres_exporter
disposition: write
profiles::yum::global::repos:
postgresql-17:
ensure: present
postgresql-common:
ensure: present