]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
and catch vsftp as well
authorStephen Gran <steve@lobefin.net>
Sat, 28 Apr 2012 09:10:51 +0000 (10:10 +0100)
committerStephen Gran <steve@lobefin.net>
Sat, 28 Apr 2012 09:10:51 +0000 (10:10 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/vsftpd/manifests/nolisten.pp

index 9347845e3209107aef983a11e3ae844a1731f1f3..9e45fba1d2c023eb77901bc738a9953c8bbb16da 100644 (file)
@@ -1,14 +1,19 @@
 class vsftpd::nolisten inherits vsftpd {
 
+       $noop = $::hostname ? {
+               villa   => false,
+               default => true
+       }
+
        Service['vsftpd'] {
                ensure => stopped,
-               noop   => true,
+               noop   => $noop,
        }
 
        Service['vsftpd']->Service['xinetd']
 
        file { '/etc/vsftpd.conf':
-               noop    => true,
+               noop    => $noop,
                content => "listen=NO\n",
                notify  => Service['vsftpd']
        }