Puppet Class: globus::cli

Defined in:
manifests/cli.pp

Summary

Manage Globus CLI

Overview

Examples:

include ::globus::cli

Parameters:

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

    The ensure parameter for PIP installed CLI

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

    Path to install Globus 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
40
# File 'manifests/cli.pp', line 12

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

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

  python::pip { 'globus-cli':
    ensure       => $ensure,
    pip_provider => $globus::python::pip_provider,
    virtualenv   => $install_path,
  }

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