From f6fd9f46fe9c058d1f0877043d42829efe0c45cb Mon Sep 17 00:00:00 2001 From: Fotis Gimian Date: Mon, 3 Jun 2013 20:48:10 +1000 Subject: Now that all exec statements run under a particular owner, there is no need for the CPU intensive recursive virtualenv permission check --- manifests/virtualenv.pp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'manifests/virtualenv.pp') diff --git a/manifests/virtualenv.pp b/manifests/virtualenv.pp index 9547e27..5946e15 100644 --- a/manifests/virtualenv.pp +++ b/manifests/virtualenv.pp @@ -84,7 +84,6 @@ define python::virtualenv ( default => "-i ${index}", } - exec { "python_virtualenv_${venv_dir}": command => "mkdir -p ${venv_dir} ${proxy_command} && virtualenv -p `which ${python}` ${system_pkgs_flag} ${venv_dir} && ${venv_dir}/bin/pip install ${pypi_index} ${proxy_flag} --upgrade ${distribute_pkg} pip", user => $owner, @@ -92,14 +91,6 @@ define python::virtualenv ( path => [ '/bin', '/usr/bin', '/usr/sbin' ], } - file{$venv_dir: - ensure => directory, - owner => $owner, - group => $group, - recurse => true, - require => Exec["python_virtualenv_${venv_dir}"], - } - if $requirements { exec { "python_requirements_initial_install_${requirements}_${venv_dir}": command => "${venv_dir}/bin/pip install ${pypi_index} ${proxy_flag} --requirement ${requirements}", -- cgit v1.2.3