On Tue, 18 Nov 2008 16:47:51 -0800
Paul Lathrop wrote:
Hi Paul,
first, thanks for your reply,
> On Mon, Nov 17, 2008 at 7:56 AM, Arnau Bria <[EMAIL PROTECTED]> wrote:
[...]
> You must define dependencies at the "resource" level (though you can
> also define dependencies on defined types and classes; in this way you
> are using them as resources).
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"],
}
[...]
> > If yes, may I call a resource defined in a module from another
> > diferntet?
>
> Resources are essentially global; you may refer to them from any
> module.
>
> I think you might want to take a step back and really think about how
> you want to make the best use of puppet. Make sure your modules
> represent logical chunks of configuration, rather than just grouping
> together all the resources that are similar. Why have a 'packages'
> module? If I were trying to configure an LDAP server, I wouldn't want
> to have the user in a 'system_users' module, the package(s) in
> 'packages' and the startup scripts in 'init.d_stuff' modules; I'd want
> an 'ldap' module that contained all of these resources.
>
> Try thinking in terms of services; in the long run this will allow you
> to get the most out of Puppet.
Thanks for your advice. I've modified things are now "modules" refer
to a complete services... but I come from quattor, and changing my
point of view is quiet hard...
> --Paul
Thanks,
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
-~----------~----~----~----~------~----~------~--~---