Puppet Class: python
- Defined in:
- manifests/init.pp
Overview
Install Pyenv so Python versions can be installed
Usage:
include python
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'manifests/init.pp', line 7
class python(
$prefix,
$user,
$version_alias,
$version_env,
) {
if $::osfamily == 'Darwin' {
include boxen::config
}
include python::pyenv
if $::osfamily == 'Darwin' {
boxen::env_script { 'pyenv':
content => template('python/pyenv.sh.erb'),
priority => 'higher'
}
}
file { '/opt/python':
ensure => directory,
owner => $user,
}
Class['python::pyenv'] ->
Python::Version <| |> ->
Python::Plugin <| |>
}
|