Skip to content

Commit 42f1338

Browse files
authored
Merge pull request #874 from voxpupuli/modulesync
modulesync 7.0.0
2 parents 86a35ad + 6a2ccb8 commit 42f1338

File tree

13 files changed

+90
-111
lines changed

13 files changed

+90
-111
lines changed

.fixtures.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ fixtures:
22
repositories:
33
apache: https://github.com/puppetlabs/puppetlabs-apache.git
44
apt: https://github.com/puppetlabs/puppetlabs-apt.git
5-
firewall: https://github.com/puppetlabs/puppetlabs-firewall
5+
firewall:
6+
repo: https://github.com/puppetlabs/puppetlabs-firewall
7+
ref: v6.0.0
68
stdlib: https://github.com/puppetlabs/puppetlabs-stdlib.git
79
concat: https://github.com/puppetlabs/puppetlabs-concat.git
810
postgresql: https://github.com/puppetlabs/puppet-postgresql.git

.github/CONTRIBUTING.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,18 +232,21 @@ simple tests against it after applying the module. You can run this
232232
with:
233233

234234
```sh
235-
BEAKER_setfile=debian11-64 bundle exec rake beaker
235+
BEAKER_PUPPET_COLLECTION=puppet7 BEAKER_setfile=debian11-64 bundle exec rake beaker
236236
```
237237

238-
You can replace the string `debian10` with any common operating system.
238+
You can replace the string `debian11` with any common operating system.
239239
The following strings are known to work:
240240

241-
* ubuntu1804
242241
* ubuntu2004
243-
* debian10
242+
* ubuntu2204
244243
* debian11
245244
* centos7
246245
* centos8
246+
* centos9
247+
* almalinux8
248+
* almalinux9
249+
* fedora36
247250

