Skip to content

Commit 32eea68

Browse files
authored
Merge pull request #335 from voxpupuli/modulesync
modulesync 2.7.0
2 parents 5fe64cd + 447c182 commit 32eea68

File tree

7 files changed

+19
-77
lines changed

7 files changed

+19
-77
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

.msync.yml

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

.sync.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@
1010
- set: debian8-64
1111
secure: "RbqNJ7PwiJ3oqmytAqMmpETDLD9zB0Dadx1485L69QnhHAFSAo9dcTeSFepbXYMYfAM1tlxpk9Rb3IvR0Ii+BiWRFxD6KxI1npwBaTPsO6P4rLF9OoEq1H1XecHi5m1n7McN4yO2QbeRLJ7DDL+dTV4MpG5FB+52YK53OjxjFtc="
1212
spec/spec_helper.rb:
13-
mock_with: ':rspec'
1413
hiera_config: "'spec/fixtures/hiera/hiera.yaml'"

.travis.yml

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ dist: xenial
33
language: ruby
44
cache: bundler
55
before_install:
6-
- sh ./.travis/setup.sh
6+
- gem update --system
7+
- gem update bundler
8+
- bundle --version
79
script:
810
- 'bundle exec rake $CHECK'
911
matrix:
@@ -31,11 +33,6 @@ matrix:
3133
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=ubuntu1804-64vpnserver.ma{hostname=vpnserver}-ubuntu1804-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
3234
services: docker
3335
sudo: required
34-
- rvm: 2.5.3
35-
bundler_args: --without development release
36-
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6-nightly BEAKER_debug=true BEAKER_setfile=ubuntu1804-64vpnserver.ma{hostname=vpnserver}-ubuntu1804-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
37-
services: docker
38-
sudo: required
3936
- rvm: 2.5.3
4037
bundler_args: --without development release
4138
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=ubuntu1604-64vpnserver.ma{hostname=vpnserver}-ubuntu1604-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
@@ -46,11 +43,6 @@ matrix:
4643
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=ubuntu1604-64vpnserver.ma{hostname=vpnserver}-ubuntu1604-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
4744
services: docker
4845
sudo: required
49-
- rvm: 2.5.3
50-
bundler_args: --without development release
51-
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6-nightly BEAKER_debug=true BEAKER_setfile=ubuntu1604-64vpnserver.ma{hostname=vpnserver}-ubuntu1604-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
52-
services: docker
53-
sudo: required
5446
- rvm: 2.5.3
5547
bundler_args: --without development release
5648
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=ubuntu1404-64vpnserver.ma{hostname=vpnserver}-ubuntu1604-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
@@ -61,11 +53,6 @@ matrix:
6153
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=ubuntu1404-64vpnserver.ma{hostname=vpnserver}-ubuntu1604-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
6254
services: docker
6355
sudo: required
64-
- rvm: 2.5.3
65-
bundler_args: --without development release
66-
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6-nightly BEAKER_debug=true BEAKER_setfile=ubuntu1404-64vpnserver.ma{hostname=vpnserver}-ubuntu1604-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
67-
services: docker
68-
sudo: required
6956
- rvm: 2.5.3
7057
bundler_args: --without development release
7158
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=centos7-64vpnserver.ma{hostname=vpnserver}-centos7-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
@@ -76,11 +63,6 @@ matrix:
7663
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=centos7-64vpnserver.ma{hostname=vpnserver}-centos7-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
7764
services: docker
7865
sudo: required
79-
- rvm: 2.5.3
80-
bundler_args: --without development release
81-
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6-nightly BEAKER_debug=true BEAKER_setfile=centos7-64vpnserver.ma{hostname=vpnserver}-centos7-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
82-
services: docker
83-
sudo: required
8466
- rvm: 2.5.3
8567
bundler_args: --without development release
8668
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=centos6-64vpnserver.ma{hostname=vpnserver}-centos7-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
@@ -91,11 +73,6 @@ matrix:
9173
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=centos6-64vpnserver.ma{hostname=vpnserver}-centos7-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
9274
services: docker
9375
sudo: required
94-
- rvm: 2.5.3
95-
bundler_args: --without development release
96-
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6-nightly BEAKER_debug=true BEAKER_setfile=centos6-64vpnserver.ma{hostname=vpnserver}-centos7-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
97-
services: docker
98-
sudo: required
9976
- rvm: 2.5.3
10077
bundler_args: --without development release
10178
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=debian9-64vpnserver.ma{hostname=vpnserver}-debian9-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
@@ -106,11 +83,6 @@ matrix:
10683
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=debian9-64vpnserver.ma{hostname=vpnserver}-debian9-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
10784
services: docker
10885
sudo: required
109-
- rvm: 2.5.3
110-
bundler_args: --without development release
111-
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6-nightly BEAKER_debug=true BEAKER_setfile=debian9-64vpnserver.ma{hostname=vpnserver}-debian9-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
112-
services: docker
113-
sudo: required
11486
- rvm: 2.5.3
11587
bundler_args: --without development release
11688
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=debian8-64vpnserver.ma{hostname=vpnserver}-debian8-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
@@ -121,11 +93,6 @@ matrix:
12193
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=debian8-64vpnserver.ma{hostname=vpnserver}-debian8-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
12294
services: docker
12395
sudo: required
124-
- rvm: 2.5.3
125-
bundler_args: --without development release
126-
env: PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6-nightly BEAKER_debug=true BEAKER_setfile=debian8-64vpnserver.ma{hostname=vpnserver}-debian8-64vpnclienta.a{hostname=vpnclienta} BEAKER_HYPERVISOR=docker CHECK=beaker
127-
services: docker
128-
sudo: required
12996
branches:
13097
only:
13198
- master

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.5.1
1+
FROM ruby:2.5.3
22

