Giter VIP home page Giter VIP logo

puppet-glassfish's Introduction

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',

}

puppet-glassfish's People

Contributors

danielredoak avatar

Watchers

 avatar  avatar

Forkers

clambertus

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.