Remove Rsync::Server::Module defaults
This commit consolidates resource defaults into the resource declaration.
This commit is contained in:
@@ -23,18 +23,15 @@ define swift::storage::device(
|
|||||||
|
|
||||||
$bind_port = $name
|
$bind_port = $name
|
||||||
|
|
||||||
Rsync::Server::Module {
|
rsync::server::module { "${type}${name}":
|
||||||
|
path => $devices,
|
||||||
|
lock_file => "/var/lock/${type}${name}.lock",
|
||||||
uid => $owner,
|
uid => $owner,
|
||||||
gid => $group,
|
gid => $group,
|
||||||
max_connections => $max_connections,
|
max_connections => $max_connections,
|
||||||
read_only => false,
|
read_only => false,
|
||||||
}
|
}
|
||||||
|
|
||||||
rsync::server::module { "${type}${name}":
|
|
||||||
path => $devices,
|
|
||||||
lock_file => "/var/lock/${type}${name}.lock"
|
|
||||||
}
|
|
||||||
|
|
||||||
file { "/etc/swift/${type}-server/${name}.conf":
|
file { "/etc/swift/${type}-server/${name}.conf":
|
||||||
content => template("swift/${type}-server.conf.erb"),
|
content => template("swift/${type}-server.conf.erb"),
|
||||||
owner => $owner,
|
owner => $owner,
|
||||||
|
Reference in New Issue
Block a user