248251
For more information and tips & tricks, see [voxpupuli-acceptance's documentation](https://github.com/voxpupuli/voxpupuli-acceptance#running-tests).
249252

.gitignore

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# Managed by modulesync - DO NOT EDIT
22
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
33

4-
pkg/
5-
Gemfile.lock
6-
Gemfile.local
7-
vendor/
8-
.vendor/
9-
spec/fixtures/manifests/
10-
spec/fixtures/modules/
11-
.vagrant/
12-
.bundle/
13-
.ruby-version
14-
coverage/
15-
log/
16-
.idea/
17-
.dependencies/
18-
.librarian/
19-
Puppetfile.lock
4+
/pkg/
5+
/Gemfile.lock
6+
/Gemfile.local
7+
/vendor/
8+
/.vendor/
9+
/spec/fixtures/manifests/
10+
/spec/fixtures/modules/
11+
/.vagrant/
12+
/.bundle/
13+
/.ruby-version
14+
/coverage/
15+
/log/
16+
/.idea/
17+
/.dependencies/
18+
/.librarian/
19+
/Puppetfile.lock
2020
*.iml
2121
.*.sw?
22-
.yardoc/
23-
Guardfile
22+
/.yardoc/
23+
/Guardfile

.msync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# Managed by modulesync - DO NOT EDIT
33
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
44

5-
modulesync_config_version: '5.4.0'
5+
modulesync_config_version: '7.0.0'

.pmtignore

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
# Managed by modulesync - DO NOT EDIT
22
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
33

4-
docs/
5-
pkg/
6-
Gemfile
7-
Gemfile.lock
8-
Gemfile.local
9-
vendor/
10-
.vendor/
11-
spec/
12-
Rakefile
13-
.vagrant/
14-
.bundle/
15-
.ruby-version
16-
coverage/
17-
log/
18-
.idea/
19-
.dependencies/
20-
.github/
21-
.librarian/
22-
Puppetfile.lock
4+
/docs/
5+
/pkg/
6+
/Gemfile
7+
/Gemfile.lock
8+
/Gemfile.local
9+
/vendor/
10+
/.vendor/
11+
/spec/
12+
/Rakefile
13+
/.vagrant/
14+
/.bundle/
15+
/.ruby-version
16+
/coverage/
17+
/log/
18+
/.idea/
19+
/.dependencies/
20+
/.github/
21+
/.librarian/
22+
/Puppetfile.lock
2323
*.iml
24-
.editorconfig
25-
.fixtures.yml
26-
.gitignore
27-
.msync.yml
28-
.overcommit.yml
29-
.pmtignore
30-
.rspec
31-
.rspec_parallel
32-
.rubocop.yml
33-
.sync.yml
24+
/.editorconfig
25+
/.fixtures.yml
26+
/.gitignore
27+
/.msync.yml
28+
/.overcommit.yml
29+
/.pmtignore
30+
/.rspec
31+
/.rspec_parallel
32+
/.rubocop.yml
33+
/.sync.yml
3434
.*.sw?
35-
.yardoc/
36-
.yardopts
37-
Dockerfile
35+
/.yardoc/
36+
/.yardopts
37+
/Dockerfile

.rubocop_todo.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2022-03-09 21:00:49 UTC using RuboCop version 1.22.3.
3+
# on 2023-08-17 21:27:12 UTC using RuboCop version 1.50.2.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -19,26 +19,29 @@ Lint/MissingSuper:
1919
Exclude:
2020
- 'spec/serverspec_type_zabbixapi.rb'
2121

22-
# Offense count: 7
22+
# Offense count: 1
2323
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
24-
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
24+
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
2525
Naming/MethodParameterName:
2626
Exclude:
2727
- 'lib/puppet/provider/zabbix_proxy/ruby.rb'
28-
- 'lib/puppet/type/zabbix_host.rb'
29-
- 'lib/puppet/type/zabbix_template.rb'
3028

31-
# Offense count: 4
29+
# Offense count: 3
30+
# This cop supports unsafe autocorrection (--autocorrect-all).
31+
RSpec/BeEq:
32+
Exclude:
33+
- 'spec/acceptance/zabbix_proxy_spec.rb'
34+
- 'spec/unit/puppet/type/zabbix_template_spec.rb'
35+
36+
# Offense count: 1
37+
# This cop supports unsafe autocorrection (--autocorrect-all).
3238
RSpec/EmptyExampleGroup:
3339
Exclude:
3440
- 'spec/classes/agent_spec.rb'
35-
- 'spec/classes/javagateway_spec.rb'
36-
- 'spec/classes/server_spec.rb'
3741

38-
# Offense count: 4
42+
# Offense count: 2
3943
RSpec/RepeatedExampleGroupDescription:
4044
Exclude:
41-
- 'spec/classes/database_mysql_spec.rb'
4245
- 'spec/defines/startup_spec.rb'
4346

4447
# Offense count: 1

Gemfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
55

66
group :test do
7-
gem 'voxpupuli-test', '~> 5.4', :require => false
7+
gem 'voxpupuli-test', '~> 7.0', :require => false
88
gem 'coveralls', :require => false
99
gem 'simplecov-console', :require => false
10-
gem 'puppet_metadata', '~> 2.0', :require => false
10+
gem 'puppet_metadata', '~> 3.0', :require => false
1111
gem 'fakefs', :require => false
1212
gem 'zabbixapi', :require => false
1313
end
@@ -18,19 +18,19 @@ group :development do
1818
end
1919

2020
group :system_tests do
21-
gem 'voxpupuli-acceptance', '~> 1.0', :require => false
21+
gem 'voxpupuli-acceptance', '~> 2.0', :require => false
2222
end
2323

2424
group :release do
25-
gem 'github_changelog_generator', '>= 1.16.1', :require => false if RUBY_VERSION >= '2.5'
26-
gem 'voxpupuli-release', '>= 1.2.0', :require => false
27-
gem 'puppet-strings', '>= 2.2', :require => false
25+
gem 'github_changelog_generator', '>= 1.16.1', :require => false
26+
gem 'voxpupuli-release', '~> 3.0', :require => false
27+
gem 'faraday-retry', '~> 2.1', :require => false
2828
end
2929

3030
gem 'rake', :require => false
3131
gem 'facter', ENV['FACTER_GEM_VERSION'], :require => false, :groups => [:test]
3232

33-
puppetversion = ENV['PUPPET_GEM_VERSION'] || '>= 6.0'
33+
puppetversion = ENV['PUPPET_GEM_VERSION'] || '~> 7.24'
3434
gem 'puppet', puppetversion, :require => false, :groups => [:test]
3535

3636
# vim: syntax=ruby

Rakefile

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ end
2424
begin
2525
require 'voxpupuli/release/rake_tasks'
2626
rescue LoadError
27+
# voxpupuli-release not present
28+
else
29+
GCGConfig.user = 'voxpupuli'
30+
GCGConfig.project = 'puppet-zabbix'
2731
end
2832

2933
desc "Run main 'test' task and report merged results to coveralls"
@@ -37,36 +41,4 @@ task test_with_coveralls: [:test] do
3741
end
3842
end
3943

40-
desc 'Generate REFERENCE.md'
41-
task :reference, [:debug, :backtrace] do |t, args|
42-
patterns = ''
43-
Rake::Task['strings:generate:reference'].invoke(patterns, args[:debug], args[:backtrace])
44-
end
45-
46-
begin
47-
require 'github_changelog_generator/task'
48-
require 'puppet_blacksmith'
49-
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
50-
metadata = Blacksmith::Modulefile.new
51-
config.future_release = "v#{metadata.version}" if metadata.version =~ /^\d+\.\d+.\d+$/
52-
config.header = "# Changelog\n\nAll notable changes to this project will be documented in this file.\nEach new release typically also includes the latest modulesync defaults.\nThese should not affect the functionality of the module."
53-
config.exclude_labels = %w{duplicate question invalid wontfix wont-fix modulesync skip-changelog}
54-
config.user = 'voxpupuli'
55-
config.project = 'puppet-zabbix'
56-
end
57-
58-
# Workaround for https://github.com/github-changelog-generator/github-changelog-generator/issues/715
59-
require 'rbconfig'
60-
if RbConfig::CONFIG['host_os'] =~ /linux/
61-
task :changelog do
62-
puts 'Fixing line endings...'
63-
changelog_file = File.join(__dir__, 'CHANGELOG.md')
64-
changelog_txt = File.read(changelog_file)
65-
new_contents = changelog_txt.gsub(%r{\r\n}, "\n")
66-
File.open(changelog_file, "w") {|file| file.puts new_contents }
67-
end
68-
end
69-
70-
rescue LoadError
71-
end
7244
# vim: syntax=ruby

manifests/repo.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
}
8888
}
8989

90-
if ($facts['os']['release']['major'] == '7' and versioncmp($zabbix_version, '5.0') >= 0) {
90+
if ($facts['os']['name'] == 'CentOS' and $facts['os']['release']['major'] == '7' and versioncmp($zabbix_version, '5.0') >= 0) {
9191
package { 'zabbix-required-scl-repo':
9292
ensure => 'latest',
9393
name => 'centos-release-scl',

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
{
2424
"name": "puppetlabs/firewall",
25-
"version_requirement": ">= 1.7.0 < 4.0.0"
25+
"version_requirement": ">= 1.7.0 < 7.0.0"
2626
},
2727
{
2828
"name": "puppetlabs/apt",

0 commit comments

Comments
 (0)