Skip to content

Commit

Permalink
Merge pull request #83 from crayfishx/bug/auth_members
Browse files Browse the repository at this point in the history
changed attribute_membership to auth_members
  • Loading branch information
deric authored Jul 25, 2017
2 parents c2fc032 + d8be125 commit 172147f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions manifests/group.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,21 @@
# Definition of a Linux/Unix group
#
define accounts::group (
$groupname = $title,
$ensure = 'present',
$members = [],
$gid = undef,
$groupname = $title,
$ensure = 'present',
$members = [],
$gid = undef,
$auth_membership = true,
) {

validate_re($ensure, [ '^absent$', '^present$' ],
'The $ensure parameter must be \'absent\' or \'present\'')

# avoid problems when group declared elsewhere
ensure_resource('group', $groupname, {
'ensure' => $ensure,
'gid' => $gid,
'members' => sort(unique($members)),
'attribute_membership' => 'inclusive',
'ensure' => $ensure,
'gid' => $gid,
'members' => sort(unique($members)),
'auth_membership' => $auth_membership,
})
}

0 comments on commit 172147f

Please sign in to comment.