Skip to content

Commit e87db52

Browse files
authored
Merge pull request #467 from voxpupuli/modulesync
modulesync 2.5.1 and drop Puppet 4
2 parents ba07fbb + 1c17417 commit e87db52

File tree

13 files changed

+73
-105
lines changed

13 files changed

+73
-105
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.3.1'
1+
modulesync_config_version: '2.5.1'

.travis.yml

Lines changed: 24 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,138 +1,100 @@
11
---
2-
sudo: false
3-
dist: trusty
2+
dist: xenial
43
language: ruby
54
cache: bundler
65
before_install:
7-
- rm -f Gemfile.lock
6+
- gem update --system
7+
- gem update bundler
8+
- bundle --version
89
script:
910
- 'bundle exec rake $CHECK'
1011
matrix:
1112
fast_finish: true
1213
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
1614
- rvm: 2.4.4
1715
bundler_args: --without system_tests development release
1816
env: PUPPET_VERSION="~> 5.0" CHECK=test
19-
- rvm: 2.5.1
17+
- rvm: 2.5.3
2018
bundler_args: --without system_tests development release
2119
env: PUPPET_VERSION="~> 6.0" CHECK=test_with_coveralls
22-
- rvm: 2.5.1
20+
- rvm: 2.5.3
2321
bundler_args: --without system_tests development release
2422
env: PUPPET_VERSION="~> 6.0" CHECK=rubocop
2523
- rvm: 2.4.4
2624
bundler_args: --without system_tests development release
2725
env: PUPPET_VERSION="~> 5.0" CHECK=build DEPLOY_TO_FORGE=yes
28-
- rvm: 2.5.1
26+
- rvm: 2.5.3
2927
bundler_args: --without development release
30-
dist: trusty
3128
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
3229
services: docker
33-
sudo: required
34-
- rvm: 2.5.1
30+
- rvm: 2.5.3
3531
bundler_args: --without development release
36-
dist: trusty
3732
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
3833
services: docker
39-
sudo: required
40-
- rvm: 2.5.1
34+
- rvm: 2.5.3
4135
bundler_args: --without development release
42-
dist: trusty
4336
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
4437
services: docker
45-
sudo: required
46-
- rvm: 2.5.1
38+
- rvm: 2.5.3
4739
bundler_args: --without development release
48-
dist: trusty
4940
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
5041
services: docker
51-
sudo: required
52-
- rvm: 2.5.1
42+
- rvm: 2.5.3
5343
bundler_args: --without development release
54-
dist: trusty
5544
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
5645
services: docker
57-
sudo: required
58-
- rvm: 2.5.1
46+
- rvm: 2.5.3
5947
bundler_args: --without development release
60-
dist: trusty
6148
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
6249
services: docker
63-
sudo: required
64-
- rvm: 2.5.1
50+
- rvm: 2.5.3
6551
bundler_args: --without development release
66-
dist: trusty
6752
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=ubuntu1804-64 BEAKER_HYPERVISOR=docker CHECK=beaker
6853
services: docker
69-
sudo: required
70-
- rvm: 2.5.1
54+
- rvm: 2.5.3
7155
bundler_args: --without development release
72-
dist: trusty
7356
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=ubuntu1804-64 BEAKER_HYPERVISOR=docker CHECK=beaker
7457
services: docker
75-
sudo: required
76-
- rvm: 2.5.1
58+
- rvm: 2.5.3
7759
bundler_args: --without development release
78-
dist: trusty
7960
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6-nightly BEAKER_debug=true BEAKER_setfile=ubuntu1804-64 BEAKER_HYPERVISOR=docker CHECK=beaker
8061
services: docker
81-
sudo: required
82-
- rvm: 2.5.1
62+
- rvm: 2.5.3
8363
bundler_args: --without development release
84-
dist: trusty
8564
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
8665
services: docker
87-
sudo: required
88-
- rvm: 2.5.1
66+
- rvm: 2.5.3
8967
bundler_args: --without development release
90-
dist: trusty
9168
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
9269
services: docker
93-
sudo: required
94-
- rvm: 2.5.1
70+
- rvm: 2.5.3
9571
bundler_args: --without development release
96-
dist: trusty
9772
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
9873
services: docker
99-
sudo: required
100-
- rvm: 2.5.1
74+
- rvm: 2.5.3
10175
bundler_args: --without development release
102-
dist: trusty
10376
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=debian9-64 BEAKER_HYPERVISOR=docker CHECK=beaker
10477
services: docker
105-
sudo: required
106-
- rvm: 2.5.1
78+
- rvm: 2.5.3
10779
bundler_args: --without development release
108-
dist: trusty
10980
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=debian9-64 BEAKER_HYPERVISOR=docker CHECK=beaker
11081
services: docker
111-
sudo: required
112-
- rvm: 2.5.1
82+
- rvm: 2.5.3
11383
bundler_args: --without development release
114-
dist: trusty
11584
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6-nightly BEAKER_debug=true BEAKER_setfile=debian9-64 BEAKER_HYPERVISOR=docker CHECK=beaker
11685
services: docker
117-
sudo: required
118-
- rvm: 2.5.1
86+
- rvm: 2.5.3
11987
bundler_args: --without development release
120-
dist: trusty
12188
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
12289
services: docker
123-
sudo: required
124-
- rvm: 2.5.1
90+
- rvm: 2.5.3
12591
bundler_args: --without development release
126-
dist: trusty
12792
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
12893
services: docker
129-
sudo: required
130-
- rvm: 2.5.1
94+
- rvm: 2.5.3
13195
bundler_args: --without development release
132-
dist: trusty
13396
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
13497
services: docker
135-
sudo: required
13698
branches:
13799
only:
138100
- master

