Skip to content

Commit bf22956

Browse files
authored
Merge pull request #372 from david22swan/bugfix/main/firewall_fix
(BACKWARDS-INCOMPATIBLE) Update firewall manifests to use `jump` instead of `action`
2 parents 8d91395 + 15d3867 commit bf22956

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

.fixtures.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ fixtures:
1717
postgresql:
1818
repo: 'https://github.com/puppetlabs/puppetlabs-postgresql.git'
1919
ref: 'v9.2.0'
20-
firewall:
21-
repo: 'https://github.com/puppetlabs/puppetlabs-firewall.git'
22-
ref: 'v6.0.0'
20+
firewall: 'https://github.com/puppetlabs/puppetlabs-firewall.git'
2321
symlinks:
2422
puppetdb: '#{source_dir}'

manifests/server/firewall.pp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
1111

1212
if ($open_http_port) {
1313
firewall { "${http_port} accept - puppetdb":
14-
dport => $http_port,
15-
proto => 'tcp',
16-
action => 'accept',
14+
dport => $http_port,
15+
proto => 'tcp',
16+
jump => 'accept',
1717
}
1818
}
1919

2020
if ($open_ssl_port) {
2121
firewall { "${ssl_port} accept - puppetdb":
22-
dport => $ssl_port,
23-
proto => 'tcp',
24-
action => 'accept',
22+
dport => $ssl_port,
23+
proto => 'tcp',
24+
jump => 'accept',
2525
}
2626
}
2727
}

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
{
2020
"name": "puppetlabs/firewall",
21-
"version_requirement": ">= 1.1.3 < 7.0.0"
21+
"version_requirement": ">= 7.0.0 < 8.0.0"
2222
},
2323
{
2424
"name": "puppetlabs/stdlib",

spec/support/unit/shared/server.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
.with(
2222
dport: with[:http_port],
2323
proto: 'tcp',
24-
action: 'accept',
24+
jump: 'accept',
2525
)
2626
}
2727

@@ -31,7 +31,7 @@
3131
.with(
3232
dport: with[:ssl_port],
3333
proto: 'tcp',
34-
action: 'accept',
34+
jump: 'accept',
3535
)
3636
}
3737
end

0 commit comments

Comments
 (0)