aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-12-22 00:45:39 +0100
committermh <mh@immerda.ch>2009-12-22 00:45:39 +0100
commit55975d2828e16c4eeb5445ffe94106c85a4a1e44 (patch)
treeeb6d10b1e7e87a46aa9a98aa8020bd3a7f42a317 /manifests
parent2e66998a4cec0b8995b04267b80ab2cb988931f7 (diff)
downloadpuppet-shorewall-55975d2828e16c4eeb5445ffe94106c85a4a1e44.tar.gz
puppet-shorewall-55975d2828e16c4eeb5445ffe94106c85a4a1e44.tar.bz2
include modules_dir in class
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp88
1 files changed, 45 insertions, 43 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index dd03c66..f4a1848 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,49 +1,51 @@
-modules_dir { "shorewall": }
-
class shorewall {
- case $operatingsystem {
- gentoo: { include shorewall::gentoo }
- debian: { include shorewall::debian }
- centos: { include shorewall::base }
- ubuntu: {
- case $lsbdistcodename {
- karmic: { include shorewall::ubuntu::karmic }
- default: { include shorewall::debian }
- }
- }
- default: { notice "unknown operatingsystem: $operatingsystem"
- include shorewall::base }
- }
+ modules_dir { "shorewall": }
- file {"/var/lib/puppet/modules/shorewall":
- ensure => directory,
- force => true,
- owner => root, group => 0, mode => 0755;
+ case $operatingsystem {
+ gentoo: { include shorewall::gentoo }
+ debian: { include shorewall::debian }
+ centos: { include shorewall::base }
+ ubuntu: {
+ case $lsbdistcodename {
+ karmic: { include shorewall::ubuntu::karmic }
+ default: { include shorewall::debian }
+ }
}
+ default: {
+ notice "unknown operatingsystem: $operatingsystem"
+ include shorewall::base
+ }
+ }
+
+ file {"/var/lib/puppet/modules/shorewall":
+ ensure => directory,
+ force => true,
+ owner => root, group => 0, mode => 0755;
+ }
- # See http://www.shorewall.net/3.0/Documentation.htm#Zones
- shorewall::managed_file{ zones: }
- # See http://www.shorewall.net/3.0/Documentation.htm#Interfaces
- shorewall::managed_file{ interfaces: }
- # See http://www.shorewall.net/3.0/Documentation.htm#Hosts
- shorewall::managed_file { hosts: }
- # See http://www.shorewall.net/3.0/Documentation.htm#Policy
- shorewall::managed_file { policy: }
- # See http://www.shorewall.net/3.0/Documentation.htm#Rules
- shorewall::managed_file { rules: }
- # See http://www.shorewall.net/3.0/Documentation.htm#Masq
- shorewall::managed_file{ masq: }
- # See http://www.shorewall.net/3.0/Documentation.htm#ProxyArp
- shorewall::managed_file { proxyarp: }
- # See http://www.shorewall.net/3.0/Documentation.htm#NAT
- shorewall::managed_file { nat: }
- # See http://www.shorewall.net/3.0/Documentation.htm#Blacklist
- shorewall::managed_file { blacklist: }
- # See http://www.shorewall.net/3.0/Documentation.htm#rfc1918
- shorewall::managed_file { rfc1918: }
- # See http://www.shorewall.net/3.0/Documentation.htm#Routestopped
- shorewall::managed_file { routestopped: }
- # See http://www.shorewall.net/3.0/Documentation.htm#Variables
- shorewall::managed_file { params: }
+ # See http://www.shorewall.net/3.0/Documentation.htm#Zones
+ shorewall::managed_file{ zones: }
+ # See http://www.shorewall.net/3.0/Documentation.htm#Interfaces
+ shorewall::managed_file{ interfaces: }
+ # See http://www.shorewall.net/3.0/Documentation.htm#Hosts
+ shorewall::managed_file { hosts: }
+ # See http://www.shorewall.net/3.0/Documentation.htm#Policy
+ shorewall::managed_file { policy: }
+ # See http://www.shorewall.net/3.0/Documentation.htm#Rules
+ shorewall::managed_file { rules: }
+ # See http://www.shorewall.net/3.0/Documentation.htm#Masq
+ shorewall::managed_file{ masq: }
+ # See http://www.shorewall.net/3.0/Documentation.htm#ProxyArp
+ shorewall::managed_file { proxyarp: }
+ # See http://www.shorewall.net/3.0/Documentation.htm#NAT
+ shorewall::managed_file { nat: }
+ # See http://www.shorewall.net/3.0/Documentation.htm#Blacklist
+ shorewall::managed_file { blacklist: }
+ # See http://www.shorewall.net/3.0/Documentation.htm#rfc1918
+ shorewall::managed_file { rfc1918: }
+ # See http://www.shorewall.net/3.0/Documentation.htm#Routestopped
+ shorewall::managed_file { routestopped: }
+ # See http://www.shorewall.net/3.0/Documentation.htm#Variables
+ shorewall::managed_file { params: }
}