Skip to content

Commit 44b5e36

Browse files
authored
Merge pull request #209 from voxpupuli/modulesync
modulesync 10.6.0
2 parents 70bd4e2 + 7cd118b commit 44b5e36

File tree

10 files changed

+61
-48
lines changed

10 files changed

+61
-48
lines changed

.devcontainer/devcontainer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
21
{
32
"name": "VoxBox",
43
"image": "ghcr.io/voxpupuli/voxbox:latest"

.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: '10.5.0'
5+
modulesync_config_version: '10.6.0'

.rubocop.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
inherit_from: .rubocop_todo.yml
3+
24
# Managed by modulesync - DO NOT EDIT
35
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
46

.rubocop_todo.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This configuration was generated by
2+
# `rubocop --auto-gen-config --no-auto-gen-timestamp`
3+
# using RuboCop version 1.85.1.
4+
# The point is for the user to remove these configuration records
5+
# one by one as the offenses are removed from the code base.
6+
# Note that changes in the inspected code, or installation of new
7+
# versions of RuboCop, may require this file to be generated again.
8+
9+
# Offense count: 6
10+
RSpec/LeakyLocalVariable:
11+
Exclude:
12+
- 'spec/acceptance/ferm_spec.rb'

Gemfile

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

66
group :test do
7-
gem 'voxpupuli-test', '~> 13.0', :require => false
7+
gem 'voxpupuli-test', '~> 14.0', :require => false
88
gem 'puppet_metadata', '~> 6.0', :require => false
99
end
1010

@@ -18,7 +18,7 @@ group :system_tests do
1818
end
1919

2020
group :release do
21-
gem 'voxpupuli-release', '~> 5.0', :require => false
21+
gem 'voxpupuli-release', '~> 5.3', :require => false
2222
end
2323

2424
gem 'rake', :require => false

spec/acceptance/ferm_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
[
1313
'-A INPUT -p tcp -m tcp --dport 22 -m comment --comment allow_acceptance_tests -j ACCEPT',
1414
'-A INPUT -p tcp -m tcp --dport 80 -m comment --comment jump_http -j HTTP',
15-
'-A HTTP -s 127.0.0.1/32 -p tcp -m tcp --dport 80 -m comment --comment allow_http_localhost -j ACCEPT'
15+
'-A HTTP -s 127.0.0.1/32 -p tcp -m tcp --dport 80 -m comment --comment allow_http_localhost -j ACCEPT',
1616
]
1717
else
1818
[
1919
'-A INPUT -p tcp -m comment --comment ["]*allow_acceptance_tests["]* -m tcp --dport 22 -j ACCEPT',
2020
'-A INPUT -p tcp -m comment --comment ["]*jump_http["]* -m tcp --dport 80 -j HTTP',
21-
'-A HTTP -s 127.0.0.1/32 -p tcp -m comment --comment ["]*allow_http_localhost["]* -m tcp --dport 80 -j ACCEPT'
21+
'-A HTTP -s 127.0.0.1/32 -p tcp -m comment --comment ["]*allow_http_localhost["]* -m tcp --dport 80 -j ACCEPT',
2222
]
2323
end
2424

spec/classes/ferm_spec.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
# the following string exists only if we preserve chains
7373

7474
it do
75-
expect(subject).to contain_concat__fragment('ferm.conf'). \
76-
without_content(%r{@preserve;})
75+
expect(subject).to contain_concat__fragment('ferm.conf')
76+
.without_content(%r{@preserve;})
7777
end
7878

7979
it { is_expected.to contain_concat__fragment('raw-PREROUTING-config-include') }
@@ -181,25 +181,25 @@
181181
let :params do
182182
{
183183
manage_configfile: true,
184-
preserve_chains_in_tables: { 'nat' => %w[PREROUTING POSTROUTING] }
184+
preserve_chains_in_tables: { 'nat' => %w[PREROUTING POSTROUTING] },
185185
}
186186
end
187187

188188
it { is_expected.to compile.with_all_deps }
189189

190190
it do
191-
expect(subject).to contain_concat__fragment('ferm.conf'). \
192-
with_content(%r{domain \(ip ip6\) table nat \{})
191+
expect(subject).to contain_concat__fragment('ferm.conf')
192+
.with_content(%r{domain \(ip ip6\) table nat \{})
193193
end
194194

195195
it do
196-
expect(subject).to contain_concat__fragment('ferm.conf'). \
197-
with_content(%r{chain PREROUTING @preserve;})
196+
expect(subject).to contain_concat__fragment('ferm.conf')
197+
.with_content(%r{chain PREROUTING @preserve;})
198198
end
199199

200200
it do
201-
expect(subject).to contain_concat__fragment('ferm.conf'). \
202-
with_content(%r{chain POSTROUTING @preserve;})
201+
expect(subject).to contain_concat__fragment('ferm.conf')
202+
.with_content(%r{chain POSTROUTING @preserve;})
203203
end
204204
end
205205

spec/defines/chain_spec.rb

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@
1818
let :params do
1919
{
2020
disable_conntrack: false,
21-
log_dropped_packets: true
21+
log_dropped_packets: true,
2222
}
2323
end
2424

2525
it { is_expected.to compile.with_all_deps }
2626
it { is_expected.to contain_concat__fragment('filter-INPUT2-config-include') }
2727

2828
it do
29-
expect(subject).to contain_concat__fragment('filter-INPUT2-policy'). \
30-
with_content(%r{ESTABLISHED RELATED})
29+
expect(subject).to contain_concat__fragment('filter-INPUT2-policy')
30+
.with_content(%r{ESTABLISHED RELATED})
3131
end
3232

3333
it do
34-
expect(subject).to contain_concat__fragment('filter-INPUT2-footer'). \
35-
with_content(%r{LOG log-prefix 'INPUT2: ';})
34+
expect(subject).to contain_concat__fragment('filter-INPUT2-footer')
35+
.with_content(%r{LOG log-prefix 'INPUT2: ';})
3636
end
3737

3838
if facts[:os]['name'] == 'Debian'
@@ -47,21 +47,21 @@
4747
let :params do
4848
{
4949
disable_conntrack: true,
50-
log_dropped_packets: false
50+
log_dropped_packets: false,
5151
}
5252
end
5353

5454
it { is_expected.to compile.with_all_deps }
5555

5656
it do
5757
expect(subject).to contain_concat__fragment('filter-INPUT2-policy')
58-
expect(subject).not_to contain_concat__fragment('filter-INPUT2-policy'). \
59-
with_content(%r{ESTABLISHED RELATED})
58+
expect(subject).not_to contain_concat__fragment('filter-INPUT2-policy')
59+
.with_content(%r{ESTABLISHED RELATED})
6060
end
6161

6262
it do
63-
expect(subject).not_to contain_concat__fragment('filter-INPUT2-footer'). \
64-
with_content(%r{LOG log-prefix 'INPUT2: ';})
63+
expect(subject).not_to contain_concat__fragment('filter-INPUT2-footer')
64+
.with_content(%r{LOG log-prefix 'INPUT2: ';})
6565
end
6666
end
6767

@@ -71,7 +71,7 @@
7171
chain: 'INPUT2',
7272
policy: 'DROP',
7373
disable_conntrack: true,
74-
log_dropped_packets: false
74+
log_dropped_packets: false,
7575
}
7676
end
7777

@@ -82,16 +82,16 @@
8282
let(:title) { 'FERM-DSL' }
8383
let :params do
8484
{
85-
content: 'mod rpfilter invert DROP;'
85+
content: 'mod rpfilter invert DROP;',
8686
}
8787
end
8888

8989
it { is_expected.to compile.with_all_deps }
9090
it { is_expected.to contain_concat__fragment('filter-FERM-DSL-config-include') }
9191

9292
it do
93-
expect(subject).to contain_concat__fragment('filter-FERM-DSL-custom-content'). \
94-
with_content(%r{mod rpfilter invert DROP;})
93+
expect(subject).to contain_concat__fragment('filter-FERM-DSL-custom-content')
94+
.with_content(%r{mod rpfilter invert DROP;})
9595
end
9696

9797
it do

spec/defines/ipset_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
{
2020
sets: {
2121
office: 'ACCEPT',
22-
internet: 'DROP'
23-
}
22+
internet: 'DROP',
23+
},
2424
}
2525
end
2626

spec/defines/rule_spec.rb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
chain: 'INPUT',
2121
proto: 'tcp',
2222
dport: 22,
23-
saddr: '127.0.0.1'
23+
saddr: '127.0.0.1',
2424
}
2525
end
2626

