Hi,

I was thinking that we could simplify cartridge creation process by
creating a base Puppet module which would install common tools like zip,
unzip, tar, wget and also include Java module in this base module.

Basically, the module structure will be like this (not tested);

node /base/ {

    <declarations here>

}


class base {

   package { 'unzip': ensure => installed }
   package { 'tar': ensure => installed }
   package { 'wget': ensure => installed }

   class {'java'}
   class {'agent':}

   Class['java'] ~> Class['agent']

}


Then other Stratos module can include this

node /lb/ inherits base {
  class {'lb': maintenance_mode   => 'norestart',}
}

This will remove lot of redundancy and ugly dependencies we have
now....WDYT?


-- 
Akila Ravihansa Perera
Software Engineer
WSO2 Inc.
http://wso2.com

Phone: +94 77 64 154 38
Blog: http://ravihansa3000.blogspot.com

Reply via email to