Fresh Installation of Gitlab Omnibus

On RHEL7 having defined LANG=en_us installed fails setting up the postgres database

-sh-4.2$ /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8
The files belonging to this database system will be owned by user “gitlab-psql”.
This user must also own the server process.

The database cluster will be initialized with locale “en_US”.
initdb: encoding mismatch
The encoding you selected (UTF8) and the encoding that the
selected locale uses (LATIN1) do not match. This would lead to
misbehavior in various character string processing functions.
Rerun initdb and either do not specify an encoding explicitly,
or choose a matching combination.

If there an override in gitlab.rb to select en_US.UTF8 to use as the locale?

Initialization with these options appear to work fine:

-sh-4.2$ /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8 --lc-collate=‘en_US.UTF-8’ --lc-ctype=‘en_US.UTF-8’
The files belonging to this database system will be owned by user “gitlab-psql”.
This user must also own the server process.

The database cluster will be initialized with locales
COLLATE: en_US.UTF-8
CTYPE: en_US.UTF-8
MESSAGES: en_US
MONETARY: en_US
NUMERIC: en_US
TIME: en_US
The default text search configuration will be set to “english”.

Data page checksums are disabled.

fixing permissions on existing directory /var/opt/gitlab/postgresql/data … ok
creating subdirectories … ok
selecting default max_connections … 100
selecting default shared_buffers … 128MB
selecting dynamic shared memory implementation … posix
creating configuration files … ok
running bootstrap script … ok
performing post-bootstrap initialization … ok
syncing data to disk … ok

WARNING: enabling “trust” authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
–auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

/opt/gitlab/embedded/bin/pg_ctl -D /var/opt/gitlab/postgresql/data -l logfile start