Do not mask vsftpd.service in each site
[mirror/dsa-puppet.git] / modules / vsftpd / manifests / init.pp
index 7f0be8f..876e865 100644 (file)
@@ -18,6 +18,14 @@ class vsftpd {
                notify  => Service['vsftpd']
        }
 
+       # Mask the vsftpd service as we are using xinetd
+       file { '/etc/systemd/system/vsftpd.service':
+               ensure => 'link',
+               target => '/dev/null',
+               notify => Exec['systemctl daemon-reload'],
+       }
+
+
        munin::check { 'vsftpd':
                ensure => absent
        }
@@ -42,5 +50,4 @@ class vsftpd {
                        Package['debian.org']
                ]
        }
-
 }