Revision 2d6f26c2
Added by Ewoud Kohl van Wijngaarden about 3 years ago
config/database.yml.example | ||
---|---|---|
development:
|
||
adapter: postgresql
|
||
host: localhost
|
||
#host: localhost
|
||
port: 5432
|
||
database : foreman
|
||
database: foreman
|
||
encoding: utf8
|
||
pool: 10
|
||
|
||
... | ... | |
# Do not set this db to the same as development or production.
|
||
test:
|
||
adapter: postgresql
|
||
host: localhost
|
||
#host: localhost
|
||
port: 5432
|
||
database : foreman-test
|
||
database: foreman-test
|
||
encoding: utf8
|
||
pool: 10
|
||
|
||
production:
|
||
adapter: postgresql
|
||
host: localhost
|
||
#host: localhost
|
||
port: 5432
|
||
database : foreman
|
||
database: foreman
|
||
encoding: utf8
|
||
pool: 10
|
Also available in: Unified diff
Fixes #32245 - No host by default in database.yml.example
In dc0983d58937a064d74d96f311ca10a88569480b the example database
configuration file always sets a host. Using a host means PostgreSQL
can't use ident auth which means you must set a password. By commenting
it out, you can simplify the instructions to (on EL but similar on
Debian):
Otherwise you need to provide a username/password as well and possibly set that up.