/[adm]/puppet/modules/mga_common/lib/puppet/parser/functions/group_members.rb
ViewVC logotype

Contents of /puppet/modules/mga_common/lib/puppet/parser/functions/group_members.rb

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3254 - (show annotations) (download)
Wed Jun 19 19:15:59 2013 UTC (10 years, 10 months ago) by boklm
File size: 266 byte(s)
Rename mga-common module to mga_common.

New puppet version doesn't like modules with a - in their name.
1 require 'etc'
2 # group_members($group)
3 # -> return a array with the login of the group members
4
5 module Puppet::Parser::Functions
6 newfunction(:group_members, :type => :rvalue) do |args|
7 group = args[0]
8 return Etc.getgrnam(group).mem
9 end
10 end

  ViewVC Help
Powered by ViewVC 1.1.30