Virtual users and group gids

13 views
Skip to first unread message

Robert Davidson

unread,
Sep 22, 2014, 7:36:32 PM9/22/14
to puppet...@googlegroups.com
When creating users from hiera, it's simple enough to make them all virtual using create_resources and then realize them. This does leave me with a question, though.

How do I make sure that the assorted groups associated with each user are created with the proper gid? I don't see any easy way to define "If this group is created, use this gid" in puppet. Am I missing something?

--
Robert Davidson


jcbollinger

unread,
Sep 23, 2014, 10:44:04 AM9/23/14
to puppet...@googlegroups.com


On Monday, September 22, 2014 6:36:32 PM UTC-5, Robert Davidson wrote:
When creating users from hiera, it's simple enough to make them all virtual using create_resources and then realize them. This does leave me with a question, though.

How do I make sure that the assorted groups associated with each user are created with the proper gid? I don't see any easy way to define "If this group is created, use this gid" in puppet. Am I missing something?



Perhaps you are missing the Group resource type.  If you want Puppet to manage groups, then those are the vehicle.

Note, however, that that although you get to decide whether any given group is managed, and if it is, you can specify which gid it should have (even for groups that already exist), you cannot lay down such an abstract rule as the one you actually asked for.


John

Reply all
Reply to author
Forward
0 new messages