Skip to content

Commit 2ca6bc1

Browse files
authored
Merge pull request #589 from voxpupuli/modulesync
modulesync 2.5.1 and drop Puppet 4
2 parents 1d50892 + 84553ed commit 2ca6bc1

File tree

11 files changed

+73
-73
lines changed

11 files changed

+73
-73
lines changed

.github/CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ You can install all needed gems for spec tests into the modules directory by
5151
running:
5252

5353
```sh
54-
bundle install --path .vendor/ --without development --without system_tests --without release
54+
bundle install --path .vendor/ --without development system_tests release
5555
```
5656

5757
If you also want to run acceptance tests:
5858

5959
```sh
60-
bundle install --path .vendor/ --without development --with system_tests --without release
60+
bundle install --path .vendor/ --with system_tests --without development release
6161
```
6262

6363
Our all in one solution if you don't know if you need to install or update gems:
6464

6565
```sh
66-
bundle install --path .vendor/ --without development --with system_tests --without release; bundle update; bundle clean
66+
bundle install --path .vendor/ --with system_tests --without development release; bundle update; bundle clean
6767
```
6868

6969
## Syntax and style

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ Thank you for contributing to this project!
88
-->
99
#### Pull Request (PR) description
1010
<!--
11-
Replace this comment with a description of your pull request.
11+
Replace this comment with a description of your pull request.
1212
-->
1313

1414
#### This Pull Request (PR) fixes the following issues
1515
<!--
16-
Replace this comment with the list of issues or n/a.
17-
Use format:
18-
Fixes #123
19-
Fixes #124
16+
Replace this comment with the list of issues or n/a.
17+
Use format:
18+
Fixes #123
19+
Fixes #124
2020
-->

.msync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
modulesync_config_version: '2.4.0'
1+
modulesync_config_version: '2.5.1'

.travis.yml

Lines changed: 15 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,74 @@
11
---
2-
sudo: false
32
dist: xenial
43
language: ruby
54
cache: bundler
65
before_install:
7-
- rm -f Gemfile.lock
6+
- sh ./.travis/setup.sh
87
script:
98
- 'bundle exec rake $CHECK'
109
matrix:
1110
fast_finish: true
1211
include:
13-
- rvm: 2.1.9
14-
bundler_args: --without system_tests development release
15-
env: PUPPET_VERSION="~> 4.0" CHECK=test PARALLEL_TEST_PROCESSORS=12
1612
- rvm: 2.4.4
1713
bundler_args: --without system_tests development release
1814
env: PUPPET_VERSION="~> 5.0" CHECK=test
19-
- rvm: 2.5.1
15+
- rvm: 2.5.3
2016
bundler_args: --without system_tests development release
2117
env: PUPPET_VERSION="~> 6.0" CHECK=test_with_coveralls
22-
- rvm: 2.5.1
18+
- rvm: 2.5.3
2319
bundler_args: --without system_tests development release
2420
env: PUPPET_VERSION="~> 6.0" CHECK=rubocop
2521
- rvm: 2.4.4
2622
bundler_args: --without system_tests development release
2723
env: PUPPET_VERSION="~> 5.0" CHECK=build DEPLOY_TO_FORGE=yes
28-
- rvm: 2.5.1
24+
- rvm: 2.5.3
2925
bundler_args: --without development release
3026
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=ubuntu1404-64 BEAKER_HYPERVISOR=docker CHECK=beaker
3127
services: docker
32-
sudo: required
33-
- rvm: 2.5.1
28+
- rvm: 2.5.3
3429
bundler_args: --without development release
3530
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=ubuntu1404-64 BEAKER_HYPERVISOR=docker CHECK=beaker
3631
services: docker
37-
sudo: required
38-
- rvm: 2.5.1
32+
- rvm: 2.5.3
3933
bundler_args: --without development release
4034
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6-nightly BEAKER_debug=true BEAKER_setfile=ubuntu1404-64 BEAKER_HYPERVISOR=docker CHECK=beaker
4135
services: docker
42-
sudo: required
43-
- rvm: 2.5.1
36+
- rvm: 2.5.3
4437
bundler_args: --without development release
4538
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=ubuntu1604-64 BEAKER_HYPERVISOR=docker CHECK=beaker
4639
services: docker
47-
sudo: required
48-
- rvm: 2.5.1
40+
- rvm: 2.5.3
4941
bundler_args: --without development release
5042
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=ubuntu1604-64 BEAKER_HYPERVISOR=docker CHECK=beaker
5143
services: docker
52-
sudo: required
53-
- rvm: 2.5.1
44+
- rvm: 2.5.3
5445
bundler_args: --without development release
5546
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6-nightly BEAKER_debug=true BEAKER_setfile=ubuntu1604-64 BEAKER_HYPERVISOR=docker CHECK=beaker
5647
services: docker
57-
sudo: required
58-
- rvm: 2.5.1
48+
- rvm: 2.5.3
5949
bundler_args: --without development release
6050
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=centos7-64 BEAKER_HYPERVISOR=docker CHECK=beaker
6151
services: docker
62-
sudo: required
63-
- rvm: 2.5.1
52+
- rvm: 2.5.3
6453
bundler_args: --without development release
6554
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=centos7-64 BEAKER_HYPERVISOR=docker CHECK=beaker
6655
services: docker
67-
sudo: required
68-
- rvm: 2.5.1
56+
- rvm: 2.5.3
6957
bundler_args: --without development release
7058
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6-nightly BEAKER_debug=true BEAKER_setfile=centos7-64 BEAKER_HYPERVISOR=docker CHECK=beaker
7159
services: docker
72-
sudo: required
73-
- rvm: 2.5.1
60+
- rvm: 2.5.3
7461
bundler_args: --without development release
7562
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=debian8-64 BEAKER_HYPERVISOR=docker CHECK=beaker
7663
services: docker
77-
sudo: required
78-
- rvm: 2.5.1
64+
- rvm: 2.5.3
7965
bundler_args: --without development release
8066
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=debian8-64 BEAKER_HYPERVISOR=docker CHECK=beaker
8167
services: docker
82-
sudo: required
83-
- rvm: 2.5.1
68+
- rvm: 2.5.3
8469
bundler_args: --without development release
8570
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6-nightly BEAKER_debug=true BEAKER_setfile=debian8-64 BEAKER_HYPERVISOR=docker CHECK=beaker
8671
services: docker
87-
sudo: required
8872
branches:
8973
only:
9074
- master

.travis/setup.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
3+
# THIS FILE IS MANAGED BY MODULESYNC
4+
5+
rm -f Gemfile.lock
6+
if [ "${PUPPET_VERSION}" = '~> 4.0' ]; then
7+
gem install bundler -v '< 2' --no-rdoc --no-ri;
8+
else
9+
gem update --system;
10+
gem update bundler;
11+
bundle --version;
12+
fi

Gemfile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@ group :test do
2222
gem 'puppet-lint-variable_contains_upcase', :require => false
2323
gem 'metadata-json-lint', :require => false
2424
gem 'redcarpet', :require => false
25-
gem 'rubocop', '~> 0.49.1', :require => false if RUBY_VERSION >= '2.3.0'
26-
gem 'rubocop-rspec', '~> 1.15.0', :require => false if RUBY_VERSION >= '2.3.0'
25+
gem 'rubocop', '~> 0.49.1', :require => false
26+
gem 'rubocop-rspec', '~> 1.15.0', :require => false
2727
gem 'mocha', '~> 1.4.0', :require => false
2828
gem 'coveralls', :require => false
2929
gem 'simplecov-console', :require => false
30-
gem 'rack', '~> 1.0', :require => false if RUBY_VERSION < '2.2.2'
31-
gem 'parallel_tests', '2.24.0', :require => false if RUBY_VERSION < '2.2.0'
32-
gem 'parallel_tests', :require => false if RUBY_VERSION >= '2.2.0'
30+
gem 'parallel_tests', :require => false
3331
gem 'fakefs', '0.13.3', :require => false if RUBY_VERSION < '2.3.0'
3432
gem 'fakefs', :require => false if RUBY_VERSION >= '2.3.0'
3533
gem 'zabbixapi', :require => false
@@ -60,13 +58,13 @@ group :system_tests do
6058
gem 'beaker-puppet', :require => false
6159
gem 'beaker-puppet_install_helper', :require => false
6260
gem 'beaker-module_install_helper', :require => false
63-
gem 'rbnacl', '>= 4', :require => false if RUBY_VERSION >= '2.2.6'
64-
gem 'rbnacl-libsodium', :require => false if RUBY_VERSION >= '2.2.6'
61+
gem 'rbnacl', '>= 4', :require => false
62+
gem 'rbnacl-libsodium', :require => false
6563
gem 'bcrypt_pbkdf', :require => false
6664
end
6765

