File tree Expand file tree Collapse file tree 4 files changed +5
-11
lines changed Expand file tree Collapse file tree 4 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 53
53
$logfile = undef ,
54
54
$onlyif = undef ,
55
55
) {
56
-
57
56
if $keyfile {
58
57
$mykeyfile = $keyfile
59
58
} else {
155
154
156
155
exec { "rsync ${name}" :
157
156
command => " rsync -q ${rsync_options} " ,
158
- path => [ ' /bin' , ' /usr/bin' , ' /usr/local/bin' ],
157
+ path => [' /bin' , ' /usr/bin' , ' /usr/local/bin' ],
159
158
user => $execuser ,
160
159
# perform a dry-run to determine if anything needs to be updated
161
160
# this ensures that we only actually create a Puppet event if something needs to
Original file line number Diff line number Diff line change 2
2
#
3
3
# This module manages rsync
4
4
#
5
- class rsync (
5
+ class rsync (
6
6
$package_ensure = ' installed' ,
7
7
$manage_package = true ,
8
8
$puts = {},
9
9
$gets = {},
10
10
) {
11
-
12
11
if $manage_package {
13
12
package { 'rsync' :
14
13
ensure => $package_ensure ,
Original file line number Diff line number Diff line change 38
38
$timeout = ' 900' ,
39
39
$options = ' -a'
40
40
) {
41
-
42
41
if $keyfile {
43
42
$mykeyfile = $keyfile
44
43
} else {
92
91
93
92
exec { "rsync ${name}" :
94
93
command => " rsync -q ${rsync_options} " ,
95
- path => [ ' /bin' , ' /usr/bin' ],
94
+ path => [' /bin' , ' /usr/bin' ],
96
95
# perform a dry-run to determine if anything needs to be updated
97
96
# this ensures that we only actually create a Puppet event if something needs to
98
97
# be updated
Original file line number Diff line number Diff line change 6
6
# class xinetd if use_xinetd is set to true
7
7
# class rsync
8
8
#
9
- class rsync::server (
9
+ class rsync::server (
10
10
Boolean $use_xinetd = true ,
11
11
$address = ' 0.0.0.0' ,
12
12
$motd_file = ' UNSET' ,
22
22
Variant[Boolean, Enum[' mask' ]] $service_enable = true ,
23
23
Boolean $manage_package = $rsync::manage_package ,
24
24
) inherits rsync {
25
-
26
25
if $use_xinetd {
27
26
include xinetd
28
27
xinetd::service { 'rsync' :
33
32
require => Package[' rsync' ],
34
33
}
35
34
} else {
36
-
37
35
# Manage the installation of the rsyncd package?
38
36
if $manage_package {
39
-
40
37
# RHEL8 and newer (and their variants) have a separate package for rsyncd daemon. If the $package_name
41
38
# variable is defined (the variable is defined in the hiera hierarchy), then install the package.
42
39
if $package_name {
43
- package {$package_name:
40
+ package { $package_name:
44
41
ensure => $rsync::package_ensure ,
45
42
notify => Service[$servicename ],
46
43
}
You can’t perform that action at this time.
0 commit comments