Puppet Class: globus::timer

Defined in:
manifests/timer.pp

Summary

Manage Globus Timer

Overview

Examples:

include ::globus::timer

Parameters:

  • ensure (String[1]) (defaults to: 'present')

    The ensure parameter for PIP installed globus-timer-cli

  • install_path (Stdlib::Absolutepath) (defaults to: '/opt/globus-timer')

    Path to install Globus Timer CLI virtualenv

  • manage_python (Boolean) (defaults to: true)

    Boolean to set if Python is managed by this class



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'manifests/timer.pp', line 12

class globus::timer (
  String[1] $ensure = 'present',
  Stdlib::Absolutepath $install_path = '/opt/globus-timer',
  Boolean $manage_python = true,
) {
  if $manage_python {
    include globus::python
  }

  python::pyvenv { 'globus-timer':
    ensure     => 'present',
    version    => $globus::python::venv_python_version,
    venv_dir   => $install_path,
    systempkgs => true,
    before     => Python::Pip['globus-timer-cli'],
  }

  python::pip { 'globus-timer-cli':
    ensure       => $ensure,
    pip_provider => $globus::python::pip_provider,
    virtualenv   => $install_path,
  }
  file { '/usr/bin/globus-timer':
    ensure  => 'link',
    target  => "${install_path}/bin/globus-timer",
    require => Python::Pip['globus-timer-cli'],
  }
}