GithubHelp home page GithubHelp logo

donivvinod / cookbook-wildfly-clu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lucky-sideburn/cookbook-wildfly-clu

0.0 1.0 0.0 220 KB

Install and configure Wildfly in domain mode

License: Other

Ruby 12.67% HTML 87.33%

cookbook-wildfly-clu's Introduction

wildfly-clu cookbook

Requirements

Centos 6.x

Chef >= 10.12

Vagrant 1.4.3

Virtualbox

Usage

With Vagrant: "cd wildfly-clu && vagrant up"

With Chef: add [ wildfly-clu:default ,wildfly-clu:logs, wildfly:domain ] in your run list:

"recipe[java]", "recipe[wildfly-clu::default]", "recipe[wildfly-clu::logs]", "recipe[wildfly-clu::domain]"

Put these in yout hosts file:

33.33.33.11 myserver1

33.33.33.12 myserver2

33.33.33.13 myserver3

After the installation connect to:

http://myserver1:9990/console (WildFly admin console)

http://myserver1:22002 (Haproxy admin console)

Point directly to the back-ends

http://myserver1:8080/

http://myserver2:8080/

http://myserver3:8080/

DEFINE EASILY YOUR CLUSTER SCHEMA

    default['wildfly-clu']['cluster_schema']       = {
                                      "myserver1"  => { :role => "domain-controller" , :ip => "33.33.33.13",  :port_offset => "0" },
                                      "myserver2"  => { :role => "slave"  , :ip => "33.33.33.11" , :master => "myserver1" , :port_offset => "0"},
                                      "myserver3"  => { :role => "slave"  , :ip => "33.33.33.12" , :master => "myserver1" , :port_offset => "0" }

                                               }

Attributes

User, group and application name ( app name will be /usr/local/myapplication and /etc/init.d/myapplication )

    #username
default['wildfly-clu']['user']

    #group name
default['wildfly-clu']['group'] = "wildfly"
    
    #app name
default['wildfly-clu']['name']  = "wildfly"  ##/usr/local/SYMBOLIC_LINK  => /usr/local/wildfly-8.8.8-Final

    #Linux service name 
    default['wildfly-clu']['wildfly']['service'] = "wildfly"   (/etc/init.d/SERVICE_NAME)


default['wildfly-clu']['wildfly']['version'] 
default['wildfly-clu']['wildfly']['url']
default['wildfly-clu']['wildfly']['checksum']
default['wildfly-clu']['wildfly']['targz'] 
default['wildfly-clu']['wildfly']['home'] 
default['wildfly-clu']['wildfly']['base']   
default['wildfly-clu']['wildfly']['logs']

    #Set true to deploy the HelloWorld.war
    default['wildfly-clu']['wildfly']['deploy_hello_world'] = true

#set this to true in order to configure an haproxy for the slaves declared in the cluster schema
default['wildfly-clu']['wildfly']['haproxy'] = true

#password for the slave realm.. use encrypted databag for increase security
default['wildfly-clu']['wildfly']['ManagementRealm'] = "a2VybmVscGFuaWMhMTIz"

    Default credential for Wildfly console:
    username:  admin
password:  admin	
    Default username for slave-master communication:
username:  slave
    password:  kernelpanic!123

    In order to configure different user with a different password:
 1. launch on the domain controller server add-user.sh
 2. create and user 
 3. Is this new user going to be used for one AS process to connect to another AS process? 
 e.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls.
 yes/no? yes
 4. Replace mgmt-users.properties mgmt-groups.properties with new new ones in the template dir of this cookbook. 


    THE CLUSTER DEFINITION
     default['wildfly-clu']['cluster_schema']       = {
                                      "myserver1"  => { :role => "domain-controller" , :ip => "33.33.33.13",  :port_offset => "0" },
                                      "myserver2"  => { :role => "slave"  , :ip => "33.33.33.11" , :master => "myserver1" , :port_offset => "0"},
                                      "myserver3"  => { :role => "slave"  , :ip => "33.33.33.12" , :master => "myserver1" , :port_offset => "0" }

                                               }


    DEFAULT java options to use in all slaves and the master for run your deployed the applications. 
     
    default['wildfly-clu']['java_opts'] = {
					           "heap-size" => "128m",
                                                       "max-heap-size" => "128m",
                                                       "permgen-size" => "128m",
                                                       "max-permgen-size"  => "128m"  }

Recipes

default => install Wildfly

domain => configure your cluster

haproxy => install haproxy to see quickly the cluster works

logs => configure log rotation

Author

Author:: Eugenio Marzo ([email protected])

cookbook-wildfly-clu's People

Contributors

lucky-sideburn avatar

Watchers

 avatar

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.