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:
class cae-host {
include timezone-central, ntp, ntpdate
include sudo, syslog-ng
...
}
class public-host inherits cae-host {
package { "nfs-common": ensure => latest }
include active-directory-member
...
}
class cluster-host inherits public-host {
include rsh-server
include fluent
include ganglia::client
...
}
class pe2650-host inherits cluster-host {
include gaussian
include openmpi
include autodocksuite
ganglia::config{
"pe2650":
cluster => "CAE 24-7 Compute Nodes",
mcast_ip => "239.2.11.73";
}
}
node ch226-1, ch226-2, ch226-3, ch226-4, ch226-5 {
include pe2650-host
}
--
Mike Renfro / R&D Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---