Forge Home

puppet_nexus

puppet-nexus lets you download artifacts from nexus

7,097 downloads

7,097 latest version

4.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.0.1 (latest)
released Aug 31st 2016

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'woosley-puppet_nexus', '0.0.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add woosley-puppet_nexus
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install woosley-puppet_nexus --version 0.0.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

woosley/puppet_nexus — version 0.0.1 Aug 31st 2016

puppet-nexus

Overview

this puppet module let you download files from nexus using a puppetized syntax

Usage

this module provides a custom type called artifact.

Example


 artifact {"apprunner":
    username   => $username, # nexus username
    password   => $password, # nexus password
    id         => 'app-runner', # artifact id
    repo       => 'central',    # nexus repo id
    group      => "com.danielflower.apprunner", # nexus group
    classifier => "",
    ensure     => present,
    version    => '1.1.1',
    name       => 'apprunner',
    extension  => 'jar',
    owner      => 'apprunner',
    path       => '/root',
    mode       => '0644'
  }

The example above will create a file /root/apprunner-1.1.1.jar. The rule of the naming is $name-$version.$extension

You can also change the nexus url by pass

    nexus => 'Your nexus api base url'

notes

  • this module is tested with ruby1.8 and ruby2.0
  • this module is tested on Centos only but should work on most linux distribution