Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Disable all components except PostgreSQL and Consul
- roles(['postgres_role', 'consul_role'])
- # PostgreSQL configuration
- postgresql['listen_address'] = '127.0.0.1'
- postgresql['max_connections'] = 200
- # Prevent database migrations from running on upgrade automatically
- gitlab_rails['auto_migrate'] = false
- # Configure the Consul agent
- ## Enable service discovery for Prometheus
- consul['monitoring_service_discovery'] = true
- # START user configuration
- # Please set the real values as explained in Required Information section
- #
- # Replace PRAEFECT_POSTGRESQL_PASSWORD_HASH with a generated md5 value
- postgresql['sql_user_password'] = "<praefect_postgresql_password_hash>"
- # Replace XXX.XXX.XXX.XXX/YY with Network Address
- postgresql['trust_auth_cidr_addresses'] = %w(10.6.0.0/24)
- # Set the network addresses that the exporters will listen on for monitoring
- node_exporter['listen_address'] = '192.168.0.114:9100'
- postgres_exporter['listen_address'] = '103.138.201.103:9187'
- ## The IPs of the Consul server nodes
- ## You can also use FQDNs and intermix them with IPs
- consul['configuration'] = {
- retry_join: %w(10.6.0.11 10.6.0.12 10.6.0.13),
- }
- #
- # END user configuration
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement