Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Puppet 7 #921

Merged
merged 1 commit into from
Jun 1, 2021
Merged

Support Puppet 7 #921

merged 1 commit into from
Jun 1, 2021

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Mar 8, 2021

No description provided.

@ekohl
Copy link
Member Author

ekohl commented Apr 7, 2021

Odd, Puppet 7 on CentOS 7 failed with:

  Notice: /Stage[main]/Postgresql::Server::Initdb/Exec[postgresql_initdb]/returns: The files belonging to this database system will be owned by user "postgres".
  Notice: /Stage[main]/Postgresql::Server::Initdb/Exec[postgresql_initdb]/returns: This user must also own the server process.
  Notice: /Stage[main]/Postgresql::Server::Initdb/Exec[postgresql_initdb]/returns: 
  Notice: /Stage[main]/Postgresql::Server::Initdb/Exec[postgresql_initdb]/returns: initdb: error: invalid locale settings; check LANG and LC_* environment variables
  Error: '/usr/bin/initdb --pgdata '/var/lib/pgsql/data'' returned 1 instead of one of [0]
  Error: /Stage[main]/Postgresql::Server::Initdb/Exec[postgresql_initdb]/returns: change from 'notrun' to ['0'] 

Forcing the locale in acceptance tests isn't pretty but for now it's a
valid workaround. Note that the candlepin DB is already forced to
en_US.UTF-8 but this affects initdb. We may see similar problems in
production, but in general LANG should be matching a system locale.
@ehelms ehelms merged commit 1734ec1 into theforeman:master Jun 1, 2021
@ekohl ekohl deleted the puppet-7 branch June 1, 2021 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants