puppet/python/manifests/init.pp
2010-10-26 13:02:09 +03:00

22 lines
470 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",
require => File["${name}"],
}
}