Gemfile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,15 @@ group :test do
2020
gem 'puppet-lint-classes_and_types_beginning_with_digits-check', :require => false
2121
gem 'puppet-lint-unquoted_string-check', :require => false
2222
gem 'puppet-lint-variable_contains_upcase', :require => false
23+
gem 'puppet-lint-absolute_classname-check', :require => false
2324
gem 'metadata-json-lint', :require => false
2425
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'
26+
gem 'rubocop', '~> 0.49.1', :require => false
27+
gem 'rubocop-rspec', '~> 1.15.0', :require => false
2728
gem 'mocha', '~> 1.4.0', :require => false
2829
gem 'coveralls', :require => false
2930
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'
31+
gem 'parallel_tests', :require => false
3332
end
3433

3534
group :development do
@@ -57,13 +56,13 @@ group :system_tests do
5756
gem 'beaker-puppet', :require => false
5857
gem 'beaker-puppet_install_helper', :require => false
5958
gem 'beaker-module_install_helper', :require => false
60-
gem 'rbnacl', '>= 4', :require => false if RUBY_VERSION >= '2.2.6'
61-
gem 'rbnacl-libsodium', :require => false if RUBY_VERSION >= '2.2.6'
59+
gem 'rbnacl', '>= 4', :require => false
60+
gem 'rbnacl-libsodium', :require => false
6261
gem 'bcrypt_pbkdf', :require => false
6362
end
6463

6564
group :release do
66-
gem 'github_changelog_generator', :require => false, :git => 'https://github.com/github-changelog-generator/github-changelog-generator' if RUBY_VERSION >= '2.2.2'
65+
gem 'github_changelog_generator', :require => false, :git => 'https://github.com/github-changelog-generator/github-changelog-generator'
6766
gem 'puppet-blacksmith', :require => false
6867
gem 'voxpupuli-release', :require => false, :git => 'https://github.com/voxpupuli/voxpupuli-release-gem'
6968
gem 'puppet-strings', '>= 1.0', :require => false
@@ -77,7 +76,7 @@ else
7776
gem 'facter', :require => false, :groups => [:test]
7877
end
7978

80-
ENV['PUPPET_VERSION'].nil? ? puppetversion = '~> 5.0' : puppetversion = ENV['PUPPET_VERSION'].to_s
79+
ENV['PUPPET_VERSION'].nil? ? puppetversion = '~> 6.0' : puppetversion = ENV['PUPPET_VERSION'].to_s
8180
gem 'puppet', puppetversion, :require => false, :groups => [:test]
8281

8382
# vim: syntax=ruby

Rakefile

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ end
1111

1212
PuppetLint.configuration.log_format = '%{path}:%{line}:%{check}:%{KIND}:%{message}'
1313
PuppetLint.configuration.fail_on_warnings = true
14+
PuppetLint.configuration.absolute_classname_reverse = true
1415
PuppetLint.configuration.send('relative')
1516
PuppetLint.configuration.send('disable_140chars')
1617
PuppetLint.configuration.send('disable_class_inherits_from_params_class')
@@ -37,12 +38,27 @@ RSpec::Core::RakeTask.new(:acceptance) do |t|
3738
t.pattern = 'spec/acceptance'
3839
end
3940

40-
desc 'Run tests metadata_lint, release_checks'
41+
desc 'Run tests release_checks'
4142
task test: [
42-
:metadata_lint,
4343
:release_checks,
4444
]
4545

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

manifests/pip/bootstrap.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Variant[Boolean, String] $manage_python = false,
1414
) inherits ::python::params {
1515
if $manage_python {
16-
include ::python
16+
include python
1717
} else {
1818
$target_src_pip_path = $facts['os']['family'] ? {
1919
'AIX' => '/opt/freeware/bin',

manifests/pyvenv.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
$environment = [],
3434
) {
3535

36-
include ::python
36+
include python
3737

3838
if $ensure == 'present' {
3939
$python_version = $version ? {

manifests/requirements.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
$timeout = 1800,
4444
) {
4545

46-
include ::python
46+
include python
4747

4848
if $virtualenv == 'system' and ($owner != 'root' or $group != 'root') {
4949
fail('python::pip: root user must be used when virtualenv is system')

manifests/virtualenv.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
$extra_pip_args = '',
5252
$virtualenv = undef
5353
) {
54-
include ::python
54+
include python
5555
$python_provider = getparam(Class['python'], 'provider')
5656
$anaconda_path = getparam(Class['python'], 'anaconda_install_path')
5757

0 commit comments

Comments
 (0)