gstlt / ansible-jarservice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jarservice

Ansible role which configures service being started by java -jar file.jar command line

Installation

This has been tested on Ansible 1.9.4 and higher.

To install:

git clone 

Variables

jarservice_name: jarservice
runas_user: root
jar_path: /opt/{{ jarservice_name }}

There's a lot more knobs and bolts to set, which you can find in the defaults/main.yml

Testing

This project comes with a Vagrantfile, this is a fast and easy way to test changes to the role, fire it up with vagrant up

See vagrant docs for getting setup with vagrant

Once your VM is up, you can reprovision it using either vagrant provision, or ansible-playbook tests/playbook.yaml -i inventory

You will need to provide some jar file in order this to work though. You can do it manually by ssh-ing into box: vagrant ssh

Directory with Vagrantfile is being mounted automatically so you can just copy jar file manually or add it to playbook.yaml file

License

Licensed under the MIT License. See the LICENSE file for details.

About

License:MIT License


Languages

Language:Shell 100.0%