Showing with 31 additions and 5 deletions.
  1. +1 −1 .github/workflows/ci.yml
  2. +1 −1 .sync.yml
  3. +12 −0 CHANGELOG.md
  4. +5 −1 README.md
  5. +10 −1 manifests/database.pp
  6. +1 −1 metadata.json
  7. +1 −0 spec/acceptance/hieradata/common.yaml
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
uses: voxpupuli/gha-puppet/.github/workflows/beaker.yml@v2
with:
pidfile_workaround: 'false'
beaker_facter: 'pulpcore_version:Pulp:nightly,3.39'
beaker_facter: 'pulpcore_version:Pulp:nightly,3.39,3.49'
rubocop: false
cache-version: '1'
2 changes: 1 addition & 1 deletion .sync.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
.github/workflows/ci.yml:
beaker_facter: 'pulpcore_version:Pulp:nightly,3.39'
beaker_facter: 'pulpcore_version:Pulp:nightly,3.39,3.49'
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## [10.3.0](https://github.com/theforeman/puppet-pulpcore/tree/10.3.0) (2024-08-14)

[Full Changelog](https://github.com/theforeman/puppet-pulpcore/compare/10.2.0...10.3.0)

**Implemented enhancements:**

- explicitly support Pulpcore 3.49 [\#352](https://github.com/theforeman/puppet-pulpcore/pull/352) ([evgeni](https://github.com/evgeni))

**Fixed bugs:**

- Always run pulpcore-manager migrate [\#351](https://github.com/theforeman/puppet-pulpcore/pull/351) ([evgeni](https://github.com/evgeni))

## [10.2.0](https://github.com/theforeman/puppet-pulpcore/tree/10.2.0) (2024-08-12)

[Full Changelog](https://github.com/theforeman/puppet-pulpcore/compare/10.1.0...10.2.0)
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ All supported versions are listed below. For every supported version, acceptance

Supported operating systems are listed in `metadata.json` but individual releases can divert from that. For example, if Pulpcore x.y drops EL7, it will still be listed in metadata.json until all versions supported by the module have dropped it. Similarly, if x.z adds support for EL9, it'll be listed in `metadata.json` and all versions that don't support EL9 will have a note.

### Pulpcore 3.49

Recommended version.

### Pulpcore 3.39

Default recommended version.
Supported version.

## Installation layout

Expand Down
11 changes: 10 additions & 1 deletion manifests/database.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# @api private
class pulpcore::database (
Integer[0] $timeout = 3600,
Boolean $always_run_migrations = true,
) {
if $pulpcore::postgresql_manage_db {
include postgresql::client
Expand All @@ -28,9 +29,17 @@
Class['postgresql::server::service'] ~> Service['pulpcore-content.service']
}

# By default we want to always run `migrate`, even if `--check` returns no pending migrations
# This is due to the fact that Pulp uses post_migration hooks that need to be executed even
# when no real migration has happened.
$migrate_unless = $always_run_migrations ? {
false => 'pulpcore-manager migrate --check',
default => undef,
}

pulpcore::admin { 'migrate --noinput':
timeout => $timeout,
unless => 'pulpcore-manager migrate --check',
unless => $migrate_unless,
refreshonly => false,
}

Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{

Check warning on line 1 in metadata.json

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Skipping EOL operating system CentOS 8
"name": "theforeman-pulpcore",
"version": "10.2.0",
"version": "10.3.0",
"author": "theforeman",
"summary": "Installs next generation Pulp server",
"license": "GPL-3.0-or-later",
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/hieradata/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ apache::default_mods: false
pulpcore::apache_https_cert: '/etc/pulpcore-certs/ca-cert.pem'
pulpcore::apache_https_key: '/etc/pulpcore-certs/ca-key.pem'
pulpcore::apache_https_ca: '/etc/pulpcore-certs/ca-cert.pem'
pulpcore::database::always_run_migrations: false