Check the type ref, there is a membership => param that'll do this. On 13/10/2008, at 4:03 PM, "Brian Mathis" <[EMAIL PROTECTED]> wrote:
> > How does one remove a user from a group? > > An example would be that I have user "joe" defined like this: > @user { "joe": > ensure => present, > uid => 1001, > managehome => true, > shell => "/bin/bash", > groups => [ 'user', 'wheel' ], > } > > and later on I decide that he should no longer be in group "wheel". > If I remove the 'wheel' definition from the groups list, puppet does > not remove the user from the group. Is there another way to specify > that the user should be explicitly removed? > > Thanks. > > lsbdistdescription => CentOS release 5.2 (Final) > lsbdistid => CentOS > lsbdistrelease => 5.2 > puppetversion => 0.24.4 > rubysitedir => /usr/lib/ruby/site_ruby/1.8 > rubyversion => 1.8.5 > facterversion => 1.3.8 > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---