Showing with 1,140 additions and 15,034 deletions.
  1. +3 −1 .fixtures.yml
  2. +0 −68 .github/workflows/acceptance.yml
  3. +79 −0 .github/workflows/ci.yml
  4. +0 −117 .github/workflows/cron.yml
  5. +0 −44 .github/workflows/unit.yml
  6. +0 −1 .sync.yml
  7. +26 −0 CHANGELOG.md
  8. +2 −1 Gemfile
  9. +48 −0 HISTORY.md
  10. +1 −4 README.md
  11. +0 −437 files/external_node_v2.rb
  12. +0 −199 files/foreman-report_v2.rb
  13. +5 −0 files/settings-reverse-proxy-headers.yaml
  14. +14 −0 lib/facter/dynflow.rb
  15. +38 −0 lib/puppet/functions/foreman/to_symbolized_yaml.rb
  16. +10 −0 manifests/cli/katello.pp
  17. +45 −66 manifests/config.pp
  18. +61 −104 manifests/config/apache.pp
  19. +57 −0 manifests/dynflow/pool.pp
  20. +41 −23 manifests/dynflow/worker.pp
  21. +20 −45 manifests/init.pp
  22. +6 −8 manifests/install.pp
  23. +6 −19 manifests/params.pp
  24. +8 −0 manifests/plugin/puppet.pp
  25. +4 −0 manifests/plugin/tasks.pp
  26. +8 −0 manifests/plugin/webhooks.pp
  27. +0 −117 manifests/puppetmaster.pp
  28. +0 −79 manifests/puppetmaster/params.pp
  29. +8 −0 manifests/repo.pp
  30. +12 −5 manifests/repos/apt.pp
  31. +19 −25 manifests/service.pp
  32. +2 −2 metadata.json
  33. +85 −0 spec/acceptance/dynflow_spec.rb
  34. +66 −30 spec/acceptance/foreman_cli_plugins_spec.rb
  35. +11 −2 spec/classes/cli_plugins_spec.rb
  36. +90 −154 spec/classes/foreman_config_apache_spec.rb
  37. +7 −4 spec/classes/foreman_install_spec.rb
  38. +0 −108 spec/classes/foreman_puppetmaster_spec.rb
  39. +31 −0 spec/classes/foreman_repo_spec.rb
  40. +19 −41 spec/classes/foreman_service_spec.rb
  41. +39 −84 spec/classes/foreman_spec.rb
  42. +5 −0 spec/classes/plugin/puppet_spec.rb
  43. +1 −0 spec/classes/plugin/tasks_spec.rb
  44. +5 −0 spec/classes/plugin/webhooks_spec.rb
  45. +87 −0 spec/defines/foreman_dynflow_pool_spec.rb
  46. +107 −29 spec/defines/foreman_dynflow_worker_spec.rb
  47. +1 −1 spec/defines/foreman_repos_apt_spec.rb
  48. +11 −0 spec/functions/foreman_to_symbolized_yaml_spec.rb
  49. +0 −1 spec/spec_helper.rb
  50. +0 −97 spec/static_fixtures/fake.host.fqdn.com.yaml
  51. +0 −627 spec/static_fixtures/report-2.6.12-noops.yaml
  52. +0 −706 spec/static_fixtures/report-2.6.2-debug.yaml
  53. +0 −60 spec/static_fixtures/report-2.6.5-errors.yaml
  54. +0 −205 spec/static_fixtures/report-3.5.1-catalog-errors.yaml
  55. +0 −37 spec/static_fixtures/report-empty.json
  56. +0 −31 spec/static_fixtures/report-empty.yaml
  57. +0 −132 spec/static_fixtures/report-format-2.json
  58. +0 −413 spec/static_fixtures/report-format-2.yaml
  59. +0 −106 spec/static_fixtures/report-format-3.json
  60. +0 −283 spec/static_fixtures/report-format-3.yaml
  61. +0 −226 spec/static_fixtures/report-format-6.json
  62. +0 −9,760 spec/static_fixtures/report-format-6.yaml
  63. +0 −290 spec/static_fixtures/report-log-preprocessed.yaml
  64. +1 −1 spec/support/acceptance/examples.rb
  65. +45 −0 spec/unit/facter/dynflow_spec.rb
  66. +0 −95 spec/unit/foreman_external_node_spec.rb
  67. +0 −125 spec/unit/foreman_report_processor_spec.rb
  68. +0 −5 templates/dynflow_worker.yml.erb
  69. +0 −1 templates/foreman.service-overrides.erb
  70. +1 −3 templates/foreman.socket-overrides.erb
  71. +1 −1 templates/lookup_identity.conf.erb
  72. +3 −11 templates/settings.yaml.erb
  73. +1 −0 templates/tasks.cron.erb
