projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
roll out to wieck
[mirror/dsa-puppet.git]
/
modules
/
vsftpd
/
manifests
/
nolisten.pp
diff --git
a/modules/vsftpd/manifests/nolisten.pp
b/modules/vsftpd/manifests/nolisten.pp
index
c55d745
..
3068a51
100644
(file)
--- a/
modules/vsftpd/manifests/nolisten.pp
+++ b/
modules/vsftpd/manifests/nolisten.pp
@@
-1,13
+1,23
@@
class vsftpd::nolisten inherits vsftpd {
class vsftpd::nolisten inherits vsftpd {
+ $noop = $::hostname ? {
+ villa => false,
+ lobos => false,
+ steffani => false,
+ wieck => false,
+ default => true
+ }
+
Service['vsftpd'] {
ensure => stopped,
Service['vsftpd'] {
ensure => stopped,
- noop =>
true
,
+ noop =>
$noop
,
}
}
+ Service['vsftpd']->Service['xinetd']
+
file { '/etc/vsftpd.conf':
file { '/etc/vsftpd.conf':
- noop =>
true
,
- content =>
'listen=NO'
,
+ noop =>
$noop
,
+ content =>
"listen=NO\n"
,
notify => Service['vsftpd']
}
}
notify => Service['vsftpd']
}
}