El 10/06/15 a las 22:03, Albert Shih escribió:
Hi,

I would like to known if it's possible to extend a module without touching
the module.

I mean let's take sample :

   If I want use

     apache (from puppetlabs)

   but each time I create a vhost with

     apache::vhost { 'thing' : }

   i want also add a nagios check on my nagios server.

For that I can :

   Change a small amount of code inside the module apache.

     --> not very complicated but each time they are a update I need to redo
     the modification.

   Create my own module who just call the official apache module. But that's
   suck too because they are ton of parameter. Of course I don't need all of
   them, but with time this module going to grow. And I get same problem
   with update.

So are they some technics to do that ? In other way how you do that ?

I think that this problem is resolved better with a role&profile design than directly extending the module.

--
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información
y las Comunicaciones Aplicadas (ATICA)
http://www.um.es/atica
Tfo: 868887590
Fax: 868888337

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/55792334.3010009%40um.es.
For more options, visit https://groups.google.com/d/optout.

Reply via email to