Forge Home

gvm

Paulo Suzart GVM module

13,631 downloads

8,586 latest version

2.3 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

  • 1.2.2 (latest)
  • 1.2.1
  • 1.1.0
  • 1.0.1
  • 1.0.0
  • 0.0.2
  • 0.0.1
released Oct 27th 2015

Start using this module

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

Add this module to your Puppetfile:

mod 'paulosuzart-gvm', '1.2.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add paulosuzart-gvm
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install paulosuzart-gvm --version 1.2.2

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
Tags: java, groovy, gvm, grails

Documentation

paulosuzart/gvm — version 1.2.2 Oct 27th 2015

paulosuzart/gvm

Module can be use to install GVM and manage its available packages;

Usage

    class { 'gvm' :
      owner   => 'someuser',
      group   => 'g_someuser',
      homedir => '/apps/someuser',
    }
  • owner is the user name that will own the installation. From it the home of the user is assumed to be /home/$owner, or /root if the provided user is root. Defaults to root.
  • group is the group name of the owner. Defaults to $owner.
  • homedir is the home directory of the owner. This can be omitted if the home directory is /root or /home/$owner.

To install packages simply do:

  gvm::package { 'grails':
    version    => '2.1.5',
    is_default => true,
    ensure     => present #default
  }
  • version will make gvm::package to install the given version of the package
  • is_default will make this package as default if you want to install many versions

To remove packages use the extra argument package_name (defaults to name) like this:

  gvm::package { 'remove grails 2.0.1':
    package_name => 'grails',
    version   => '2.0.1',
    ensure    => absent,
  }

It is required Package['unzip'] declared somewhere in your manifests.

Limitations

Tested and mostly built to run with Ubuntu/Debian. Futher versions should add suport for Mac and other distributions.

Release Notes

Notes for release 1.2.2

  • Fixed owner variable lookup

With special thanks to pingram3030

Notes for release 1.2.1

  • Allow passing of Java Home to GVM commands
  • Don't mess with JAVA_HOME unless it's specified

With special thanks to rickab contribution.

Notes for release 1.1.0

  • Parameterize homedir for non-standard directories
  • Parameterize group name
  • Fix typo

With special thanks to joedj contribution.

Notes for release 1.0.1

  • Timeout parameter added to gvm::package.
  • User fix. GVM installation condition changed. Ensuer file added.
  • Fixed wrong HOME environment variable while installing a package.

With special thanks to Athlan contribution.

Notes for release 1.0.0

  • Added support for root user if you want to use this package in your server.
  • Added ability to remove gvm packages