4 changes: 3 additions & 1 deletion .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ fixtures:
postgresql: 'https://github.com/puppetlabs/puppetlabs-postgresql'
puppet: 'https://github.com/theforeman/puppet-puppet'
redis: 'https://github.com/voxpupuli/puppet-redis'
systemd: 'https://github.com/camptocamp/puppet-systemd'
systemd:
repo: 'https://github.com/camptocamp/puppet-systemd'
ref: '2.12.0'
selinux_core:
repo: "https://github.com/puppetlabs/puppetlabs-selinux_core"
puppet_version: ">= 6.0.0"
Expand Down
68 changes: 0 additions & 68 deletions .github/workflows/acceptance.yml

This file was deleted.

79 changes: 79 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: CI

on:
pull_request:
schedule:
- cron: '4 4 * * *'

jobs:
setup_matrix:
if: github.event_name != 'schedule' || github.repository_owner == 'theforeman'
name: 'Setup Test Matrix'
runs-on: ubuntu-latest
outputs:
beaker_setfiles: ${{ steps.get_outputs.outputs.beaker_setfiles }}
puppet_major_versions: ${{ steps.get_outputs.outputs.puppet_major_versions }}
puppet_unit_test_matrix: ${{ steps.get_outputs.outputs.puppet_unit_test_matrix }}
env:
BUNDLE_WITHOUT: development:release
steps:
- uses: actions/checkout@v2
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
- name: Run rake check
run: bundle exec rake check
- name: Run rake validate
run: bundle exec rake validate
- name: Run rake lint
run: bundle exec rake lint
- name: Setup Test Matrix
id: get_outputs
run: bundle exec metadata2gha --use-fqdn --pidfile-workaround false

unit:
needs: setup_matrix
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include: ${{fromJson(needs.setup_matrix.outputs.puppet_unit_test_matrix)}}
env:
BUNDLE_WITHOUT: development:system_tests:release
PUPPET_VERSION: "${{ matrix.puppet }}.0"
name: Unit / Puppet ${{ matrix.puppet }} (Ruby ${{ matrix.ruby }})
steps:
- uses: actions/checkout@v2
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake parallel_spec

acceptance:
needs: setup_matrix
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: development:test:release
strategy:
fail-fast: false
matrix:
setfile: ${{fromJson(needs.setup_matrix.outputs.beaker_setfiles)}}
puppet: ${{fromJson(needs.setup_matrix.outputs.puppet_major_versions)}}
name: Acceptance / ${{ matrix.puppet.name }} - ${{ matrix.setfile.name }}
steps:
- uses: actions/checkout@v2
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
- name: Run tests
run: bundle exec rake beaker
env:
BEAKER_PUPPET_COLLECTION: ${{ matrix.puppet.collection }}
BEAKER_setfile: ${{ matrix.setfile.value }}
117 changes: 0 additions & 117 deletions .github/workflows/cron.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/unit.yml

This file was deleted.

1 change: 0 additions & 1 deletion .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ Gemfile:
spec/spec_helper.rb:
requires:
- webmock/rspec
- puppet/reports
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Changelog

