Giter VIP home page Giter VIP logo

ansible-maven's Introduction

ansible-maven

Install Maven in latest version from upstream.

Architecture

The role downloads redistributable packages from the internet to the hosts local filesystem before it may install those on any number of managed nodes in the local network.

Requirements

None.

Role Variables

  • maven_version: Maven version to install (default: 3.3.9)
  • maven_mirror: Maven mirror to download Maven from (default: http://archive.apache.org/dist/maven/binaries/)
  • maven_install_dir: Base installation directory for any Maven distribution (default: /opt/maven)
  • maven_redis_checksum: SHA256 sum for the downloaded Maven redistributable package (default: 6e3e9c949ab4695a204f74038717aa7b2689b1be94875899ac1b3fe42800ff82)
  • maven_path_to_lib_role: configure path to lib-role (string, default: {{ lib_roles_path }})

Role facts

This role sets persistent local facts for other roles to use via

  • facts.d ansible_local.maven.general.maven_version
  • facts.d ansible_local.maven.general.maven_home

Dependencies

This role depends on silpion.lib role. This is configured for ansible-galaxy install in requirements.yml.

NOTE: Requirements are installed as virtual user silpion (silpion.lib).

Be sure to install required roles with

ansible-galaxy install --role-file requirements.yml

Example playbook

- hosts: ci
  roles:
    - { role: ansible-maven }

License

Apache Version 2.0

Integration testing

This role provides integration tests using the Ruby RSpec/serverspec framework with a few drawbacks at the time of writing this documentation.

  • Currently supports ansible_os_family == 'Debian' only.

Running integration tests requires a number of dependencies being installed. As this role uses Ruby RSpec there is the need to have Ruby with rake and bundler available.

# install role specific dependencies with bundler
bundle install
# run the complete test suite with Docker
rake suite
# run the complete test suite with Vagrant
RAKE_ANSIBLE_USE_VAGRANT=1 rake suite

Author information

Mark Kusch @mark.kusch silpion.de

Contributors

ansible-maven's People

Contributors

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