Mask the vsftpd service as we are launching it from xinetd
authorPaul Wise <pabs@debian.org>
Wed, 10 Jun 2015 02:36:43 +0000 (10:36 +0800)
committerPaul Wise <pabs@debian.org>
Wed, 10 Jun 2015 02:38:14 +0000 (10:38 +0800)
modules/vsftpd/manifests/site.pp

index f8a71a0..9cdacde 100644 (file)
@@ -48,5 +48,12 @@ define vsftpd::site (
                require     => File[$fname]
        }
 
+       # 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'],
+       }
+
        Service['vsftpd']->Service['xinetd']
 }