Giter Site home page Giter Site logo

ansible-role-jetty's Introduction

Ansible role for Jetty installation

Installs Jetty web-server from tarball.

It's inspired by php-coder.jetty role, and adds the following changes:

  • Changed default Jetty version to a newer one

Role Variables

  • jetty_version

    Version of Jetty that will be installed. (Default is 9.3.8.v20160314.)

  • jetty_host

    What host to listen on. By default it listens on all interfaces.

  • jetty_port

    HTTP port to listen on. By default it listens on port 8080.

  • jetty_src_dir

    Directory where tarball will be saved after downloading. (Default is /usr/src.)

  • jetty_dst_dir

    Directory where Jetty distribution will be extracted. (Default is /opt.)

  • jetty_java_options

    Extra options for Java.

  • jetty_user_create

    Whether to create system account for Jetty or not. (Default is true.)

  • jetty_user_login

    User name under which Jetty will run. (Default is jetty.)

  • jetty_user_homedir

    Home directory of Jetty user. Used only when jetty_user_create is true. (Default is /opt/jetty.)

  • jetty_group_create

    Whether to create group account for Jetty or not. (Default is true.)

  • jetty_group_name

    Group name under which Jetty will be run. (Default is jetty.)

Actions role

  • downloads Jetty's distribution to jetty_src_dir
  • creates user/group if enabled
  • unpacks distribution to jetty_dst_dir and sets owner
  • creates symlink (jetty_dst_dir/jetty) to distribution directory
  • creates symlink (/var/log/jetty) to directory with log files
  • creates init script (/etc/init.d/jetty)
  • creates configuration file (/etc/default/jetty)
  • runs Jetty
  • adds Jetty to start on boot

How to install

ansible-galaxy install geoffroya.jetty

For more installation's options/variants read the documentation: http://docs.ansible.com/galaxy.html

Dependencies

Example Playbook

Example of usage with default parameters:

- hosts: all
  roles:
     - geoffroya.jetty

Example of usage with custom host/port and Java options:

- hosts: all
  roles:
     - {
         role: geoffroya.jetty,
         jetty_host: '127.0.0.1',
         jetty_port: 9090,
         jetty_java_options: '-XX:+UseCompressedOops -Dsun.rmi.dgc.client.gcInterval=86400000 -Dsun.rmi.dgc.server.gcInterval=86400000'
       }

Example of usage with existing user and group:

- hosts: all
  roles:
     - {
         role: geoffroya.jetty,
         jetty_user_create: false,
         jetty_user_login: 'www-data',
         jetty_group_create: false,
         jetty_group_name: 'www-data'
       }

License

GPLv2

Author Information

99,99% of the work done by Slava Semushin ([email protected]) 0.01% done by me Geoffroy Arnoud

ansible-role-jetty's People

Contributors

php-coder avatar

Watchers

Aaron Heimlich avatar James Cloos avatar HiredInsight 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.