Skip to content

Commit 5de6e94

Browse files
authored
Merge pull request #230 from voxpupuli/modulesync
modulesync 3.0.0 & puppet-lint updates
2 parents 75681a5 + 912fe96 commit 5de6e94

File tree

13 files changed

+28
-36
lines changed

13 files changed

+28
-36
lines changed

.github/SECURITY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Vox Pupuli Security Policy
2+
3+
Our vulnerabilities reporting process is at https://voxpupuli.org/security/

.msync.yml

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

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,9 @@ RSpec/RepeatedDescription:
528528
RSpec/NestedGroups:
529529
Enabled: False
530530

531+
RSpec/MultipleExpectations:
532+
Enabled: false
533+
531534
# this is broken on ruby1.9
532535
Layout/IndentHeredoc:
533536
Enabled: False

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
os: linux
23
dist: bionic
34
language: ruby
45
cache: bundler
@@ -7,7 +8,7 @@ before_install:
78
- bundle --version
89
script:
910
- 'bundle exec rake $CHECK'
10-
matrix:
11+
jobs:
1112
fast_finish: true
1213
include:
1314
- rvm: 2.4.4
@@ -92,7 +93,7 @@ notifications:
9293
- "chat.freenode.org#voxpupuli-notifications"
9394
deploy:
9495
provider: puppetforge
95-
user: puppet
96+
username: puppet
9697
password:
9798
secure: "IdEJp5VThHh+3f+EKA1mRtJva+QPZLMJ/8t+y/xNfmOQzT7tx5z0JAON01GBwa9vfsu5uuI1mnnXIJzMJiY7TNl4ogejQoHK/IYKHHqxVq4lerIcCk/eZCpSy1gMOot6+yfoR42n6oiDbXxu638QtCO80KC/S+4TMA6I+QRHw/Y="
9899
on:

Gemfile

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

1313
group :test do
14-
gem 'voxpupuli-test', '>= 1.0.0', :require => false
15-
gem 'coveralls', :require => false
16-
gem 'simplecov-console', :require => false
14+
gem 'voxpupuli-test', '~> 2.0', :require => false
15+
gem 'coveralls', :require => false
16+
gem 'simplecov-console', :require => false
1717
end
1818

1919
group :development do

examples/snmpd-snmptrapd.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
'default /usr/bin/perl /usr/bin/traptoemail me@somewhere.local',
77
'IF-MIB::linkDown /home/nba/bin/traps down',
88
],
9-
trap_forwards => [ 'default udp:2.3.4.5:162' ],
9+
trap_forwards => ['default udp:2.3.4.5:162'],
1010
}

examples/snmpv3_user.pp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33
authpass => '1234auth',
44
privpass => '5678priv',
55
}
6-

examples/trapd.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
'default /usr/bin/perl /usr/bin/traptoemail me@somewhere.local',
88
'IF-MIB::linkDown /home/nba/bin/traps down',
99
],
10-
trap_forwards => [ 'default udp:55.55.55.55:162' ],
10+
trap_forwards => ['default udp:55.55.55.55:162'],
1111
}

manifests/client.pp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
Optional[String[1]] $package_name = undef,
3535
Stdlib::Absolutepath $client_config = '/etc/snmp/snmp.conf',
3636
) {
37-
3837
include snmp
3938

4039
if $ensure == 'present' {

manifests/init.pp

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@
246246
#
247247
class snmp (
248248
Enum['present','absent'] $ensure = 'present',
249-
Array[String[1]] $agentaddress = [ 'udp:127.0.0.1:161', 'udp6:[::1]:161' ],
250-
Array[String[1]] $snmptrapdaddr = [ 'udp:127.0.0.1:162', 'udp6:[::1]:162' ],
249+
Array[String[1]] $agentaddress = ['udp:127.0.0.1:161', 'udp6:[::1]:161'],
250+
Array[String[1]] $snmptrapdaddr = ['udp:127.0.0.1:162', 'udp6:[::1]:162'],
251251
Variant[Undef, String[1], Array[String[1]]] $ro_community = 'public',
252252
Variant[Undef, String[1], Array[String[1]]] $ro_community6 = 'public',
253253
Variant[Undef, String[1], Array[String[1]]] $rw_community = undef,
@@ -260,8 +260,8 @@
260260
String[1] $location = 'Unknown',
261261
String[1] $sysname = $facts['networking']['fqdn'],
262262
Integer $services = 72,
263-
Array[String[1]] $com2sec = [ 'notConfigUser default public' ],
264-
Array[String[1]] $com2sec6 = [ 'notConfigUser default public' ],
263+
Array[String[1]] $com2sec = ['notConfigUser default public'],
264+
Array[String[1]] $com2sec6 = ['notConfigUser default public'],
265265
Array[String[1]] $groups = [
266266
'notConfigGroup v1 notConfigUser',
267267
'notConfigGroup v2c notConfigUser',
@@ -321,7 +321,6 @@
321321
String[1] $varnetsnmp_group = 'root',
322322
Stdlib::Filemode $varnetsnmp_perms = '0755',
323323
) {
324-
325324
$template_snmpd_conf = 'snmp/snmpd.conf.erb'
326325
$template_snmpd_sysconfig = "snmp/snmpd.sysconfig-${facts['os']['family']}.erb"
327326
$template_snmpd_service_dropin = "snmp/snmpd.service-dropin-${facts['os']['family']}.epp"
@@ -429,7 +428,6 @@
429428
require => Package['snmpd'],
430429
}
431430

432-
433431
file { 'snmpd.sysconfig':
434432
ensure => $file_ensure,
435433
path => $sysconfig,
@@ -461,9 +459,8 @@
461459
notify => Service['snmptrapd'],
462460
}
463461
} elsif
464-
( $facts['os']['name'] == 'Ubuntu' and versioncmp($facts['os']['release']['major'], '16.04') >= 0 ) or
465-
( $facts['os']['name'] == 'Debian' and versioncmp($facts['os']['release']['major'], '8') >= 0 )
466-
{
462+
( $facts['os']['name'] == 'Ubuntu' and versioncmp($facts['os']['release']['major'], '16.04') >= 0 ) or
463+
( $facts['os']['name'] == 'Debian' and versioncmp($facts['os']['release']['major'], '8') >= 0 ) {
467464
file { 'snmptrapd.sysconfig':
468465
ensure => $file_ensure,
469466
path => $trap_sysconfig,

0 commit comments

Comments
 (0)