projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fdd1e9d
)
etc/default/stunnel kills FILES
author
Peter Palfrader
<peter@palfrader.org>
Tue, 24 May 2011 10:06:24 +0000
(12:06 +0200)
committer
Peter Palfrader
<peter@palfrader.org>
Tue, 24 May 2011 10:06:24 +0000
(12:06 +0200)
modules/stunnel4/manifests/init.pp
patch
|
blob
|
history
diff --git
a/modules/stunnel4/manifests/init.pp
b/modules/stunnel4/manifests/init.pp
index
af5a22b
..
8b26a06
100644
(file)
--- a/
modules/stunnel4/manifests/init.pp
+++ b/
modules/stunnel4/manifests/init.pp
@@
-88,9
+88,14
@@
class stunnel4 {
;
"restart_stunnel":
command => "true && cd / && env -i /etc/init.d/stunnel4 restart",
;
"restart_stunnel":
command => "true && cd / && env -i /etc/init.d/stunnel4 restart",
- require => [ File['/etc/stunnel/stunnel.conf'], Exec['enable_stunnel4'], Package['stunnel4'] ],
+ require => [ File['/etc/stunnel/stunnel.conf'], Exec['enable_stunnel4'],
Exec['kill_file_override'],
Package['stunnel4'] ],
refreshonly => true,
;
refreshonly => true,
;
+ "kill_file_override":
+ command => "sed -i -e 's/^FILES=/#&/' /etc/default/stunnel4",
+ onlyif => "grep -q '^FILES=' /etc/default/stunnel4",
+ require => [ Package['stunnel4'] ],
+ ;
}
}
}
}