blob: c5cecbe8972379a39a57a129bb8de4f625d3e446 (
plain)
1
2
3
4
5
6
7
8
9
10
|
require 'etc'
# group_members($group)
# -> return a array with the login of the group members
module Puppet::Parser::Functions
newfunction(:group_members, :type => :rvalue) do |args|
group = args[0]
return Etc.getgrnam(group).mem
end
end
|