summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-01-24 15:45:08 -0500
committerMicah Anderson <micah@riseup.net>2013-01-24 15:45:08 -0500
commitd3d58a60bb582875a63e78245fb697d18a10877e (patch)
tree2f5121c78d4338c3572a67a29fea1943cc390221 /manifests
parente511291a111db7a7d88a8820c5423aa5b92304e0 (diff)
make sure that the augeas class has been applied before attempting to do any
augeas operations. without this, you will non-deterministically get: err: /Stage[main]/Shorewall::Base/Augeas[shorewall_module_config_path]: Could not evaluate: Save failed with return code false
Diffstat (limited to 'manifests')
-rw-r--r--manifests/base.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/base.pp b/manifests/base.pp
index 537c2a6..ccb528f 100644
--- a/manifests/base.pp
+++ b/manifests/base.pp
@@ -15,11 +15,14 @@ class shorewall::base {
owner => root, group => 0, mode => 0644;
}
+ include augeas
+
augeas { 'shorewall_module_config_path':
changes => 'set /files/etc/shorewall/shorewall.conf/CONFIG_PATH \'"/etc/shorewall/puppet:/etc/shorewall:/usr/share/shorewall"\'',
lens => 'Shellvars.lns',
incl => '/etc/shorewall/shorewall.conf',
- notify => Service[shorewall];
+ notify => Service[shorewall],
+ require => Class[augeas];
}
service{shorewall: