summaryrefslogtreecommitdiff
path: root/manifests/printer.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/printer.pp')
-rw-r--r--manifests/printer.pp24
1 files changed, 4 insertions, 20 deletions
diff --git a/manifests/printer.pp b/manifests/printer.pp
index b44f65a..87a5942 100644
--- a/manifests/printer.pp
+++ b/manifests/printer.pp
@@ -1,21 +1,5 @@
-class firewall::printer {
- shorewall::rule { "cups-tcp":
- action => 'ACCEPT',
- source => 'net',
- destination => '$FW',
- proto => 'tcp',
- destinationport => "631",
- ratelimit => '-',
- order => 200,
- }
-
- shorewall::rule { "cups-udp":
- action => 'ACCEPT',
- source => 'net',
- destination => '$FW',
- proto => 'udp',
- destinationport => "631",
- ratelimit => '-',
- order => 201,
- }
+class firewall::printer(
+ $implementation = lookup('firewall::implementation', undef, undef, 'shorewall'),
+) {
+ class { "firewall::implementations::${implementation}::printer": }
}