Forge Home

singularity

singularity Puppet module

17,863 downloads

870 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

  • 5.5.0 (latest)
  • 5.4.1
  • 5.4.0
  • 5.3.1
  • 5.3.0
  • 5.2.1
  • 5.2.0
  • 5.1.0
  • 5.0.0
  • 4.0.0
  • 3.5.0
  • 3.4.0
  • 3.3.0
  • 3.2.0
  • 3.1.0
  • 3.0.0
  • 2.0.1
  • 2.0.0
  • 1.2.0
  • 1.1.0
  • 1.0.1
  • 1.0.0
  • 0.1.0
  • 0.0.2
  • 0.0.1
released Mar 19th 2018
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 4.7.0 < 6.0.0
  • , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'treydock-singularity', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add treydock-singularity
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install treydock-singularity --version 1.0.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

Documentation

treydock/singularity — version 1.0.0 Mar 19th 2018

puppet-module-singularity

Puppet Forge Build Status

Table of Contents

  1. Overview
  2. Usage - Configuration options
  3. Reference - Parameter and detailed reference to all options
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module
  6. TODO
  7. Additional Information

Overview

This module manages the singularity package installation and configuration of singularity.conf.

Usage

singularity

Install and configure singularity:

class { 'singularity': }

Reference

Classes

Public classes

  • singularity: Installs and configures singularity.

Private classes

  • singularity::install: Installs singularity packages.
  • singularity::config: Configures singularity.
  • singularity::params: Sets parameter defaults based on fact values.

Parameters

singularity

Below are parameter defaults in Hiera format:

singularity::package_ensure: present
singularity::package_name: singularity
singularity::manage_epel: true
singularity::config_path: /etc/singularity/singularity.conf
singularity::config_template: singularity/singularity.conf.erb
singularity::allow_setuid: yes
singularity::max_loop_devices: 256
singularity::allow_pid_ns: yes
singularity::config_passwd: yes
singularity::config_group: yes
singularity::config_resolv_conf: yes
singularity::mount_proc: yes
singularity::mount_sys: yes
singularity::mount_dev: yes
singularity::mount_devpts: yes
singularity::mount_home: yes
singularity::mount_tmp: yes
singularity::mount_hostfs: no
singularity::bind_paths:
  - /etc/localtime
  - /etc/hosts
singularity::user_bind_control: yes
singularity::enable_overlay: try
singularity::mount_slave: yes
singularity::sessiondir_max_size: 16
#singularity::limit_container_owners: undef
#singularity::limit_container_paths: undef
singularity::allow_containers:
  squashfs: yes
  extfs: yes
  dir: yes
#singularity::autofs_bug_paths: undef
package_ensure

Package ensure parameter, defaults to present

package_name

Package name, defaults to singularity

manage_epel

Determines whether to include EPEL class before installing singularity. Defaults to true

Limitations

This module has been tested on:

  • CentOS 6 x86_64
  • CentOS 7 x86_64

Development

Testing

Testing requires the following dependencies:

  • rake
  • bundler

Install gem dependencies

bundle install

Run unit tests

bundle exec rake test

If you have Vagrant >= 1.2.0 installed you can run system tests

bundle exec rake beaker

TODO

Further Information