Added function groupmembers which returns list of members in given system group.
This commit is contained in:
parent
160f43ee28
commit
0a818cc10f
1 changed files with 9 additions and 0 deletions
9
util/lib/puppet/parser/functions/groupmembers.rb
Normal file
9
util/lib/puppet/parser/functions/groupmembers.rb
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
|
||||||
|
require 'etc'
|
||||||
|
|
||||||
|
module Puppet::Parser::Functions
|
||||||
|
newfunction(:groupmembers, :type => :rvalue) do |args|
|
||||||
|
Etc.getgrnam(args[0])['mem']
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue