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:
92f3de5
)
rsync::site: typecheck $ensure parameter
author
Peter Palfrader
<peter@palfrader.org>
Tue, 10 Sep 2019 07:10:17 +0000
(09:10 +0200)
committer
Peter Palfrader
<peter@palfrader.org>
Tue, 10 Sep 2019 07:10:17 +0000
(09:10 +0200)
modules/rsync/manifests/site.pp
patch
|
blob
|
history
diff --git
a/modules/rsync/manifests/site.pp
b/modules/rsync/manifests/site.pp
index
8035dd4
..
c762d6d
100644
(file)
--- a/
modules/rsync/manifests/site.pp
+++ b/
modules/rsync/manifests/site.pp
@@
-3,7
+3,7
@@
define rsync::site (
$source=undef,
$content=undef,
$max_clients=200,
-
$ensure=present
,
+
Enum['present','absent'] $ensure = 'present'
,
$sslname=undef,
) {
include rsync
@@
-11,11
+11,6
@@
define rsync::site (
$fname_real_rsync = "/etc/rsyncd-${name}.conf"
$fname_real_stunnel = "/etc/rsyncd-${name}-stunnel.conf"
- case $ensure {
- present,absent: {}
- default: { fail ( "Invald ensure `${ensure}' for ${name}" ) }
- }
-
$ensure_service = $ensure ? {
present => running,
absent => stopped,