Skip to content

Commit

Permalink
Ensure glibc-langpack-en is always installed
Browse files Browse the repository at this point in the history
Not all systems have this package pre-installed and without it creation
of the database will fail.
  • Loading branch information
evgeni committed Feb 15, 2024
1 parent cb95de6 commit 40c45cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 2 additions & 0 deletions manifests/database.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
include postgresql::client
include postgresql::server
include postgresql::server::contrib
ensure_packages(['glibc-langpack-en'])
postgresql::server::db { $pulpcore::postgresql_db_name:
user => $pulpcore::postgresql_db_user,
password => postgresql::postgresql_password($pulpcore::user, $pulpcore::postgresql_db_password),
encoding => 'utf8',
locale => 'en_US.utf8',
before => Pulpcore::Admin['migrate --noinput'],
require => Package['glibc-langpack-en'],
}

postgresql::server::extension { "hstore for ${pulpcore::postgresql_db_name}":
Expand Down
11 changes: 0 additions & 11 deletions spec/setup_acceptance_node.pp
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
$major = $facts['os']['release']['major']

case $major {
'8': {
package { 'glibc-langpack-en':
ensure => installed,
}
}
default: {}
}

class { 'pulpcore::repo':
version => fact('pulpcore_version'),
}
Expand Down

0 comments on commit 40c45cf

Please sign in to comment.