require the config files before installing denyhosts
authorAntoine Beaupre <anarcat@koumbit.org>
Wed, 9 Dec 2009 03:55:51 +0000 (22:55 -0500)
committerAntoine Beaupre <anarcat@koumbit.org>
Wed, 9 Dec 2009 03:55:51 +0000 (22:55 -0500)
this is to make sure the first run happens with the whitelist

manifests/base.pp

index 18efe2f..cd146a8 100644 (file)
@@ -1,6 +1,8 @@
 class denyhosts::base  {
     package{denyhosts:
         ensure => present,
+        require => [ File["/etc/denyhosts.conf"],
+            File["/var/lib/denyhosts/allowed-hosts"] ],
     }
 
     service{denyhosts: