Puppet Class: ephemeris

Defined in:
manifests/init.pp

Summary

Main class that includes all other classes for the management of a python virtual environment for ephemeris.

Overview

Class: ephemeris

Main class that includes all other classes for the management of a python virtual environment for ephemeris.

Examples:

include ephemeris
class { 'ephemeris':
  virtualenv_dir   => '/opt/galaxy/ephemeris',
  virtualenv_group => 'galaxy',
  virtualenv_owner => 'galaxy',
  virtualenv_mode  => '0775',
}

Parameters:

  • manage_python (Boolean) (defaults to: true)

    Whether or not to manage the installation of python, python-devel, pip, and virtualenv.

  • manage_python_dev (String) (defaults to: 'present')

    Whether the python class should have the python-devel package as absent or present.

  • manage_python_use_epel (Boolean) (defaults to: true)

    Whether or not the python class uses EPEL for installation of packages.

  • manage_python_virtualenv (String) (defaults to: 'present')

    Whether the python class should have the virtualenv package as absent or present.

  • virtualenv_dir (Stdlib::Absolutepath) (defaults to: '/root/ephemeris')

    Path for where the ephemeris virtualenv should be created.

  • virtualenv_ensure (Enum['present', 'absent']) (defaults to: 'present')

    Whether the ephemeris virtualenv should be present or absent.

  • virtualenv_group (String) (defaults to: 'root')

    Specifies the name of the group of the ephemeris virtualenv

  • virtualenv_mode (String) (defaults to: '0750')

    Specifies the mode of the ephemeris virtualenv.

  • virtualenv_owner (String) (defaults to: 'root')

    Specifies the name of the owner of the ephemeris virtualenv.

  • virtualenv_requirements (Array) (defaults to: [ 'ephemeris', 'bioblend', ])

    Specifies pip packages to add to the requirements.txt file for the ephemeris environment.



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'manifests/init.pp', line 30

class ephemeris (
  Boolean                   $manage_python            = true,
  String                    $manage_python_dev        = 'present',
  Boolean                   $manage_python_use_epel   = true,
  String                    $manage_python_virtualenv = 'present',
  Stdlib::Absolutepath      $virtualenv_dir           = '/root/ephemeris',
  Enum['present', 'absent'] $virtualenv_ensure        = 'present',
  String                    $virtualenv_group         = 'root',
  String                    $virtualenv_mode          = '0750',
  String                    $virtualenv_owner         = 'root',
  Array                     $virtualenv_requirements  = [ 'ephemeris', 'bioblend', ],
  ) {
  case $::operatingsystem {
    'RedHat', 'CentOS': {
      case $::operatingsystemmajrelease {
        '7': {
            contain ephemeris::install
            contain ephemeris::config

            Class['ephemeris::install']
            -> Class['ephemeris::config']
          }
        default: {
          fail("${::operatingsystem} ${::operatingsystemmajrelease} not supported")
        }
      }
    }
    default: {
      fail("${::operatingsystem} not supported")
    }
  }
}