Re: Puppet help - group membership on specific host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 26 Aug 2008, Jesse Keating wrote:
> I need a puppet trick.  We have a shared user, masher, that has write
> access to the mash/ directory on the koji store (but not the packages!).
> This user currently exists on nfs1 and releng2.  On releng2 the user is
> used to run the rawhide creation cron, which involves running mock.  To
> run mock, the user must be in the 'mock' group.  However this group
> (which comes from the mock package) doesn't exist on nfs1 and we'd like
> to keep it that way.
> 
> So, I need a way in puppet to express that the 'masher' user on releng2
> needs to be in the mock group, but only on releng2.
> 
> Any thoughts/examples?  This is probably one of those "puppet tricks" we
> should have in a wiki somewhere.

how about something like:

user {
  "masher":
      ensure  => "present",
      [etcetc]
      groups => $fqdn ? {
        "releng2" => ["mock"],
        "nfs1" => []
      }
}

_______________________________________________
Fedora-infrastructure-list mailing list
Fedora-infrastructure-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux