Forge Home

servicetools

Standardised installation of arbitrary binaries

22,570 downloads

11,361 latest version

2.8 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.1.0 (latest)
  • 1.0.2
  • 1.0.1
  • 1.0.0
released Oct 23rd 2018
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 'silverstripe-servicetools', '1.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add silverstripe-servicetools
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install silverstripe-servicetools --version 1.1.0

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: tools

Documentation

silverstripe/servicetools — version 1.1.0 Oct 23rd 2018

Puppet Servicetools

Provides resources for standardised installation of arbitrary binaries, including daemonising them through systemd. Designed to work well with hiera - you can install binaries without needing to write custom puppet manifests.

Hiera usage

To improve composability, the module does NOT make assumptions on how your keys are named in hiera, and does not create_resources for you. Map the resources to hiera keys:

create_resources(servicetools::install_file, hiera('servicetools::install_file', {}))
create_resources(servicetools::install_localfile, hiera('servicetools::install_localfile', {}))
create_resources(servicetools::install_deb, hiera('servicetools::install_deb', {}))
create_resources(servicetools::install_tgz, hiera('servicetools::install_tgz', {}))
create_resources(servicetools::install_systemd_unit, hiera('servicetools::install_systemd_unit', {}))

Now you can use hiera to provision arbitrary resources:

servicetools::install_tgz:
  "/usr/local/bin/discombobulator":
    source: "https://github.com/reticulant/discombobulator/releases/download/0.1/discombobulator_0.1_linux_amd64.tar.gz"
servicetools::install_systemd_unit:
  "discombobulator":
    service_options:
      ExecStart: "/usr/local/bin/discombobulator --reticulate-splines --calibrate-blue-skies"
      Restart: "on-failure"
      RestartSec: "5"
    service_ensure: "stopped"
    service_enable: true

Running tests

Change directory to the project root, then run bundle exec rake spec SPEC_OPTS='--format documentation'