67 changes: 67 additions & 0 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Acceptance tests

on: pull_request

jobs:
build_cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup ruby
uses: actions/setup-ruby@v1
with:
ruby-version: "2.7"
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-2.7-gems-acceptance-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-2.7-gems-acceptance-
- name: Install dependencies
run: |
gem install bundler
bundle config path vendor/bundle
bundle config without 'development test'
bundle install --jobs 4 --retry 3
acceptance:
needs: build_cache
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
setfile:
- centos7-64{hostname=centos7-64.example.com}
- centos8-64{hostname=centos8-64.example.com}
- debian10-64{hostname=debian10-64.example.com}
- ubuntu1804-64{hostname=ubuntu1804-64.example.com}
puppet:
- "6"
- "5"
name: Puppet ${{ matrix.puppet }} - ${{ matrix.setfile }}
steps:
- name: Enable IPv6 on docker
run: |
echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
sudo service docker restart
- uses: actions/checkout@v2
- name: Setup ruby
uses: actions/setup-ruby@v1
with:
ruby-version: "2.7"
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-2.7-gems-acceptance-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-2.7-gems-acceptance-
- name: Install dependencies
run: |
gem install bundler
bundle config path vendor/bundle
bundle config without 'development test'
bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec rake beaker
env:
BEAKER_PUPPET_COLLECTION: puppet${{ matrix.puppet }}
BEAKER_setfile: ${{ matrix.setfile }}
114 changes: 114 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
name: Nightly tests

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

jobs:
unit:
if: github.repository == 'theforeman/puppet-foreman'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- "2.5"
- "2.4"
puppet:
- "6"
- "5"
exclude:
- ruby: "2.5"
puppet: "5"
- ruby: "2.4"
puppet: "6"
env:
PUPPET_VERSION: "${{ matrix.puppet }}.0"
name: Puppet ${{ matrix.puppet }} (Ruby ${{ matrix.ruby }})
steps:
- uses: actions/checkout@v2
- name: Setup ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-${{ matrix.puppet }}-${{ matrix.ruby }}-gems-unit-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.puppet }}-${{ matrix.ruby }}-gems-unit-
- name: Install dependencies
run: |
gem install bundler
bundle config path vendor/bundle
bundle config without 'development system_tests'
bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec rake

build_cache:
if: github.repository == 'theforeman/puppet-foreman'
runs-on: ubuntu-latest
steps:
- name: Enable IPv6 on docker
run: |
echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
sudo service docker restart
- uses: actions/checkout@v2
- name: Setup ruby
uses: actions/setup-ruby@v1
with:
ruby-version: "2.7"
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-2.7-gems-acceptance-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-2.7-gems-acceptance-
- name: Install dependencies
run: |
gem install bundler
bundle config path vendor/bundle
bundle config without 'development test'
bundle install --jobs 4 --retry 3
acceptance:
if: github.repository == 'theforeman/puppet-foreman'
needs: build_cache
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
setfile:
- centos7-64{hostname=centos7-64.example.com}
- centos8-64{hostname=centos8-64.example.com}
puppet:
- "6"
- "5"
name: Puppet ${{ matrix.puppet }} - ${{ matrix.setfile }}
steps:
- name: Enable IPv6 on docker
run: |
echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
sudo service docker restart
- uses: actions/checkout@v2
- name: Setup ruby
uses: actions/setup-ruby@v1
with:
ruby-version: "2.7"
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-2.7-gems-acceptance-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-2.7-gems-acceptance-
- name: Install dependencies
run: |
gem install bundler
bundle config path vendor/bundle
bundle config without 'development test'
bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec rake beaker
env:
BEAKER_PUPPET_COLLECTION: puppet${{ matrix.puppet }}
BEAKER_setfile: ${{ matrix.setfile }}
44 changes: 44 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Unit tests

on: pull_request

jobs:
unit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- "2.5"
- "2.4"
puppet:
- "6"
- "5"
exclude:
- ruby: "2.5"
puppet: "5"
- ruby: "2.4"
puppet: "6"
name: Puppet ${{ matrix.puppet }} (Ruby ${{ matrix.ruby }})
env:
PUPPET_VERSION: "${{ matrix.puppet }}.0"
steps:
- uses: actions/checkout@v2
- name: Setup ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-${{ matrix.puppet }}-${{ matrix.ruby }}-gems-unit-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.puppet }}-${{ matrix.ruby }}-gems-unit-
- name: Install dependencies
run: |
gem install bundler
bundle config path vendor/bundle
bundle config without 'development system_tests'
bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec rake
104 changes: 0 additions & 104 deletions .travis.yml

