]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/vsftpd/manifests/init.pp
Do not mask vsftpd.service in each site
[dsa-puppet.git] / modules / vsftpd / manifests / init.pp
index 11755b49d9c1fb6134877b35a63f4470d29ececd..876e8654bbd94bfbf66a6ddf6952fa80f46d0b8c 100644 (file)
@@ -18,7 +18,17 @@ class vsftpd {
                notify  => Service['vsftpd']
        }
 
-       munin::check { '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
+       }
        munin::check { 'ps_vsftpd':
                script => 'ps_'
        }
@@ -40,5 +50,4 @@ class vsftpd {
                        Package['debian.org']
                ]
        }
-
 }