Hrm, it might. Only one way to find out I suppose.


On Mon, Oct 7, 2013 at 1:49 PM, Adrien Thebo <notifications@github.com>wrote:

> In lib/puppet/provider/group/gpasswd.rb:
>
> > +
> > +  has_feature :manages_members unless %w{HP-UX Solaris}.include? Facter.value(:operatingsystem)
> > +
> > +  def addcmd
> > +    cmd = []
> > +    cmd << super.shelljoin
> > +
> > +    @resource[:members] and cmd << @resource[:members].map{ |x|
> > +      [ command(:addmember),'-a',x,@resource[:name] ].shelljoin
> > +    }
> > +
> > +    # NOTE: This will create the group but may not add some members to
> > +    # your group if they do not exist on the system. Any member that
> > +    # can be added will be added in an attempt to do "the right
> > +    # thing".
> > +    cmd.join(' && ')
>
> Looking at the Nameservice#create<https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/nameservice.rb#L173>method indicates that we should be able to do something like this:
>
> def create
>   super
>   # Add all our users now that the group is createdend
>
> Why wouldn't this work?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/puppetlabs/puppet/pull/1848/files#r6804354>
> .
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
tvaughan@onyxpoint.com

-- This account not approved for unencrypted proprietary information --