Code Monkey home page Code Monkey logo

ansible-javax's Introduction

ansible-javax

A module for executing an arbitrary java class or jar in a cleaner, more Ansible-like way.

It is very easy and relatively straight-forward to run a basic Java applications in Ansible using the command or shell modules. Things get complicated and messy pretty quickly when your application needs various options like max heap size or thread stack and has extensive number of class paths and systems properties all being defined on the command line. The javax module helps bring some sanity and readability back to these situations by giving you human-readable argument names and native data structure values to running a Java application from your playbook.

Options:

  • classpath

A list of file system paths the JVM should search to find any dependencies. The module will take the list and properly concatenate the list of values. The equivalent of the -classpath' or -cp' commandline option.

  • executable

Path to java JVM to use. If not supplied, the normal mechanism for resolving binary paths will be used.

  • init_heap_size

Sets initial Java heap size for the application. Equivalent of the `-Xms' 'non-stndard' commandline option.

  • jar

The JAR file that contains the Java class you want to run. Required if the `javaclass' option is omitted.

  • java_args

Specify a list of strings to be passed as parameters to the java application.

  • java_opts

Specify additional java options not supported by this module by passing in a list of strings.

  • javaclass

The main Java class to run. Required if the `jar' option is omitted.

  • max_heap_size

Sets maximum Java heap size for the application. Equivalent of the `-Xmx' 'non-stndard' commandline option.

  • properties

A dict of key value pairs representing system properties to pass the java application being run. This is the equivalent of the `-D' commandline option.

  • thread_stack

Sets java thread stack size for the application. Equivalent of the `-Xss' 'non-stndard' commandline option.

ansible-javax's People

Contributors

tima 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.