On 3/10/2010 8:54 AM, Jan-Frode Myklebust wrote:
I have this user and group that I need to realize:@user { "policyd": ensure => "present", uid => "103", gid => "103", comment => "Postfix Policy Daemon", home => "/home/policyd", shell => "/bin/bash", } @group { "policyd": ensure => "present", gid => "103", } but how do I make sure the group is created before the user? Only way I can think of is realizing the group in a class that I "require" in the class realizing the user, but that seems silly...
You only have to take care that both the user and the group are realized. Puppet will automatically take care of creating a proper dependency between the two.
If your question was actually about how to realize both user and group, I'd recommend you using tags to mark both and then realize based on the tags.
Regards, David Schmitt -- dasz.at OG Tel: +43 (0)664 2602670 Web: http://dasz.at Klosterneuburg UID: ATU64260999 FB-Nr.: FN 309285 g FB-Gericht: LG Korneuburg -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. 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.
