3 changes: 3 additions & 0 deletions .fixtures.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
fixtures:
repositories:
augeas_core:
repo: 'https://github.com/puppetlabs/puppetlabs-augeas_core'
puppet_version: '>= 6.0.0'
stdlib: 'git://github.com/puppetlabs/puppetlabs-stdlib'
xinetd: 'git://github.com/puppetlabs/puppetlabs-xinetd'
86 changes: 78 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,100 @@ matrix:
env: PUPPET_VERSION=5.0
- rvm: 2.5.1
env: PUPPET_VERSION=5.0
- rvm: 2.5.1
env: PUPPET_VERSION=6.0
# Acceptance tests
- rvm: 2.5.1
dist: trusty
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=centos6-64{hypervisor=docker\,hostname=centos6-64.example.com}
env:
- BEAKER_PUPPET_COLLECTION=puppet5
- BEAKER_setfile=centos6-64{hostname=centos6-64.example.com}
script: bundle exec rake beaker
services: docker
bundler_args: --without development
before_install:
- echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
- sudo service docker restart

- rvm: 2.5.1
env:
- BEAKER_PUPPET_COLLECTION=puppet6
- BEAKER_setfile=centos6-64{hostname=centos6-64.example.com}
script: bundle exec rake beaker
services: docker
bundler_args: --without development
before_install:
- echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
- sudo service docker restart

- rvm: 2.5.1
env:
- BEAKER_PUPPET_COLLECTION=puppet5
- BEAKER_setfile=centos7-64{hostname=centos7-64.example.com}
script: bundle exec rake beaker
services: docker
bundler_args: --without development
before_install:
- echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
- sudo service docker restart

- rvm: 2.5.1
env:
- BEAKER_PUPPET_COLLECTION=puppet6
- BEAKER_setfile=centos7-64{hostname=centos7-64.example.com}
script: bundle exec rake beaker
services: docker
bundler_args: --without development
before_install:
- echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
- sudo service docker restart

- rvm: 2.5.1
env:
- BEAKER_PUPPET_COLLECTION=puppet5
- BEAKER_setfile=debian8-64{hostname=debian8-64.example.com}
script: bundle exec rake beaker
services: docker
bundler_args: --without development
before_install:
- echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
- sudo service docker restart

- rvm: 2.5.1
dist: trusty
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=centos7-64{hypervisor=docker\,hostname=centos7-64.example.com}
env:
- BEAKER_PUPPET_COLLECTION=puppet6
- BEAKER_setfile=debian8-64{hostname=debian8-64.example.com}
script: bundle exec rake beaker
services: docker
bundler_args: --without development
before_install:
- echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
- sudo service docker restart

- rvm: 2.5.1
dist: trusty
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=debian8-64{hypervisor=docker\,hostname=debian8-64.example.com}
env:
- BEAKER_PUPPET_COLLECTION=puppet5
- BEAKER_setfile=debian9-64{hostname=debian9-64.example.com}
script: bundle exec rake beaker
services: docker
bundler_args: --without development
before_install:
- echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
- sudo service docker restart

- rvm: 2.5.1
dist: trusty
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=debian9-64{hypervisor=docker\,hostname=debian9-64.example.com}
env:
- BEAKER_PUPPET_COLLECTION=puppet6
- BEAKER_setfile=debian9-64{hostname=debian9-64.example.com}
script: bundle exec rake beaker
services: docker
bundler_args: --without development
before_install:
- echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
- sudo service docker restart

bundler_args: --without system_tests development
before_install:
- if [ $TRAVIS_RUBY_VERSION = 2.1.9 ] ; then
gem install -v 1.17.3 bundler --no-rdoc --no-ri;
fi
sudo: false
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## [4.4.0](https://github.com/theforeman/puppet-tftp/tree/4.4.0) (2019-01-10)

