Defined Type: clustershell::groupmember
- Defined in:
-
manifests/groupmember.pp
Summary
Manage local.cfg group members
Overview
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'manifests/groupmember.pp', line 13
define clustershell::groupmember (
String $group,
Variant[Array, String] $member = $title,
) {
if $member =~ String {
$members = [$member]
} else {
$members = $member
}
$_members = join($members, ',')
concat::fragment { "clustershell-groups.member ${title}":
target => '/etc/clustershell/groups.d/local.cfg',
content => "${group}: ${_members}\n",
order => '50',
}
}
|