Git Product home page Git Product logo

ansible-alfbm's Introduction

Alfresco benchmark playbook

This ansible playbook allows one to easily deploy an Alfresco benchmark infrastructure on multiple servers.

Requirements

Software requirement

You of course need Ansible in order to use this playbook. The playbook has been written and tested with Ansible 2.2 and 2.4. If using Ansible <2.4, some non-core modules are needed:

  • ansible-xml by cmprescott (requires python-lxml on remote end) # part of Ansible core since 2.4

This modules has been added to the playbook but you may want to remove it if using Ansible >=2.4 in order to benefit from the latest code for this module (remove it from the /library folder).

Architectural requirement

  • This playbook doesn't deploy SSH keys so please make sure you're using it on nodes that already have the needed SSH keys.
  • At the moment the target hosts need to have direct acces to internet as we are using public repos.
  • All names used in the inventory file need to be fully qualified DNS names resolvable by all hosts.

How to use:

Edit the inventory file and add your (FQDN) hostnames to the appropriate section. If you don't understand the roles of each server, you should probably start reading Derek Huley's documentation about the Alfresco benchmark framework.

To start using the playbook simply start it with:

$ ansible-playbook -i inventory alfbm.yml

If you're loging in as a normal user and need to "sudo", use the command bellow:

$ ansible-playbook -i inventory alfbm.yml -b -K

If some options need to be changed (e.g. java or tomcat version, etc...), edit the group_vars/all file or the host_vars/ if the variable is host specific.

If you need to check what selenium is doing with the browser, you need to:

  • Spawn a VNC server on the load driver where you need to see what's hapenning:
$ x11vnc -display :99 -rfbport 5900
  • You should now be able to attach to the VNC server using any vnc client on display :0 (or by default port 5900).

TODO

  • Make it possible to download software from the Ansible machine instead of target machine (in case target cannot access internet).
  • Allow Oracle JDK usage
  • Allow non-key based play of the book
  • automate VNC server attachment to the virtual X server to be able to see what selenium actually doing headless
  • Use ansible maven module instead of using the ugly URL download

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.