Showing with 15 additions and 1 deletion.
  1. +8 −0 CHANGELOG.md
  2. +2 −0 manifests/dynflow/worker.pp
  3. +1 −1 metadata.json
  4. +4 −0 spec/classes/foreman_spec.rb
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [19.2.1](https://github.com/theforeman/puppet-foreman/tree/19.2.1) (2022-02-21)

[Full Changelog](https://github.com/theforeman/puppet-foreman/compare/19.2.0...19.2.1)

**Fixed bugs:**

- Refs [\#34394](https://projects.theforeman.org/issues/34394) - trigger dynflow restart when DB restarts [\#1028](https://github.com/theforeman/puppet-foreman/pull/1028) ([evgeni](https://github.com/evgeni))

## [19.2.0](https://github.com/theforeman/puppet-foreman/tree/19.2.0) (2022-02-04)

[Full Changelog](https://github.com/theforeman/puppet-foreman/compare/19.1.1...19.2.0)
Expand Down
2 changes: 2 additions & 0 deletions manifests/dynflow/worker.pp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
enable => true,
subscribe => Class['foreman::database'],
}

Service <| tag == 'postgresql::server::service' |> ~> Service[$service]
} else {
service { $service:
ensure => stopped,
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "theforeman-foreman",
"version": "19.2.0",
"version": "19.2.1",
"author": "theforeman",
"summary": "Foreman server configuration",
"license": "GPL-3.0+",
Expand Down
4 changes: 4 additions & 0 deletions spec/classes/foreman_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@
.with_concurrency(1)
.with_queues(['dynflow_orchestrator'])
}
it {
is_expected.to contain_service('postgresqld')
.that_notifies('Service[dynflow-sidekiq@orchestrator]')
}
it { should contain_foreman__dynflow__worker('worker').with_ensure('absent') }
it do
should contain_foreman__dynflow__worker('worker-1')
Expand Down