Download nexus artifact

Dawei Wang



8,369 latest version

4.1 quality score

Version information

  • 0.1.0 (latest)
released May 4th 2016

Start using this module


af6140/nexus_artifact — version 0.1.0 May 4th 2016


Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with nexus_artifact
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module


This moudle defines a single puppet custom type/provider for downloading nexus artifact.

It was originally based on to avoid potential namesapce confliction, and was quickly realized it does not work well with changing artifact of same version number, like snapshots. Patching the code is problematic, since if nexus is need to be queried, it is better to be done with ruby code, which we cannot be embedded in puppet module. At the same time, functions are pure ruby code and were executed on puppet master. This custom type allows to download artifact from nexus maven repository including snapshots repoistory, since it compares the checksum of artifacts of the same base version. Maven artifacts in snapshots repository can take the form of artifactid-version-SNAPSHOT-timestamp.suffix, though they are the same base versions, but timestamp varies.

Module Description

A custom type/provider ent_nexus_getartifact is implemented to download artifact from nexus.


include nexus_artifact

What nexus_artifact affects

  • Tt requires a tmp_dir available to store the artifact.
  • It fetches artifact from nexus to local file system.

Setup Requirements OPTIONAL

If requires a posix system with common os commands like wget, chmod, chown. It also requires pluginsync=true enabled for puppet.

Beginning with nexus_artifact

See source code at ssh://


        nexus_url => '',
        group => 'webapps',
        artifact => 'app-static',
        version => '1.0.3',
        repo => 'entertainment',
        extension => 'tar',
        owner => 'root',
        filegroup => 'root',
        mode => '0755',
        ensure => 'present',


A custom type and provider are available.


  • ent_nexus_getartifact


  • nexus_fetch


Only tested on Centos/Redhat, against nexus.


Since your module is awesome, other users will want to play with it. Let them know what the ground rules for contributing are.

Release Notes/Contributors/Etc Optional

If you aren't using changelog, put your release notes here (though you should consider using changelog). You may also add any additional sections you feel are necessary or important to include here. Please use the ## header.