Skip to content

clambertus/puppet-glassfish

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppet-glassfish

A puppet module for installing Glassfish, including support for clustering.

##Notes This is the initial release of the Glassfish module. Some flexibility is already built into the module, more will be added down the line. Ex. providers for the install only includes 'custom' at the moment. In later releases, the installer might take in a version number and pull the official release from the web. As always, contributions are welcome!

Nodes are currently configured as CONFIG type. SSH support will be added in a later release.

##Requirements Java JDK is required to be installed prior to installing Glassfish using this module. The user and group specified must exist.

##Usage

Install Glassfish using a provided linux sh installer

class {glassfish:
  target      => '/u01/glassfish',
  provider    => 'custom',
  installfile => '/tmp/glassfish-3.1.2.2-unix.sh',
  domain      => 'testDomain',
  adminuser   => 'admin',
  adminpass   => 'helloworld',
  adminport   => '4848',
  httpport    => '8080',
  jdk         => '/u01/java',
  user        => 'glassfish',
  group       => 'glassfish',
  secureadmin => 'true',
  startdomain => 'true',
}

Create the Glassfish DAS setup and create the cluster. If multicast_ip and multicast_port are not specified, Glassfish will choose them for you. The domain must be started for this process to work as it uses asadmin commands.

glassfish::cluster {'test_cluster':
  gfbase         => '/u01/glassfish',
  gfdomain       => 'domain1',
  asadmin        => '/u01/glassfish/glassfish/bin/asadmin',
  is_das         => true,
  gfuser         => 'glassfish',
  cluster_name   => 'testCluster',
  das_host       => 'localhost',
  das_port       => '4848',
  das_pass       => 'helloworld',
  multicast_ip   => '228.9.242.21',
  multicast_port => '27745'
  instances      => ['instance1', 'instance2'],

}

Create local-instances on a node and add it to the cluster 'testCluster'.

glassfish::cluster {'test_cluster':
  gfbase         => '/u01/glassfish',
  gfdomain       => 'domain1',
  asadmin        => '/u01/glassfish/glassfish/bin/asadmin',
  instances      => ['instance1', 'instance2'],
  gfuser         => 'glassfish',
  cluster_name   => 'testCluster',
  das_host       => '172.16.225.135',
  das_port       => '4848',
  das_pass       => 'helloworld',
  multicast_ip   => '228.9.242.21',
  multicast_port => '27745',

}

About

Glassfish module for puppet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Puppet 91.1%
  • HTML 8.9%