Project

General

Profile

Feature #32245

Do not set a host by default in database.yml.example

Added by Ewoud Kohl van Wijngaarden 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Category:
Settings
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

In dc0983d58937a064d74d96f311ca10a88569480b (#29642) 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):

sudo yum -y install postgresql-server
sudo postgresql-setup --initdb
sudo systemctl enable --now postgresql
sudo -u postgres createuser $USERNAME
sudo -u postgres createdb --owner=$USERNAME foreman

Otherwise you need to provide a username/password as well and possibly set that up.


Related issues

Related to Foreman - Bug #29642: drop sqlite supportClosed

Associated revisions

Revision 2d6f26c2 (diff)
Added by Ewoud Kohl van Wijngaarden 3 months ago

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):

sudo yum -y install postgresql-server
sudo postgresql-setup --initdb
sudo systemctl enable --now postgresql
sudo -u postgres createuser $USERNAME
sudo -u postgres createdb --owner=$USERNAME foreman

Otherwise you need to provide a username/password as well and possibly set that up.

History

#1 Updated by The Foreman Bot 3 months ago

  • Assignee set to Ewoud Kohl van Wijngaarden
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8427 added

#2 Updated by Ewoud Kohl van Wijngaarden 3 months ago

  • Related to Bug #29642: drop sqlite support added

#3 Updated by The Foreman Bot 3 months ago

  • Fixed in Releases 2.5.0 added

#4 Updated by Ewoud Kohl van Wijngaarden 3 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF