X Tutup
The Wayback Machine - https://web.archive.org/web/20201210021640/https://github.com/peertransfer/java_role
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

JAVA Ansible role

This role installs JAVA from Oracle or OpenJDK in a Debian Stretch environment.

There is optiontal setups for:

  • Database
  • Okta SSO integration
  • Datacenter

All built with CircleCI: CircleCI

Flywire Engineering

Getting Started

Prerequisities

Ansible 2.8.3.0 version installed, or a Docker environment to develop.

Installing

Add role dependecy to your requirements file (Installing roles from file).

Use the following example as a guide for specifying roles in requirements.yml:

- src: flywire.java_role
  version: 0.1.0

Use the following command to install roles included in requirements.yml:

ansible-galaxy install -r requirements.yml

Then you'll be able to use the role in your playbooks:

- hosts: linux-server
  become: yes
  roles:
    - { role: flywire.java_role }

Testing

For testing we've used Molecule with Docker as driver, and Testinfra as verifier.

In order to run the tests you can:

$ pipenv install -r test-requirements.txt
$ pipenv run molecule test

Also you can play each stage of Molecule separated from this matrix, test will do all the steps:

└── default
    ├── lint
    ├── cleanup
    ├── destroy
    ├── dependency
    ├── syntax
    ├── create
    ├── prepare
    ├── converge
    ├── idempotence
    ├── side_effect
    ├── verify
    ├── cleanup
    └── destroy

Developing

Built With

Ansible Python Molecule Testinfra

Contributing

You can check in CONTRIBUTING

Versioning

We use the semver system to version all of our ansible roles, https://semver.org/

The current version is kept in plain text in a .semver file Ej: v1.2.5

Authors

License

Apache 2.0 License

This project is licensed under the Apache 2.0 license - see the LICENSE file for details.

You can’t perform that action at this time.
X Tutup