On Wed, 19 Nov 2008 14:08:51 -0600
Mike Renfro wrote:
>
> On 11/19/2008 4:42 AM, Arnau Bria wrote:
>
> > Yep, after reading a little more (puppet is really complex) I have
> > modified things and now I have dependencies between types.
> > All my modules are, now, "defines", and I have a big class where I
> > call my own definitions and there I set my dependencies.
> >
> > define yaim {
> > pbs_client { "pic":
> > require => Local_users["pic_users"],
> > }
> > local_users { "pic_users":
> > require => Local_groups["pic_groups"],
> > }
> >
> > local_groups { "pic_groups":
> > require => File["/opt/localconf/gLite3.1/yaim"],
> > }
> > [...]
>
> I don't think I've seen others write defines like this, but I guess
> it works. I'd have made a yaim class instead. If it's meant to
> represent a particular group of nodes, then I'd subclass a more
> generic node class as needed:
yaim is a configuration tool. It set some gLite env add users, etc...
local_users are unix accounts, but they depend on yaim groups and unix
group aswell, so I'm just trying to say that local_groups must wait
until yaim files exits (and file will notify yaim exec, whihc
is not showed in my code), and local_user must wait for local_groups...
local_users and local_groups are classes with users and groups with
type "user".
Anyway, I've modified a bit all my schema, and now I have yaim class
wich add repos, install yaim soft, creates local user and configures
torque. Dependencies are correlty solved now.
Thanks for your reply.
Arnau
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---