@@ -35,7 +35,7 @@
3535
action: 'ACCEPT',
3636
proto: 'tcp',
3737
dport: 22,
38-
saddr: '127.0.0.1'
38+
saddr: '127.0.0.1',
3939
}
4040
end
4141

@@ -55,7 +55,7 @@
5555
proto: 'tcp',
5656
dport: 22,
5757
saddr: '127.0.0.1',
58-
interface: 'eth0'
58+
interface: 'eth0',
5959
}
6060
end
6161

@@ -74,7 +74,7 @@
7474
proto: 'tcp',
7575
dport: 22,
7676
daddr: ['127.0.0.1', '123.123.123.123', ['10.0.0.1', '10.0.0.2']],
77-
interface: 'eth0'
77+
interface: 'eth0',
7878
}
7979
end
8080

@@ -93,7 +93,7 @@
9393
proto: 'tcp',
9494
dport: 22,
9595
daddr: ['127.0.0.1', '123.123.123.123', ['10.0.0.1', '10.0.0.2']],
96-
negate: %w[saddr daddr sport]
96+
negate: %w[saddr daddr sport],
9797
}
9898
end
9999

@@ -112,7 +112,7 @@
112112
action: 'ACCEPT',
113113
proto: %w[tcp udp],
114114
dport: [8301, 8302],
115-
saddr: '127.0.0.1'
115+
saddr: '127.0.0.1',
116116
}
117117
end
118118

