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'],
}
}
|