From cbccc962548226da000c606f246f6da7d030b0d7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 17 Jul 2010 13:27:37 -0300 Subject: Adding class firewall::cups and package hplip --- manifests/subsystems/firewall.pp | 12 ++++++++++++ manifests/subsystems/utils.pp | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'manifests/subsystems') diff --git a/manifests/subsystems/firewall.pp b/manifests/subsystems/firewall.pp index 75549ac..2239907 100644 --- a/manifests/subsystems/firewall.pp +++ b/manifests/subsystems/firewall.pp @@ -281,3 +281,15 @@ class firewall::wifi { order => '1', } } + +class firewall::cups { + shorewall::rule { "cups": + action => 'ACCEPT', + source => 'net', + destination => '$FW', + proto => 'tcp', + destinationport => "631", + ratelimit => '-', + order => "200", + } +} diff --git a/manifests/subsystems/utils.pp b/manifests/subsystems/utils.pp index 93636a2..ae4b0f0 100644 --- a/manifests/subsystems/utils.pp +++ b/manifests/subsystems/utils.pp @@ -58,7 +58,7 @@ class utils::personal { case $operatingsystem { debian: { - package { [ 'mozilla-firefox-adblock', 'iceweasel', 'sun-java6-jre', ]: + package { [ 'mozilla-firefox-adblock', 'iceweasel', 'sun-java6-jre', 'hplip', ]: ensure => installed, } } -- cgit v1.2.3