From 716569f78219576e8e6475cadb74eb0b9c2a8856 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Tue, 26 Oct 2010 11:47:12 +0300 Subject: [PATCH] Added python::setup::install. --- python/manifests/init.pp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 python/manifests/init.pp diff --git a/python/manifests/init.pp b/python/manifests/init.pp new file mode 100644 index 0000000..2fe16b3 --- /dev/null +++ b/python/manifests/init.pp @@ -0,0 +1,22 @@ +# 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}"], + } + +}