2 changes: 1 addition & 1 deletion .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ fixtures:
repositories:
'stdlib':
repo: 'https://github.com/puppetlabs/puppetlabs-stdlib.git'
ref: 'v8.0.0'
ref: 'v9.0.0'
'host_core':
repo: 'https://github.com/puppetlabs/puppetlabs-host_core.git'
ref: 'v1.1.0'
Expand Down
28 changes: 20 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,35 @@ jobs:
fail-fast: false
matrix:
include:
- ruby: 2.7.0
- ruby: 2.7.8
puppet: 7
fixtures: .fixtures.yml
allow_failure: false
- ruby: 2.7.0
- ruby: 2.7.8
puppet: 7
fixtures: .fixtures-latest.yml
allow_failure: true
- ruby: 3.2.2
puppet: 8
fixtures: .fixtures.yml
allow_failure: false
- ruby: 3.2.2
puppet: 8
fixtures: .fixtures-latest.yml
allow_failure: true
env:
BUNDLE_WITHOUT: system_tests:release
PUPPET_GEM_VERSION: "~> ${{ matrix.puppet }}.0"
FACTER_GEM_VERSION: "< 4.0"
FIXTURES_YML: ${{ matrix.fixtures }}
name: Puppet ${{ matrix.puppet }} (Ruby ${{ matrix.ruby }} fixtures=${{ matrix.fixtures }})
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
cache-version: 2
bundler: '2.1.0'
- name: Validate
run: bundle exec rake check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint
Expand All @@ -47,11 +55,14 @@ jobs:
fail-fast: false
matrix:
set:
- "debian-10"
- "rocky-8"
- "ubuntu-1804"
- "el8"
- "el9"
- "debian-11"
- "ubuntu-2004"
- "ubuntu-2204"
puppet:
- "puppet7"
- "puppet8"
env:
BUNDLE_WITHOUT: development:release
BEAKER_debug: true
Expand All @@ -68,12 +79,13 @@ jobs:
sudo apt-get remove mysql-server --purge
sudo apt-get install apparmor-profiles
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
cache-version: 2
bundler: '2.1.0'
- name: Run tests
run: bundle exec rake beaker
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
cache-version: 2
bundler: '2.1.0'
- name: Build and Deploy
env:
# Configure secrets here:
# https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets
BLACKSMITH_FORGE_USERNAME: 'ghoneycutt'
BLACKSMITH_FORGE_USERNAME: 'tailoredautomation'
BLACKSMITH_FORGE_API_KEY: '${{ secrets.PUPPET_FORGE_API_KEY }}'
run: bundle exec rake module:push
30 changes: 5 additions & 25 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,15 @@
# for the default values.
---
.github/workflows/ci.yaml:
unit_name: Puppet ${{ matrix.puppet }} (Ruby ${{ matrix.ruby }} fixtures=${{ matrix.fixtures }})
unit_includes:
- ruby: '2.7.0'
puppet: '7'
fixtures: .fixtures.yml
allow_failure: false
- ruby: '2.7.0'
puppet: '7'
fixtures: .fixtures-latest.yml
allow_failure: true
acceptance_matrix:
set:
- debian-10
- rocky-8
- ubuntu-1804
- el8
- el9
- debian-11
- ubuntu-2004
puppet:
- puppet7
- puppet8
.travis.yml:
delete: true
Rakefile:
Expand All @@ -32,15 +24,3 @@ Rakefile:
delete: true
appveyor.yml:
delete: true
spec/acceptance/nodesets/centos-6.yml:
delete: true
spec/acceptance/nodesets/centos-7.yml:
delete: true
spec/acceptance/nodesets/centos-8.yml:
delete: true
spec/acceptance/nodesets/ubuntu-1604.yml:
delete: true
spec/acceptance/nodesets/debian-8.yml:
delete: true
spec/acceptance/nodesets/debian-9.yml:
delete: true
47 changes: 26 additions & 21 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,36 @@

All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).

## [v3.0.0](https://github.com/ghoneycutt/puppet-module-hosts/tree/v3.0.0) (2022-09-26)
## [v4.0.0](https://github.com/ghoneycutt/puppet-module-hosts/tree/v4.0.0) (2023-11-15)

The API has changed.
[Full Changelog](https://github.com/ghoneycutt/puppet-module-hosts/compare/v3.0.0...v4.0.0)

## [v2.8.0](https://github.com/ghoneycutt/puppet-module-hosts/tree/v2.8.0) (2022-09-26)
### Merged pull requests:

[Full Changelog](https://github.com/ghoneycutt/puppet-module-hosts/compare/v2.8.0...v2.8.0)
- Support Puppet 8 and stdlib 9.x [\#92](https://github.com/ghoneycutt/puppet-module-hosts/pull/92) ([treydock](https://github.com/treydock))

### UNCATEGORIZED PRS; LABEL THEM ON GITHUB
## [v3.0.0](https://github.com/ghoneycutt/puppet-module-hosts/tree/v3.0.0) (2022-09-27)

[Full Changelog](https://github.com/ghoneycutt/puppet-module-hosts/compare/v2.8.0...v3.0.0)

### Merged pull requests:

- Rework for v3 [\#88](https://github.com/ghoneycutt/puppet-module-hosts/pull/88) ([ghoneycutt](https://github.com/ghoneycutt))
- bump stdlib to \< 9.0.0 [\#86](https://github.com/ghoneycutt/puppet-module-hosts/pull/86) ([jhoblitt](https://github.com/jhoblitt))

## [v2.8.0](https://github.com/ghoneycutt/puppet-module-hosts/tree/v2.8.0) (2022-04-07)

[Full Changelog](https://github.com/ghoneycutt/puppet-module-hosts/compare/v2.7.0...v2.8.0)

### UNCATEGORIZED PRS; LABEL THEM ON GITHUB
### Merged pull requests:

- Update stdlib dependency [\#82](https://github.com/ghoneycutt/puppet-module-hosts/pull/82) ([kobybr](https://github.com/kobybr))

## [v2.7.0](https://github.com/ghoneycutt/puppet-module-hosts/tree/v2.7.0) (2018-12-19)

[Full Changelog](https://github.com/ghoneycutt/puppet-module-hosts/compare/v2.6.0...v2.7.0)

### UNCATEGORIZED PRS; LABEL THEM ON GITHUB
### Merged pull requests:

- Add support for Puppet 5 & 6 [\#74](https://github.com/ghoneycutt/puppet-module-hosts/pull/74) ([Phil-Friderici](https://github.com/Phil-Friderici))
- Test exported resources [\#61](https://github.com/ghoneycutt/puppet-module-hosts/pull/61) ([ghoneycutt](https://github.com/ghoneycutt))
Expand All @@ -35,23 +40,23 @@ The API has changed.

[Full Changelog](https://github.com/ghoneycutt/puppet-module-hosts/compare/v2.5.0...v2.6.0)

### UNCATEGORIZED PRS; LABEL THEM ON GITHUB
### Merged pull requests:

- Normalize testing [\#60](https://github.com/ghoneycutt/puppet-module-hosts/pull/60) ([ghoneycutt](https://github.com/ghoneycutt))

## [v2.5.0](https://github.com/ghoneycutt/puppet-module-hosts/tree/v2.5.0) (2017-02-27)

[Full Changelog](https://github.com/ghoneycutt/puppet-module-hosts/compare/v2.4.1...v2.5.0)

### UNCATEGORIZED PRS; LABEL THEM ON GITHUB
### Merged pull requests:

- Support Puppet \>= 4.9 [\#58](https://github.com/ghoneycutt/puppet-module-hosts/pull/58) ([Phil-Friderici](https://github.com/Phil-Friderici))

## [v2.4.1](https://github.com/ghoneycutt/puppet-module-hosts/tree/v2.4.1) (2016-11-18)

[Full Changelog](https://github.com/ghoneycutt/puppet-module-hosts/compare/v2.4.0...v2.4.1)

### UNCATEGORIZED PRS; LABEL THEM ON GITHUB
### Merged pull requests:

- Fix spec [\#56](https://github.com/ghoneycutt/puppet-module-hosts/pull/56) ([ghoneycutt](https://github.com/ghoneycutt))
- Use puppet lint v2 [\#55](https://github.com/ghoneycutt/puppet-module-hosts/pull/55) ([ghoneycutt](https://github.com/ghoneycutt))
Expand All @@ -60,7 +65,7 @@ The API has changed.

[Full Changelog](https://github.com/ghoneycutt/puppet-module-hosts/compare/v2.3.0...v2.4.0)

### UNCATEGORIZED PRS; LABEL THEM ON GITHUB
### Merged pull requests:

- Ruby231 [\#51](https://github.com/ghoneycutt/puppet-module-hosts/pull/51) ([ghoneycutt](https://github.com/ghoneycutt))
- Move comments to correct context in Gemfile [\#47](https://github.com/ghoneycutt/puppet-module-hosts/pull/47) ([Phil-Friderici](https://github.com/Phil-Friderici))
Expand All @@ -69,7 +74,7 @@ The API has changed.

[Full Changelog](https://github.com/ghoneycutt/puppet-module-hosts/compare/v2.2.4...v2.3.0)

### UNCATEGORIZED PRS; LABEL THEM ON GITHUB
### Merged pull requests:

- Add puppetv4 [\#46](https://github.com/ghoneycutt/puppet-module-hosts/pull/46) ([ghoneycutt](https://github.com/ghoneycutt))
- Puppetv4 fixes [\#45](https://github.com/ghoneycutt/puppet-module-hosts/pull/45) ([anders-larsson](https://github.com/anders-larsson))
Expand All @@ -78,15 +83,15 @@ The API has changed.

[Full Changelog](https://github.com/ghoneycutt/puppet-module-hosts/compare/v2.2.3...v2.2.4)

### UNCATEGORIZED PRS; LABEL THEM ON GITHUB
### Merged pull requests:

- Fix style warnings [\#37](https://github.com/ghoneycutt/puppet-module-hosts/pull/37) ([ghoneycutt](https://github.com/ghoneycutt))

## [v2.2.3](https://github.com/ghoneycutt/puppet-module-hosts/tree/v2.2.3) (2015-03-12)

[Full Changelog](https://github.com/ghoneycutt/puppet-module-hosts/compare/v2.2.2...v2.2.3)

### UNCATEGORIZED PRS; LABEL THEM ON GITHUB
### Merged pull requests:

- Metadata and travis [\#31](https://github.com/ghoneycutt/puppet-module-hosts/pull/31) ([ghoneycutt](https://github.com/ghoneycutt))
- Changed outdated \(by next puppet version\) type-function to is\_\<type\> [\#30](https://github.com/ghoneycutt/puppet-module-hosts/pull/30) ([mannbach](https://github.com/mannbach))
Expand All @@ -95,39 +100,39 @@ The API has changed.

[Full Changelog](https://github.com/ghoneycutt/puppet-module-hosts/compare/v2.2.1...v2.2.2)

### UNCATEGORIZED PRS; LABEL THEM ON GITHUB
### Merged pull requests:

- Fix for removing fqdn entry [\#26](https://github.com/ghoneycutt/puppet-module-hosts/pull/26) ([ghoneycutt](https://github.com/ghoneycutt))

## [v2.2.1](https://github.com/ghoneycutt/puppet-module-hosts/tree/v2.2.1) (2015-02-28)

[Full Changelog](https://github.com/ghoneycutt/puppet-module-hosts/compare/v2.2.0...v2.2.1)

### UNCATEGORIZED PRS; LABEL THEM ON GITHUB
### Merged pull requests:

- Modernize travis [\#28](https://github.com/ghoneycutt/puppet-module-hosts/pull/28) ([ghoneycutt](https://github.com/ghoneycutt))

## [v2.2.0](https://github.com/ghoneycutt/puppet-module-hosts/tree/v2.2.0) (2015-01-08)

[Full Changelog](https://github.com/ghoneycutt/puppet-module-hosts/compare/v2.1.0...v2.2.0)

### UNCATEGORIZED PRS; LABEL THEM ON GITHUB
### Merged pull requests:

- Use fqdn [\#24](https://github.com/ghoneycutt/puppet-module-hosts/pull/24) ([eabecho](https://github.com/eabecho))

## [v2.1.0](https://github.com/ghoneycutt/puppet-module-hosts/tree/v2.1.0) (2014-05-21)

[Full Changelog](https://github.com/ghoneycutt/puppet-module-hosts/compare/v2.0.1...v2.1.0)

### UNCATEGORIZED PRS; LABEL THEM ON GITHUB
### Merged pull requests:

- Fix dupe fqdn [\#19](https://github.com/ghoneycutt/puppet-module-hosts/pull/19) ([ghoneycutt](https://github.com/ghoneycutt))

## [v2.0.1](https://github.com/ghoneycutt/puppet-module-hosts/tree/v2.0.1) (2014-04-26)

[Full Changelog](https://github.com/ghoneycutt/puppet-module-hosts/compare/v2.0.0...v2.0.1)

### UNCATEGORIZED PRS; LABEL THEM ON GITHUB
### Merged pull requests:

- Fix error when setting enable\_ipv4\_localhost to false [\#15](https://github.com/ghoneycutt/puppet-module-hosts/pull/15) ([ghost](https://github.com/ghost))
- Gemfile to reflect that 2.7 support has been dropped [\#13](https://github.com/ghoneycutt/puppet-module-hosts/pull/13) ([ghoneycutt](https://github.com/ghoneycutt))
Expand All @@ -138,7 +143,7 @@ The API has changed.

[Full Changelog](https://github.com/ghoneycutt/puppet-module-hosts/compare/d8499d6c0f85f3315aa042cc7f51d9963a7744e6...v2.0.0)

### UNCATEGORIZED PRS; LABEL THEM ON GITHUB
### Merged pull requests:

- Increase quality to 1.0.0 standards [\#10](https://github.com/ghoneycutt/puppet-module-hosts/pull/10) ([ghoneycutt](https://github.com/ghoneycutt))
- Host entries from hiera [\#9](https://github.com/ghoneycutt/puppet-module-hosts/pull/9) ([ghoneycutt](https://github.com/ghoneycutt))
Expand All @@ -150,4 +155,4 @@ The API has changed.



\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
27 changes: 9 additions & 18 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,23 @@ ruby_version_segments = Gem::Version.new(RUBY_VERSION.dup).segments
minor_version = ruby_version_segments[0..1].join('.')

group :development do
gem "facter", '< 4.0', require: false
gem "fast_gettext", '1.1.0', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.1.0')
gem "fast_gettext", require: false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.1.0')
gem "json_pure", '<= 2.0.1', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
gem "json", '= 1.8.1', require: false if Gem::Version.new(RUBY_VERSION.dup) == Gem::Version.new('2.1.9')
gem "json", '= 2.0.4', require: false if Gem::Requirement.create('~> 2.4.2').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "rb-readline", '= 0.5.5', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "puppet-module-posix-default-r#{minor_version}", '~> 1.0', require: false, platforms: [:ruby]
gem "puppet-module-posix-dev-r#{minor_version}", '~> 1.0', require: false, platforms: [:ruby]
gem "puppet-module-win-default-r#{minor_version}", '~> 1.0', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "puppet-module-win-dev-r#{minor_version}", '~> 1.0', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "puppet-lint-param-docs", require: false
gem "voxpupuli-puppet-lint-plugins", '>= 3.0', require: false
gem "github_changelog_generator", require: false, git: 'https://github.com/skywinder/github-changelog-generator', ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018' if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')
gem "voxpupuli-test", '6.0.0', require: false
gem "rubocop-performance", '~> 1.18', require: false
gem "faraday", '~> 1.0', require: false
gem "github_changelog_generator", require: false
gem "puppet-blacksmith", require: false
gem "puppet-strings", require: false
end
group :system_tests do
gem "puppet-module-posix-system-r#{minor_version}", '~> 0.5', require: false, platforms: [:ruby]
gem "puppet-module-win-system-r#{minor_version}", '~> 0.5', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 4.0')
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 4.29')
gem "beaker-abs", *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.1')
gem "beaker-pe", require: false
gem "beaker-hostgenerator"
gem "beaker-rspec"
gem "beaker-docker"
gem "beaker-puppet"
gem "beaker-puppet_install_helper", require: false
gem "beaker-module_install_helper", require: false
end

puppet_version = ENV['PUPPET_GEM_VERSION']
Expand Down
4 changes: 2 additions & 2 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ include hosts

The following parameters are available in the `hosts` class:

* [`hosts`](#hosts)
* [`hosts`](#-hosts--hosts)

##### <a name="hosts"></a>`hosts`
##### <a name="-hosts--hosts"></a>`hosts`

Data type: `Hash`

Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

require 'bundler'
require 'puppet_litmus/rake_tasks' if Bundler.rubygems.find_name('puppet_litmus').any?
require 'beaker-rspec/rake_task' if Bundler.rubygems.find_name('beaker-rspec').any?
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-syntax/tasks/puppet-syntax'
require 'puppet_blacksmith/rake_tasks' if Bundler.rubygems.find_name('puppet-blacksmith').any?
Expand Down Expand Up @@ -57,7 +57,7 @@ if Bundler.rubygems.find_name('github_changelog_generator').any?
config.header = "# Change log\n\nAll notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org)."
config.add_pr_wo_labels = true
config.issues = false
config.merge_prefix = "### UNCATEGORIZED PRS; LABEL THEM ON GITHUB"
config.merge_prefix = "### Merged pull requests:"
config.configure_sections = {
"Changed" => {
"prefix" => "### Changed",
Expand Down
Loading