Forge Home

sdkman

Paulo Suzart Sdkman module

12,807 downloads

9,463 latest version

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

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 1.0.2 (latest)
  • 1.0.1
  • 1.0.0
released Jul 27th 2016

Start using this module

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

Add this module to your Puppetfile:

mod 'paulosuzart-sdkman', '1.0.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install paulosuzart-sdkman --version 1.0.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

Documentation

paulosuzart/sdkman — version 1.0.2 Jul 27th 2016

paulosuzart/sdkman

former paulosuzart/gvm

Module can be used to install Sdkman and manage its available packages;

Usage

    class { 'sdkman' :
      owner   => 'someuser',
      group   => 'g_someuser',
      homedir => '/apps/someuser', #optional
    }
  • 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:

  sdkman::package { 'grails':
    version    => '2.1.5',
    is_default => true,
    ensure     => present #default
  }
  • version will make sdkman::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:

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

The package_name is also useful for multiple versions of a given package.

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

Use sdkman::package_hash to install using Hiera databinding. For example

sdkman::package_hash:
  'groovy': { version: '2.4.5' }

Limitations

Tested and mostly built to run with Ubuntu/Debian.

Release Notes

Notes for release 1.0.2

Notes for release 1.0.1

  • Added a package_hash for adding packages by using Hiera databinding

Notes for release 1.0.0

  • Fully refactored to support sdkman

For further details regarding contribution to old gvm module, please refer to that project.