From 87332b4032cac4c2f0fc33e55514b81fc9f00645 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Tue, 21 May 2013 17:02:41 -0400 Subject: add a python::package define --- manifests/package.pp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 manifests/package.pp (limited to 'manifests/package.pp') diff --git a/manifests/package.pp b/manifests/package.pp new file mode 100644 index 0000000..951f457 --- /dev/null +++ b/manifests/package.pp @@ -0,0 +1,13 @@ +define python::package ( $ensure = 'present' ) +{ + if $ensure == 'present' { require python } + + case $operatingsystem { + 'debian','ubuntu': { + package {"python-${name}": ensure => $ensure } + } + default: { + package {"python-${name}": ensure => $ensure } + } + } +} -- cgit v1.2.3