68 changes: 68 additions & 0 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
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_proxy'
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_proxy'
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_proxy'
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.

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

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

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

**Breaking changes:**

- Fixes [\#30950](https://projects.theforeman.org/issues/30950) - Enable SmartProxy Registration module [\#619](https://github.com/theforeman/puppet-foreman_proxy/pull/619) ([stejskalleos](https://github.com/stejskalleos))
- Fixes [\#30669](https://projects.theforeman.org/issues/30669) - Removing puppetrun options [\#618](https://github.com/theforeman/puppet-foreman_proxy/pull/618) ([domitea](https://github.com/domitea))

**Implemented enhancements:**

- Refs [\#29830](https://projects.theforeman.org/issues/29830) - Move discovery plugin docs to RDOC and split out advanced parameters [\#626](https://github.com/theforeman/puppet-foreman_proxy/pull/626) ([ehelms](https://github.com/ehelms))
- Do not set ACLs on DHCP leases directory [\#623](https://github.com/theforeman/puppet-foreman_proxy/pull/623) ([ekohl](https://github.com/ekohl))

**Fixed bugs:**

- Do not set recursive ACLs on dhcp [\#621](https://github.com/theforeman/puppet-foreman_proxy/pull/621) ([ekohl](https://github.com/ekohl))

## [15.2.0](https://github.com/theforeman/puppet-foreman_proxy/tree/15.2.0) (2020-09-23)

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

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

**Breaking changes:**

- Fixes [\#30950](https://projects.theforeman.org/issues/30950) - Enable SmartProxy Registration module [\#619](https://github.com/theforeman/puppet-foreman_proxy/pull/619) ([stejskalleos](https://github.com/stejskalleos))
- Fixes [\#30669](https://projects.theforeman.org/issues/30669) - Removing puppetrun options [\#618](https://github.com/theforeman/puppet-foreman_proxy/pull/618) ([domitea](https://github.com/domitea))

**Implemented enhancements:**

- Refs [\#29830](https://projects.theforeman.org/issues/29830) - Move discovery plugin docs to RDOC and split out advanced parameters [\#626](https://github.com/theforeman/puppet-foreman_proxy/pull/626) ([ehelms](https://github.com/ehelms))
- Do not set ACLs on DHCP leases directory [\#623](https://github.com/theforeman/puppet-foreman_proxy/pull/623) ([ekohl](https://github.com/ekohl))

**Fixed bugs:**

- Do not set recursive ACLs on dhcp [\#621](https://github.com/theforeman/puppet-foreman_proxy/pull/621) ([ekohl](https://github.com/ekohl))

## [15.2.0](https://github.com/theforeman/puppet-foreman_proxy/tree/15.2.0) (2020-09-23)

[Full Changelog](https://github.com/theforeman/puppet-foreman_proxy/compare/15.1.0...15.2.0)
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ Part of the Foreman installer: <https://github.com/theforeman/foreman-installer>

| Module version | Proxy versions | Notes |
|----------------|----------------|-----------------------------------------------------|
| 13.x | 2.0 and newer | |
| 16.x | 2.3 and newer | See compatibility notes in its README for 2.0-2.2 |
| 13.x | 2.0 - 2.2 | |
| 12.x | 1.19 - 1.24 | See compatibility notes in its README for 1.19-1.22 |
| 11.x | 1.19 - 1.23 | See compatibility notes in its README for 1.19-1.21 |
| 10.x | 1.19 - 1.21 | |
Expand All @@ -22,6 +23,7 @@ Part of the Foreman installer: <https://github.com/theforeman/foreman-installer>
| 2.x | 1.5 - 1.10 | |
| 1.x | 1.4 and older | |

16.x added support for Smart Proxy Registration feature, available in Smart Proxy 2.3 and newer.
12.x has dropped support for Puppet 3 which was officially unsupported for a while and Foreman Proxy 1.23 dropped altogether.

## Examples
Expand Down
Loading