diff --git a/python/manifests/init.pp b/python/manifests/init.pp index 39e1e0b..238d6b9 100644 --- a/python/manifests/init.pp +++ b/python/manifests/init.pp @@ -4,11 +4,11 @@ class python { package { "python": - ensure => installed, - notify => $operatingsystem ? { - "openbsd" => Exec["python-links"], - default => undef, - }, + ensure => installed, + notify => $::operatingsystem ? { + "openbsd" => Exec["python-links"], + default => undef, + }, } exec { "python-links": @@ -39,7 +39,7 @@ define python::setup::install($python="python") { exec { "python-setup-install-${name}": path => "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin", - cwd => "${name}", + cwd => $name, command => "/bin/sh -c 'umask 022; ${python} setup.py install'", creates => "${name}/build", }