@@ -131,7 +131,7 @@
131131
action: 'ACCEPT',
132132
proto: 'tcp',
133133
dport: '20000:25000',
134-
saddr: '127.0.0.1'
134+
saddr: '127.0.0.1',
135135
}
136136
end
137137

@@ -151,7 +151,7 @@
151151
proto: 'tcp',
152152
dport: '20000:25000',
153153
saddr: '127.0.0.1',
154-
negate: %w[saddr dport]
154+
negate: %w[saddr dport],
155155
}
156156
end
157157

@@ -170,7 +170,7 @@
170170
action: 'ACCEPT',
171171
proto: 'tcp',
172172
sport: '25000:20000',
173-
saddr: '127.0.0.1'
173+
saddr: '127.0.0.1',
174174
}
175175
end
176176

@@ -185,7 +185,7 @@
185185
action: 'ACCEPT',
186186
proto: 'tcp',
187187
dport: '50000:65538',
188-
saddr: '127.0.0.1'
188+
saddr: '127.0.0.1',
189189
}
190190
end
191191

@@ -200,7 +200,7 @@
200200
action: 'ACCEPT',
201201
proto: 'tcp',
202202
dport: '65538',
203-
saddr: '127.0.0.1'
203+
saddr: '127.0.0.1',
204204
}
205205
end
206206

@@ -215,7 +215,7 @@
215215
action: 'ACCEPT',
216216
proto: 'tcp',
217217
sport: 65_538,
218-
saddr: '127.0.0.1'
218+
saddr: '127.0.0.1',
219219
}
220220
end
221221

@@ -238,17 +238,17 @@
238238
chain: 'INPUT',
239239
action: 'SSH',
240240
proto: 'tcp',
241-
dport: 22
241+
dport: 22,
242242
}
243243
end
244244

245245
it { is_expected.to compile.with_all_deps }
246246
it { is_expected.to contain_concat__fragment('filter-SSH-policy') }
247247

248248
it do
249-
expect(subject).to contain_concat__fragment('INPUT-filter-ssh'). \
250-
with_content("mod comment comment 'filter-ssh' proto tcp dport 22 jump SSH;\n"). \
251-
that_requires('Ferm::Chain[check-ssh]')
249+
expect(subject).to contain_concat__fragment('INPUT-filter-ssh')
250+
.with_content("mod comment comment 'filter-ssh' proto tcp dport 22 jump SSH;\n")
251+
.that_requires('Ferm::Chain[check-ssh]')
252252
end
253253

254254
it { is_expected.to contain_concat__fragment('filter-INPUT-config-include') }
@@ -277,7 +277,7 @@
277277
action: 'ACCEPT',
278278
proto: 'tcp',
279279
dport: 22,
280-
saddr: '127.0.0.1'
280+
saddr: '127.0.0.1',
281281
}
282282
end
283283

0 commit comments

Comments
 (0)