6866
group :release do
69-
gem 'github_changelog_generator', :require => false, :git => 'https://github.com/github-changelog-generator/github-changelog-generator' if RUBY_VERSION >= '2.2.2'
67+
gem 'github_changelog_generator', :require => false, :git => 'https://github.com/github-changelog-generator/github-changelog-generator'
7068
gem 'puppet-blacksmith', :require => false
7169
gem 'voxpupuli-release', :require => false, :git => 'https://github.com/voxpupuli/voxpupuli-release-gem'
7270
gem 'puppet-strings', '>= 1.0', :require => false
@@ -80,7 +78,7 @@ else
8078
gem 'facter', :require => false, :groups => [:test]
8179
end
8280

83-
ENV['PUPPET_VERSION'].nil? ? puppetversion = '~> 5.0' : puppetversion = ENV['PUPPET_VERSION'].to_s
81+
ENV['PUPPET_VERSION'].nil? ? puppetversion = '~> 6.0' : puppetversion = ENV['PUPPET_VERSION'].to_s
8482
gem 'puppet', puppetversion, :require => false, :groups => [:test]
8583

8684
# vim: syntax=ruby

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@ The following is an example for using the PostgreSQL as database:
198198
```ruby
199199
node 'proxy.example.com' {
200200
class { 'postgresql::server': }
201-
201+
202202
class { 'zabbix::database':
203203
database_type => 'postgresql',
204204
}
205-
205+
206206
class { 'zabbix::proxy':
207207
zabbix_server_host => '192.168.20.11',
208208
database_type => 'postgresql',
@@ -215,7 +215,7 @@ When you want to make use of an MySQL database as backend:
215215
node 'proxy.example.com' {
216216
class { 'mysql::server': }
217217

218-
class { 'zabbix::database':
218+
class { 'zabbix::database':
219219
database_type => 'mysql',
220220
}
221221

Rakefile

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,27 @@ RSpec::Core::RakeTask.new(:acceptance) do |t|
3737
t.pattern = 'spec/acceptance'
3838
end
3939

40-
desc 'Run tests metadata_lint, release_checks'
40+
desc 'Run tests release_checks'
4141
task test: [
42-
:metadata_lint,
4342
:release_checks,
4443
]
4544

45+
namespace :check do
46+
desc 'Check for trailing whitespace'
47+
task :trailing_whitespace do
48+
Dir.glob('**/*.md', File::FNM_DOTMATCH).sort.each do |filename|
49+
next if filename =~ %r{^((modules|acceptance|\.?vendor|spec/fixtures|pkg)/|REFERENCE.md)}
50+
File.foreach(filename).each_with_index do |line, index|
51+
if line =~ %r{\s\n$}
52+
puts "#{filename} has trailing whitespace on line #{index + 1}"
53+
exit 1
54+
end
55+
end
56+
end
57+
end
58+
end
59+
Rake::Task[:release_checks].enhance ['check:trailing_whitespace']
60+
4661
desc "Run main 'test' task and report merged results to coveralls"
4762
task test_with_coveralls: [:test] do
4863
if Dir.exist?(File.expand_path('../lib', __FILE__))

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"requirements": [
6565
{
6666
"name": "puppet",
67-
"version_requirement": ">= 4.10.0 < 7.0.0"
67+
"version_requirement": ">= 5.5.8 < 7.0.0"
6868
}
6969
],
7070
"operatingsystem_support": [

spec/default_facts.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)