Giter Site home page Giter Site logo

lordoftheflies / ansible-role-java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from geerlingguy/ansible-role-java

1.0 2.0 0.0 316 KB

Ansible Role - Java.

Home Page: https://galaxy.ansible.com/geerlingguy/java/

License: MIT License

Ruby 0.76% Python 98.58% Shell 0.66%
ansible ansible-role ansible-galaxy jdk development-environment java

ansible-role-java's Introduction

Ansible Role: Java

Status

Build Status

Installs Java for RedHat/CentOS and Debian/Ubuntu linux servers.

Setup test environment

virtualenv --python=/usr/bin/python3.7 .env
source .env/bin/activate
pip install molecule molecule[lint] molecule[docker] docker docker-compose tox pytest

Requirements

None.

Role Variables

Available variables are listed below, along with default values:

# The defaults provided by this role are specific to each distribution.
java_packages:
  - java-1.8.0-openjdk

Set the version/development kit of Java to install, along with any other necessary Java packages. Some other options include are included in the distribution-specific files in this role's 'defaults' folder.

java_home: ""

If set, the role will set the global environment variable JAVA_HOME to this value.

Dependencies

None.

Example Playbook (using default package)

- hosts: servers
  roles:
    - role: lordoftheflies.role_java
      become: yes

Example Playbook (install OpenJDK 8)

For RHEL / CentOS:

- hosts: server
  roles:
    - role: lordoftheflies.role_java
      when: "ansible_os_family == 'RedHat'"
      java_packages:
        - java-1.8.0-openjdk

For Ubuntu < 16.04:

- hosts: server
  tasks:
    - name: installing repo for Java 8 in Ubuntu
      apt_repository: repo='ppa:openjdk-r/ppa'

- hosts: server
  roles:
    - role: lordoftheflies.role_java
      when: "ansible_os_family == 'Debian'"
      java_packages:
        - openjdk-8-jdk

Authors

###> Setup for development

pre-commit install

It is highly recommend you enable setting for storing the venvs within your projects.

poetry config settings.virtualenvs.in-project true

Install project dependencies.

poetry install

Running the package locally

Activate the virtual environment.

source .venv/bin/activate

Run the package as a module.

python -m gitcommit

Deploy

Deployment is handled automatically by Travis CI. It has been linked to the repository and is automatically watching for pushes to master. It will build and test every commit to master. It will also build every tagged commit as if it was a branch, and since its a tagged commit, will attempt to publish it to PyPI.

Don't forget to increment version number set in pyproject.toml. This can be done with poetry.

poetry version [patch|minor|major]

Tag the commit (by default applies to HEAD commit - make sure you are on the latest develop commit).

git tag v#.#.#

When pushing commits to remote, you must explicitly push tags too.

git push origin --tags

ansible-role-java's People

Contributors

geerlingguy avatar lordoftheflies avatar juju4 avatar bvansomeren avatar lucasmaurice avatar 030 avatar johnscancella avatar mcalhoun avatar arhue avatar itzikb avatar jermon avatar johnjelinek avatar lhoss avatar mikestankavich avatar acrewdson avatar rakhbari avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

ansible-role-java's Issues

[FEATURE-REQUEST] Delivery pipeline.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

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.