33
WORKDIR /opt/puppet
44

Gemfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def location_for(place, fake_version = nil)
1111
end
1212

1313
group :test do
14-
gem 'puppetlabs_spec_helper', '>= 2.11.0', :require => false
14+
gem 'puppetlabs_spec_helper', '>= 2.14.0', :require => false
1515
gem 'rspec-puppet-facts', '>= 1.8.0', :require => false
1616
gem 'rspec-puppet-utils', :require => false
1717
gem 'puppet-lint-leading_zero-check', :require => false
@@ -20,6 +20,7 @@ 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
2526
gem 'rubocop', '~> 0.49.1', :require => false
@@ -64,7 +65,7 @@ group :release do
6465
gem 'github_changelog_generator', :require => false, :git => 'https://github.com/github-changelog-generator/github-changelog-generator'
6566
gem 'puppet-blacksmith', :require => false
6667
gem 'voxpupuli-release', :require => false, :git => 'https://github.com/voxpupuli/voxpupuli-release-gem'
67-
gem 'puppet-strings', '>= 1.0', :require => false
68+
gem 'puppet-strings', '>= 2.2', :require => false
6869
end
6970

7071

Rakefile

Lines changed: 8 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,12 @@ require 'puppetlabs_spec_helper/rake_tasks'
33
# load optional tasks for releases
44
# only available if gem group releases is installed
55
begin
6-
require 'puppet_blacksmith/rake_tasks'
76
require 'voxpupuli/release/rake_tasks'
8-
require 'puppet-strings/tasks'
97
rescue LoadError
108
end
119

1210
PuppetLint.configuration.log_format = '%{path}:%{line}:%{check}:%{KIND}:%{message}'
13-
PuppetLint.configuration.fail_on_warnings = true
14-
PuppetLint.configuration.send('relative')
15-
PuppetLint.configuration.send('disable_140chars')
16-
PuppetLint.configuration.send('disable_class_inherits_from_params_class')
17-
PuppetLint.configuration.send('disable_documentation')
18-
PuppetLint.configuration.send('disable_single_quote_string_with_variables')
11+
PuppetLint.configuration.absolute_classname_reverse = true
1912

2013
exclude_paths = %w(
2114
pkg/**/*
@@ -28,19 +21,16 @@ PuppetSyntax.exclude_paths = exclude_paths
2821

2922
desc 'Auto-correct puppet-lint offenses'
3023
task 'lint:auto_correct' do
31-
PuppetLint.configuration.fix = true
32-
Rake::Task[:lint].invoke
24+
Rake::Task[:lint_fix].invoke
3325
end
3426

3527
desc 'Run acceptance tests'
3628
RSpec::Core::RakeTask.new(:acceptance) do |t|
3729
t.pattern = 'spec/acceptance'
3830
end
3931

40-
desc 'Run tests release_checks'
41-
task test: [
42-
:release_checks,
43-
]
32+
desc 'Run tests'
33+
task test: [:release_checks]
4434

4535
namespace :check do
4636
desc 'Check for trailing whitespace'
@@ -69,25 +59,10 @@ task test_with_coveralls: [:test] do
6959
end
7060
end
7161

72-
desc "Print supported beaker sets"
73-
task 'beaker_sets', [:directory] do |t, args|
74-
directory = args[:directory]
75-
76-
metadata = JSON.load(File.read('metadata.json'))
77-
78-
(metadata['operatingsystem_support'] || []).each do |os|
79-
(os['operatingsystemrelease'] || []).each do |release|
80-
if directory
81-
beaker_set = "#{directory}/#{os['operatingsystem'].downcase}-#{release}"
82-
else
83-
beaker_set = "#{os['operatingsystem'].downcase}-#{release}-x64"
84-
end
85-
86-
filename = "spec/acceptance/nodesets/#{beaker_set}.yml"
87-
88-
puts beaker_set if File.exists? filename
89-
end
90-
end
62+
desc 'Generate REFERENCE.md'
63+
task :reference, [:debug, :backtrace] do |t, args|
64+
patterns = ''
65+
Rake::Task['strings:generate:reference'].invoke(patterns, args[:debug], args[:backtrace])
9166
end
9267

9368
begin

0 commit comments

Comments
 (0)