Forge Home

multiinstall

Install multiple versions of a program to a directory

9,995 downloads

9,648 latest version

5.0 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.1.2 (latest)
  • 0.1.1
  • 0.1.0
released Jan 14th 2015
This version is compatible with:

Start using this module

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

Add this module to your Puppetfile:

mod 'saw-multiinstall', '0.1.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add saw-multiinstall
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install saw-multiinstall --version 0.1.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: modulefile

Documentation

saw/multiinstall — version 0.1.2 Jan 14th 2015

MultiInstall

Installs multiple versions of a program or library simultaneously

In multi-user environments you sometimes want to support multiple versions of a software package at the same time, so that for instance you can gradually migrate users between versions. In HPC environments the 'Module' system is commonly used for this.

MultiInstall is a highly configurable Puppet module for installing and configuring multiple versions of a package on a single server.

Build Status

Using MultiInstall

The multiinstall Puppet type takes a list of tags signifying the package versions to install, as well as the names of three Puppet types. These are the 'installer', the 'configurer' and the 'chooser' types. These in turn install a single tag, configure that tag and provide a mechanism for users to choose which of the tags to run.

There are a set of example types in the manifest directory that show how this works.

  • The type multiinstall::install::vcsrepo downloads tags from a version-controlled repository using the puppetlabs-vcsrepo module

  • The type multiinstall::configure::template configures a package using a Puppet template file

  • The type multiinstall::chooser::wrapper sets up a wrapper which selects the version to run using an environment variable

To expand the options you can pass in your own custom types to multiinstall. For instance you might create an installer that installs different Python library versions using Pip, and a chooser that creates module files for each version. Pull requests are welcomed to add new helper types

Other notes

Each of the helper types can be passed options by using the hashes in the main multiinstall type, eg.

multiinstall {'cylc':
    install_version => 'master',
    install_type    => 'multiinstall::install::vcsrepo',
    install_options => {
        repository  => 'https://github.com/cylc/cylc',
    },
}

Obsolete versions can be purged by setting the purge option to true