Signed-off-by: Stephen Gran <steve@lobefin.net>
}
service { 'vsftpd':
- ensure => running,
+ ensure => stopped,
require => Package['vsftpd']
}
+ file { '/etc/vsftpd.conf':
+ content => "listen=NO\n",
+ require => Package['vsftpd'],
+ notify => Service['vsftpd']
+ }
+
munin::check { 'vsftpd': }
munin::check { 'ps_vsftpd':
script => 'ps_'
+++ /dev/null
-class vsftpd::nolisten inherits vsftpd {
-
- Service['vsftpd'] {
- ensure => stopped,
- }
-
- Service['vsftpd']->Service['xinetd']
-
- file { '/etc/vsftpd.conf':
- content => "listen=NO\n",
- notify => Service['vsftpd']
- }
-}
$ensure=present
){
- include vsftpd::nolisten
+ include vsftpd
case $ensure {
present,absent: {}
require => File[$fname]
}
+ Service['vsftpd']->Service['xinetd']
}