diff options
author | Micah Anderson <micah@riseup.net> | 2013-01-24 16:03:26 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2013-01-24 16:03:26 -0500 |
commit | 9e79c7c55755e4cff5097d34c14396fdb0f15f85 (patch) | |
tree | f203b5ccc06f479e3be56c6aec2a06aa15f520ec | |
parent | 00783476d162088eaf7a15a287316c2233ae5465 (diff) | |
download | puppet-shorewall-9e79c7c55755e4cff5097d34c14396fdb0f15f85.tar.gz puppet-shorewall-9e79c7c55755e4cff5097d34c14396fdb0f15f85.tar.bz2 |
fix missing dependency on augeas
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
-rw-r--r-- | manifests/base.pp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/base.pp b/manifests/base.pp index 4324553..f2004ab 100644 --- a/manifests/base.pp +++ b/manifests/base.pp @@ -22,11 +22,14 @@ class shorewall::base { } } + 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: |