projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove vivaldi (RT#3802)
[mirror/dsa-puppet.git]
/
modules
/
vsftpd
/
manifests
/
site.pp
diff --git
a/modules/vsftpd/manifests/site.pp
b/modules/vsftpd/manifests/site.pp
index
338a592
..
f8a71a0
100644
(file)
--- a/
modules/vsftpd/manifests/site.pp
+++ b/
modules/vsftpd/manifests/site.pp
@@
-9,13
+9,15
@@
define vsftpd::site (
$ensure=present
){
$ensure=present
){
- include vsftpd
::nolisten
+ include vsftpd
case $ensure {
present,absent: {}
default: { fail ( "Invald ensure `$ensure' for $name" ) }
}
case $ensure {
present,absent: {}
default: { fail ( "Invald ensure `$ensure' for $name" ) }
}
+ $ftpsite = $name
+
$fname = "/etc/vsftpd-${name}.conf"
file { $fname:
$fname = "/etc/vsftpd-${name}.conf"
file { $fname:
@@
-24,8
+26,14
@@
define vsftpd::site (
}
file { "/etc/logrotate.d/vsftpd-${name}":
}
file { "/etc/logrotate.d/vsftpd-${name}":
- ensure => $ensure,
- content => template('vsftpd/logrotate.erb')
+ ensure => absent
+ }
+
+ munin::check { "vsftpd-${name}":
+ script => 'vsftpd'
+ }
+ munin::conf { "vsftpd-${name}":
+ content => template('vsftpd/munin.erb')
}
# We don't need a firewall rule because it's added in vsftp.pp
}
# We don't need a firewall rule because it's added in vsftp.pp
@@
-40,4
+48,5
@@
define vsftpd::site (
require => File[$fname]
}
require => File[$fname]
}
+ Service['vsftpd']->Service['xinetd']
}
}