## [17.0.0](https://github.com/theforeman/puppet-foreman/tree/17.0.0) (2021-04-26)

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

**Breaking changes:**

- Drop Puppetserver integration [\#933](https://github.com/theforeman/puppet-foreman/pull/933) ([ekohl](https://github.com/ekohl))
- Remove old email.yaml and cronjob cleanups [\#931](https://github.com/theforeman/puppet-foreman/pull/931) ([ekohl](https://github.com/ekohl))
- Fixes [\#29780](https://projects.theforeman.org/issues/29780) - Drop Passenger support and target Foreman 2.4+ [\#928](https://github.com/theforeman/puppet-foreman/pull/928) ([ekohl](https://github.com/ekohl))
- Fixes [\#31964](https://projects.theforeman.org/issues/31964) - Assign equal weight to sidekiq queues [\#927](https://github.com/theforeman/puppet-foreman/pull/927) ([ekohl](https://github.com/ekohl))
- Fixes [\#29817](https://projects.theforeman.org/issues/29817) - Implement a dynflow worker pool [\#843](https://github.com/theforeman/puppet-foreman/pull/843) ([ekohl](https://github.com/ekohl))

**Implemented enhancements:**

- Enable Ruby 2.7 module for EL8 on Foreman 2.5+ [\#937](https://github.com/theforeman/puppet-foreman/pull/937) ([ehelms](https://github.com/ehelms))
- Refs [\#32276](https://projects.theforeman.org/issues/32276): Add Katello hammer plugin [\#936](https://github.com/theforeman/puppet-foreman/pull/936) ([ehelms](https://github.com/ehelms))
- Mark compatible with puppetlabs/postgresql 7.x [\#930](https://github.com/theforeman/puppet-foreman/pull/930) ([ekohl](https://github.com/ekohl))
- use deb gpg key from our server, not the gpg network [\#924](https://github.com/theforeman/puppet-foreman/pull/924) ([evgeni](https://github.com/evgeni))
- Fixes [\#32175](https://projects.theforeman.org/issues/32175): Allow toggling task backup when cleaning them up [\#922](https://github.com/theforeman/puppet-foreman/pull/922) ([ehelms](https://github.com/ehelms))
- Add foreman\_webhooks plugin [\#920](https://github.com/theforeman/puppet-foreman/pull/920) ([adamruzicka](https://github.com/adamruzicka))
- Add foreman\_puppet plugin [\#917](https://github.com/theforeman/puppet-foreman/pull/917) ([ezr-ondrej](https://github.com/ezr-ondrej))

**Fixed bugs:**

- Fixes [\#32208](https://projects.theforeman.org/issues/32208) - accept trailing slash in Krb auth url [\#926](https://github.com/theforeman/puppet-foreman/pull/926) ([ezr-ondrej](https://github.com/ezr-ondrej))

## [16.1.0](https://github.com/theforeman/puppet-foreman/tree/16.1.0) (2021-01-28)

[Full Changelog](https://github.com/theforeman/puppet-foreman/compare/16.0.0...16.1.0)
Expand Down
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ gem 'puppet-lint-strict_indent-check', {"groups"=>["test"]}
gem 'puppet-lint-undef_in_function-check', {"groups"=>["test"]}
gem 'voxpupuli-test', '~> 1.4'
gem 'github_changelog_generator', '>= 1.15.0', {"groups"=>["development"]}
gem 'puppet_metadata', '~> 0.3'
gem 'puppet-blacksmith', '>= 6.0.0', {"groups"=>["development"]}
gem 'voxpupuli-acceptance', '~> 0.2', {"groups"=>["system_tests"]}
gem 'voxpupuli-acceptance', '~> 0.3', {"groups"=>["system_tests"]}
gem 'beaker-hiera', {"git"=>"https://github.com/ekohl/beaker-hiera", "branch"=>"fix", "groups"=>["system_tests"]}
gem 'webmock', '~> 2.0'
gem 'oauth'
Expand Down
Loading