Mercurial > p > roundup > code
comparison roundup/configuration.py @ 7696:4af0d235b570
feat(db): support using postgresql service connection file
Add new service rdbms config option to set the service name to be used
with a postgresql service connection file.
This can be done using the PGSERVICE environment variable for a single
instance tracker server. For a multi-instance server this per-tracker
config option is needed.
Note that settings (host, user, (db)name...) in config.ini file will
override the service connection file setting. Also setting PGSERVICE
and service will use the service setting.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 07 Nov 2023 12:11:37 -0500 |
| parents | d30e534b078a |
| children | 3071db43bfb6 |
comparison
equal
deleted
inserted
replaced
| 7695:2be7a8f66ea7 | 7696:4af0d235b570 |
|---|---|
| 1449 "Database user name that Roundup should use.", | 1449 "Database user name that Roundup should use.", |
| 1450 ['MYSQL_DBUSER']), | 1450 ['MYSQL_DBUSER']), |
| 1451 (SecretNullableOption, 'password', 'roundup', | 1451 (SecretNullableOption, 'password', 'roundup', |
| 1452 "Database user password.", | 1452 "Database user password.", |
| 1453 ['MYSQL_DBPASSWORD']), | 1453 ['MYSQL_DBPASSWORD']), |
| 1454 (NullableOption, 'service', '', | |
| 1455 "Name of the PostgreSQL connection service for this Roundup\n" | |
| 1456 "instance. Only used in Postgresql connections. You need to set\n" | |
| 1457 "up a pg_service.conf file usable by psql use this option."), | |
| 1454 (NullableOption, 'read_default_file', '~/.my.cnf', | 1458 (NullableOption, 'read_default_file', '~/.my.cnf', |
| 1455 "Name of the MySQL defaults file.\n" | 1459 "Name of the MySQL defaults file.\n" |
| 1456 "Only used in MySQL connections."), | 1460 "Only used in MySQL connections."), |
| 1457 (NullableOption, 'read_default_group', 'roundup', | 1461 (NullableOption, 'read_default_group', 'roundup', |
| 1458 "Name of the group to use in the MySQL defaults file (.my.cnf).\n" | 1462 "Name of the group to use in the MySQL defaults file (.my.cnf).\n" |
