aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mga_common/lib/puppet/parser/functions/group_members.rb
blob: 0324adb2aa5a4218463c11b64ebcbd73f32f4570 (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