[Full Changelog](https://github.com/theforeman/puppet-tftp/compare/4.3.0...4.4.0)

**Implemented enhancements:**

- Support Puppet 6 [\#86](https://github.com/theforeman/puppet-tftp/pull/86) ([ekohl](https://github.com/ekohl))

**Merged pull requests:**

- Mark private classes for puppet-strings [\#88](https://github.com/theforeman/puppet-tftp/pull/88) ([ekohl](https://github.com/ekohl))

## [4.3.0](https://github.com/theforeman/puppet-tftp/tree/4.3.0) (2018-10-15)

[Full Changelog](https://github.com/theforeman/puppet-tftp/compare/4.2.1...4.3.0)
Expand Down
5 changes: 2 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ gem 'puppet-lint-unquoted_string-check'
gem 'puppet-lint-variable_contains_upcase'
gem 'puppet-lint-version_comparison-check'
gem 'simplecov'
gem 'github_changelog_generator', {"git"=>"https://github.com/skywinder/github-changelog-generator", "ref"=>"20ee04ba1234e9e83eb2ffb5056e23d641c7a018", "groups"=>["development"]}
gem 'github_changelog_generator', {"git"=>"https://github.com/skywinder/github-changelog-generator", "ref"=>"20ee04ba1234e9e83eb2ffb5056e23d641c7a018", "groups"=>["development"]} if RUBY_VERSION >= '2.2.2'
gem 'puppet-blacksmith', '>= 4.1.0', {"groups"=>["development"]}
gem 'beaker', '>= 4.0.0', {"groups"=>["system_tests"]}
gem 'beaker', '>= 4.2.0', {"groups"=>["system_tests"]}
gem 'beaker-docker', {"groups"=>["system_tests"]}
gem 'beaker-hostgenerator', '>= 1.1.10', {"groups"=>["system_tests"]}
gem 'beaker-puppet', {"groups"=>["system_tests"]}
Expand All @@ -36,7 +36,6 @@ gem 'beaker-module_install_helper', {"groups"=>["system_tests"]}
gem 'beaker-puppet_install_helper', {"groups"=>["system_tests"]}
gem 'metadata-json-lint'
gem 'kafo_module_lint'
gem 'rgen'
gem 'parallel_tests'

# vim:ft=ruby
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[![Puppet Forge](https://img.shields.io/puppetforge/v/theforeman/tftp.svg)](https://forge.puppetlabs.com/theforeman/tftp)
[![Build Status](https://travis-ci.org/theforeman/puppet-tftp.svg?branch=master)](https://travis-ci.org/theforeman/puppet-tftp)

# Puppet module for managing a TFTP server

Installs and configures a TFTP server.

Part of the Foreman installer: http://github.com/theforeman/foreman-installer
Part of the Foreman installer: https://github.com/theforeman/foreman-installer

# Contributing

Expand All @@ -12,7 +15,7 @@ Part of the Foreman installer: http://github.com/theforeman/foreman-installer

# More info

See http://theforeman.org or at #theforeman irc channel on freenode
See https://theforeman.org or at #theforeman irc channel on freenode

Copyright (c) 2010-2013 Ohad Levy and their respective owners

Expand All @@ -27,4 +30,4 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.
1 change: 1 addition & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Configure TFTP
# @api private
class tftp::config {
if $tftp::manage_root_dir {
ensure_resource('file', $tftp::root, {'ensure' => 'directory'})
Expand Down
1 change: 1 addition & 0 deletions manifests/install.pp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Install TFTP
# @api private
class tftp::install {
package { $tftp::package:
ensure => installed,
Expand Down
1 change: 1 addition & 0 deletions manifests/service.pp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# TFTP service
# @api private
class tftp::service {

# No service needed if not daemonized
Expand Down
4 changes: 2 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "theforeman-tftp",
"version": "4.3.0",
"version": "4.4.0",
"author": "theforeman",
"summary": "TFTP server configuration",
"license": "GPL-3.0+",
Expand All @@ -26,7 +26,7 @@
"requirements": [
{
"name": "puppet",
"version_requirement": ">= 4.9.0 < 6.0.0"
"version_requirement": ">= 4.9.0 < 7.0.0"
}
],
"operatingsystem_support": [
Expand Down
15 changes: 0 additions & 15 deletions spec/acceptance/nodesets/vagrant_libvirt/centos-6.yml

This file was deleted.

15 changes: 0 additions & 15 deletions spec/acceptance/nodesets/vagrant_libvirt/centos-7.yml

This file was deleted.

15 changes: 0 additions & 15 deletions spec/acceptance/nodesets/vagrant_libvirt/debian-8.yml

This file was deleted.

15 changes: 0 additions & 15 deletions spec/acceptance/nodesets/vagrant_libvirt/debian-9.yml

This file was deleted.

4 changes: 2 additions & 2 deletions spec/acceptance/tftp_redhat_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper_acceptance'

describe 'tftp with explicit daemon', :if => fact('osfamily') == 'RedHat' && fact('operatingsystemmajrelease') == '7' do
describe 'tftp with explicit daemon', if: fact('osfamily') == 'RedHat' && fact('operatingsystemmajrelease') == '7' do
before(:all) do
on hosts, puppet('resource', 'service', 'xinetd', 'ensure=stopped', 'enable=false')
on hosts, puppet('resource', 'service', 'tftp.socket', 'ensure=stopped', 'enable=false')
Expand Down Expand Up @@ -37,7 +37,7 @@ class { 'tftp':
end

# This doesn't work on Travis - actual tftp testing is more reliable anyway
describe port(69), :unless => ENV['TRAVIS'] do
describe port(69), unless: ENV['TRAVIS'] do
it { is_expected.to be_listening.with('udp') }
end

Expand Down
Loading