]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/vsftpd/manifests/nolisten.pp
and catch vsftp as well
[dsa-puppet.git] / 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']
        }