• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

silpion/ansible-maven: Ansible role to manage Maven installation

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

silpion/ansible-maven

开源软件地址(OpenSource Url):

https://github.com/silpion/ansible-maven

开源编程语言(OpenSource Language):

Shell 58.9%

开源软件介绍(OpenSource 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




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap