An alternate approach maybe to create a definition in your templates.pp
referred to by the node definition in nodes.pp

so in nodes.pp:-

node 'host1' {
  include node_default
  include deptA
  include any_other_node_specific_bits
}

node 'host2' {
  include node_default
  include deptB
  include any_other_node_specific_bits
}


and in templates.pp:-


class deptA {
    include oracle, ldap, apache       # all of these could refer to modules
and are specific apps for this dep't
}

class deptB {
    include mysql, gcc etc              # modules/ classes specific to deptB
}

class node_default
   include base_class    # as detailed in the book - for items common
regardless of department
}


Cheers
Paul

2009/4/3 Bjørn Dyre Dyresen <bj...@dyresen.net>

>
>
> 2009/4/3 Rene <rene.zbin...@gmail.com>
>
>>
>> Hi
>>
>> Our team is providing Linux servers to different departments in our
>> company. We want to change our configuration management tool and use
>> puppet in the future. I read the book “Pulling Strings with Puppet”
>> and the documentation on the puppet webpage.
>>
>> When I understood correctly, the way to go is to use modules. So we
>> would create modules for ssh, ldap, ntp etc… But the problem I have
>> is, that different IT Departements use different configurations
>> (different ssh config, different ntp conf etc…) So would I put the
>> logic inside this modules or is it better to create different ssh
>> modules for different departments? (I think the second one is not a
>> good choice, since with that we have the same resources defined in the
>> different modules and I think this is a problem, isn’t it?)
>>
>> Another question I have is about the services directory. Is my
>> understanding right, that services is just a grouping of modules?
>>
>> Thanks in advance
>>
>> Rene
>>
>
>
> You can make a fact telling to what department the computer belongs.  Then
> you can use those facts as a selector for what to apply in your modules.
>
> Regards
>
>
>
> >
>


-- 
Paul Matthews
----------------------------------------------------------------------

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to