This file was deleted.

19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Changelog

## [16.0.0](https://github.com/theforeman/puppet-foreman/tree/16.0.0) (2020-10-30)

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

**Breaking changes:**

- Drop Rackspace compute resource that was dropped in Foreman 2.1 [\#894](https://github.com/theforeman/puppet-foreman/pull/894) ([ehelms](https://github.com/ehelms))
- fixes [\#29938](https://projects.theforeman.org/issues/29938) - change default logging layout [\#847](https://github.com/theforeman/puppet-foreman/pull/847) ([domitea](https://github.com/domitea))

**Implemented enhancements:**

- Set compute resource version parameter to advanced [\#886](https://github.com/theforeman/puppet-foreman/pull/886) ([ehelms](https://github.com/ehelms))
- Fixes [\#31215](https://projects.theforeman/org/issues/31215) - Generate DSL docs [\#892](https://github.com/theforeman/puppet-foreman/pull/892) ([ofedoren](https://github.com/ofedoren))

**Fixed bugs:**

- Refs [\#30535](https://projects.theforeman.org/issues/30535) - Correctly unset remote user groups [\#896](https://github.com/theforeman/puppet-foreman/pull/896) ([tbrisker](https://github.com/tbrisker))
- Drop foreman\_compute that was removed in 1.22 [\#895](https://github.com/theforeman/puppet-foreman/pull/895) ([ehelms](https://github.com/ehelms))

## [15.1.1](https://github.com/theforeman/puppet-foreman/tree/15.1.1) (2020-10-14)

[Full Changelog](https://github.com/theforeman/puppet-foreman/compare/15.1.0...15.1.1)
Expand Down
28 changes: 28 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
## [16.0.0](https://github.com/theforeman/puppet-foreman/tree/16.0.0) (2020-10-30)

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

**Breaking changes:**

- Drop Rackspace compute resource that was dropped in Foreman 2.1 [\#894](https://github.com/theforeman/puppet-foreman/pull/894) ([ehelms](https://github.com/ehelms))
- fixes [\#29938](https://projects.theforeman.org/issues/29938) - change default logging layout [\#847](https://github.com/theforeman/puppet-foreman/pull/847) ([domitea](https://github.com/domitea))

**Implemented enhancements:**

- Set compute resource version parameter to advanced [\#886](https://github.com/theforeman/puppet-foreman/pull/886) ([ehelms](https://github.com/ehelms))
- Fixes [\#31215](https://projects.theforeman/org/issues/31215) - Generate DSL docs [\#892](https://github.com/theforeman/puppet-foreman/pull/892) ([ofedoren](https://github.com/ofedoren))

**Fixed bugs:**

- Refs [\#30535](https://projects.theforeman.org/issues/30535) - Correctly unset remote user groups [\#896](https://github.com/theforeman/puppet-foreman/pull/896) ([tbrisker](https://github.com/tbrisker))
- Drop foreman\_compute that was removed in 1.22 [\#895](https://github.com/theforeman/puppet-foreman/pull/895) ([ehelms](https://github.com/ehelms))

## [15.1.1](https://github.com/theforeman/puppet-foreman/tree/15.1.1) (2020-10-14)

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

**Fixed bugs:**

- Fixes [\#30535](https://projects.theforeman.org/issues/30535) - Set HTTP headers proxy requests [\#872](https://github.com/theforeman/puppet-foreman/pull/872) ([hsahmed](https://github.com/hsahmed))
- Fixes [\#30789](https://projects.theforeman.org/issues/30789) - Set DB pool size dynamically [\#882](https://github.com/theforeman/puppet-foreman/pull/882) ([ekohl](https://github.com/ekohl))

## [15.1.0](https://github.com/theforeman/puppet-foreman/tree/15.1.0) (2020-08-07)

[Full Changelog](https://github.com/theforeman/puppet-foreman/compare/15.0.2...15.1.0)
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ previous stable release.

This module targets Foreman 2.0+.

If you're running Foreman instance older than Foreman 2.2 you need to change logging layout parameter from
`multiline_request_pattern` to `multiline_pattern` due to compatibility.

## Types and providers

`foreman_config_entry` can be used to manage settings in Foreman's database, as
Expand Down
Loading