Puppet Class: python::openbsd
- Inherits:
- python::params
- Defined in:
- manifests/openbsd.pp
Overview
Class: python::openbsd
Creates symbolic links for a better experience on OpenBSD.
5 6 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 35 36 37 38 39 40 41 42 43 44 |
# File 'manifests/openbsd.pp', line 5
class python::openbsd(
$ez_setup,
) inherits python::params {
file { '/usr/local/bin/python':
ensure => link,
target => $interpreter,
owner => 'root',
group => 'wheel',
}
file { '/usr/local/bin/python-config':
ensure => link,
target => "/usr/local/bin/python${version}-config",
owner => 'root',
group => 'wheel',
}
file { '/usr/local/bin/pydoc':
ensure => link,
target => "/usr/local/bin/pydoc${version}",
owner => 'root',
group => 'wheel',
}
if ! $ez_setup {
file { '/usr/local/bin/easy_install':
ensure => link,
target => "/usr/local/bin/easy_install-${version}",
owner => 'root',
group => 'wheel',
}
file { '/usr/local/bin/pip':
ensure => link,
target => "/usr/local/bin/pip-${version}",
owner => 'root',
group => 'wheel',
}
}
}
|