puppet/python/manifests/init.pp
2010-10-26 16:25:22 +03:00

21 lines
434 B
Puppet

# Install python software using setup.py.
#
# === Parameters
#
# $name:
# Source directory.
#
# === Sample usage
#
# python::setup::install { "/usr/local/src/moin-1.8.8": }
#
define python::setup::install() {
exec { "python-setup-install-${name}":
path => "/bin:/usr/bin:/sbin:/usr/sbin",
cwd => "${name}",
command => "python setup.py install",
unless => "test -d build",
}
}