summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README17
-rw-r--r--manifests/base.pp8
2 files changed, 9 insertions, 16 deletions
diff --git a/README b/README
index 50a2bb9..2487f20 100644
--- a/README
+++ b/README
@@ -49,14 +49,15 @@ shorewall.conf, simply do this:
NOTE: this requires the augeas ruby bindings newer than 0.7.3.
-If you need to, you can provide an entire shorewall.conf by placing it in one of
-the following locations:
-
- "puppet:///modules/site-shorewall/${fqdn}/shorewall.conf.$operatingsystem",
- "puppet:///modules/site-shorewall/${fqdn}/shorewall.conf",
- "puppet:///modules/site-shorewall/shorewall.conf.$operatingsystem.$lsbdistcodename",
- "puppet:///modules/site-shorewall/shorewall.conf.$operatingsystem",
- "puppet:///modules/site-shorewall/shorewall.conf"
+If you need to, you can provide an entire shorewall.conf by overriding the file
+resource, for example:
+
+class site_shorewall::config inherits shorewall::base {
+
+ File["/etc/shorewall/shorewall.conf"] {
+ source => "puppet:///modules/site_shorewall/${::fqdn}/shorewall.conf.${::operatingsystem}",
+ }
+}
NOTE: if you distribute a file, you cannot also use augeas, puppet and augeas
will fight forever
diff --git a/manifests/base.pp b/manifests/base.pp
index 0007e40..7dd025f 100644
--- a/manifests/base.pp
+++ b/manifests/base.pp
@@ -6,14 +6,6 @@ class shorewall::base {
# This file has to be managed in place, so shorewall can find it
file {
'/etc/shorewall/shorewall.conf':
- # use OS specific defaults, but use Default if no other is found
- source => [
- "puppet:///modules/site_shorewall/${::fqdn}/shorewall.conf.${::operatingsystem}",
- "puppet:///modules/site_shorewall/${::fqdn}/shorewall.conf",
- "puppet:///modules/site_shorewall/shorewall.conf.${::operatingsystem}.${::lsbdistcodename}",
- "puppet:///modules/site_shorewall/shorewall.conf.${::operatingsystem}",
- "puppet:///modules/site_shorewall/shorewall.conf",
- ],
require => Package[shorewall],
notify => Service[shorewall],
owner => root, group => 0, mode => 0644;